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 : 2247574 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 (2755640) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2755640) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22325236 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2755640'] with mtr_portfolio_ids : ['22325236'] and first list_photo_ids : [] new path : /proc/2247574/ Name: python3 Umask: 0002 State: R (running) Tgid: 2247574 Ngid: 0 Pid: 2247574 PPid: 2247573 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2247574 NSpid: 2247574 NSpgid: 2246311 NSsid: 2246311 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100128 kB VmRSS: 100128 kB RssAnon: 59776 kB RssFile: 40352 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 552 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 45 nonvoluntary_ctxt_switches: 111 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2247574', 'Ngid': '0', 'Pid': '2247574', 'PPid': '2247573', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2247574', 'NSpid': '2247574', 'NSpgid': '2246311', 'NSsid': '2246311', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100128 kB', 'VmRSS': '100128 kB', 'RssAnon': '59776 kB', 'RssFile': '40352 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '552 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '45', 'nonvoluntary_ctxt_switches': '111'} ('datou_batch_current', '2247574', '1106936', '0', '1106936', '865684', '100128', b'', 'marlene', '2755640') 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 (22325236) 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 (2755640 ) ) 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 (22325236) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1352915073, 'portfolio_id': 22325236}, {'photo_id': 1352915008, 'portfolio_id': 22325236}, {'photo_id': 1352915006, 'portfolio_id': 22325236}, {'photo_id': 1352914979, 'portfolio_id': 22325236}, {'photo_id': 1352914977, 'portfolio_id': 22325236}, {'photo_id': 1352914948, 'portfolio_id': 22325236}, {'photo_id': 1352914946, 'portfolio_id': 22325236}, {'photo_id': 1352914943, 'portfolio_id': 22325236}, {'photo_id': 1352914911, 'portfolio_id': 22325236}, {'photo_id': 1352914904, 'portfolio_id': 22325236}, {'photo_id': 1352914902, 'portfolio_id': 22325236}, {'photo_id': 1352914865, 'portfolio_id': 22325236}, {'photo_id': 1352914863, 'portfolio_id': 22325236}, {'photo_id': 1352914861, 'portfolio_id': 22325236}, {'photo_id': 1352914859, 'portfolio_id': 22325236}, {'photo_id': 1352914848, 'portfolio_id': 22325236}, {'photo_id': 1352914811, 'portfolio_id': 22325236}, {'photo_id': 1352914808, 'portfolio_id': 22325236}, {'photo_id': 1352914777, 'portfolio_id': 22325236}, {'photo_id': 1352914749, 'portfolio_id': 22325236}, {'photo_id': 1352914748, 'portfolio_id': 22325236}, {'photo_id': 1352914724, 'portfolio_id': 22325236}, {'photo_id': 1352914723, 'portfolio_id': 22325236}, {'photo_id': 1352914100, 'portfolio_id': 22325236}, {'photo_id': 1352914097, 'portfolio_id': 22325236}, {'photo_id': 1352913245, 'portfolio_id': 22325236}] map_portfolio_id_photo_id: {22325236: [1352915073, 1352915008, 1352915006, 1352914979, 1352914977, 1352914948, 1352914946, 1352914943, 1352914911, 1352914904, 1352914902, 1352914865, 1352914863, 1352914861, 1352914859, 1352914848, 1352914811, 1352914808, 1352914777, 1352914749, 1352914748, 1352914724, 1352914723, 1352914100, 1352914097, 1352913245]} ##### Call download_photos : nb_thread : 1 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos ##### After load_data_input time to download the photos : 0.023035287857055664 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Apr 24 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 (22325236) 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 : 22325236 get user id for portfolio 22325236 get sub ptf for main ptf 22325236, type 3726 and hashtags ['Teint_Dans_La_Masse', 'papier', 'cartonnette', 'autre_refus', 'kraft', 'flou', 'Carton_brun', 'environnement', 'metal', 'mal_croppe', 'plastique', 'Carton_gris'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22325236 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','papier','cartonnette','autre_refus','kraft','flou','Carton_brun','environnement','metal','mal_croppe','plastique','Carton_gris')) 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`=22325236 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','papier','cartonnette','autre_refus','kraft','flou','Carton_brun','environnement','metal','mal_croppe','plastique','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22325236, 'sub_port_id': 22325279, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783786, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 56)}, 'mal_croppe': {'main_port_id': 22325236, 'sub_port_id': 22325280, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783787, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 22325236, 'sub_port_id': 22325281, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783788, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 56)}, 'plastique': {'main_port_id': 22325236, 'sub_port_id': 22325282, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783789, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 56)}, 'metal': {'main_port_id': 22325236, 'sub_port_id': 22325283, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783790, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 56)}, 'flou': {'main_port_id': 22325236, 'sub_port_id': 22325284, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783791, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 56)}, 'cartonnette': {'main_port_id': 22325236, 'sub_port_id': 22325285, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783792, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 56)}, 'kraft': {'main_port_id': 22325236, 'sub_port_id': 22325286, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783793, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 56)}, 'Carton_gris': {'main_port_id': 22325236, 'sub_port_id': 22325287, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783794, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 56)}, 'Carton_brun': {'main_port_id': 22325236, 'sub_port_id': 22325288, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783795, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 56)}, 'papier': {'main_port_id': 22325236, 'sub_port_id': 22325289, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783796, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 56)}, 'autre_refus': {'main_port_id': 22325236, 'sub_port_id': 22325290, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783797, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22325279 , 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=22325236 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 (22325279) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22325236) result : ((1352913245,), (1352914097,), (1352914100,), (1352914723,), (1352914724,), (1352914748,), (1352914749,), (1352914777,), (1352914808,), (1352914811,), (1352914848,), (1352914859,), (1352914861,), (1352914863,), (1352914865,), (1352914902,), (1352914904,), (1352914911,), (1352914943,), (1352914946,), (1352914948,), (1352914977,), (1352914979,), (1352915006,), (1352915008,), (1352915073,)) 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 (1352914100) 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 22325280 , 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=22325236 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 (22325280) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22325236) result : ((1352913245,), (1352914097,), (1352914100,), (1352914723,), (1352914724,), (1352914748,), (1352914749,), (1352914777,), (1352914808,), (1352914811,), (1352914848,), (1352914859,), (1352914861,), (1352914863,), (1352914865,), (1352914902,), (1352914904,), (1352914911,), (1352914943,), (1352914946,), (1352914948,), (1352914977,), (1352914979,), (1352915006,), (1352915008,), (1352915073,)) 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 (1352914100) 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 22325281 , 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=22325236 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 (22325281) result : ((1352914921,), (1352915025,), (1352915044,), (1352915059,), (1352915091,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22325236) result : ((1352913245,), (1352914097,), (1352914100,), (1352914723,), (1352914724,), (1352914748,), (1352914749,), (1352914777,), (1352914808,), (1352914811,), (1352914848,), (1352914859,), (1352914861,), (1352914863,), (1352914865,), (1352914902,), (1352914904,), (1352914911,), (1352914943,), (1352914946,), (1352914948,), (1352914977,), (1352914979,), (1352915006,), (1352915008,), (1352915073,)) 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 (1352914100) 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 22325282 , 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=22325236 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 (22325282) result : ((1352914888,), (1352914889,), (1352914890,), (1352914908,), (1352914909,), (1352914910,), (1352915051,), (1352915066,), (1352915067,), (1352915068,), (1352915069,), (1352915070,), (1352915071,), (1352915095,), (1352915318,), (1352915319,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22325236) result : ((1352913245,), (1352914097,), (1352914100,), (1352914723,), (1352914724,), (1352914748,), (1352914749,), (1352914777,), (1352914808,), (1352914811,), (1352914848,), (1352914859,), (1352914861,), (1352914863,), (1352914865,), (1352914902,), (1352914904,), (1352914911,), (1352914943,), (1352914946,), (1352914948,), (1352914977,), (1352914979,), (1352915006,), (1352915008,), (1352915073,)) 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 (1352914100) 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 22325283 , 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=22325236 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 (22325283) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22325236) result : ((1352913245,), (1352914097,), (1352914100,), (1352914723,), (1352914724,), (1352914748,), (1352914749,), (1352914777,), (1352914808,), (1352914811,), (1352914848,), (1352914859,), (1352914861,), (1352914863,), (1352914865,), (1352914902,), (1352914904,), (1352914911,), (1352914943,), (1352914946,), (1352914948,), (1352914977,), (1352914979,), (1352915006,), (1352915008,), (1352915073,)) 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 (1352914100) 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 22325284 , 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=22325236 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 (22325284) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22325236) result : ((1352913245,), (1352914097,), (1352914100,), (1352914723,), (1352914724,), (1352914748,), (1352914749,), (1352914777,), (1352914808,), (1352914811,), (1352914848,), (1352914859,), (1352914861,), (1352914863,), (1352914865,), (1352914902,), (1352914904,), (1352914911,), (1352914943,), (1352914946,), (1352914948,), (1352914977,), (1352914979,), (1352915006,), (1352915008,), (1352915073,)) 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 (1352914100) 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 22325285 , 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=22325236 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 (22325285) result : ((1352914882,), (1352914903,), (1352915049,), (1352915050,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22325236) result : ((1352913245,), (1352914097,), (1352914100,), (1352914723,), (1352914724,), (1352914748,), (1352914749,), (1352914777,), (1352914808,), (1352914811,), (1352914848,), (1352914859,), (1352914861,), (1352914863,), (1352914865,), (1352914902,), (1352914904,), (1352914911,), (1352914943,), (1352914946,), (1352914948,), (1352914977,), (1352914979,), (1352915006,), (1352915008,), (1352915073,)) 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 (1352914100) 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 22325286 , 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=22325236 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 (22325286) result : ((1352915031,), (1352915053,), (1352915054,), (1352915055,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22325236) result : ((1352913245,), (1352914097,), (1352914100,), (1352914723,), (1352914724,), (1352914748,), (1352914749,), (1352914777,), (1352914808,), (1352914811,), (1352914848,), (1352914859,), (1352914861,), (1352914863,), (1352914865,), (1352914902,), (1352914904,), (1352914911,), (1352914943,), (1352914946,), (1352914948,), (1352914977,), (1352914979,), (1352915006,), (1352915008,), (1352915073,)) 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 (1352914100) 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 22325287 , 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=22325236 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 (22325287) result : ((1352914881,), (1352915028,), (1352915046,), (1352915047,), (1352915063,), (1352915064,), (1352915093,), (1352915316,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22325236) result : ((1352913245,), (1352914097,), (1352914100,), (1352914723,), (1352914724,), (1352914748,), (1352914749,), (1352914777,), (1352914808,), (1352914811,), (1352914848,), (1352914859,), (1352914861,), (1352914863,), (1352914865,), (1352914902,), (1352914904,), (1352914911,), (1352914943,), (1352914946,), (1352914948,), (1352914977,), (1352914979,), (1352915006,), (1352915008,), (1352915073,)) 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 (1352914100) 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 22325288 , 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=22325236 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 (22325288) result : ((1352914883,), (1352914884,), (1352914906,), (1352914907,), (1352915094,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22325236) result : ((1352913245,), (1352914097,), (1352914100,), (1352914723,), (1352914724,), (1352914748,), (1352914749,), (1352914777,), (1352914808,), (1352914811,), (1352914848,), (1352914859,), (1352914861,), (1352914863,), (1352914865,), (1352914902,), (1352914904,), (1352914911,), (1352914943,), (1352914946,), (1352914948,), (1352914977,), (1352914979,), (1352915006,), (1352915008,), (1352915073,)) 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 (1352914100) 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 22325289 , 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=22325236 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 (22325289) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22325236) result : ((1352913245,), (1352914097,), (1352914100,), (1352914723,), (1352914724,), (1352914748,), (1352914749,), (1352914777,), (1352914808,), (1352914811,), (1352914848,), (1352914859,), (1352914861,), (1352914863,), (1352914865,), (1352914902,), (1352914904,), (1352914911,), (1352914943,), (1352914946,), (1352914948,), (1352914977,), (1352914979,), (1352915006,), (1352915008,), (1352915073,)) 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 (1352914100) 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 22325290 , 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=22325236 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 (22325290) result : ((1352914879,), (1352914880,), (1352915060,), (1352915061,), (1352915092,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22325236) result : ((1352913245,), (1352914097,), (1352914100,), (1352914723,), (1352914724,), (1352914748,), (1352914749,), (1352914777,), (1352914808,), (1352914811,), (1352914848,), (1352914859,), (1352914861,), (1352914863,), (1352914865,), (1352914902,), (1352914904,), (1352914911,), (1352914943,), (1352914946,), (1352914948,), (1352914977,), (1352914979,), (1352915006,), (1352915008,), (1352915073,)) 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 (1352914100) 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`=22325236 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','papier','cartonnette','autre_refus','kraft','flou','Carton_brun','environnement','metal','mal_croppe','plastique','Carton_gris')) 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`=22325236 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','papier','cartonnette','autre_refus','kraft','flou','Carton_brun','environnement','metal','mal_croppe','plastique','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22325236, 'sub_port_id': 22325291, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783798, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 57)}, 'mal_croppe': {'main_port_id': 22325236, 'sub_port_id': 22325292, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783799, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 22325236, 'sub_port_id': 22325293, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783800, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 57)}, 'plastique': {'main_port_id': 22325236, 'sub_port_id': 22325294, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783801, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 57)}, 'metal': {'main_port_id': 22325236, 'sub_port_id': 22325295, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783802, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 57)}, 'flou': {'main_port_id': 22325236, 'sub_port_id': 22325296, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783803, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 57)}, 'cartonnette': {'main_port_id': 22325236, 'sub_port_id': 22325297, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783804, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 57)}, 'kraft': {'main_port_id': 22325236, 'sub_port_id': 22325298, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783805, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 57)}, 'Carton_gris': {'main_port_id': 22325236, 'sub_port_id': 22325299, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783806, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 57)}, 'Carton_brun': {'main_port_id': 22325236, 'sub_port_id': 22325300, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783807, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 57)}, 'papier': {'main_port_id': 22325236, 'sub_port_id': 22325301, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783808, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 57)}, 'autre_refus': {'main_port_id': 22325236, 'sub_port_id': 22325302, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14783809, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 12, 57)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22325291,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22325279 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22325292,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22325280 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22325293,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22325281 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22325294,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22325282 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22325295,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22325283 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22325296,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22325284 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22325297,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22325285 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22325298,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22325286 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22325299,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22325287 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22325300,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22325288 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22325301,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22325289 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22325302,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22325290 lien utilise dans velours : https://www.fotonower.com/velours/22325291,22325292,22325293,22325294,22325295,22325296,22325297,22325298,22325299,22325300,22325301,22325302?tags=environnement,mal_croppe,Teint_Dans_La_Masse,plastique,metal,flou,cartonnette,kraft,Carton_gris,Carton_brun,papier,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22325236]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1352915073, 1352915008, 1352915006, 1352914979, 1352914977, 1352914948, 1352914946, 1352914943, 1352914911, 1352914904, 1352914902, 1352914865, 1352914863, 1352914861, 1352914859, 1352914848, 1352914811, 1352914808, 1352914777, 1352914749, 1352914748, 1352914724, 1352914723, 1352914100, 1352914097, 1352913245] map_info['map_portfolio_photo'] : {22325236: [1352915073, 1352915008, 1352915006, 1352914979, 1352914977, 1352914948, 1352914946, 1352914943, 1352914911, 1352914904, 1352914902, 1352914865, 1352914863, 1352914861, 1352914859, 1352914848, 1352914811, 1352914808, 1352914777, 1352914749, 1352914748, 1352914724, 1352914723, 1352914100, 1352914097, 1352913245]} final : False mtd_id 4302 list_pids : [1352915073, 1352915008, 1352915006, 1352914979, 1352914977, 1352914948, 1352914946, 1352914943, 1352914911, 1352914904, 1352914902, 1352914865, 1352914863, 1352914861, 1352914859, 1352914848, 1352914811, 1352914808, 1352914777, 1352914749, 1352914748, 1352914724, 1352914723, 1352914100, 1352914097, 1352913245] Looping around the photos to save general results len do output : 1 /22325236. 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, '2755640') ('4302', '22325236', '1352915073', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352915008', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352915006', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914979', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914977', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914948', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914946', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914943', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914911', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914904', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914902', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914865', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914863', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914861', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914859', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914848', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914811', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914808', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914777', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914749', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914748', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914724', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914723', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914100', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914097', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352913245', None, None, None, None, None, '2755640') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22325236', "{'environnement': 22325279, 'mal_croppe': 22325280, 'Teint_Dans_La_Masse': 22325281, 'plastique': 22325282, 'metal': 22325283, 'flou': 22325284, 'cartonnette': 22325285, 'kraft': 22325286, 'Carton_gris': 22325287, 'Carton_brun': 22325288, 'papier': 22325289, 'autre_refus': 22325290}", None, None, None, None, '2755640'), ('4302', '22325236', '1352915073', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352915008', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352915006', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914979', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914977', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914948', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914946', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914943', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914911', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914904', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914902', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914865', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914863', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914861', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914859', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914848', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914811', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914808', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914777', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914749', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914748', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914724', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914723', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914100', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914097', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352913245', None, None, None, None, None, '2755640')] time used for this insertion : 0.01863551139831543 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.43059539794921875 time spend to save output : 0.01902914047241211 total time spend for step 1 : 0.44962453842163086 step2:final Thu Apr 24 05:34:30 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 (22325236) 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 22325236 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1352913245,1352914100,1352914097,1352914724,1352914723,1352914749,1352914748,1352914777,1352914811,1352914808,1352914865,1352914863,1352914861,1352914859,1352914848,1352914911,1352914904,1352914902,1352914948,1352914946,1352914943,1352914979,1352914977,1352915008,1352915006,1352915073); 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([22325236]) Inside saveOutput : final : False verbose : True original output for save of step final : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} new output for save of step final : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} [1352915073, 1352915008, 1352915006, 1352914979, 1352914977, 1352914948, 1352914946, 1352914943, 1352914911, 1352914904, 1352914902, 1352914865, 1352914863, 1352914861, 1352914859, 1352914848, 1352914811, 1352914808, 1352914777, 1352914749, 1352914748, 1352914724, 1352914723, 1352914100, 1352914097, 1352913245] map_info['map_portfolio_photo'] : {22325236: [1352915073, 1352915008, 1352915006, 1352914979, 1352914977, 1352914948, 1352914946, 1352914943, 1352914911, 1352914904, 1352914902, 1352914865, 1352914863, 1352914861, 1352914859, 1352914848, 1352914811, 1352914808, 1352914777, 1352914749, 1352914748, 1352914724, 1352914723, 1352914100, 1352914097, 1352913245]} final : False mtd_id 4302 list_pids : [1352915073, 1352915008, 1352915006, 1352914979, 1352914977, 1352914948, 1352914946, 1352914943, 1352914911, 1352914904, 1352914902, 1352914865, 1352914863, 1352914861, 1352914859, 1352914848, 1352914811, 1352914808, 1352914777, 1352914749, 1352914748, 1352914724, 1352914723, 1352914100, 1352914097, 1352913245] Looping around the photos to save general results len do output : 26 /1352915073.Didn't retrieve data . /1352915008.Didn't retrieve data . /1352915006.Didn't retrieve data . /1352914979.Didn't retrieve data . /1352914977.Didn't retrieve data . /1352914948.Didn't retrieve data . /1352914946.Didn't retrieve data . /1352914943.Didn't retrieve data . /1352914911.Didn't retrieve data . /1352914904.Didn't retrieve data . /1352914902.Didn't retrieve data . /1352914865.Didn't retrieve data . /1352914863.Didn't retrieve data . /1352914861.Didn't retrieve data . /1352914859.Didn't retrieve data . /1352914848.Didn't retrieve data . /1352914811.Didn't retrieve data . /1352914808.Didn't retrieve data . /1352914777.Didn't retrieve data . /1352914749.Didn't retrieve data . /1352914748.Didn't retrieve data . /1352914724.Didn't retrieve data . /1352914723.Didn't retrieve data . /1352914100.Didn't retrieve data . /1352914097.Didn't retrieve data . /1352913245.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, '2755640') ('4302', '22325236', '1352915073', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352915008', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352915006', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914979', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914977', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914948', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914946', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914943', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914911', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914904', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914902', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914865', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914863', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914861', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914859', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914848', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914811', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914808', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914777', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914749', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914748', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914724', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914723', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914100', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914097', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352913245', None, None, None, None, None, '2755640') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 78 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', '22325236', '1352915073', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352915008', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352915006', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914979', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914977', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914948', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914946', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914943', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914911', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914904', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914902', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914865', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914863', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914861', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914859', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914848', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914811', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914808', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914777', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914749', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914748', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914724', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914723', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914100', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352914097', '0.0709678645705838', None, None, None, None, '2755640'), ('4302', '22325236', '1352913245', '0.0709678645705838', None, None, None, None, '2755640')] time used for this insertion : 0.027119874954223633 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06101846694946289 time spend to save output : 0.027959823608398438 total time spend for step 2 : 0.08897829055786133 step3:velours_tree Thu Apr 24 05:34:30 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 : {22325236: [{'environnement': 22325279, 'mal_croppe': 22325280, 'Teint_Dans_La_Masse': 22325281, 'plastique': 22325282, 'metal': 22325283, 'flou': 22325284, 'cartonnette': 22325285, 'kraft': 22325286, 'Carton_gris': 22325287, 'Carton_brun': 22325288, 'papier': 22325289, 'autre_refus': 22325290}]} input_args_next_step : {22325236: ()} output_args : {22325236: [{'environnement': 22325279, 'mal_croppe': 22325280, 'Teint_Dans_La_Masse': 22325281, 'plastique': 22325282, 'metal': 22325283, 'flou': 22325284, 'cartonnette': 22325285, 'kraft': 22325286, 'Carton_gris': 22325287, 'Carton_brun': 22325288, 'papier': 22325289, 'autre_refus': 22325290}]} args : 22325236 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 : ({'environnement': 22325279, 'mal_croppe': 22325280, 'Teint_Dans_La_Masse': 22325281, 'plastique': 22325282, 'metal': 22325283, 'flou': 22325284, 'cartonnette': 22325285, 'kraft': 22325286, 'Carton_gris': 22325287, 'Carton_brun': 22325288, 'papier': 22325289, 'autre_refus': 22325290},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22325236) 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([22325236]) 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.3189384937286377 time spend to save output : 5.173683166503906e-05 total time spend for step 3 : 0.31899023056030273 step4:send_mail_cod Thu Apr 24 05:34:30 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 : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} input_args_next_step : {1352915073: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352915073 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352915008 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352915006 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914979 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914977 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914948 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914946 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914943 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914911 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914904 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914902 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914865 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914863 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914861 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914859 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914848 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914811 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914808 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914777 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914749 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914748 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914724 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914723 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914100 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352914097 depend.output_id : 0 input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ()} output_args : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',)} args : 1352913245 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 : {22325236: [{'environnement': 22325279, 'mal_croppe': 22325280, 'Teint_Dans_La_Masse': 22325281, 'plastique': 22325282, 'metal': 22325283, 'flou': 22325284, 'cartonnette': 22325285, 'kraft': 22325286, 'Carton_gris': 22325287, 'Carton_brun': 22325288, 'papier': 22325289, 'autre_refus': 22325290}]} input_args_next_step : {1352915073: ('0.0709678645705838',), 1352915008: ('0.0709678645705838',), 1352915006: ('0.0709678645705838',), 1352914979: ('0.0709678645705838',), 1352914977: ('0.0709678645705838',), 1352914948: ('0.0709678645705838',), 1352914946: ('0.0709678645705838',), 1352914943: ('0.0709678645705838',), 1352914911: ('0.0709678645705838',), 1352914904: ('0.0709678645705838',), 1352914902: ('0.0709678645705838',), 1352914865: ('0.0709678645705838',), 1352914863: ('0.0709678645705838',), 1352914861: ('0.0709678645705838',), 1352914859: ('0.0709678645705838',), 1352914848: ('0.0709678645705838',), 1352914811: ('0.0709678645705838',), 1352914808: ('0.0709678645705838',), 1352914777: ('0.0709678645705838',), 1352914749: ('0.0709678645705838',), 1352914748: ('0.0709678645705838',), 1352914724: ('0.0709678645705838',), 1352914723: ('0.0709678645705838',), 1352914100: ('0.0709678645705838',), 1352914097: ('0.0709678645705838',), 1352913245: ('0.0709678645705838',), 22325236: ()} output_args : {22325236: [{'environnement': 22325279, 'mal_croppe': 22325280, 'Teint_Dans_La_Masse': 22325281, 'plastique': 22325282, 'metal': 22325283, 'flou': 22325284, 'cartonnette': 22325285, 'kraft': 22325286, 'Carton_gris': 22325287, 'Carton_brun': 22325288, 'papier': 22325289, 'autre_refus': 22325290}]} args : 22325236 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 :27, first value : ('0.0709678645705838',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22325236) 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 (1352915073,1352915008,1352915006,1352914979,1352914977,1352914948,1352914946,1352914943,1352914911,1352914904,1352914902,1352914865,1352914863,1352914861,1352914859,1352914848,1352914811,1352914808,1352914777,1352914749,1352914748,1352914724,1352914723,1352914100,1352914097,1352913245) Found this number of photos: 26 ##### Call download_photos : nb_thread : 5 begin to download photo : 1352913245 begin to download photo : 1352914749 begin to download photo : 1352914861 begin to download photo : 1352914943 begin to download photo : 1352915008 download finish for photo 1352915008 begin to download photo : 1352915073 download finish for photo 1352913245 begin to download photo : 1352914097 download finish for photo 1352914861 begin to download photo : 1352914863 download finish for photo 1352914943 begin to download photo : 1352914946 download finish for photo 1352914749 begin to download photo : 1352914777 download finish for photo 1352915073 download finish for photo 1352914946 begin to download photo : 1352914948 download finish for photo 1352914097 begin to download photo : 1352914100 download finish for photo 1352914777 begin to download photo : 1352914808 download finish for photo 1352914863 begin to download photo : 1352914865 download finish for photo 1352914948 begin to download photo : 1352914977 download finish for photo 1352914100 begin to download photo : 1352914723 download finish for photo 1352914865 begin to download photo : 1352914902 download finish for photo 1352914808 begin to download photo : 1352914811 download finish for photo 1352914723 begin to download photo : 1352914724 download finish for photo 1352914977 begin to download photo : 1352914979 download finish for photo 1352914811 begin to download photo : 1352914848 download finish for photo 1352914902 begin to download photo : 1352914904 download finish for photo 1352914724 begin to download photo : 1352914748 download finish for photo 1352914848 begin to download photo : 1352914859 download finish for photo 1352914979 begin to download photo : 1352915006 download finish for photo 1352914904 begin to download photo : 1352914911 download finish for photo 1352914748 download finish for photo 1352915006 download finish for photo 1352914859 download finish for photo 1352914911 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette223252801745465671/ length of list_filenames : 26 ; length of list_pids : 26 ; length of list_args : 26 results_Auto_P22325236_24-04-2025_05_34_31.pdf 22325280 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=22325280 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223252801745465671 22325282 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=22325282 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352914888: '1745377872_3785157_1352914777_dba696fbaabebcd6f009459b0c3cd6d1_rle_crop_3764797612_0.png', 1352914889: '1745377872_3785157_1352914777_dba696fbaabebcd6f009459b0c3cd6d1_rle_crop_3764797611_0.png', 1352914890: '1745377872_3785157_1352914748_ab13bed2a303e8c501225522c8538984_rle_crop_3764797627_0.png', 1352914908: '1745377907_2028191_1352914749_620cb1ffc40dbf07606f515023d90fd2_rle_crop_3764797701_0.png', 1352914909: '1745377907_2028191_1352914749_620cb1ffc40dbf07606f515023d90fd2_rle_crop_3764797698_0.png', 1352914910: '1745377907_2028191_1352914723_45a6562bc91c69d122cf69762c18a835_rle_crop_3764797714_0.png', 1352915051: '1745378143_2032628_1352914948_9a826b943b27838c588736292ee7ccc3_rle_crop_3764798032_0.png', 1352915066: '1745378138_3665176_1352914865_81a41e9bbf17c1d4046f8cc63ecaf4aa_rle_crop_3764798081_0.png', 1352915067: '1745378138_3665176_1352914865_81a41e9bbf17c1d4046f8cc63ecaf4aa_rle_crop_3764798084_0.png', 1352915068: '1745378138_3665176_1352914808_d779bc545018ee14365df1eff147d755_rle_crop_3764798096_0.png', 1352915069: '1745378138_3665176_1352914808_d779bc545018ee14365df1eff147d755_rle_crop_3764798098_0.png', 1352915070: '1745378138_3665176_1352914808_d779bc545018ee14365df1eff147d755_rle_crop_3764798102_0.png', 1352915071: '1745378138_3665176_1352914808_d779bc545018ee14365df1eff147d755_rle_crop_3764798109_0.png', 1352915095: '1745378173_3787762_1352914861_89b2d7f05bc9566908dbc624a0aa3053_rle_crop_3764798299_0.png', 1352915318: '1745378532_3790838_1352915073_de59fe963fbbefd2bfb08004b8a4df86_rle_crop_3764798755_0.png', 1352915319: '1745378532_3790838_1352915073_de59fe963fbbefd2bfb08004b8a4df86_rle_crop_3764798754_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/6029e7496ec92de14808c2184a1b194d_37421978.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d365a424c613e005242d3b71acbda834_27779849.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ba98d4b926bd4ec2ea7fcabea25ddb5b_11801944.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/dd72d1376862b268b95510f84f6ecde9_51890868.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/bbf69e7d1e85b0511b7a84f97ac84d05_11622432.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/088464e053d19f8a4e743444970b0c43_27535.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/6724bba602887fb9b4619da4054740bf_55109506.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/301bfa263421b49c20ccf12d96500317_65734475.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/07a1d95a17633c5118bb84646cd1c1c3_86101871.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/db0fa9fb5386237bcbb9532c6e526d42_23789276.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8fba00c317f494d56e82c3f7d87d4c49_27146355.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/12f923cd0519d173fe62d3b619b6129a_73069135.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d28762f74769c5ac1648fbfb62626637_34672012.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/7ac826153ea5f0ff4583884f08311366_19972104.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/bf34d2f90e0c3e900821045d13325d79_74296178.png change filename to text .imagette223252821745465671/ imagette223252821745465671/1745378173_3787762_1352914861_89b2d7f05bc9566908dbc624a0aa3053_rle_crop_3764798299_0.png.png imagette223252821745465671/1745378143_2032628_1352914948_9a826b943b27838c588736292ee7ccc3_rle_crop_3764798032_0.png.png imagette223252821745465671/1745378532_3790838_1352915073_de59fe963fbbefd2bfb08004b8a4df86_rle_crop_3764798754_0.png.png imagette223252821745465671/1745377907_2028191_1352914723_45a6562bc91c69d122cf69762c18a835_rle_crop_3764797714_0.png.png imagette223252821745465671/1745377907_2028191_1352914749_620cb1ffc40dbf07606f515023d90fd2_rle_crop_3764797701_0.png.png imagette223252821745465671/1745377872_3785157_1352914777_dba696fbaabebcd6f009459b0c3cd6d1_rle_crop_3764797612_0.png.png imagette223252821745465671/1745378138_3665176_1352914808_d779bc545018ee14365df1eff147d755_rle_crop_3764798102_0.png.png imagette223252821745465671/1745378532_3790838_1352915073_de59fe963fbbefd2bfb08004b8a4df86_rle_crop_3764798755_0.png.png imagette223252821745465671/1745378138_3665176_1352914865_81a41e9bbf17c1d4046f8cc63ecaf4aa_rle_crop_3764798084_0.png.png imagette223252821745465671/1745377907_2028191_1352914749_620cb1ffc40dbf07606f515023d90fd2_rle_crop_3764797698_0.png.png imagette223252821745465671/1745377872_3785157_1352914748_ab13bed2a303e8c501225522c8538984_rle_crop_3764797627_0.png.png imagette223252821745465671/1745378138_3665176_1352914808_d779bc545018ee14365df1eff147d755_rle_crop_3764798098_0.png.png imagette223252821745465671/1745377872_3785157_1352914777_dba696fbaabebcd6f009459b0c3cd6d1_rle_crop_3764797611_0.png.png imagette223252821745465671/1745378138_3665176_1352914808_d779bc545018ee14365df1eff147d755_rle_crop_3764798109_0.png.png imagette223252821745465671/1745378138_3665176_1352914808_d779bc545018ee14365df1eff147d755_rle_crop_3764798096_0.png.png imagette223252821745465671/1745378138_3665176_1352914865_81a41e9bbf17c1d4046f8cc63ecaf4aa_rle_crop_3764798081_0.png.png imagette223252831745465673/ imagette223252841745465673/ wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/19e438abcfae1f9b4fa5ce3175d55d07_55264876.png imagette223252821745465671 22325283 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=22325283 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223252831745465673 22325284 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=22325284 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223252841745465673 22325285 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=22325285 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352914882: '1745377872_3785157_1352914748_ab13bed2a303e8c501225522c8538984_rle_crop_3764797617_0.png', 1352914903: '1745377907_2028191_1352914723_45a6562bc91c69d122cf69762c18a835_rle_crop_3764797707_0.png', 1352915049: '1745378143_2032628_1352914948_9a826b943b27838c588736292ee7ccc3_rle_crop_3764798031_0.png', 1352915050: '1745378143_2032628_1352914904_51af065ce15f41f8765fcf05308d8b01_rle_crop_3764798049_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/866c7fa7f180dc2a170565c6bcd87c63_30870786.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/25fd159eff0e6f9d5f9db54c806864f3_66624289.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2b90584a39b644d370c9ecf156b4fe50_12554637.png change filename to text .imagette223252851745465673/ imagette223252851745465673/1745377872_3785157_1352914748_ab13bed2a303e8c501225522c8538984_rle_crop_3764797617_0.png.png imagette223252851745465673/1745377907_2028191_1352914723_45a6562bc91c69d122cf69762c18a835_rle_crop_3764797707_0.png.png imagette223252851745465673/1745378143_2032628_1352914904_51af065ce15f41f8765fcf05308d8b01_rle_crop_3764798049_0.png.png imagette223252851745465673/1745378143_2032628_1352914948_9a826b943b27838c588736292ee7ccc3_rle_crop_3764798031_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2762bc8f7558c7a3f8b5e8e6e4de2bd1_33134465.png imagette223252851745465673 22325286 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=22325286 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352915031: '1745378113_3787095_1352914946_4e843b7564fedf1bb4ae13359a210d3a_rle_crop_3764797845_0.png', 1352915053: '1745378143_2032628_1352914948_9a826b943b27838c588736292ee7ccc3_rle_crop_3764798036_0.png', 1352915054: '1745378143_2032628_1352914902_5c8dc7dc86929d02904eab5205570ba1_rle_crop_3764798064_0.png', 1352915055: '1745378143_2032628_1352914902_5c8dc7dc86929d02904eab5205570ba1_rle_crop_3764798060_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/148c6dc11766a506a5bf121d2609f0fa_62236248.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/03605ee0ddc9b16ff88a5ee0acdd0a10_22209725.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ea66173fbae6ead20c7f1f228bf678ed_32591996.png change filename to text .imagette223252861745465673/ imagette223252861745465673/1745378143_2032628_1352914902_5c8dc7dc86929d02904eab5205570ba1_rle_crop_3764798060_0.png.png imagette223252861745465673/1745378143_2032628_1352914902_5c8dc7dc86929d02904eab5205570ba1_rle_crop_3764798064_0.png.png imagette223252861745465673/1745378143_2032628_1352914948_9a826b943b27838c588736292ee7ccc3_rle_crop_3764798036_0.png.png imagette223252861745465673/1745378113_3787095_1352914946_4e843b7564fedf1bb4ae13359a210d3a_rle_crop_3764797845_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ac8579c9427bdc504308f3a4a7a6a21e_63420911.png imagette223252861745465673 22325290 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=22325290 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352914879: '1745377872_3785157_1352914777_dba696fbaabebcd6f009459b0c3cd6d1_rle_crop_3764797598_0.png', 1352914880: '1745377872_3785157_1352914748_ab13bed2a303e8c501225522c8538984_rle_crop_3764797626_0.png', 1352915060: '1745378138_3665176_1352914865_81a41e9bbf17c1d4046f8cc63ecaf4aa_rle_crop_3764798076_0.png', 1352915061: '1745378138_3665176_1352914808_d779bc545018ee14365df1eff147d755_rle_crop_3764798101_0.png', 1352915092: '1745378173_3787762_1352914863_2bc9d9e3073737bfee50463d089c15e1_rle_crop_3764798273_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/1ad3921300556904620f27561eae39c2_81612923.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/aafdeac919fc7eb65cca386b74f1cf72_97238506.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e834a301948191f8859fd6d9868c00a9_87259146.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e47dd24cfe90e61bcbfdcbb7c54ee4bd_12180677.png change filename to text .imagette223252901745465674/ imagette223252901745465674/1745378138_3665176_1352914808_d779bc545018ee14365df1eff147d755_rle_crop_3764798101_0.png.png imagette223252901745465674/1745377872_3785157_1352914777_dba696fbaabebcd6f009459b0c3cd6d1_rle_crop_3764797598_0.png.png imagette223252901745465674/1745377872_3785157_1352914748_ab13bed2a303e8c501225522c8538984_rle_crop_3764797626_0.png.png imagette223252901745465674/1745378173_3787762_1352914863_2bc9d9e3073737bfee50463d089c15e1_rle_crop_3764798273_0.png.png imagette223252901745465674/1745378138_3665176_1352914865_81a41e9bbf17c1d4046f8cc63ecaf4aa_rle_crop_3764798076_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/591563aa1d0e6025c9be37749a651af0_99281730.png imagette223252901745465674 22325281 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=22325281 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352914921: '1745377932_3785741_1352914724_a5db97c44d70c06b1af99f43682e44bc_rle_crop_3764797745_0.png', 1352915025: '1745378113_3787095_1352914943_95502d2d62e107dc820f99ca3fc526f4_rle_crop_3764797855_0.png', 1352915044: '1745378143_2032628_1352914948_9a826b943b27838c588736292ee7ccc3_rle_crop_3764798034_0.png', 1352915059: '1745378138_3665176_1352914808_d779bc545018ee14365df1eff147d755_rle_crop_3764798104_0.png', 1352915091: '1745378173_3787762_1352914911_534e8ba4a5a8a4a4bce3a974a4b2fc31_rle_crop_3764798264_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/69745078e8c625bf9fddbd14dc8a7278_67154610.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e7b92abbbd10a2175a93ff419b1c99c2_14757434.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3416aff2e127c0b8278d3e80e5d5bfdd_82718421.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9b38711ac6ca8c6195943d3b4dde0689_27224585.png change filename to text .imagette223252811745465674/ imagette223252811745465674/1745378113_3787095_1352914943_95502d2d62e107dc820f99ca3fc526f4_rle_crop_3764797855_0.png.png imagette223252811745465674/1745378138_3665176_1352914808_d779bc545018ee14365df1eff147d755_rle_crop_3764798104_0.png.png imagette223252811745465674/1745378143_2032628_1352914948_9a826b943b27838c588736292ee7ccc3_rle_crop_3764798034_0.png.png imagette223252811745465674/1745377932_3785741_1352914724_a5db97c44d70c06b1af99f43682e44bc_rle_crop_3764797745_0.png.png imagette223252811745465674/1745378173_3787762_1352914911_534e8ba4a5a8a4a4bce3a974a4b2fc31_rle_crop_3764798264_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ef2c77e7a9255aa79ce4de17d530352c_19007853.png imagette223252811745465674 22325287 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=22325287 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352914881: '1745377872_3785157_1352914777_dba696fbaabebcd6f009459b0c3cd6d1_rle_crop_3764797599_0.png', 1352915028: '1745378113_3787095_1352914979_37f6b24e52a92575c2c2cfb827fc8044_rle_crop_3764797831_0.png', 1352915046: '1745378143_2032628_1352914902_5c8dc7dc86929d02904eab5205570ba1_rle_crop_3764798058_0.png', 1352915047: '1745378143_2032628_1352914902_5c8dc7dc86929d02904eab5205570ba1_rle_crop_3764798057_0.png', 1352915063: '1745378138_3665176_1352914865_81a41e9bbf17c1d4046f8cc63ecaf4aa_rle_crop_3764798078_0.png', 1352915064: '1745378138_3665176_1352914808_d779bc545018ee14365df1eff147d755_rle_crop_3764798105_0.png', 1352915093: '1745378173_3787762_1352914859_395a2e8c5374def5d771912fb140fe65_rle_crop_3764798305_0.png', 1352915316: '1745378532_3790838_1352915006_ce559261d5958e9f60c62f907cef378a_rle_crop_3764798760_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/6d976802f6311b27bc649c98d5b768bf_27836806.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/06056533f953d125d9f1df0d27a73aa8_32340080.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2b0c38ba267cd180fea3c4e9f0df7c66_35561280.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/0e4ff2e626c55cb5e8787a8be8e0f9ef_31299410.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/74875216d26cac5479870da20660551d_75689314.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5b996b41378ddcb1beff8dfbbfd08ebc_67186269.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/0c8205aa4c6099604533302586ff5878_1026018.png change filename to text .imagette223252871745465675/ imagette223252871745465675/1745378532_3790838_1352915006_ce559261d5958e9f60c62f907cef378a_rle_crop_3764798760_0.png.png imagette223252871745465675/1745377872_3785157_1352914777_dba696fbaabebcd6f009459b0c3cd6d1_rle_crop_3764797599_0.png.png imagette223252871745465675/1745378138_3665176_1352914865_81a41e9bbf17c1d4046f8cc63ecaf4aa_rle_crop_3764798078_0.png.png imagette223252871745465675/1745378173_3787762_1352914859_395a2e8c5374def5d771912fb140fe65_rle_crop_3764798305_0.png.png imagette223252871745465675/1745378138_3665176_1352914808_d779bc545018ee14365df1eff147d755_rle_crop_3764798105_0.png.png imagette223252871745465675/1745378143_2032628_1352914902_5c8dc7dc86929d02904eab5205570ba1_rle_crop_3764798057_0.png.png imagette223252871745465675/1745378113_3787095_1352914979_37f6b24e52a92575c2c2cfb827fc8044_rle_crop_3764797831_0.png.png imagette223252871745465675/1745378143_2032628_1352914902_5c8dc7dc86929d02904eab5205570ba1_rle_crop_3764798058_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8b5d323e655026943b4ec087485e63e9_57045606.png imagette223252871745465675 22325288 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=22325288 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352914883: '1745377872_3785157_1352914777_dba696fbaabebcd6f009459b0c3cd6d1_rle_crop_3764797605_0.png', 1352914884: '1745377872_3785157_1352914748_ab13bed2a303e8c501225522c8538984_rle_crop_3764797624_0.png', 1352914906: '1745377907_2028191_1352914749_620cb1ffc40dbf07606f515023d90fd2_rle_crop_3764797692_0.png', 1352914907: '1745377907_2028191_1352914723_45a6562bc91c69d122cf69762c18a835_rle_crop_3764797709_0.png', 1352915094: '1745378173_3787762_1352914848_ce3769b43e6144463f40557f4f0ecda7_rle_crop_3764798320_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/853d95f30767dbc43e1dcb276de71ad4_47946368.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5e0c801c2e220ceb69af46536836d262_77522469.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8c65a5a74b0ffd27ab33460c5571bd9d_18591651.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/507a657972b8130906d4a33b1b2d8e9c_90213315.png change filename to text .imagette223252881745465676/ imagette223252881745465676/1745378173_3787762_1352914848_ce3769b43e6144463f40557f4f0ecda7_rle_crop_3764798320_0.png.png imagette223252881745465676/1745377907_2028191_1352914749_620cb1ffc40dbf07606f515023d90fd2_rle_crop_3764797692_0.png.png imagette223252881745465676/1745377872_3785157_1352914777_dba696fbaabebcd6f009459b0c3cd6d1_rle_crop_3764797605_0.png.png imagette223252881745465676/1745377907_2028191_1352914723_45a6562bc91c69d122cf69762c18a835_rle_crop_3764797709_0.png.png imagette223252881745465676/1745377872_3785157_1352914748_ab13bed2a303e8c501225522c8538984_rle_crop_3764797624_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d2ab77f5d3e40e4dccafe42e641e3ffd_1138599.png imagette223252881745465676 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22325236 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22325291,22325292,22325293,22325294,22325295,22325296,22325297,22325298,22325299,22325300,22325301,22325302?tags=environnement,mal_croppe,Teint_Dans_La_Masse,plastique,metal,flou,cartonnette,kraft,Carton_gris,Carton_brun,papier,autre_refus your option no_mail is active, we will not send the real mail to your client args[1352915073] : ('0.0709678645705838',) no score found for photo 1352915073 We are sending mail with results at report@fotonower.com args[1352915008] : ('0.0709678645705838',) no score found for photo 1352915008 We are sending mail with results at report@fotonower.com args[1352915006] : ('0.0709678645705838',) no score found for photo 1352915006 We are sending mail with results at report@fotonower.com args[1352914979] : ('0.0709678645705838',) no score found for photo 1352914979 We are sending mail with results at report@fotonower.com args[1352914977] : ('0.0709678645705838',) no score found for photo 1352914977 We are sending mail with results at report@fotonower.com args[1352914948] : ('0.0709678645705838',) no score found for photo 1352914948 We are sending mail with results at report@fotonower.com args[1352914946] : ('0.0709678645705838',) no score found for photo 1352914946 We are sending mail with results at report@fotonower.com args[1352914943] : ('0.0709678645705838',) no score found for photo 1352914943 We are sending mail with results at report@fotonower.com args[1352914911] : ('0.0709678645705838',) no score found for photo 1352914911 We are sending mail with results at report@fotonower.com args[1352914904] : ('0.0709678645705838',) no score found for photo 1352914904 We are sending mail with results at report@fotonower.com args[1352914902] : ('0.0709678645705838',) no score found for photo 1352914902 We are sending mail with results at report@fotonower.com args[1352914865] : ('0.0709678645705838',) no score found for photo 1352914865 We are sending mail with results at report@fotonower.com args[1352914863] : ('0.0709678645705838',) no score found for photo 1352914863 We are sending mail with results at report@fotonower.com args[1352914861] : ('0.0709678645705838',) no score found for photo 1352914861 We are sending mail with results at report@fotonower.com args[1352914859] : ('0.0709678645705838',) no score found for photo 1352914859 We are sending mail with results at report@fotonower.com args[1352914848] : ('0.0709678645705838',) no score found for photo 1352914848 We are sending mail with results at report@fotonower.com args[1352914811] : ('0.0709678645705838',) no score found for photo 1352914811 We are sending mail with results at report@fotonower.com args[1352914808] : ('0.0709678645705838',) no score found for photo 1352914808 We are sending mail with results at report@fotonower.com args[1352914777] : ('0.0709678645705838',) no score found for photo 1352914777 We are sending mail with results at report@fotonower.com args[1352914749] : ('0.0709678645705838',) no score found for photo 1352914749 We are sending mail with results at report@fotonower.com args[1352914748] : ('0.0709678645705838',) no score found for photo 1352914748 We are sending mail with results at report@fotonower.com args[1352914724] : ('0.0709678645705838',) no score found for photo 1352914724 We are sending mail with results at report@fotonower.com args[1352914723] : ('0.0709678645705838',) no score found for photo 1352914723 We are sending mail with results at report@fotonower.com args[1352914100] : ('0.0709678645705838',) no score found for photo 1352914100 We are sending mail with results at report@fotonower.com args[1352914097] : ('0.0709678645705838',) no score found for photo 1352914097 We are sending mail with results at report@fotonower.com args[1352913245] : ('0.0709678645705838',) no score found for photo 1352913245 We are sending mail with results at report@fotonower.com refus_total : 0.0709678645705838 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=22325236 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_P22325236_24-04-2025_05_34_31.pdf results_Auto_P22325236_24-04-2025_05_34_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325236_24-04-2025_05_34_31.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','22325236','results_Auto_P22325236_24-04-2025_05_34_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325236_24-04-2025_05_34_31.pdf','pdf','','0.35','0.0709678645705838') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22325236]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1352915073, 1352915008, 1352915006, 1352914979, 1352914977, 1352914948, 1352914946, 1352914943, 1352914911, 1352914904, 1352914902, 1352914865, 1352914863, 1352914861, 1352914859, 1352914848, 1352914811, 1352914808, 1352914777, 1352914749, 1352914748, 1352914724, 1352914723, 1352914100, 1352914097, 1352913245] map_info['map_portfolio_photo'] : {22325236: [1352915073, 1352915008, 1352915006, 1352914979, 1352914977, 1352914948, 1352914946, 1352914943, 1352914911, 1352914904, 1352914902, 1352914865, 1352914863, 1352914861, 1352914859, 1352914848, 1352914811, 1352914808, 1352914777, 1352914749, 1352914748, 1352914724, 1352914723, 1352914100, 1352914097, 1352913245]} final : False mtd_id 4302 list_pids : [1352915073, 1352915008, 1352915006, 1352914979, 1352914977, 1352914948, 1352914946, 1352914943, 1352914911, 1352914904, 1352914902, 1352914865, 1352914863, 1352914861, 1352914859, 1352914848, 1352914811, 1352914808, 1352914777, 1352914749, 1352914748, 1352914724, 1352914723, 1352914100, 1352914097, 1352913245] 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, '2755640') ('4302', '22325236', '1352915073', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352915008', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352915006', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914979', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914977', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914948', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914946', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914943', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914911', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914904', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914902', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914865', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914863', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914861', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914859', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914848', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914811', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914808', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914777', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914749', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914748', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914724', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914723', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914100', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914097', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352913245', None, None, None, None, None, '2755640') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 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', '22325236', '1352915073', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352915008', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352915006', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914979', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914977', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914948', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914946', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914943', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914911', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914904', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914902', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914865', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914863', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914861', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914859', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914848', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914811', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914808', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914777', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914749', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914748', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914724', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914723', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914100', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914097', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352913245', None, None, None, None, None, '2755640')] time used for this insertion : 0.01743316650390625 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.37012243270874 time spend to save output : 0.017958641052246094 total time spend for step 4 : 8.388081073760986 step5:split_time_score Thu Apr 24 05:34:38 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 : ['22325236'] 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 : [('22325236',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22325236) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1352915008: {'path': 'temp/1745465670_2247574_1352915008_ca3b1ac4c6512bc496a6d8f8df5628c9.jpg', 'extension': 'jpg'}, 1352915073: {'path': 'temp/1745465670_2247574_1352915073_de59fe963fbbefd2bfb08004b8a4df86.jpg', 'extension': 'jpg'}, 1352913245: {'path': 'temp/1745465670_2247574_1352913245_c9cac46c461b418f9430d7d091d86335.jpg', 'extension': 'jpg'}, 1352914097: {'path': 'temp/1745465670_2247574_1352914097_d8ed593e4c42a9b4fb7ad0210e9ebfb9.jpg', 'extension': 'jpg'}, 1352914100: {'path': 'temp/1745465670_2247574_1352914100_5fd25a42acdd347fa38ddcb6d6ee2df3.jpg', 'extension': 'jpg'}, 1352914723: {'path': 'temp/1745465670_2247574_1352914723_45a6562bc91c69d122cf69762c18a835.jpg', 'extension': 'jpg'}, 1352914724: {'path': 'temp/1745465670_2247574_1352914724_a5db97c44d70c06b1af99f43682e44bc.jpg', 'extension': 'jpg'}, 1352914748: {'path': 'temp/1745465670_2247574_1352914748_ab13bed2a303e8c501225522c8538984.jpg', 'extension': 'jpg'}, 1352914943: {'path': 'temp/1745465670_2247574_1352914943_95502d2d62e107dc820f99ca3fc526f4.jpg', 'extension': 'jpg'}, 1352914946: {'path': 'temp/1745465670_2247574_1352914946_4e843b7564fedf1bb4ae13359a210d3a.jpg', 'extension': 'jpg'}, 1352914948: {'path': 'temp/1745465670_2247574_1352914948_9a826b943b27838c588736292ee7ccc3.jpg', 'extension': 'jpg'}, 1352914977: {'path': 'temp/1745465670_2247574_1352914977_59b3410a6544743fe6d6ad95c67ff77c.jpg', 'extension': 'jpg'}, 1352914979: {'path': 'temp/1745465670_2247574_1352914979_37f6b24e52a92575c2c2cfb827fc8044.jpg', 'extension': 'jpg'}, 1352915006: {'path': 'temp/1745465670_2247574_1352915006_ce559261d5958e9f60c62f907cef378a.jpg', 'extension': 'jpg'}, 1352914749: {'path': 'temp/1745465670_2247574_1352914749_620cb1ffc40dbf07606f515023d90fd2.jpg', 'extension': 'jpg'}, 1352914777: {'path': 'temp/1745465670_2247574_1352914777_dba696fbaabebcd6f009459b0c3cd6d1.jpg', 'extension': 'jpg'}, 1352914808: {'path': 'temp/1745465670_2247574_1352914808_d779bc545018ee14365df1eff147d755.jpg', 'extension': 'jpg'}, 1352914811: {'path': 'temp/1745465670_2247574_1352914811_94c6f1ab472161fe0217114a4224e5a3.jpg', 'extension': 'jpg'}, 1352914848: {'path': 'temp/1745465670_2247574_1352914848_ce3769b43e6144463f40557f4f0ecda7.jpg', 'extension': 'jpg'}, 1352914859: {'path': 'temp/1745465670_2247574_1352914859_395a2e8c5374def5d771912fb140fe65.jpg', 'extension': 'jpg'}, 1352914861: {'path': 'temp/1745465670_2247574_1352914861_89b2d7f05bc9566908dbc624a0aa3053.jpg', 'extension': 'jpg'}, 1352914863: {'path': 'temp/1745465670_2247574_1352914863_2bc9d9e3073737bfee50463d089c15e1.jpg', 'extension': 'jpg'}, 1352914865: {'path': 'temp/1745465670_2247574_1352914865_81a41e9bbf17c1d4046f8cc63ecaf4aa.jpg', 'extension': 'jpg'}, 1352914902: {'path': 'temp/1745465670_2247574_1352914902_5c8dc7dc86929d02904eab5205570ba1.jpg', 'extension': 'jpg'}, 1352914904: {'path': 'temp/1745465670_2247574_1352914904_51af065ce15f41f8765fcf05308d8b01.jpg', 'extension': 'jpg'}, 1352914911: {'path': 'temp/1745465670_2247574_1352914911_534e8ba4a5a8a4a4bce3a974a4b2fc31.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 = 22325236; (('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 = 22325236 group by h (('05', 26),) 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=22325236 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 (22325236) 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 (22325236) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23042025 22325236 Nombre de photos uploadées : 26 / 23040 (0%) 23042025 22325236 Nombre de photos taguées (types de déchets): 0 / 26 (0%) 23042025 22325236 Nombre de photos taguées (volume) : 0 / 26 (0%) [{'photo_id': 1352913245, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c9cac46c461b418f9430d7d091d86335.jpg', 'username': None, 'uploaded_at': 1745377328, 'text': 'image_23042025_05_00_54_10136.jpg'}, {'photo_id': 1352914100, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5fd25a42acdd347fa38ddcb6d6ee2df3.jpg', 'username': None, 'uploaded_at': 1745377507, 'text': 'image_23042025_05_01_04_10137.jpg'}, {'photo_id': 1352914097, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d8ed593e4c42a9b4fb7ad0210e9ebfb9.jpg', 'username': None, 'uploaded_at': 1745377507, 'text': 'image_23042025_05_04_03_009144m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1352914724, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a5db97c44d70c06b1af99f43682e44bc.jpg', 'username': None, 'uploaded_at': 1745377627, 'text': 'image_23042025_05_04_34_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 4.0531158447265625e-06 ?????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0008852481842041016 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22325236, '2025-04-23' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1739756,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.031141281127929688 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1739756 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22325236, 'dashboard_result_id': 10061651, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325236_23-04-2025_05_56_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325290, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22325613, 'dashboard_result_id': 10061652, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325613_23-04-2025_05_57_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325649, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22325942, 'dashboard_result_id': 10061653, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325942_23-04-2025_05_47_50.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325979, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22326303, 'dashboard_result_id': 10061654, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326303_23-04-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326315, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22326686, 'dashboard_result_id': 10061655, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326686_23-04-2025_06_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326769, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22327416, 'dashboard_result_id': 10061656, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327416_23-04-2025_06_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327452, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22327827, 'dashboard_result_id': 10061657, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327827_23-04-2025_06_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327878, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22328173, 'dashboard_result_id': 10061658, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328173_23-04-2025_07_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22328175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328185, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22328867, 'dashboard_result_id': 10061659, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328867_23-04-2025_07_20_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22328873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328884, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22329762, 'dashboard_result_id': 10061660, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22329762_23-04-2025_07_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22329793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22329795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22329796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22329797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22329799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22329800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22329801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22329803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22329804, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22329805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22329807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22329808, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22330414, 'dashboard_result_id': 10061661, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22330414_23-04-2025_07_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22330454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22330455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22330456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22330457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22330458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22330459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22330460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22330461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22330462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22330463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22330464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22330465, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22331203, 'dashboard_result_id': 10061662, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331203_23-04-2025_08_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22331250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331251, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22331661, 'dashboard_result_id': 10061663, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331661_23-04-2025_08_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22331701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331712, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22332458, 'dashboard_result_id': 10061664, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22332458_23-04-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22332459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22332460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22332461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22332462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22332463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22332464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22332465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22332466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22332467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22332468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22332469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22332470, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22333179, 'dashboard_result_id': 10061665, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22333179_23-04-2025_08_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22333217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22333218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22333219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22333220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22333221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22333222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22333223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22333224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22333225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22333226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22333227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22333228, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22334033, 'dashboard_result_id': 10061666, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22334033_23-04-2025_09_16_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22334067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22334068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22334069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22334070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22334071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22334072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22334073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22334074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22334075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22334076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22334077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22334078, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22336354, 'dashboard_result_id': 10061667, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22336354_23-04-2025_09_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22336364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22336365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22336366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22336367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22336368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22336369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22336370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22336371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22336372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22336373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22336374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22336375, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22337144, 'dashboard_result_id': 10061668, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337144_23-04-2025_10_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337180, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22337891, 'dashboard_result_id': 10061669, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337891_23-04-2025_10_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337903, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22338640, 'dashboard_result_id': 10061670, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22338640_23-04-2025_10_32_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22338657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22338658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22338659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22338660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22338661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22338662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22338663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22338664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22338665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22338666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22338667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22338668, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22339201, 'dashboard_result_id': 10061671, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339201_23-04-2025_10_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339240, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22339852, 'dashboard_result_id': 10061672, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339852_23-04-2025_11_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339893, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22340451, 'dashboard_result_id': 10061673, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22340451_23-04-2025_11_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22340476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22340477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22340478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22340479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22340480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22340481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22340482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22340483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22340484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22340485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22340486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22340487, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22341308, 'dashboard_result_id': 10061674, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341308_23-04-2025_11_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341358, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22341945, 'dashboard_result_id': 10061675, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341945_23-04-2025_11_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341985, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22342537, 'dashboard_result_id': 10061676, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342537_23-04-2025_12_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22342566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22342567, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22342568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22342569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22342570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22342571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22342572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22342573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22342574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22342575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22342576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22342577, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22342994, 'dashboard_result_id': 10061677, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342994_24-04-2025_00_06_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22342999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22343000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22343001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22343002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22343003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22343004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22343005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22343006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22343007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22343008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22343009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22343010, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22348035, 'dashboard_result_id': 10061678, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22348035_23-04-2025_16_21_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22348061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22348062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22348063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22348064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22348065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22348066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22348067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22348068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22348069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22348070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22348071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22348072, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22348525, 'dashboard_result_id': 10061679, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22348525_23-04-2025_16_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22348529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22348530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22348531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22348532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22348533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22348534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22348535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22348536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22348537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22348538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22348539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22348540, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22349010, 'dashboard_result_id': 10061680, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22349010_23-04-2025_16_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22349016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22349017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22349018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22349019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22349020, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22349021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22349022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22349023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22349024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22349025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22349026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22349027, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22349913, 'dashboard_result_id': 10061681, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22349913_23-04-2025_17_02_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22349917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22349918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22349919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22349920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22349921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22349922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22349923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22349924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22349925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22349926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22349927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22349928, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22350703, 'dashboard_result_id': 10061682, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22350703_23-04-2025_17_17_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22350717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22350718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22350719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22350720, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22350721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22350722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22350723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22350724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22350725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22350726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22350727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22350728, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22351746, 'dashboard_result_id': 10061683, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22351746_23-04-2025_17_34_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22351749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22351750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22351751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22351752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22351753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22351754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22351755, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22351756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22351757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22351758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22351759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22351760, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22353065, 'dashboard_result_id': 10061684, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353065_23-04-2025_18_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353099, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22353503, 'dashboard_result_id': 10061685, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353503_23-04-2025_18_32_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353540, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22354290, 'dashboard_result_id': 10061686, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354290_23-04-2025_18_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354319, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22354450, 'dashboard_result_id': 10061687, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354450_23-04-2025_19_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354466, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22355072, 'dashboard_result_id': 10061688, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22355072_23-04-2025_19_16_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22355086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22355087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22355088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22355089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22355090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22355091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22355092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22355093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22355094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22355095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22355096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22355097, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22355885, 'dashboard_result_id': 10061689, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22355885_23-04-2025_19_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22355892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22355893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22355894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22355895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22355896, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22355897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22355898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22355899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22355900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22355901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22355902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22355903, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22356488, 'dashboard_result_id': 10061690, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22356488_24-04-2025_00_06_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22356504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22356505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22356506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22356507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22356508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22356509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22356510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22356511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22356512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22356513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22356514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22356515, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22359573, 'dashboard_result_id': 10061691, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22359573_23-04-2025_22_02_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22359575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22359576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22359577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22359578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22359579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22359580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22359581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22359582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22359583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22359584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22359585, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22359586, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22360340, 'dashboard_result_id': 10061692, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22360340_23-04-2025_22_17_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22360365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22360366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22360367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22360368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22360369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22360370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22360371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22360372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22360373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22360374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22360375, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22360376, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22361301, 'dashboard_result_id': 10061693, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361301_23-04-2025_22_35_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22361312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22361313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22361314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22361315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22361316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22361317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22361318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22361319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22361320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22361321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22361322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22361323, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22361872, 'dashboard_result_id': 10061694, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361872_23-04-2025_22_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22361874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22361875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22361876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22361877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22361878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22361879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22361880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22361881, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22361882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22361883, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22361884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22361885, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22325236 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2755640, 'mtr_portfolio_id': 22325236, 'created_at': datetime.datetime(2025, 4, 24, 5, 34, 30), 'result': '0.0709678645705838', 'result_long': None, 'result_double': None}] Qualite : 0.0709678645705838 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22325236 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325236_24-04-2025_05_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22325236 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325236_24-04-2025_05_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325290, 'pht': 3726}}" where mtr_portfolio_id = 22325236 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22325236 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061651, 0.0709678645705838, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325236_24-04-2025_05_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325290, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22325613 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751267, 'mtr_portfolio_id': 22325613, 'created_at': datetime.datetime(2025, 4, 23, 5, 56, 58), 'result': '0.06878107966408131', 'result_long': None, 'result_double': None}] Qualite : 0.06878107966408131 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22325613 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325613_23-04-2025_05_57_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22325613 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325613_23-04-2025_05_57_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325649, 'pht': 3726}}" where mtr_portfolio_id = 22325613 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22325613 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061652, 0.06878107966408131, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325613_23-04-2025_05_57_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325649, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22325942 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751294, 'mtr_portfolio_id': 22325942, 'created_at': datetime.datetime(2025, 4, 23, 5, 47, 46), 'result': '0.0684979031853887', 'result_long': None, 'result_double': None}] Qualite : 0.0684979031853887 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22325942 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325942_23-04-2025_05_47_50.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22325942 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325942_23-04-2025_05_47_50.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325979, 'pht': 3726}}" where mtr_portfolio_id = 22325942 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22325942 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061653, 0.0684979031853887, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325942_23-04-2025_05_47_50.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325979, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22326303 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751328, 'mtr_portfolio_id': 22326303, 'created_at': datetime.datetime(2025, 4, 23, 6, 2, 59), 'result': '0.0705016942968641', 'result_long': None, 'result_double': None}] Qualite : 0.0705016942968641 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22326303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326303_23-04-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22326303 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326303_23-04-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326315, 'pht': 3726}}" where mtr_portfolio_id = 22326303 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22326303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061654, 0.0705016942968641, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326303_23-04-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326315, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22326686 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751380, 'mtr_portfolio_id': 22326686, 'created_at': datetime.datetime(2025, 4, 23, 6, 20, 58), 'result': '0.08849670839449893', 'result_long': None, 'result_double': None}] Qualite : 0.08849670839449893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22326686 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326686_23-04-2025_06_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22326686 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326686_23-04-2025_06_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326769, 'pht': 3726}}" where mtr_portfolio_id = 22326686 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22326686 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061655, 0.08849670839449893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326686_23-04-2025_06_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326769, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22327416 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751439, 'mtr_portfolio_id': 22327416, 'created_at': datetime.datetime(2025, 4, 23, 6, 34, 58), 'result': '0.06719231217388424', 'result_long': None, 'result_double': None}] Qualite : 0.06719231217388424 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22327416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327416_23-04-2025_06_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22327416 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327416_23-04-2025_06_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327452, 'pht': 3726}}" where mtr_portfolio_id = 22327416 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22327416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061656, 0.06719231217388424, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327416_23-04-2025_06_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327452, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22327827 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751479, 'mtr_portfolio_id': 22327827, 'created_at': datetime.datetime(2025, 4, 23, 6, 48, 57), 'result': '0.06327099763152055', 'result_long': None, 'result_double': None}] Qualite : 0.06327099763152055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22327827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327827_23-04-2025_06_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22327827 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327827_23-04-2025_06_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327878, 'pht': 3726}}" where mtr_portfolio_id = 22327827 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22327827 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061657, 0.06327099763152055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327827_23-04-2025_06_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327878, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22328173 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751510, 'mtr_portfolio_id': 22328173, 'created_at': datetime.datetime(2025, 4, 23, 7, 2, 58), 'result': '0.06952255225921646', 'result_long': None, 'result_double': None}] Qualite : 0.06952255225921646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22328173 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328173_23-04-2025_07_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22328173 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328173_23-04-2025_07_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22328175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328185, 'pht': 3726}}" where mtr_portfolio_id = 22328173 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22328173 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061658, 0.06952255225921646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328173_23-04-2025_07_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22328175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328185, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22328867 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751669, 'mtr_portfolio_id': 22328867, 'created_at': datetime.datetime(2025, 4, 23, 7, 20, 57), 'result': '0.08314204137547636', 'result_long': None, 'result_double': None}] Qualite : 0.08314204137547636 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22328867 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328867_23-04-2025_07_20_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22328867 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328867_23-04-2025_07_20_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22328873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328884, 'pht': 3726}}" where mtr_portfolio_id = 22328867 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22328867 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061659, 0.08314204137547636, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328867_23-04-2025_07_20_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22328873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328884, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22329762 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751716, 'mtr_portfolio_id': 22329762, 'created_at': datetime.datetime(2025, 4, 23, 7, 32, 58), 'result': '0.06514431270651219', 'result_long': None, 'result_double': None}] Qualite : 0.06514431270651219 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22329762 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22329762_23-04-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22329762 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22329762_23-04-2025_07_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22329793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22329795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22329796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22329797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22329799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22329800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22329801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22329803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22329804, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22329805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22329807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22329808, 'pht': 3726}}" where mtr_portfolio_id = 22329762 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22329762 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061660, 0.06514431270651219, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22329762_23-04-2025_07_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22329793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22329795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22329796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22329797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22329799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22329800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22329801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22329803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22329804, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22329805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22329807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22329808, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22330414 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751774, 'mtr_portfolio_id': 22330414, 'created_at': datetime.datetime(2025, 4, 23, 7, 48, 59), 'result': '0.058774719427930264', 'result_long': None, 'result_double': None}] Qualite : 0.058774719427930264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22330414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22330414_23-04-2025_07_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22330414 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22330414_23-04-2025_07_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22330454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22330455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22330456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22330457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22330458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22330459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22330460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22330461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22330462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22330463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22330464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22330465, 'pht': 3726}}" where mtr_portfolio_id = 22330414 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22330414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061661, 0.058774719427930264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22330414_23-04-2025_07_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22330454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22330455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22330456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22330457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22330458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22330459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22330460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22330461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22330462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22330463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22330464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22330465, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22331203 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751835, 'mtr_portfolio_id': 22331203, 'created_at': datetime.datetime(2025, 4, 23, 8, 2, 59), 'result': '0.04797771175706554', 'result_long': None, 'result_double': None}] Qualite : 0.04797771175706554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22331203 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331203_23-04-2025_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22331203 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331203_23-04-2025_08_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22331250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331251, 'pht': 3726}}" where mtr_portfolio_id = 22331203 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22331203 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061662, 0.04797771175706554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331203_23-04-2025_08_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22331250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331251, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22331661 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751898, 'mtr_portfolio_id': 22331661, 'created_at': datetime.datetime(2025, 4, 23, 8, 17), 'result': '0.05327031960987797', 'result_long': None, 'result_double': None}] Qualite : 0.05327031960987797 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22331661 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331661_23-04-2025_08_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22331661 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331661_23-04-2025_08_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22331701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331712, 'pht': 3726}}" where mtr_portfolio_id = 22331661 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22331661 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061663, 0.05327031960987797, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331661_23-04-2025_08_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22331701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331712, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22332458 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751952, 'mtr_portfolio_id': 22332458, 'created_at': datetime.datetime(2025, 4, 23, 8, 34, 59), 'result': '0.07737588999273574', 'result_long': None, 'result_double': None}] Qualite : 0.07737588999273574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22332458 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22332458_23-04-2025_08_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22332458 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22332458_23-04-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22332459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22332460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22332461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22332462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22332463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22332464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22332465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22332466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22332467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22332468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22332469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22332470, 'pht': 3726}}" where mtr_portfolio_id = 22332458 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22332458 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061664, 0.07737588999273574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22332458_23-04-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22332459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22332460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22332461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22332462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22332463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22332464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22332465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22332466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22332467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22332468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22332469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22332470, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22333179 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2752018, 'mtr_portfolio_id': 22333179, 'created_at': datetime.datetime(2025, 4, 23, 8, 46, 59), 'result': '0.059361322375682285', 'result_long': None, 'result_double': None}] Qualite : 0.059361322375682285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22333179 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22333179_23-04-2025_08_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22333179 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22333179_23-04-2025_08_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22333217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22333218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22333219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22333220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22333221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22333222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22333223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22333224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22333225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22333226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22333227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22333228, 'pht': 3726}}" where mtr_portfolio_id = 22333179 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22333179 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061665, 0.059361322375682285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22333179_23-04-2025_08_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22333217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22333218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22333219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22333220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22333221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22333222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22333223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22333224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22333225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22333226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22333227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22333228, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22334033 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2752095, 'mtr_portfolio_id': 22334033, 'created_at': datetime.datetime(2025, 4, 23, 9, 16, 32), 'result': '0.06863535212709608', 'result_long': None, 'result_double': None}] Qualite : 0.06863535212709608 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22334033 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22334033_23-04-2025_09_16_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22334033 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22334033_23-04-2025_09_16_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22334067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22334068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22334069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22334070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22334071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22334072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22334073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22334074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22334075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22334076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22334077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22334078, 'pht': 3726}}" where mtr_portfolio_id = 22334033 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22334033 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061666, 0.06863535212709608, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22334033_23-04-2025_09_16_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22334067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22334068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22334069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22334070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22334071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22334072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22334073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22334074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22334075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22334076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22334077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22334078, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22336354 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2752283, 'mtr_portfolio_id': 22336354, 'created_at': datetime.datetime(2025, 4, 23, 9, 49), 'result': '0.0756758171083557', 'result_long': None, 'result_double': None}] Qualite : 0.0756758171083557 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22336354 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22336354_23-04-2025_09_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22336354 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22336354_23-04-2025_09_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22336364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22336365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22336366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22336367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22336368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22336369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22336370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22336371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22336372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22336373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22336374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22336375, 'pht': 3726}}" where mtr_portfolio_id = 22336354 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22336354 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061667, 0.0756758171083557, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22336354_23-04-2025_09_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22336364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22336365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22336366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22336367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22336368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22336369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22336370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22336371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22336372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22336373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22336374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22336375, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22337144 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2752342, 'mtr_portfolio_id': 22337144, 'created_at': datetime.datetime(2025, 4, 23, 10, 3, 1), 'result': '0.059795252541870805', 'result_long': None, 'result_double': None}] Qualite : 0.059795252541870805 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22337144 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337144_23-04-2025_10_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22337144 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337144_23-04-2025_10_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337180, 'pht': 3726}}" where mtr_portfolio_id = 22337144 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22337144 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061668, 0.059795252541870805, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337144_23-04-2025_10_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337180, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22337891 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2752399, 'mtr_portfolio_id': 22337891, 'created_at': datetime.datetime(2025, 4, 23, 10, 16, 59), 'result': '0.07046765031723179', 'result_long': None, 'result_double': None}] Qualite : 0.07046765031723179 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22337891 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337891_23-04-2025_10_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22337891 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337891_23-04-2025_10_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337903, 'pht': 3726}}" where mtr_portfolio_id = 22337891 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22337891 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061669, 0.07046765031723179, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337891_23-04-2025_10_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337903, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22338640 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2752462, 'mtr_portfolio_id': 22338640, 'created_at': datetime.datetime(2025, 4, 23, 10, 32, 30), 'result': '0.08295155152499999', 'result_long': None, 'result_double': None}] Qualite : 0.08295155152499999 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22338640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22338640_23-04-2025_10_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22338640 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22338640_23-04-2025_10_32_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22338657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22338658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22338659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22338660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22338661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22338662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22338663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22338664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22338665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22338666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22338667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22338668, 'pht': 3726}}" where mtr_portfolio_id = 22338640 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22338640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061670, 0.08295155152499999, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22338640_23-04-2025_10_32_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22338657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22338658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22338659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22338660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22338661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22338662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22338663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22338664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22338665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22338666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22338667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22338668, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22339201 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2752528, 'mtr_portfolio_id': 22339201, 'created_at': datetime.datetime(2025, 4, 23, 10, 46, 59), 'result': '0.06237691042856295', 'result_long': None, 'result_double': None}] Qualite : 0.06237691042856295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22339201 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339201_23-04-2025_10_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22339201 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339201_23-04-2025_10_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339240, 'pht': 3726}}" where mtr_portfolio_id = 22339201 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22339201 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061671, 0.06237691042856295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339201_23-04-2025_10_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339240, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22339852 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2752581, 'mtr_portfolio_id': 22339852, 'created_at': datetime.datetime(2025, 4, 23, 11, 3, 28), 'result': '0.047202876661661765', 'result_long': None, 'result_double': None}] Qualite : 0.047202876661661765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22339852 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339852_23-04-2025_11_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22339852 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339852_23-04-2025_11_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339893, 'pht': 3726}}" where mtr_portfolio_id = 22339852 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22339852 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061672, 0.047202876661661765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339852_23-04-2025_11_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339893, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22340451 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2752641, 'mtr_portfolio_id': 22340451, 'created_at': datetime.datetime(2025, 4, 23, 11, 16, 58), 'result': '0.06235186309820279', 'result_long': None, 'result_double': None}] Qualite : 0.06235186309820279 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22340451 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22340451_23-04-2025_11_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22340451 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22340451_23-04-2025_11_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22340476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22340477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22340478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22340479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22340480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22340481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22340482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22340483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22340484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22340485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22340486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22340487, 'pht': 3726}}" where mtr_portfolio_id = 22340451 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22340451 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061673, 0.06235186309820279, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22340451_23-04-2025_11_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22340476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22340477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22340478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22340479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22340480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22340481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22340482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22340483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22340484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22340485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22340486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22340487, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22341308 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2752700, 'mtr_portfolio_id': 22341308, 'created_at': datetime.datetime(2025, 4, 23, 11, 32, 59), 'result': '0.04767917474961474', 'result_long': None, 'result_double': None}] Qualite : 0.04767917474961474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22341308 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341308_23-04-2025_11_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22341308 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341308_23-04-2025_11_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341358, 'pht': 3726}}" where mtr_portfolio_id = 22341308 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22341308 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061674, 0.04767917474961474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341308_23-04-2025_11_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341358, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22341945 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2752763, 'mtr_portfolio_id': 22341945, 'created_at': datetime.datetime(2025, 4, 23, 11, 48, 59), 'result': '0.061373847411342525', 'result_long': None, 'result_double': None}] Qualite : 0.061373847411342525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22341945 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341945_23-04-2025_11_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22341945 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341945_23-04-2025_11_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341985, 'pht': 3726}}" where mtr_portfolio_id = 22341945 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22341945 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061675, 0.061373847411342525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341945_23-04-2025_11_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341985, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22342537 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2752817, 'mtr_portfolio_id': 22342537, 'created_at': datetime.datetime(2025, 4, 23, 12, 2, 59), 'result': '0.06941682431519162', 'result_long': None, 'result_double': None}] Qualite : 0.06941682431519162 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22342537 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342537_23-04-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22342537 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342537_23-04-2025_12_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22342566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22342567, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22342568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22342569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22342570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22342571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22342572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22342573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22342574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22342575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22342576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22342577, 'pht': 3726}}" where mtr_portfolio_id = 22342537 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22342537 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061676, 0.06941682431519162, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342537_23-04-2025_12_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22342566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22342567, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22342568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22342569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22342570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22342571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22342572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22342573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22342574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22342575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22342576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22342577, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22342994 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2752869, 'mtr_portfolio_id': 22342994, 'created_at': datetime.datetime(2025, 4, 24, 0, 6), 'result': '0.06286442424648833', 'result_long': None, 'result_double': None}] Qualite : 0.06286442424648833 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22342994 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342994_24-04-2025_00_06_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22342994 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342994_24-04-2025_00_06_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22342999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22343000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22343001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22343002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22343003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22343004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22343005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22343006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22343007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22343008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22343009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22343010, 'pht': 3726}}" where mtr_portfolio_id = 22342994 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22342994 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061677, 0.06286442424648833, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342994_24-04-2025_00_06_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22342999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22343000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22343001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22343002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22343003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22343004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22343005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22343006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22343007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22343008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22343009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22343010, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22348035 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2753540, 'mtr_portfolio_id': 22348035, 'created_at': datetime.datetime(2025, 4, 23, 16, 21, 29), 'result': '0.07689961495624048', 'result_long': None, 'result_double': None}] Qualite : 0.07689961495624048 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22348035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22348035_23-04-2025_16_21_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22348035 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22348035_23-04-2025_16_21_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22348061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22348062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22348063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22348064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22348065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22348066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22348067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22348068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22348069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22348070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22348071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22348072, 'pht': 3726}}" where mtr_portfolio_id = 22348035 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22348035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061678, 0.07689961495624048, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22348035_23-04-2025_16_21_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22348061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22348062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22348063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22348064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22348065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22348066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22348067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22348068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22348069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22348070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22348071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22348072, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22348525 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2753580, 'mtr_portfolio_id': 22348525, 'created_at': datetime.datetime(2025, 4, 23, 16, 32, 59), 'result': '0.062361052152202334', 'result_long': None, 'result_double': None}] Qualite : 0.062361052152202334 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22348525 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22348525_23-04-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22348525 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22348525_23-04-2025_16_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22348529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22348530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22348531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22348532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22348533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22348534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22348535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22348536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22348537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22348538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22348539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22348540, 'pht': 3726}}" where mtr_portfolio_id = 22348525 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22348525 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061679, 0.062361052152202334, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22348525_23-04-2025_16_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22348529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22348530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22348531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22348532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22348533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22348534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22348535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22348536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22348537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22348538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22348539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22348540, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22349010 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2753655, 'mtr_portfolio_id': 22349010, 'created_at': datetime.datetime(2025, 4, 23, 16, 48, 59), 'result': '0.05304367135890578', 'result_long': None, 'result_double': None}] Qualite : 0.05304367135890578 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22349010 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22349010_23-04-2025_16_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22349010 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22349010_23-04-2025_16_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22349016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22349017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22349018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22349019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22349020, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22349021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22349022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22349023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22349024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22349025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22349026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22349027, 'pht': 3726}}" where mtr_portfolio_id = 22349010 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22349010 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061680, 0.05304367135890578, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22349010_23-04-2025_16_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22349016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22349017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22349018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22349019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22349020, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22349021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22349022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22349023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22349024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22349025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22349026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22349027, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22349913 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2753722, 'mtr_portfolio_id': 22349913, 'created_at': datetime.datetime(2025, 4, 23, 17, 2, 30), 'result': '0.07862185598645142', 'result_long': None, 'result_double': None}] Qualite : 0.07862185598645142 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22349913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22349913_23-04-2025_17_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22349913 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22349913_23-04-2025_17_02_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22349917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22349918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22349919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22349920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22349921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22349922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22349923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22349924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22349925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22349926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22349927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22349928, 'pht': 3726}}" where mtr_portfolio_id = 22349913 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22349913 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061681, 0.07862185598645142, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22349913_23-04-2025_17_02_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22349917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22349918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22349919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22349920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22349921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22349922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22349923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22349924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22349925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22349926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22349927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22349928, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22350703 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2753789, 'mtr_portfolio_id': 22350703, 'created_at': datetime.datetime(2025, 4, 23, 17, 16, 59), 'result': '0.053544550129259245', 'result_long': None, 'result_double': None}] Qualite : 0.053544550129259245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22350703 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22350703_23-04-2025_17_17_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22350703 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22350703_23-04-2025_17_17_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22350717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22350718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22350719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22350720, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22350721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22350722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22350723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22350724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22350725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22350726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22350727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22350728, 'pht': 3726}}" where mtr_portfolio_id = 22350703 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22350703 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061682, 0.053544550129259245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22350703_23-04-2025_17_17_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22350717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22350718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22350719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22350720, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22350721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22350722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22350723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22350724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22350725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22350726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22350727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22350728, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22351746 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2753858, 'mtr_portfolio_id': 22351746, 'created_at': datetime.datetime(2025, 4, 23, 17, 34, 58), 'result': '0.046430601391658985', 'result_long': None, 'result_double': None}] Qualite : 0.046430601391658985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22351746 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22351746_23-04-2025_17_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22351746 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22351746_23-04-2025_17_34_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22351749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22351750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22351751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22351752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22351753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22351754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22351755, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22351756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22351757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22351758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22351759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22351760, 'pht': 3726}}" where mtr_portfolio_id = 22351746 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22351746 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061683, 0.046430601391658985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22351746_23-04-2025_17_34_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22351749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22351750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22351751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22351752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22351753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22351754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22351755, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22351756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22351757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22351758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22351759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22351760, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22353065 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2754013, 'mtr_portfolio_id': 22353065, 'created_at': datetime.datetime(2025, 4, 23, 18, 18, 58), 'result': '0.04914646860979779', 'result_long': None, 'result_double': None}] Qualite : 0.04914646860979779 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22353065 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353065_23-04-2025_18_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22353065 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353065_23-04-2025_18_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353099, 'pht': 3726}}" where mtr_portfolio_id = 22353065 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22353065 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061684, 0.04914646860979779, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353065_23-04-2025_18_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353099, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22353503 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2754073, 'mtr_portfolio_id': 22353503, 'created_at': datetime.datetime(2025, 4, 23, 18, 32, 30), 'result': '0.05479845340734035', 'result_long': None, 'result_double': None}] Qualite : 0.05479845340734035 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22353503 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353503_23-04-2025_18_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22353503 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353503_23-04-2025_18_32_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353540, 'pht': 3726}}" where mtr_portfolio_id = 22353503 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22353503 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061685, 0.05479845340734035, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353503_23-04-2025_18_32_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353540, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22354290 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2754160, 'mtr_portfolio_id': 22354290, 'created_at': datetime.datetime(2025, 4, 23, 18, 46, 58), 'result': '0.07883123016562744', 'result_long': None, 'result_double': None}] Qualite : 0.07883123016562744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22354290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354290_23-04-2025_18_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22354290 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354290_23-04-2025_18_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354319, 'pht': 3726}}" where mtr_portfolio_id = 22354290 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22354290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061686, 0.07883123016562744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354290_23-04-2025_18_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354319, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22354450 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2754176, 'mtr_portfolio_id': 22354450, 'created_at': datetime.datetime(2025, 4, 23, 19, 3), 'result': '0.06836334816532279', 'result_long': None, 'result_double': None}] Qualite : 0.06836334816532279 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22354450 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354450_23-04-2025_19_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22354450 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354450_23-04-2025_19_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354466, 'pht': 3726}}" where mtr_portfolio_id = 22354450 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22354450 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061687, 0.06836334816532279, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354450_23-04-2025_19_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354466, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22355072 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2754247, 'mtr_portfolio_id': 22355072, 'created_at': datetime.datetime(2025, 4, 23, 19, 16, 31), 'result': '0.07034225435993269', 'result_long': None, 'result_double': None}] Qualite : 0.07034225435993269 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22355072 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22355072_23-04-2025_19_16_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22355072 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22355072_23-04-2025_19_16_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22355086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22355087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22355088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22355089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22355090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22355091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22355092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22355093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22355094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22355095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22355096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22355097, 'pht': 3726}}" where mtr_portfolio_id = 22355072 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22355072 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061688, 0.07034225435993269, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22355072_23-04-2025_19_16_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22355086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22355087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22355088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22355089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22355090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22355091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22355092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22355093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22355094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22355095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22355096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22355097, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22355885 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2754300, 'mtr_portfolio_id': 22355885, 'created_at': datetime.datetime(2025, 4, 23, 19, 32, 59), 'result': '0.07312940830385102', 'result_long': None, 'result_double': None}] Qualite : 0.07312940830385102 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22355885 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22355885_23-04-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22355885 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22355885_23-04-2025_19_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22355892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22355893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22355894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22355895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22355896, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22355897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22355898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22355899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22355900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22355901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22355902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22355903, 'pht': 3726}}" where mtr_portfolio_id = 22355885 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22355885 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061689, 0.07312940830385102, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22355885_23-04-2025_19_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22355892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22355893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22355894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22355895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22355896, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22355897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22355898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22355899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22355900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22355901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22355902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22355903, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22356488 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2754350, 'mtr_portfolio_id': 22356488, 'created_at': datetime.datetime(2025, 4, 24, 0, 6, 55), 'result': '0.09063394106709378', 'result_long': None, 'result_double': None}] Qualite : 0.09063394106709378 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22356488 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22356488_24-04-2025_00_06_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22356488 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22356488_24-04-2025_00_06_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22356504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22356505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22356506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22356507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22356508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22356509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22356510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22356511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22356512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22356513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22356514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22356515, 'pht': 3726}}" where mtr_portfolio_id = 22356488 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22356488 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061690, 0.09063394106709378, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22356488_24-04-2025_00_06_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22356504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22356505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22356506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22356507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22356508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22356509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22356510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22356511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22356512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22356513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22356514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22356515, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22359573 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2754740, 'mtr_portfolio_id': 22359573, 'created_at': datetime.datetime(2025, 4, 23, 22, 2, 31), 'result': '0.11215870316230325', 'result_long': None, 'result_double': None}] Qualite : 0.11215870316230325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22359573 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22359573_23-04-2025_22_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22359573 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22359573_23-04-2025_22_02_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22359575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22359576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22359577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22359578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22359579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22359580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22359581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22359582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22359583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22359584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22359585, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22359586, 'pht': 3726}}" where mtr_portfolio_id = 22359573 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22359573 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061691, 0.11215870316230325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22359573_23-04-2025_22_02_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22359575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22359576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22359577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22359578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22359579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22359580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22359581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22359582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22359583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22359584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22359585, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22359586, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22360340 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2754872, 'mtr_portfolio_id': 22360340, 'created_at': datetime.datetime(2025, 4, 23, 22, 17, 1), 'result': '0.041548315411460035', 'result_long': None, 'result_double': None}] Qualite : 0.041548315411460035 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22360340 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22360340_23-04-2025_22_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22360340 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22360340_23-04-2025_22_17_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22360365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22360366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22360367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22360368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22360369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22360370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22360371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22360372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22360373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22360374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22360375, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22360376, 'pht': 3726}}" where mtr_portfolio_id = 22360340 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22360340 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061692, 0.041548315411460035, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22360340_23-04-2025_22_17_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22360365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22360366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22360367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22360368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22360369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22360370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22360371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22360372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22360373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22360374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22360375, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22360376, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22361301 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2754936, 'mtr_portfolio_id': 22361301, 'created_at': datetime.datetime(2025, 4, 23, 22, 35), 'result': '0.009978512216599714', 'result_long': None, 'result_double': None}] Qualite : 0.009978512216599714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22361301 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361301_23-04-2025_22_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22361301 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361301_23-04-2025_22_35_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22361312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22361313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22361314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22361315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22361316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22361317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22361318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22361319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22361320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22361321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22361322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22361323, 'pht': 3726}}" where mtr_portfolio_id = 22361301 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22361301 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061693, 0.009978512216599714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361301_23-04-2025_22_35_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22361312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22361313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22361314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22361315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22361316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22361317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22361318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22361319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22361320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22361321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22361322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22361323, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22361872 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2754971, 'mtr_portfolio_id': 22361872, 'created_at': datetime.datetime(2025, 4, 23, 22, 46, 57), 'result': '0.24777382948637755', 'result_long': None, 'result_double': None}] Qualite : 0.24777382948637755 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22361872 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361872_23-04-2025_22_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22361872 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361872_23-04-2025_22_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22361874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22361875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22361876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22361877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22361878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22361879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22361880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22361881, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22361882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22361883, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22361884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22361885, 'pht': 3726}}" where mtr_portfolio_id = 22361872 and dashboard_run_id = 1751574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22361872 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061694, 0.24777382948637755, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361872_23-04-2025_22_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22361874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22361875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22361876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22361877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22361878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22361879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22361880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22361881, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22361882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22361883, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22361884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22361885, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22325236,22325613,22325942,22326303,22326686,22327416,22327827,22328173,22328867,22329762,22330414,22331203,22331661,22332458,22333179,22334033,22336354,22337144,22337891,22338640,22339201,22339852,22340451,22341308,22341945,22342537,22342994,22348035,22348525,22349010,22349913,22350703,22351746,22353065,22353503,22354290,22354450,22355072,22355885,22356488,22359573,22360340,22361301,22361872) result : ((1352913245,), (1352914097,), (1352914100,), (1352914723,), (1352914724,), (1352914748,), (1352914749,), (1352914777,), (1352914808,), (1352914811,), (1352914848,), (1352914859,), (1352914861,), (1352914863,), (1352914865,), (1352914902,), (1352914904,), (1352914911,), (1352914943,), (1352914946,), (1352914948,), (1352914977,), (1352914979,), (1352915006,), (1352915008,), (1352915073,), (1352915045,), (1352915052,), (1352915057,), (1352915062,), (1352915099,), (1352915100,), (1352915101,), (1352915102,), (1352915103,), (1352915136,), (1352915139,), (1352915141,), (1352915143,), (1352915144,), (1352915175,), (1352915176,), (1352915177,), (1352915219,), (1352915221,), (1352915226,), (1352915231,), (1352915232,), (1352915233,), (1352915279,), (1352915280,), (1352915281,), (1352915282,), (1352915307,), (1352915308,), (1352915309,), (1352915334,), (1352915336,), (1352915337,), (1352915338,), (1352915361,), (1352915362,), (1352915402,), (1352915404,), (1352915443,), (1352915444,), (1352915446,), (1352915447,), (1352915448,), (1352915450,), (1352915463,), (1352915464,), (1352915466,), (1352915493,), (1352915496,), (1352915497,), (1352915498,), (1352915500,), (1352915526,), (1352915527,), (1352915528,), (1352915529,), (1352915559,), (1352915561,), (1352915563,), (1352915564,), (1352915565,), (1352915568,), (1352915628,), (1352915622,), (1352915623,), (1352915624,), (1352915627,), (1352915646,), (1352915647,), (1352915648,), (1352915690,), (1352915691,), (1352915692,), (1352915693,), (1352915737,), (1352915740,), (1352915742,), (1352915750,), (1352915752,), (1352915753,), (1352915775,), (1352915776,), (1352915777,), (1352915778,), (1352915806,), (1352915808,), (1352915809,), (1352915810,), (1352915812,), (1352915816,), (1352915842,), (1352915845,), (1352915846,), (1352915847,), (1352915896,), (1352915898,), (1352915902,), (1352915906,), (1352915907,), (1352915909,), (1352915936,), (1352915937,), (1352915938,), (1352915939,), (1352915942,), (1352915972,), (1352915975,), (1352915977,), (1352916018,), (1352916030,), (1352916031,), (1352916032,), (1352916034,), (1352916037,), (1352916094,), (1352916099,), (1352916101,), (1352916103,), (1352916137,), (1352916138,), (1352916139,), (1352916140,), (1352916142,), (1352916194,), (1352916204,), (1352916207,), (1352916209,), (1352916212,), (1352916214,), (1352916243,), (1352916245,), (1352916247,), (1352916248,), (1352916310,), (1352916298,), (1352916303,), (1352916305,), (1352916352,), (1352916355,), (1352916357,), (1352916359,), (1352916363,), (1352916367,), (1352916390,), (1352916393,), (1352916396,), (1352916400,), (1352916434,), (1352916436,), (1352916438,), (1352916440,), (1352916442,), (1352916446,), (1352916472,), (1352916475,), (1352916478,), (1352916481,), (1352916484,), (1352916487,), (1352916532,), (1352916535,), (1352916537,), (1352916570,), (1352916572,), (1352916574,), (1352916576,), (1352916579,), (1352916610,), (1352916612,), (1352916613,), (1352916614,), (1352916615,), (1352916649,), (1352916656,), (1352916658,), (1352916660,), (1352916694,), (1352916695,), (1352916696,), (1352916697,), (1352916700,), (1352916703,), (1352916747,), (1352916749,), (1352916751,), (1352916753,), (1352916796,), (1352916798,), (1352916799,), (1352916800,), (1352916842,), (1352916847,), (1352916853,), (1352916856,), (1352916859,), (1352916860,), (1352917651,), (1352917699,), (1352917740,), (1352917773,), (1352917891,), (1352917944,), (1352918010,), (1352918087,), (1352918134,), (1352918466,), (1352918346,), (1352918398,), (1352918431,), (1352918642,), (1352918670,), (1352918701,), (1352918726,), (1352918756,), (1352918871,), (1352918872,), (1352918873,), (1352918874,), (1352918876,), (1352918879,), (1352918909,), (1352918912,), (1352918914,), (1352918916,), (1352918953,), (1352918954,), (1352918956,), (1352918957,), (1352918961,), (1352918964,), (1352918989,), (1352918992,), (1352918995,), (1352918997,), (1352919024,), (1352919025,), (1352919061,), (1352919064,), (1352919067,), (1352919072,), (1352919075,), (1352919120,), (1352919121,), (1352919122,), (1352919123,), (1352919125,), (1352919128,), (1352919180,), (1352919189,), (1352919193,), (1352919197,), (1352919202,), (1352919254,), (1352919257,), (1352919258,), (1352919259,), (1352919260,), (1352919262,), (1352919317,), (1352919319,), (1352919325,), (1352919363,), (1352919364,), (1352919365,), (1352919366,), (1352919367,), (1352919370,), (1352919417,), (1352919420,), (1352919422,), (1352919424,), (1352919426,), (1352919429,), (1352919476,), (1352919477,), (1352919479,), (1352919480,), (1352919483,), (1352919543,), (1352919532,), (1352919534,), (1352919536,), (1352919538,), (1352919541,), (1352919580,), (1352919587,), (1352919589,), (1352919591,), (1352919594,), (1352919652,), (1352919660,), (1352919662,), (1352919664,), (1352919698,), (1352919699,), (1352919701,), (1352919703,), (1352919706,), (1352919708,), (1352919756,), (1352919768,), (1352919771,), (1352919773,), (1352919835,), (1352919836,), (1352919837,), (1352919838,), (1352919841,), (1352919843,), (1352919876,), (1352919878,), (1352919880,), (1352919882,), (1352919926,), (1352919927,), (1352919928,), (1352919929,), (1352919930,), (1352919933,), (1352919969,), (1352919974,), (1352919977,), (1352919979,), (1352920010,), (1352920011,), (1352920012,), (1352920013,), (1352920016,), (1352920046,), (1352920048,), (1352920051,), (1352920053,), (1352920056,), (1352920058,), (1352920086,), (1352920087,), (1352920089,), (1352920090,), (1352920119,), (1352920126,), (1352920133,), (1352920137,), (1352920171,), (1352920173,), (1352920174,), (1352920175,), (1352920176,), (1352920218,), (1352920224,), (1352920226,), (1352920228,), (1352920283,), (1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,), (1352921530,), (1352921532,), (1352921575,), (1352921586,), (1352921591,), (1352921595,), (1352921598,), (1352921644,), (1352921647,), (1352921648,), (1352921650,), (1352921702,), (1352921706,), (1352921708,), (1352921710,), (1352921713,), (1352921716,), (1352921752,), (1352921753,), (1352921783,), (1352921785,), (1352921786,), (1352921787,), (1352921816,), (1352921820,), (1352921822,), (1352921864,), (1352921851,), (1352921854,), (1352921857,), (1352921859,), (1352921861,), (1352921892,), (1352921895,), (1352921897,), (1352921899,), (1352921929,), (1352921930,), (1352921931,), (1352921932,), (1352921933,), (1352921972,), (1352921974,), (1352921976,), (1352921978,), (1352921981,), (1352921983,), (1352922010,), (1352922012,), (1352922013,), (1352922014,), (1352922016,), (1352922063,), (1352922064,), (1352922066,), (1352922068,), (1352922094,), (1352922097,), (1352922099,), (1352922101,), (1352922104,), (1352922107,), (1352922139,), (1352922141,), (1352922142,), (1352922143,), (1352922192,), (1352922197,), (1352922198,), (1352922199,), (1352922200,), (1352922233,), (1352922236,), (1352922240,), (1352922243,), (1352922246,), (1352922248,), (1352922298,), (1352922301,), (1352922302,), (1352922656,), (1352922659,), (1352922661,), (1352922683,), (1352922698,), (1352922755,), (1352922757,), (1352922759,), (1352922761,), (1352922766,), (1352922769,), (1352923825,), (1352923859,), (1352923869,), (1352924869,), (1352924579,), (1352924663,), (1352924719,), (1352924771,), (1352925762,), (1352925839,), (1352925916,), (1352926946,), (1352927023,), (1352927393,), (1352927487,), (1352927572,), (1352927822,), (1352927825,), (1352927828,), (1352927831,), (1352928295,), (1352928351,), (1352928429,), (1352928483,), (1352928869,), (1352928895,), (1352928904,), (1352928907,), (1352928910,), (1352928961,), (1352928964,), (1352928968,), (1352928972,), (1352928977,), (1352928981,), (1352929029,), (1352929031,), (1352929034,), (1352929057,), (1352929066,), (1352929135,), (1352929140,), (1352929161,), (1352929212,), (1352929241,), (1352929273,), (1352929358,), (1352929364,), (1352929371,), (1352929389,), (1352929785,), (1352929811,), (1352929823,), (1352929829,), (1352929834,), (1352929858,), (1352930044,), (1352930057,), (1352930071,), (1352930236,), (1352930243,), (1352930247,), (1352930253,), (1352930266,), (1352930300,), (1352930474,), (1352930479,), (1352930486,), (1352930488,), (1352930693,), (1352930708,), (1352930712,), (1352930715,), (1352930719,), (1352930724,), (1352930886,), (1352930839,), (1352930853,), (1352930870,), (1352930882,), (1352931172,), (1352931193,), (1352931227,), (1352931249,), (1352931364,), (1352931391,), (1352931403,), (1352931406,), (1352931409,), (1352931412,), (1352931444,), (1352931458,), (1352931475,), (1352931482,), (1352931495,), (1352931607,), (1352931654,), (1352931850,), (1352931951,), (1352931969,), (1352932152,), (1352932192,), (1352932229,), (1352932255,), (1352932260,), (1352932300,), (1352932302,), (1352932304,), (1352932307,), (1352932312,), (1352932320,), (1352932377,), (1352932395,), (1352932429,), (1352932583,), (1352932586,), (1352932590,), (1352932593,), (1352932598,), (1352932609,), (1352932774,), (1352932789,), (1352932829,), (1352932867,), (1352932973,), (1352932977,), (1352932982,), (1352933012,), (1352933050,), (1352933076,), (1352933358,), (1352933407,), (1352933459,), (1352933481,), (1352933484,), (1352933792,), (1352933800,), (1352933805,), (1352933839,), (1352933962,), (1352934001,), (1352934029,), (1352934050,), (1352934053,), (1352934056,), (1352934106,), (1352934133,), (1352934185,), (1352934459,), (1352934446,), (1352934452,), (1352934455,), (1352934456,), (1352934532,), (1352934538,), (1352934543,), (1352934547,), (1352934551,), (1352934554,), (1352934596,), (1352934599,), (1352934601,), (1352934603,), (1352934796,), (1352934848,), (1352934949,), (1352934988,), (1352935045,), (1352935325,), (1352935346,), (1352935359,), (1352935386,), (1352935432,), (1352935461,), (1352935528,), (1352935531,), (1352935614,), (1352935620,), (1352935626,), (1352935631,), (1352935636,), (1352935644,), (1352935726,), (1352935741,), (1352935750,), (1352935762,), (1352935796,), (1352935809,), (1352936013,), (1352936034,), (1352936045,), (1352936823,), (1352937660,), (1352937329,), (1352937636,), (1352937639,), (1352937651,), (1352937764,), (1352937835,), (1352937839,), (1352937847,), (1352937878,), (1352937908,), (1352938024,), (1352938035,), (1352938039,), (1352938080,), (1352938083,), (1352938085,), (1352938094,), (1352938107,), (1352938141,), (1352938144,), (1352938148,), (1352938152,), (1352938155,), (1352938160,), (1352938191,), (1352938195,), (1352938199,), (1352938203,), (1352938206,), (1352938251,), (1352938258,), (1352938373,), (1352938406,), (1352938659,), (1352940413,), (1352940365,), (1352941249,), (1352941277,), (1352941899,), (1352941927,), (1352941953,), (1352941978,), (1352941989,), (1352942080,), (1352942081,), (1352942084,), (1352942086,), (1352942357,), (1352942525,), (1352942530,), (1352942536,), (1352942568,), (1352942595,), (1352942790,), (1352942827,), (1352942992,), (1352943026,), (1352943060,), (1352943132,), (1352943139,), (1352943160,), (1352943168,), (1352943171,), (1352943371,), (1352943388,), (1352943403,), (1352943423,), (1352943631,), (1352943633,), (1352943636,), (1352943679,), (1352943688,), (1352943694,), (1352943889,), (1352943891,), (1352943892,), (1352943894,), (1352943896,), (1352943901,), (1352943953,), (1352943956,), (1352943962,), (1352944104,), (1352944106,), (1352944521,), (1352944566,), (1352944569,), (1352944595,), (1352944829,), (1352944866,), (1352944908,), (1352944909,), (1352944915,), (1352945129,), (1352945094,), (1352945118,), (1352945125,), (1352945321,), (1352945325,), (1352945343,), (1352945345,), (1352945358,), (1352945364,), (1352945438,), (1352945441,), (1352945450,), (1352945456,), (1352945461,), (1352945569,), (1352945577,), (1352945755,), (1352945758,), (1352945761,), (1352945764,), (1352945767,), (1352945803,), (1352945963,), (1352945977,), (1352945979,), (1352945981,), (1352945983,), (1352945987,), (1352946233,), (1352946243,), (1352946250,), (1352946255,), (1352946540,), (1352946703,), (1352946715,), (1352946728,), (1352946731,), (1352946793,), (1352946798,), (1352946807,), (1352946810,), (1352946811,), (1352946869,), (1352946873,), (1352946878,), (1352946880,), (1352947085,), (1352947086,), (1352947088,), (1352947090,), (1352947221,), (1352947226,), (1352947235,), (1352947294,), (1352947296,), (1352947322,), (1352947392,), (1352947394,), (1352947397,), (1352947400,), (1352947405,), (1352947451,), (1352947461,), (1352947760,), (1352947707,), (1352947712,), (1352947728,), (1352947738,), (1352947859,), (1352947861,), (1352947864,), (1352947867,), (1352947870,), (1352947967,), (1352947968,), (1352947970,), (1352948016,), (1352948022,), (1352948031,), (1352948046,), (1352948060,), (1352948072,), (1352948187,), (1352948206,), (1352948208,), (1352948249,), (1352948252,), (1352948255,), (1352948258,), (1352948262,), (1352948312,), (1352948314,), (1352948317,), (1352948321,), (1352948324,), (1352948340,), (1352948405,), (1352948484,), (1352948514,), (1352948550,), (1352948761,), (1352948765,), (1352948833,), (1352948880,), (1352948889,), (1352948983,), (1352948989,), (1352948992,), (1352948994,), (1352948996,), (1352949037,), (1352949038,), (1352949040,), (1352949042,), (1352949044,), (1352949324,), (1352949398,), (1352949447,), (1352949490,), (1352949547,), (1352949555,), (1352949873,), (1352949884,), (1352949899,), (1352949927,), (1352950208,), (1352950278,), (1352950309,), (1352950320,), (1352950326,), (1352950331,), (1352950493,), (1352950497,), (1352950508,), (1352950516,), (1352950525,), (1352950836,), (1352950789,), (1352950822,), (1352950831,), (1352950983,), (1352951003,), (1352951028,), (1352951061,), (1352951080,), (1352951092,), (1352951311,), (1352951353,), (1352951389,), (1352951425,), (1352952499,), (1352952532,), (1352952576,), (1352952639,), (1352952671,), (1352952702,), (1352952792,), (1352952801,), (1352952842,), (1352952886,), (1352952940,), (1352953003,), (1352953217,), (1352953284,), (1352953334,), (1352953367,), (1352953520,), (1352953579,), (1352953638,), (1352953691,), (1352953740,), (1352953786,), (1352954734,), (1352954740,), (1352954743,), (1352954755,), (1352954934,), (1352954942,), (1352954964,), (1352955145,), (1352955376,), (1352955385,), (1352955574,), (1352955579,), (1352955582,), (1352955661,), (1352955811,), (1352955943,), (1352955949,), (1352955953,), (1352955957,), (1352955989,), (1352955992,), (1352955995,), (1352955999,), (1352956085,), (1352956160,), (1352956186,), (1352956212,), (1352957185,), (1352957220,), (1352957250,), (1352957283,), (1352957404,), (1352957425,), (1352959727,), (1352971452,), (1352971456,), (1352971458,), (1352971621,), (1352971655,), (1352971690,), (1352971740,), (1352971801,), (1352971999,), (1352972747,), (1352972756,), (1352972776,), (1352972780,), (1352972828,), (1352973500,), (1352973532,), (1352973642,), (1352973690,), (1352973820,), (1352974131,), (1352974154,), (1352974198,), (1352974234,), (1352974285,), (1352974323,), (1352974518,), (1352974551,), (1352974579,), (1352974618,), (1352975052,), (1352975087,), (1352975113,), (1352975140,), (1352975169,), (1352975200,), (1352975496,), (1352975502,), (1352975518,), (1352975525,), (1352975531,), (1352975785,), (1352975812,), (1352975840,), (1352975879,), (1352975934,), (1352976201,), (1352976210,), (1352976240,), (1352976270,), (1352976619,), (1352976630,), (1352976639,), (1352976702,), (1352976808,), (1352976920,), (1352977563,), (1352977638,), (1352977725,), (1352977763,), (1352977805,), (1352977837,), (1352978122,), (1352978126,), (1352978140,), (1352978349,), (1352978412,), (1352978449,), (1352978476,), (1352978488,), (1352978549,), (1352978525,), (1352978526,), (1352978528,), (1352978530,), (1352978533,), (1352978748,), (1352978766,), (1352978770,), (1352978836,), (1352978840,), (1352978843,), (1352978867,), (1352979097,), (1352979099,), (1352979102,), (1352979108,), (1352979148,), (1352979166,), (1352979212,), (1352979216,), (1352979219,), (1352979222,), (1352979429,), (1352979457,), (1352979484,), (1352979890,), (1352979916,), (1352979955,), (1352979986,), (1352980021,), (1352980049,), (1352980212,), (1352980215,), (1352980216,), (1352980220,), (1352980223,), (1352980347,), (1352980457,), (1352980462,), (1352980485,), (1352980559,), (1352980563,), (1352980568,), (1352980573,), (1352980578,), (1352980621,), (1352980623,), (1352980625,), (1352980627,), (1352980631,), (1352980636,), (1352980773,), (1352980801,), (1352980838,), (1352981403,), (1352981438,), (1352981493,), (1352982371,), (1352982403,), (1352982435,), (1352982519,), (1352983052,), (1352982939,), (1352982995,), (1352983640,), (1352983669,), (1352983739,), (1352983818,), (1352983909,), (1352983994,), (1352984875,), (1352984947,), (1352985009,), (1352985051,), (1352985150,), (1352985191,), (1352985405,), (1352985412,), (1352985415,), (1352985420,), (1352985473,), (1352985477,), (1352985480,), (1352985483,), (1352985585,), (1352985588,), (1352985591,), (1352985594,), (1352985598,), (1352985600,), (1352985666,), (1352985671,), (1352985675,), (1352985681,), (1352985695,), (1352985723,), (1352986027,), (1352986030,), (1352986032,), (1352986034,), (1352986103,), (1352986115,), (1352986119,), (1352986123,), (1352986128,), (1352986130,), (1352986195,), (1352986201,), (1352986205,), (1352986209,), (1352986422,), (1352986434,), (1352986438,), (1352986442,), (1352986445,), (1352986515,), (1352986519,), (1352986525,), (1352986528,), (1352986530,), (1352986622,), (1352986644,), (1352986647,), (1352986651,), (1352986895,), (1352986904,), (1352986913,), (1352986948,), (1352986991,), (1352987037,), (1352987164,), (1352987168,), (1352987172,), (1352987176,), (1352987179,), (1352987183,), (1352987243,), (1352987240,), (1352987533,), (1352987536,), (1352987546,), (1352987549,), (1352987565,), (1352987730,), (1352987749,), (1352987753,), (1352987773,), (1352987804,), (1352987820,), (1352987863,), (1352987866,), (1352987868,), (1352987870,), (1352987999,), (1352988003,), (1352988007,), (1352988015,), (1352988023,), (1352988027,), (1352988140,), (1352988178,), (1352988198,), (1352988203,), (1352988487,), (1352988490,), (1352988951,), (1352988955,), (1352988959,), (1352988988,), (1352989006,), (1352989012,), (1352989085,), (1352989088,), (1352989092,), (1352989095,), (1352989140,), (1352989142,), (1352989144,), (1352989146,), (1352989149,), (1352989438,), (1352989444,), (1352989455,), (1352989462,), (1352989515,), (1352989517,), (1352989729,), (1352989949,), (1352989955,), (1352990077,), (1352990029,), (1352990072,), (1352990192,), (1352990194,), (1352990213,), (1352990366,), (1352990369,), (1352990371,), (1352990478,), (1352990483,), (1352990485,), (1352990487,), (1352990490,), (1352990494,), (1352990533,), (1352990535,), (1352990559,), (1352990562,), (1352990759,), (1352990798,), (1352990834,), (1352991280,), (1352991294,), (1352991298,), (1352991319,), (1352991325,), (1352991548,), (1352991633,), (1352991661,), (1352991696,), (1352991749,), (1352992436,), (1352992554,), (1352992601,), (1352992637,), (1352992949,), (1352992956,), (1352992962,), (1352992967,), (1352992974,), (1352993015,), (1352993027,), (1352993032,), (1352993038,), (1352993162,), (1352993211,), (1352993246,), (1352993273,), (1352993383,), (1352993389,), (1352993395,), (1352993399,), (1352993404,), (1352993464,), (1352993469,), (1352993472,), (1352993475,), (1352993481,), (1352993487,), (1352993603,), (1352993607,), (1352993614,), (1352993624,), (1352993631,), (1352993682,), (1352993665,), (1352993675,), (1352993781,), (1352993786,), (1352993790,), (1352993795,), (1352993798,), (1352993871,), (1352993878,), (1352993885,), (1352993886,), (1352993931,), (1352993935,), (1352993939,), (1352993956,), (1352993992,), (1352994346,), (1352994389,), (1352994412,), (1352994463,), (1352994466,), (1352994470,), (1352994474,), (1352994478,), (1352994536,), (1352994542,), (1352994544,), (1352994546,), (1352994613,), (1352994622,), (1352994627,), (1352994631,), (1352994745,), (1352994749,), (1352994753,), (1352994796,), (1352994800,), (1352994944,), (1352994990,), (1352994993,), (1352994998,), (1352995001,), (1352995007,), (1352995010,), (1352995055,), (1352995077,), (1352995082,), (1352995085,), (1352995156,), (1352995161,), (1352995167,), (1352995171,), (1352995175,), (1352995943,), (1352995977,), (1352996039,), (1352996210,), (1352996240,), (1352996272,), (1352996301,), (1352996334,), (1352996661,), (1352996528,), (1352996574,), (1352996605,), (1352996633,), (1352996656,), (1352996897,), (1352996952,), (1352997021,), (1352997080,), (1352997374,), (1352997378,), (1352997383,), (1352997388,), (1352997393,), (1352997397,), (1352997439,), (1352997443,), (1352997446,), (1352997449,), (1352997451,), (1352997488,), (1352997492,), (1352997496,), (1352997506,), (1352997511,), (1352997579,), (1352997582,), (1352997596,), (1352997661,), (1352997665,), (1352997669,), (1352997674,), (1352997679,), (1352997683,), (1352997710,), (1352997779,), (1352997783,), (1352997789,), (1352997797,), (1352997802,), (1352997931,), (1352997937,), (1352998160,), (1352998164,), (1352998176,), (1352998352,), (1352998426,), (1352998480,), (1352998540,), (1352998607,), (1352998759,), (1352998770,), (1352998783,), (1352998797,), (1352998918,), (1352998926,), (1352999164,), (1352999198,), (1352999731,), (1352999549,), (1352999640,), (1352999694,), (1353000334,), (1353000353,), (1353000360,), (1353000382,), (1353000387,), (1353000399,), (1353000528,), (1353000531,), (1353000537,), (1353000545,), (1353000632,), (1353000636,), (1353000645,), (1353000711,), (1353000714,), (1353000717,), (1353000735,), (1353000741,), (1353000884,), (1353000893,), (1353000897,), (1353000902,), (1353000908,), (1353000913,), (1353001190,), (1353001221,), (1353001249,), (1353001279,), (1353001732,), (1353001761,), (1353001791,), (1353001819,), (1353001846,), (1353002275,), (1353002303,), (1353002331,), (1353002353,), (1353002397,), (1353002401,), (1353002406,), (1353002559,), (1353002595,), (1353002623,), (1353002665,), (1353002708,), (1353002992,), (1353003007,), (1353003009,), (1353003015,), (1353003018,), (1353003164,), (1353003193,), (1353003224,), (1353003256,), (1353003310,), (1353003313,), (1353003315,), (1353003317,), (1353003320,), (1353003324,), (1353003531,), (1353003563,), (1353003596,), (1353003626,), (1353003659,), (1353003695,), (1353003798,), (1353003788,), (1353003794,), (1353003797,), (1353003843,), (1353003847,), (1353003854,), (1353003859,), (1353003863,), (1353003907,), (1353003909,), (1353003911,), (1353003914,), (1353003917,), (1353003921,), (1353004012,), (1353004020,), (1353004038,), (1353004252,), (1353004257,), (1353004262,), (1353004268,), (1353004274,), (1353004306,), (1353004310,), (1353004314,), (1353004320,), (1353004337,), (1353004378,), (1353004392,), (1353004394,), (1353004474,), (1353004478,), (1353004483,), (1353004496,), (1353004506,), (1353004516,), (1353004652,), (1353004675,), (1353004678,), (1353004681,), (1353004685,), (1353004691,), (1353004848,), (1353004855,), (1353004867,), (1353004878,), (1353005005,), (1353005009,), (1353005016,), (1353005027,), (1353005032,), (1353005061,), (1353005144,), (1353005149,), (1353005153,), (1353005160,), (1353005279,), (1353005282,), (1353005833,), (1353006018,), (1353006044,), (1353006047,), (1353006050,), (1353006054,), (1353006654,), (1353006659,), (1353006664,), (1353006669,), (1353006676,), (1353007070,), (1353007072,), (1353007074,), (1353007077,), (1353007080,), (1353007244,), (1353007251,), (1353007256,), (1353007259,), (1353007523,), (1353007525,), (1353007527,), (1353007529,), (1353007530,), (1353007535,), (1353007583,), (1353007592,), (1353007599,), (1353007603,), (1353007644,), (1353007646,), (1353007648,), (1353007650,), (1353007653,), (1353007658,), (1353007694,), (1353007698,), (1353007702,), (1353007706,), (1353007709,), (1353007758,), (1353007762,), (1353007765,), (1353007771,), (1353007776,), (1353007820,), (1353007828,), (1353007840,), (1353007850,), (1353007861,), (1353007891,), (1353008391,), (1353008439,), (1353008486,), (1353008702,), (1353008760,), (1353008815,), (1353008864,), (1353008937,), (1353009468,), (1353009296,), (1353009372,), (1353010004,), (1353010082,), (1353010165,), (1353010224,), (1353010269,), (1353010319,), (1353010923,), (1353011015,), (1353011127,), (1353011252,), (1353011364,), (1353011415,), (1353011603,), (1353011609,), (1353011625,), (1353011657,), (1353011835,), (1353011866,), (1353011896,), (1353011914,), (1353011922,), (1353011929,), (1353011963,), (1353011967,), (1353011971,), (1353011976,), (1353011988,), (1353012201,), (1353012206,), (1353012216,), (1353012230,), (1353012251,), (1353012305,), (1353012310,), (1353012314,), (1353012318,), (1353012323,), (1353012383,), (1353012386,), (1353012389,), (1353012393,), (1353012398,), (1353012443,), (1353012447,), (1353012450,), (1353012453,), (1353012457,), (1353012461,), (1353012566,), (1353012699,), (1353027723,), (1353076602,), (1353076665,), (1353077221,), (1353077224,), (1353077227,), (1353077228,), (1353078467,), (1353078494,), (1353078520,), (1353078549,), (1353078589,), (1353078617,), (1353078961,), (1353078994,), (1353079024,), (1353079052,), (1353079091,), (1353079123,), (1353079216,), (1353079225,), (1353079229,), (1353079231,), (1353079246,), (1353079380,), (1353079407,), (1353079435,), (1353079468,), (1353079498,), (1353079528,), (1353079744,), (1353079769,), (1353079891,), (1353079902,), (1353079905,), (1353079909,), (1353079913,), (1353079953,), (1353079973,), (1353079985,), (1353079990,), (1353079995,), (1353080041,), (1353080046,), (1353080050,), (1353080054,), (1353080101,), (1353080107,), (1353080113,), (1353080117,), (1353080123,), (1353080171,), (1353080176,), (1353080207,), (1353080299,), (1353080674,), (1353080661,), (1353080664,), (1353080667,), (1353080671,), (1353080738,), (1353080740,), (1353080742,), (1353080744,), (1353080810,), (1353080813,), (1353080816,), (1353080870,), (1353080873,), (1353080876,), (1353080920,), (1353080923,), (1353080926,), (1353080973,), (1353080977,), (1353080978,), (1353080984,), (1353081006,), (1353081019,), (1353081086,), (1353081089,), (1353081091,), (1353081094,), (1353081191,), (1353081194,), (1353081198,), (1353081202,), (1353081208,), (1353081211,), (1353081268,), (1353081272,), (1353081275,), (1353081277,), (1353081281,), (1353081319,), (1353081324,), (1353081330,), (1353081333,), (1353081336,), (1353081386,), (1353081389,), (1353081392,), (1353081394,), (1353081436,), (1353081439,), (1353081444,), (1353081449,), (1353081499,), (1353081504,), (1353081509,), (1353081513,), (1353081519,), (1353081526,), (1353081598,), (1353081583,), (1353081587,), (1353081593,), (1353082009,), (1353082028,), (1353082032,), (1353082057,), (1353082062,), (1353082080,), (1353082150,), (1353082153,), (1353082158,), (1353082161,), (1353082165,), (1353082170,), (1353082208,), (1353082212,), (1353082216,), (1353082258,), (1353082260,), (1353082266,), (1353082270,), (1353082276,), (1353082283,), (1353082471,), (1353082487,), (1353082502,), (1353082506,), (1353082537,), (1353082647,), (1353082726,), (1353082729,), (1353082733,), (1353082753,), (1353082871,), (1353082875,), (1353082878,), (1353082903,), (1353082936,), (1353082938,), (1353083102,), (1353083130,), (1353083159,), (1353083480,), (1353083497,), (1353083529,), (1353083541,), (1353083546,), (1353083550,), (1353083589,), (1353083593,), (1353083597,), (1353083601,), (1353083679,), (1353083691,), (1353083701,), (1353083716,), (1353083735,), (1353083741,), (1353083985,), (1353084044,), (1353084077,), (1353084106,), (1353084326,), (1353084328,), (1353084335,), (1353084338,), (1353084376,), (1353084426,), (1353084859,), (1353084890,), (1353084922,), (1353084971,), (1353085001,), (1353085683,), (1353085654,), (1353085658,), (1353085661,), (1353085663,), (1353086633,), (1353086649,), (1353087006,), (1353087051,), (1353087079,), (1353087091,), (1353087096,), (1353087730,), (1353087758,), (1353087813,), (1353087816,), (1353087839,), (1353087867,), (1353087896,), (1353088130,), (1353088144,), (1353088154,), (1353088157,), (1353088161,), (1353088329,), (1353088337,), (1353088342,), (1353088344,), (1353088378,), (1353088381,), (1353088389,), (1353088393,), (1353088396,), (1353088467,), (1353088480,), (1353088496,), (1353088508,), (1353088513,), (1353088525,), (1353089469,), (1353089517,), (1353089551,), (1353090026,), (1353090010,), (1353090021,), (1353090420,), (1353090444,), (1353090453,), (1353090461,), (1353090487,), (1353090540,), (1353090923,), (1353090934,), (1353090944,), (1353090976,), (1353091004,), (1353091018,), (1353091110,), (1353091122,), (1353091126,), (1353091158,), (1353091163,), (1353091174,), (1353091179,), (1353091207,), (1353091238,), (1353091390,), (1353091394,), (1353091396,), (1353091405,), (1353091407,), (1353091444,), (1353091448,), (1353091461,), (1353091468,), (1353091649,), (1353091699,), (1353091747,), (1353091797,), (1353091861,), (1353091925,), (1353092332,), (1353092372,), (1353092403,), (1353092430,), (1353092457,), (1353092501,), (1353092958,), (1353093036,), (1353093400,), (1353093410,), (1353093425,), (1353093892,), (1353093946,), (1353094584,), (1353094617,), (1353094644,), (1353094667,), (1353094682,), (1353095214,), (1353095289,), (1353095371,), (1353095429,), (1353095446,), (1353095636,), (1353095605,), (1353096830,), (1353097084,), (1353097095,), (1353097131,), (1353097508,), (1353097538,), (1353097568,), (1353097609,), (1353097648,), (1353097682,), (1353097875,), (1353097882,), (1353097886,), (1353098219,), (1353098248,), (1353098297,), (1353098314,), (1353098336,), (1353098341,), (1353098541,), (1353098593,), (1353098618,), (1353098648,), (1353098718,), (1353098764,), (1353098969,), (1353098976,), (1353098990,), (1353099002,), (1353099125,), (1353099155,), (1353099190,), (1353099237,), (1353099268,), (1353099295,), (1353099695,), (1353099726,), (1353099777,), (1353099781,), (1353099791,), (1353100064,), (1353100100,), (1353100141,), (1353100144,), (1353100423,), (1353100442,), (1353100471,), (1353100472,), (1353100476,), (1353100488,), (1353100517,), (1353100526,), (1353100530,), (1353100543,), (1353100643,), (1353100647,), (1353100652,), (1353102366,), (1353111678,), (1353111710,), (1353111738,), (1353111778,), (1353111817,), (1353111848,), (1353112060,), (1353112063,), (1353112066,), (1353112069,), (1353112499,), (1353113056,), (1353113077,), (1353113082,), (1353113084,), (1353113088,), (1353113116,), (1353113120,), (1353113124,), (1353113128,), (1353113131,), (1353113287,), (1353113318,), (1353113350,), (1353113378,), (1353113408,), (1353113447,), (1353113546,), (1353113550,), (1353113553,), (1353113557,), (1353113562,), (1353113611,), (1353113616,), (1353113623,), (1353113635,), (1353113638,), (1353113685,), (1353113700,), (1353113705,), (1353113710,), (1353113714,), (1353113750,), (1353113762,), (1353113779,), (1353113788,), (1353113794,), (1353113810,), (1353113872,), (1353113879,), (1353113885,), (1353113896,), (1353114185,), (1353114189,), (1353114193,), (1353114206,), (1353114230,), (1353114243,), (1353114298,), (1353114302,), (1353114307,), (1353114312,), (1353114378,), (1353114383,), (1353114388,), (1353114394,), (1353114659,), (1353114581,), (1353114591,), (1353114619,), (1353114646,), (1353114654,), (1353114949,), (1353114976,), (1353115047,), (1353115133,), (1353115138,), (1353115173,), (1353115194,), (1353115204,), (1353115229,), (1353115254,), (1353115356,), (1353115366,), (1353115370,), (1353115380,), (1353115410,), (1353115422,), (1353115542,), (1353115569,), (1353115586,), (1353115976,), (1353116007,), (1353116033,), (1353116089,), (1353116148,), (1353116371,), (1353116374,), (1353116377,), (1353116379,), (1353116381,), (1353116435,), (1353116438,), (1353116442,), (1353116445,), (1353116449,), (1353116451,), (1353116493,), (1353116504,), (1353116509,), (1353116511,), (1353116564,), (1353116568,), (1353116573,), (1353116577,), (1353116582,), (1353116589,), (1353116645,), (1353116649,), (1353116652,), (1353116653,), (1353116655,), (1353116819,), (1353116855,), (1353116858,), (1353116862,), (1353116866,), (1353116886,), (1353116988,), (1353116991,), (1353116993,), (1353116996,), (1353117050,), (1353117066,), (1353117095,), (1353117126,), (1353117154,), (1353117186,), (1353117410,), (1353117413,), (1353117415,), (1353117421,), (1353117426,), (1353117473,), (1353118535,), (1353118804,), (1353118813,), (1353118873,), (1353118876,), (1353118878,), (1353118955,), (1353118958,), (1353118963,), (1353118966,), (1353118971,), (1353119023,), (1353119234,), (1353119244,), (1353119247,), (1353119274,), (1353119309,), (1353119349,), (1353119464,), (1353119495,), (1353119521,), (1353119524,), (1353119527,), (1353119594,), (1353119597,), (1353119601,), (1353119604,), (1353119642,), (1353119662,), (1353119664,), (1353119670,), (1353119676,), (1353119758,), (1353119715,), (1353119742,), (1353119749,), (1353119952,), (1353119979,), (1353120006,), (1353120033,), (1353120042,), (1353120045,), (1353120113,), (1353120116,), (1353120121,), (1353120299,), (1353120302,), (1353120305,), (1353120307,), (1353120310,), (1353120312,), (1353120366,), (1353120370,), (1353120379,), (1353120382,), (1353120469,), (1353120471,), (1353120473,), (1353120476,), (1353120482,), (1353120486,), (1353120534,), (1353120539,), (1353120541,), (1353120589,), (1353120591,), (1353120593,), (1353120596,), (1353120708,), (1353120719,), (1353120782,), (1353120785,), (1353120793,), (1353120802,), (1353120809,), (1353120855,), (1353120867,), (1353120871,), (1353120872,), (1353120875,), (1353120878,), (1353120963,), (1353120967,), (1353120971,), (1353120975,), (1353120979,), (1353121023,), (1353121030,), (1353121032,), (1353121255,), (1353121263,), (1353121267,), (1353121271,), (1353121276,), (1353121437,), (1353121445,), (1353121451,), (1353121458,), (1353121469,), (1353122341,), (1353122166,), (1353122223,), (1353122282,), (1353122925,), (1353122976,), (1353123036,), (1353123081,), (1353123111,), (1353123151,), (1353123576,), (1353123649,), (1353123733,), (1353123821,), (1353123910,), (1353124386,), (1353124620,), (1353124658,), (1353124695,), (1353125059,), (1353125088,), (1353125125,), (1353125143,), (1353125149,), (1353125180,), (1353125326,), (1353125367,), (1353125404,), (1353127014,), (1353127047,), (1353127081,), (1353127113,), (1353127146,), (1353127176,), (1353127742,), (1353127840,), (1353127887,), (1353127920,), (1353128020,), (1353128037,), (1353128060,), (1353128073,), (1353128086,), (1353128090,), (1353128429,), (1353128534,), (1353128643,), (1353128751,), (1353128869,), (1353128980,), (1353129287,), (1353129337,), (1353129383,), (1353129453,), (1353129879,), (1353129909,), (1353129934,), (1353129973,), (1353130033,), (1353130084,), (1353130390,), (1353130396,), (1353130402,), (1353130406,), (1353130633,), (1353130639,), (1353130644,), (1353130654,), (1353130681,), (1353130697,), (1353130862,), (1353130868,), (1353130873,), (1353130876,), (1353130881,), (1353131055,), (1353131013,), (1353131017,), (1353131020,), (1353131025,), (1353131193,), (1353131201,), (1353131206,), (1353131211,), (1353131227,), (1353131237,), (1353131329,), (1353131333,), (1353131346,), (1353131352,), (1353131396,), (1353131405,), (1353131413,), (1353131419,), (1353131424,), (1353131446,), (1353131506,), (1353131517,), (1353131522,), (1353131528,), (1353131535,), (1353131539,), (1353131576,), (1353131582,), (1353131592,), (1353131599,), (1353131611,), (1353131686,), (1353131689,), (1353131691,), (1353131695,), (1353131702,), (1353131712,), (1353131750,), (1353131755,), (1353131763,), (1353131766,), (1353131789,), (1353131798,), (1353131967,), (1353131972,), (1353131981,), (1353131994,), (1353131998,), (1353132032,), (1353132038,), (1353132043,), (1353132048,), (1353132052,), (1353132134,), (1353132137,), (1353132149,), (1353132159,), (1353132238,), (1353132244,), (1353132249,), (1353132268,), (1353132275,), (1353132279,), (1353132308,), (1353132313,), (1353132317,), (1353132322,), (1353132327,), (1353132417,), (1353132498,), (1353132602,), (1353132557,), (1353132582,), (1353132586,), (1353132591,), (1353132597,), (1353132655,), (1353132660,), (1353132665,), (1353132670,), (1353132686,), (1353132789,), (1353132936,), (1353132975,), (1353133006,), (1353133038,), (1353133070,), (1353133215,), (1353133219,), (1353133223,), (1353133226,), (1353133765,), (1353133810,), (1353133844,), (1353133849,), (1353133854,), (1353133987,), (1353134004,), (1353134036,), (1353134070,), (1353134421,), (1353134449,), (1353134479,), (1353134490,), (1353134495,), (1353134646,), (1353134664,), (1353134680,), (1353134769,), (1353135009,), (1353135031,), (1353135035,), (1353135039,), (1353135042,), (1353135046,), (1353135085,), (1353135091,), (1353135350,), (1353135360,), (1353135371,), (1353135392,), (1353135537,), (1353135609,), (1353135669,), (1353135675,), (1353135680,), (1353135825,), (1353135842,), (1353135845,), (1353135851,), (1353135866,), (1353136055,), (1353136060,), (1353163056,), (1353163053,), (1353163289,), (1353163457,), (1353163612,), (1353163719,), (1353163723,), (1353163767,), (1353163787,), (1353163790,), (1353163822,), (1353163828,), (1353164461,), (1353164468,), (1353164603,), (1353164608,), (1353164644,), (1353164648,), (1353164931,), (1353164963,), (1353165435,), (1353166256,), (1353166265,), (1353166465,), (1353166469,), (1353166516,), (1353166591,), (1353166595,), (1353166623,), (1353166864,), (1353166892,), (1353167146,), (1353167276,), (1353168141,), (1353168517,), (1353168521,), (1353169027,), (1353169820,), (1353169917,), (1353170380,), (1353170417,), (1353174780,), (1353175039,), (1353175146,), (1353177629,), (1353177567,), (1353177600,), (1353177925,), (1353180426,), (1353180650,), (1353180683,), (1353181324,), (1353181604,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23042025': {'nb_upload': 26, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22325236]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1352915073, 1352915008, 1352915006, 1352914979, 1352914977, 1352914948, 1352914946, 1352914943, 1352914911, 1352914904, 1352914902, 1352914865, 1352914863, 1352914861, 1352914859, 1352914848, 1352914811, 1352914808, 1352914777, 1352914749, 1352914748, 1352914724, 1352914723, 1352914100, 1352914097, 1352913245] map_info['map_portfolio_photo'] : {22325236: [1352915073, 1352915008, 1352915006, 1352914979, 1352914977, 1352914948, 1352914946, 1352914943, 1352914911, 1352914904, 1352914902, 1352914865, 1352914863, 1352914861, 1352914859, 1352914848, 1352914811, 1352914808, 1352914777, 1352914749, 1352914748, 1352914724, 1352914723, 1352914100, 1352914097, 1352913245]} final : True mtd_id 4302 list_pids : [1352915073, 1352915008, 1352915006, 1352914979, 1352914977, 1352914948, 1352914946, 1352914943, 1352914911, 1352914904, 1352914902, 1352914865, 1352914863, 1352914861, 1352914859, 1352914848, 1352914811, 1352914808, 1352914777, 1352914749, 1352914748, 1352914724, 1352914723, 1352914100, 1352914097, 1352913245] Looping around the photos to save general results len do output : 1 /22325236Didn'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, '2755640') ('4302', '22325236', '1352915073', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352915008', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352915006', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914979', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914977', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914948', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914946', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914943', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914911', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914904', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914902', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914865', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914863', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914861', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914859', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914848', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914811', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914808', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914777', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914749', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914748', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914724', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914723', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914100', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352914097', None, None, None, None, None, '2755640') ('4302', None, None, None, None, None, None, None, '2755640') ('4302', '22325236', '1352913245', None, None, None, None, None, '2755640') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22325236', 'None', None, None, None, None, '2755640'), ('4302', '22325236', '1352915073', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352915008', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352915006', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914979', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914977', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914948', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914946', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914943', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914911', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914904', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914902', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914865', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914863', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914861', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914859', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914848', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914811', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914808', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914777', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914749', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914748', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914724', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914723', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914100', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352914097', None, None, None, None, None, '2755640'), ('4302', '22325236', '1352913245', None, None, None, None, None, '2755640')] time used for this insertion : 0.019199609756469727 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.697538375854492 time spend to save output : 0.01952815055847168 total time spend for step 5 : 2.717066526412964 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 (2755640) 3.03user 2.35system 0:16.01elapsed 33%CPU (0avgtext+0avgdata 168368maxresident)k 784inputs+22936outputs (9major+78778minor)pagefaults 0swaps