python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 4165046 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 (2943557) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2943557) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23284543 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2943557'] with mtr_portfolio_ids : ['23284543'] and first list_photo_ids : [] new path : /proc/4165046/ Name: python3 Umask: 0002 State: R (running) Tgid: 4165046 Ngid: 0 Pid: 4165046 PPid: 4165045 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4165046 NSpid: 4165046 NSpgid: 4157532 NSsid: 4157532 VmPeak: 1107760 kB VmSize: 1107760 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99232 kB VmRSS: 99232 kB RssAnon: 60472 kB RssFile: 38760 kB RssShmem: 0 kB VmData: 866508 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 568 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 54 nonvoluntary_ctxt_switches: 120 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4165046', 'Ngid': '0', 'Pid': '4165046', 'PPid': '4165045', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4165046', 'NSpid': '4165046', 'NSpgid': '4157532', 'NSsid': '4157532', 'VmPeak': '1107760 kB', 'VmSize': '1107760 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99232 kB', 'VmRSS': '99232 kB', 'RssAnon': '60472 kB', 'RssFile': '38760 kB', 'RssShmem': '0 kB', 'VmData': '866508 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '568 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '54', 'nonvoluntary_ctxt_switches': '120'} ('datou_batch_current', '4165046', '1107760', '0', '1107760', '866508', '99232', b'', 'marlene', '2943557') 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 (23284543) 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 (2943557 ) ) 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 (23284543) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1360687485, 'portfolio_id': 23284543}, {'photo_id': 1360687457, 'portfolio_id': 23284543}, {'photo_id': 1360687455, 'portfolio_id': 23284543}, {'photo_id': 1360687453, 'portfolio_id': 23284543}, {'photo_id': 1360687451, 'portfolio_id': 23284543}, {'photo_id': 1360687447, 'portfolio_id': 23284543}, {'photo_id': 1360687431, 'portfolio_id': 23284543}, {'photo_id': 1360687428, 'portfolio_id': 23284543}, {'photo_id': 1360687425, 'portfolio_id': 23284543}, {'photo_id': 1360687422, 'portfolio_id': 23284543}, {'photo_id': 1360687402, 'portfolio_id': 23284543}, {'photo_id': 1360687400, 'portfolio_id': 23284543}, {'photo_id': 1360687398, 'portfolio_id': 23284543}, {'photo_id': 1360687381, 'portfolio_id': 23284543}, {'photo_id': 1360687380, 'portfolio_id': 23284543}, {'photo_id': 1360687378, 'portfolio_id': 23284543}, {'photo_id': 1360687376, 'portfolio_id': 23284543}, {'photo_id': 1360687374, 'portfolio_id': 23284543}, {'photo_id': 1360687372, 'portfolio_id': 23284543}, {'photo_id': 1360687356, 'portfolio_id': 23284543}, {'photo_id': 1360687354, 'portfolio_id': 23284543}, {'photo_id': 1360687352, 'portfolio_id': 23284543}, {'photo_id': 1360687350, 'portfolio_id': 23284543}, {'photo_id': 1360687348, 'portfolio_id': 23284543}, {'photo_id': 1360687309, 'portfolio_id': 23284543}, {'photo_id': 1360687306, 'portfolio_id': 23284543}, {'photo_id': 1360687302, 'portfolio_id': 23284543}, {'photo_id': 1360687251, 'portfolio_id': 23284543}] map_portfolio_id_photo_id: {23284543: [1360687485, 1360687457, 1360687455, 1360687453, 1360687451, 1360687447, 1360687431, 1360687428, 1360687425, 1360687422, 1360687402, 1360687400, 1360687398, 1360687381, 1360687380, 1360687378, 1360687376, 1360687374, 1360687372, 1360687356, 1360687354, 1360687352, 1360687350, 1360687348, 1360687309, 1360687306, 1360687302, 1360687251]} ##### 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.01583385467529297 #### 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 Mon May 26 15:01:57 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 (23284543) 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 : 23284543 get user id for portfolio 23284543 get sub ptf for main ptf 23284543, type 3726 and hashtags ['plastique', 'autre_refus', 'Teint_Dans_La_Masse', 'metal', 'Carton_brun', 'mal_croppe', 'papier', 'cartonnette', 'flou', 'environnement', 'kraft', '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`=23284543 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','Teint_Dans_La_Masse','metal','Carton_brun','mal_croppe','papier','cartonnette','flou','environnement','kraft','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`=23284543 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','Teint_Dans_La_Masse','metal','Carton_brun','mal_croppe','papier','cartonnette','flou','environnement','kraft','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 23284543, 'sub_port_id': 23284565, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531627, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 29)}, 'Carton_gris': {'main_port_id': 23284543, 'sub_port_id': 23284566, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531628, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 29)}, 'flou': {'main_port_id': 23284543, 'sub_port_id': 23284567, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531629, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 29)}, 'kraft': {'main_port_id': 23284543, 'sub_port_id': 23284568, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531630, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 29)}, 'Carton_brun': {'main_port_id': 23284543, 'sub_port_id': 23284569, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531631, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 23284543, 'sub_port_id': 23284570, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531632, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 29)}, 'cartonnette': {'main_port_id': 23284543, 'sub_port_id': 23284571, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531633, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 29)}, 'autre_refus': {'main_port_id': 23284543, 'sub_port_id': 23284572, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531634, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 29)}, 'plastique': {'main_port_id': 23284543, 'sub_port_id': 23284573, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531635, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 29)}, 'environnement': {'main_port_id': 23284543, 'sub_port_id': 23284574, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531636, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 29)}, 'papier': {'main_port_id': 23284543, 'sub_port_id': 23284575, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531637, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 29)}, 'metal': {'main_port_id': 23284543, 'sub_port_id': 23284576, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531638, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23284565 , 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=23284543 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 (23284565) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23284543) result : ((1360687251,), (1360687302,), (1360687306,), (1360687309,), (1360687348,), (1360687350,), (1360687352,), (1360687354,), (1360687356,), (1360687372,), (1360687374,), (1360687376,), (1360687378,), (1360687380,), (1360687381,), (1360687398,), (1360687400,), (1360687402,), (1360687422,), (1360687425,), (1360687428,), (1360687431,), (1360687447,), (1360687451,), (1360687453,), (1360687455,), (1360687457,), (1360687485,)) 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 (1360687400) 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 23284566 , 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=23284543 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 (23284566) result : ((1360687581,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23284543) result : ((1360687251,), (1360687302,), (1360687306,), (1360687309,), (1360687348,), (1360687350,), (1360687352,), (1360687354,), (1360687356,), (1360687372,), (1360687374,), (1360687376,), (1360687378,), (1360687380,), (1360687381,), (1360687398,), (1360687400,), (1360687402,), (1360687422,), (1360687425,), (1360687428,), (1360687431,), (1360687447,), (1360687451,), (1360687453,), (1360687455,), (1360687457,), (1360687485,)) 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 (1360687400) 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 23284567 , 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=23284543 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 (23284567) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23284543) result : ((1360687251,), (1360687302,), (1360687306,), (1360687309,), (1360687348,), (1360687350,), (1360687352,), (1360687354,), (1360687356,), (1360687372,), (1360687374,), (1360687376,), (1360687378,), (1360687380,), (1360687381,), (1360687398,), (1360687400,), (1360687402,), (1360687422,), (1360687425,), (1360687428,), (1360687431,), (1360687447,), (1360687451,), (1360687453,), (1360687455,), (1360687457,), (1360687485,)) 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 (1360687400) 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 23284568 , 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=23284543 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 (23284568) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23284543) result : ((1360687251,), (1360687302,), (1360687306,), (1360687309,), (1360687348,), (1360687350,), (1360687352,), (1360687354,), (1360687356,), (1360687372,), (1360687374,), (1360687376,), (1360687378,), (1360687380,), (1360687381,), (1360687398,), (1360687400,), (1360687402,), (1360687422,), (1360687425,), (1360687428,), (1360687431,), (1360687447,), (1360687451,), (1360687453,), (1360687455,), (1360687457,), (1360687485,)) 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 (1360687400) 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 23284569 , 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=23284543 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 (23284569) result : ((1360687543,), (1360687583,), (1360687584,), (1360687585,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23284543) result : ((1360687251,), (1360687302,), (1360687306,), (1360687309,), (1360687348,), (1360687350,), (1360687352,), (1360687354,), (1360687356,), (1360687372,), (1360687374,), (1360687376,), (1360687378,), (1360687380,), (1360687381,), (1360687398,), (1360687400,), (1360687402,), (1360687422,), (1360687425,), (1360687428,), (1360687431,), (1360687447,), (1360687451,), (1360687453,), (1360687455,), (1360687457,), (1360687485,)) 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 (1360687400) 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 23284570 , 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=23284543 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 (23284570) result : ((1360687412,), (1360687574,), (1360687575,), (1360687576,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23284543) result : ((1360687251,), (1360687302,), (1360687306,), (1360687309,), (1360687348,), (1360687350,), (1360687352,), (1360687354,), (1360687356,), (1360687372,), (1360687374,), (1360687376,), (1360687378,), (1360687380,), (1360687381,), (1360687398,), (1360687400,), (1360687402,), (1360687422,), (1360687425,), (1360687428,), (1360687431,), (1360687447,), (1360687451,), (1360687453,), (1360687455,), (1360687457,), (1360687485,)) 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 (1360687400) 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 23284571 , 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=23284543 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 (23284571) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23284543) result : ((1360687251,), (1360687302,), (1360687306,), (1360687309,), (1360687348,), (1360687350,), (1360687352,), (1360687354,), (1360687356,), (1360687372,), (1360687374,), (1360687376,), (1360687378,), (1360687380,), (1360687381,), (1360687398,), (1360687400,), (1360687402,), (1360687422,), (1360687425,), (1360687428,), (1360687431,), (1360687447,), (1360687451,), (1360687453,), (1360687455,), (1360687457,), (1360687485,)) 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 (1360687400) 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 23284572 , 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=23284543 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 (23284572) result : ((1360687578,), (1360687579,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23284543) result : ((1360687251,), (1360687302,), (1360687306,), (1360687309,), (1360687348,), (1360687350,), (1360687352,), (1360687354,), (1360687356,), (1360687372,), (1360687374,), (1360687376,), (1360687378,), (1360687380,), (1360687381,), (1360687398,), (1360687400,), (1360687402,), (1360687422,), (1360687425,), (1360687428,), (1360687431,), (1360687447,), (1360687451,), (1360687453,), (1360687455,), (1360687457,), (1360687485,)) 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 (1360687400) 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 23284573 , 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=23284543 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 (23284573) result : ((1360687586,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23284543) result : ((1360687251,), (1360687302,), (1360687306,), (1360687309,), (1360687348,), (1360687350,), (1360687352,), (1360687354,), (1360687356,), (1360687372,), (1360687374,), (1360687376,), (1360687378,), (1360687380,), (1360687381,), (1360687398,), (1360687400,), (1360687402,), (1360687422,), (1360687425,), (1360687428,), (1360687431,), (1360687447,), (1360687451,), (1360687453,), (1360687455,), (1360687457,), (1360687485,)) 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 (1360687400) 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 23284574 , 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=23284543 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 (23284574) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23284543) result : ((1360687251,), (1360687302,), (1360687306,), (1360687309,), (1360687348,), (1360687350,), (1360687352,), (1360687354,), (1360687356,), (1360687372,), (1360687374,), (1360687376,), (1360687378,), (1360687380,), (1360687381,), (1360687398,), (1360687400,), (1360687402,), (1360687422,), (1360687425,), (1360687428,), (1360687431,), (1360687447,), (1360687451,), (1360687453,), (1360687455,), (1360687457,), (1360687485,)) 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 (1360687400) 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 23284575 , 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=23284543 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 (23284575) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23284543) result : ((1360687251,), (1360687302,), (1360687306,), (1360687309,), (1360687348,), (1360687350,), (1360687352,), (1360687354,), (1360687356,), (1360687372,), (1360687374,), (1360687376,), (1360687378,), (1360687380,), (1360687381,), (1360687398,), (1360687400,), (1360687402,), (1360687422,), (1360687425,), (1360687428,), (1360687431,), (1360687447,), (1360687451,), (1360687453,), (1360687455,), (1360687457,), (1360687485,)) 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 (1360687400) 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 23284576 , 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=23284543 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 (23284576) result : ((1360687545,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23284543) result : ((1360687251,), (1360687302,), (1360687306,), (1360687309,), (1360687348,), (1360687350,), (1360687352,), (1360687354,), (1360687356,), (1360687372,), (1360687374,), (1360687376,), (1360687378,), (1360687380,), (1360687381,), (1360687398,), (1360687400,), (1360687402,), (1360687422,), (1360687425,), (1360687428,), (1360687431,), (1360687447,), (1360687451,), (1360687453,), (1360687455,), (1360687457,), (1360687485,)) 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 (1360687400) 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`=23284543 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','Teint_Dans_La_Masse','metal','Carton_brun','mal_croppe','papier','cartonnette','flou','environnement','kraft','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`=23284543 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','Teint_Dans_La_Masse','metal','Carton_brun','mal_croppe','papier','cartonnette','flou','environnement','kraft','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 23284543, 'sub_port_id': 23284578, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531639, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 31)}, 'Carton_gris': {'main_port_id': 23284543, 'sub_port_id': 23284579, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531640, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 31)}, 'flou': {'main_port_id': 23284543, 'sub_port_id': 23284580, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531641, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 31)}, 'kraft': {'main_port_id': 23284543, 'sub_port_id': 23284581, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531642, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 31)}, 'Carton_brun': {'main_port_id': 23284543, 'sub_port_id': 23284582, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531643, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 23284543, 'sub_port_id': 23284583, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531644, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 31)}, 'cartonnette': {'main_port_id': 23284543, 'sub_port_id': 23284584, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531645, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 31)}, 'autre_refus': {'main_port_id': 23284543, 'sub_port_id': 23284585, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531646, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 31)}, 'plastique': {'main_port_id': 23284543, 'sub_port_id': 23284586, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531647, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 31)}, 'environnement': {'main_port_id': 23284543, 'sub_port_id': 23284587, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531648, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 31)}, 'papier': {'main_port_id': 23284543, 'sub_port_id': 23284588, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531649, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 31)}, 'metal': {'main_port_id': 23284543, 'sub_port_id': 23284589, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15531650, 'last_updated_at': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 2, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 2, 47, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23284578,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23284565 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23284579,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23284566 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23284580,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23284567 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23284581,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23284568 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23284582,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23284569 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23284583,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23284570 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23284584,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23284571 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23284585,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23284572 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23284586,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23284573 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23284587,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23284574 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23284588,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23284575 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23284589,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23284576 lien utilise dans velours : https://www.fotonower.com/velours/23284578,23284579,23284580,23284581,23284582,23284583,23284584,23284585,23284586,23284587,23284588,23284589?tags=mal_croppe,Carton_gris,flou,kraft,Carton_brun,Teint_Dans_La_Masse,cartonnette,autre_refus,plastique,environnement,papier,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23284543]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1360687485, 1360687457, 1360687455, 1360687453, 1360687451, 1360687447, 1360687431, 1360687428, 1360687425, 1360687422, 1360687402, 1360687400, 1360687398, 1360687381, 1360687380, 1360687378, 1360687376, 1360687374, 1360687372, 1360687356, 1360687354, 1360687352, 1360687350, 1360687348, 1360687309, 1360687306, 1360687302, 1360687251] map_info['map_portfolio_photo'] : {23284543: [1360687485, 1360687457, 1360687455, 1360687453, 1360687451, 1360687447, 1360687431, 1360687428, 1360687425, 1360687422, 1360687402, 1360687400, 1360687398, 1360687381, 1360687380, 1360687378, 1360687376, 1360687374, 1360687372, 1360687356, 1360687354, 1360687352, 1360687350, 1360687348, 1360687309, 1360687306, 1360687302, 1360687251]} final : False mtd_id 4302 list_pids : [1360687485, 1360687457, 1360687455, 1360687453, 1360687451, 1360687447, 1360687431, 1360687428, 1360687425, 1360687422, 1360687402, 1360687400, 1360687398, 1360687381, 1360687380, 1360687378, 1360687376, 1360687374, 1360687372, 1360687356, 1360687354, 1360687352, 1360687350, 1360687348, 1360687309, 1360687306, 1360687302, 1360687251] Looping around the photos to save general results len do output : 1 /23284543. 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, '2943557') ('4302', '23284543', '1360687485', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687457', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687455', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687453', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687451', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687447', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687431', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687428', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687425', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687422', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687402', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687400', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687398', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687381', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687380', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687378', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687376', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687374', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687372', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687356', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687354', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687352', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687350', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687348', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687309', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687306', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687302', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687251', None, None, None, None, None, '2943557') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 29 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '23284543', "{'mal_croppe': 23284565, 'Carton_gris': 23284566, 'flou': 23284567, 'kraft': 23284568, 'Carton_brun': 23284569, 'Teint_Dans_La_Masse': 23284570, 'cartonnette': 23284571, 'autre_refus': 23284572, 'plastique': 23284573, 'environnement': 23284574, 'papier': 23284575, 'metal': 23284576}", None, None, None, None, '2943557'), ('4302', '23284543', '1360687485', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687457', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687455', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687453', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687451', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687447', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687431', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687428', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687425', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687422', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687402', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687400', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687398', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687381', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687380', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687378', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687376', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687374', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687372', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687356', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687354', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687352', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687350', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687348', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687309', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687306', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687302', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687251', None, None, None, None, None, '2943557')] time used for this insertion : 0.016429662704467773 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.44352054595947266 time spend to save output : 0.016757965087890625 total time spend for step 1 : 0.4602785110473633 step2:final Mon May 26 15:01:58 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 (23284543) 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 23284543 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1360687251,1360687309,1360687306,1360687302,1360687356,1360687354,1360687352,1360687350,1360687348,1360687381,1360687380,1360687378,1360687376,1360687374,1360687372,1360687402,1360687400,1360687398,1360687431,1360687428,1360687425,1360687422,1360687457,1360687455,1360687453,1360687451,1360687447,1360687485); 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([23284543]) Inside saveOutput : final : False verbose : True original output for save of step final : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} new output for save of step final : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} [1360687485, 1360687457, 1360687455, 1360687453, 1360687451, 1360687447, 1360687431, 1360687428, 1360687425, 1360687422, 1360687402, 1360687400, 1360687398, 1360687381, 1360687380, 1360687378, 1360687376, 1360687374, 1360687372, 1360687356, 1360687354, 1360687352, 1360687350, 1360687348, 1360687309, 1360687306, 1360687302, 1360687251] map_info['map_portfolio_photo'] : {23284543: [1360687485, 1360687457, 1360687455, 1360687453, 1360687451, 1360687447, 1360687431, 1360687428, 1360687425, 1360687422, 1360687402, 1360687400, 1360687398, 1360687381, 1360687380, 1360687378, 1360687376, 1360687374, 1360687372, 1360687356, 1360687354, 1360687352, 1360687350, 1360687348, 1360687309, 1360687306, 1360687302, 1360687251]} final : False mtd_id 4302 list_pids : [1360687485, 1360687457, 1360687455, 1360687453, 1360687451, 1360687447, 1360687431, 1360687428, 1360687425, 1360687422, 1360687402, 1360687400, 1360687398, 1360687381, 1360687380, 1360687378, 1360687376, 1360687374, 1360687372, 1360687356, 1360687354, 1360687352, 1360687350, 1360687348, 1360687309, 1360687306, 1360687302, 1360687251] Looping around the photos to save general results len do output : 28 /1360687485.Didn't retrieve data . /1360687457.Didn't retrieve data . /1360687455.Didn't retrieve data . /1360687453.Didn't retrieve data . /1360687451.Didn't retrieve data . /1360687447.Didn't retrieve data . /1360687431.Didn't retrieve data . /1360687428.Didn't retrieve data . /1360687425.Didn't retrieve data . /1360687422.Didn't retrieve data . /1360687402.Didn't retrieve data . /1360687400.Didn't retrieve data . /1360687398.Didn't retrieve data . /1360687381.Didn't retrieve data . /1360687380.Didn't retrieve data . /1360687378.Didn't retrieve data . /1360687376.Didn't retrieve data . /1360687374.Didn't retrieve data . /1360687372.Didn't retrieve data . /1360687356.Didn't retrieve data . /1360687354.Didn't retrieve data . /1360687352.Didn't retrieve data . /1360687350.Didn't retrieve data . /1360687348.Didn't retrieve data . /1360687309.Didn't retrieve data . /1360687306.Didn't retrieve data . /1360687302.Didn't retrieve data . /1360687251.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, '2943557') ('4302', '23284543', '1360687485', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687457', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687455', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687453', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687451', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687447', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687431', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687428', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687425', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687422', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687402', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687400', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687398', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687381', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687380', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687378', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687376', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687374', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687372', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687356', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687354', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687352', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687350', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687348', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687309', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687306', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687302', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687251', None, None, None, None, None, '2943557') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 84 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '23284543', '1360687485', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687457', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687455', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687453', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687451', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687447', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687431', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687428', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687425', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687422', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687402', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687400', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687398', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687381', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687380', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687378', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687376', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687374', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687372', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687356', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687354', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687352', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687350', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687348', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687309', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687306', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687302', '0.07849162160659186', None, None, None, None, '2943557'), ('4302', '23284543', '1360687251', '0.07849162160659186', None, None, None, None, '2943557')] time used for this insertion : 0.015166997909545898 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06390976905822754 time spend to save output : 0.01610589027404785 total time spend for step 2 : 0.08001565933227539 step3:velours_tree Mon May 26 15:01:58 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 : {23284543: [{'mal_croppe': 23284565, 'Carton_gris': 23284566, 'flou': 23284567, 'kraft': 23284568, 'Carton_brun': 23284569, 'Teint_Dans_La_Masse': 23284570, 'cartonnette': 23284571, 'autre_refus': 23284572, 'plastique': 23284573, 'environnement': 23284574, 'papier': 23284575, 'metal': 23284576}]} input_args_next_step : {23284543: ()} output_args : {23284543: [{'mal_croppe': 23284565, 'Carton_gris': 23284566, 'flou': 23284567, 'kraft': 23284568, 'Carton_brun': 23284569, 'Teint_Dans_La_Masse': 23284570, 'cartonnette': 23284571, 'autre_refus': 23284572, 'plastique': 23284573, 'environnement': 23284574, 'papier': 23284575, 'metal': 23284576}]} args : 23284543 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 : ({'mal_croppe': 23284565, 'Carton_gris': 23284566, 'flou': 23284567, 'kraft': 23284568, 'Carton_brun': 23284569, 'Teint_Dans_La_Masse': 23284570, 'cartonnette': 23284571, 'autre_refus': 23284572, 'plastique': 23284573, 'environnement': 23284574, 'papier': 23284575, 'metal': 23284576},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23284543) 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([23284543]) 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.28354954719543457 time spend to save output : 5.125999450683594e-05 total time spend for step 3 : 0.2836008071899414 step4:send_mail_cod Mon May 26 15:01:58 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 : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} input_args_next_step : {1360687485: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687485 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687457 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687455 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687453 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687451 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687447 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687431 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687428 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687425 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687422 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687402 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687400 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687398 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687381 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687380 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687378 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687376 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687374 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687372 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687356 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687354 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687352 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687350 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687348 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687309 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687306 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687302 depend.output_id : 0 input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ()} output_args : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',)} args : 1360687251 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 : {23284543: [{'mal_croppe': 23284565, 'Carton_gris': 23284566, 'flou': 23284567, 'kraft': 23284568, 'Carton_brun': 23284569, 'Teint_Dans_La_Masse': 23284570, 'cartonnette': 23284571, 'autre_refus': 23284572, 'plastique': 23284573, 'environnement': 23284574, 'papier': 23284575, 'metal': 23284576}]} input_args_next_step : {1360687485: ('0.07849162160659186',), 1360687457: ('0.07849162160659186',), 1360687455: ('0.07849162160659186',), 1360687453: ('0.07849162160659186',), 1360687451: ('0.07849162160659186',), 1360687447: ('0.07849162160659186',), 1360687431: ('0.07849162160659186',), 1360687428: ('0.07849162160659186',), 1360687425: ('0.07849162160659186',), 1360687422: ('0.07849162160659186',), 1360687402: ('0.07849162160659186',), 1360687400: ('0.07849162160659186',), 1360687398: ('0.07849162160659186',), 1360687381: ('0.07849162160659186',), 1360687380: ('0.07849162160659186',), 1360687378: ('0.07849162160659186',), 1360687376: ('0.07849162160659186',), 1360687374: ('0.07849162160659186',), 1360687372: ('0.07849162160659186',), 1360687356: ('0.07849162160659186',), 1360687354: ('0.07849162160659186',), 1360687352: ('0.07849162160659186',), 1360687350: ('0.07849162160659186',), 1360687348: ('0.07849162160659186',), 1360687309: ('0.07849162160659186',), 1360687306: ('0.07849162160659186',), 1360687302: ('0.07849162160659186',), 1360687251: ('0.07849162160659186',), 23284543: ()} output_args : {23284543: [{'mal_croppe': 23284565, 'Carton_gris': 23284566, 'flou': 23284567, 'kraft': 23284568, 'Carton_brun': 23284569, 'Teint_Dans_La_Masse': 23284570, 'cartonnette': 23284571, 'autre_refus': 23284572, 'plastique': 23284573, 'environnement': 23284574, 'papier': 23284575, 'metal': 23284576}]} args : 23284543 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :29, first value : ('0.07849162160659186',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23284543) 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 (1360687485,1360687457,1360687455,1360687453,1360687451,1360687447,1360687431,1360687428,1360687425,1360687422,1360687402,1360687400,1360687398,1360687381,1360687380,1360687378,1360687376,1360687374,1360687372,1360687356,1360687354,1360687352,1360687350,1360687348,1360687309,1360687306,1360687302,1360687251) Found this number of photos: 28 ##### Call download_photos : nb_thread : 5 begin to download photo : 1360687251 begin to download photo : 1360687352 begin to download photo : 1360687378 begin to download photo : 1360687422 begin to download photo : 1360687453 download finish for photo 1360687251 begin to download photo : 1360687302 download finish for photo 1360687378 begin to download photo : 1360687380 download finish for photo 1360687352 begin to download photo : 1360687354 download finish for photo 1360687422 begin to download photo : 1360687425 download finish for photo 1360687453 begin to download photo : 1360687455 download finish for photo 1360687302 begin to download photo : 1360687306 download finish for photo 1360687380 begin to download photo : 1360687381 download finish for photo 1360687354 begin to download photo : 1360687356 download finish for photo 1360687425 begin to download photo : 1360687428 download finish for photo 1360687455 begin to download photo : 1360687457 download finish for photo 1360687306 begin to download photo : 1360687309 download finish for photo 1360687356 begin to download photo : 1360687372 download finish for photo 1360687381 begin to download photo : 1360687398 download finish for photo 1360687428 begin to download photo : 1360687431 download finish for photo 1360687457 begin to download photo : 1360687485 download finish for photo 1360687309 begin to download photo : 1360687348 download finish for photo 1360687398 begin to download photo : 1360687400 download finish for photo 1360687372 begin to download photo : 1360687374 download finish for photo 1360687431 begin to download photo : 1360687447 download finish for photo 1360687485 download finish for photo 1360687348 begin to download photo : 1360687350 download finish for photo 1360687400 begin to download photo : 1360687402 download finish for photo 1360687374 begin to download photo : 1360687376 download finish for photo 1360687447 begin to download photo : 1360687451 download finish for photo 1360687350 download finish for photo 1360687402 download finish for photo 1360687376 download finish for photo 1360687451 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette232845651748264519/ imagette232845671748264519/ imagette232845681748264519/ imagette232845711748264519/ length of list_filenames : 28 ; length of list_pids : 28 ; length of list_args : 28 results_Auto_P23284543_26-05-2025_15_01_59.pdf 23284565 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=23284565 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette232845651748264519 23284567 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=23284567 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette232845671748264519 23284568 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=23284568 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette232845681748264519 23284571 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=23284571 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette232845711748264519 23284572 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=23284572 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1360687578: '1747961365_2710542_1360687455_cf67fd287865bdb9514b517310dea291_rle_crop_3810908960_0.png', 1360687579: '1747961365_2710542_1360687447_f408fbd70f331d0a2ede4b2120cd8740_rle_crop_3810908999_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/29d4e436a3d78cf8a89ebdcc9fb76685_27999399.png change filename to text .imagette232845721748264519/ imagette232845721748264519/1747961365_2710542_1360687455_cf67fd287865bdb9514b517310dea291_rle_crop_3810908960_0.png.png imagette232845721748264519/1747961365_2710542_1360687447_f408fbd70f331d0a2ede4b2120cd8740_rle_crop_3810908999_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/fdc0d7d91f49b13fdfa37ca6a676fef7_99797691.png imagette232845721748264519 23284573 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=23284573 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1360687586: '1747961365_2710542_1360687447_f408fbd70f331d0a2ede4b2120cd8740_rle_crop_3810909010_0.png'} change filename to text .imagette232845731748264519/ imagette232845731748264519/1747961365_2710542_1360687447_f408fbd70f331d0a2ede4b2120cd8740_rle_crop_3810909010_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/72e0639b7ea5a2bf9fdcf9a508aa7f9b_12580958.png imagette232845731748264519 23284576 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=23284576 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1360687545: '1747961307_2709893_1360687422_dae17c66035273c010ee4cb0e7dbb382_rle_crop_3810908845_0.png'} change filename to text .imagette232845761748264519/ imagette232845761748264519/1747961307_2709893_1360687422_dae17c66035273c010ee4cb0e7dbb382_rle_crop_3810908845_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/e72345a349a3f74e945d90d3a5d882b2_44041476.png imagette232845761748264519 23284566 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=23284566 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1360687581: '1747961365_2710542_1360687447_f408fbd70f331d0a2ede4b2120cd8740_rle_crop_3810908998_0.png'} change filename to text .imagette232845661748264520/ imagette232845661748264520/1747961365_2710542_1360687447_f408fbd70f331d0a2ede4b2120cd8740_rle_crop_3810908998_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/f12490b8f41cefc56efdcb988ec8b3a2_74610272.png imagette232845661748264520 23284569 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=23284569 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1360687543: '1747961307_2709893_1360687425_b4d8d4bf2e2f958e77acb85f66dc9c12_rle_crop_3810908836_0.png', 1360687583: '1747961365_2710542_1360687455_cf67fd287865bdb9514b517310dea291_rle_crop_3810908962_0.png', 1360687584: '1747961365_2710542_1360687453_23fa6013752262cce8c750535371c0e0_rle_crop_3810908976_0.png', 1360687585: '1747961365_2710542_1360687451_b40cd5b6619507c54ac84301c678994a_rle_crop_3810908990_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/4f911b1dfd2b5e6897b7f704b68d8450_86623055.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/2770c0c10370fc8c5bb42214ab21dfea_35789314.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/b25aab4c302858dd93506e4cb31d3454_62189349.png change filename to text .imagette232845691748264520/ imagette232845691748264520/1747961365_2710542_1360687451_b40cd5b6619507c54ac84301c678994a_rle_crop_3810908990_0.png.png imagette232845691748264520/1747961365_2710542_1360687455_cf67fd287865bdb9514b517310dea291_rle_crop_3810908962_0.png.png imagette232845691748264520/1747961365_2710542_1360687453_23fa6013752262cce8c750535371c0e0_rle_crop_3810908976_0.png.png imagette232845691748264520/1747961307_2709893_1360687425_b4d8d4bf2e2f958e77acb85f66dc9c12_rle_crop_3810908836_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/f2c6c9e1f7fc24c892fd479cd134a033_39753874.png imagette232845691748264520 23284570 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=23284570 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1360687412: '1747961005_2706809_1360687302_7f469b8865ead32859a2f3adad12c4ec_rle_crop_3810908771_0.png', 1360687574: '1747961365_2710542_1360687447_f408fbd70f331d0a2ede4b2120cd8740_rle_crop_3810909003_0.png', 1360687575: '1747961365_2710542_1360687447_f408fbd70f331d0a2ede4b2120cd8740_rle_crop_3810909002_0.png', 1360687576: '1747961365_2710542_1360687447_f408fbd70f331d0a2ede4b2120cd8740_rle_crop_3810909005_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/4528a9ec9f2f7651b03310c82703d3e8_21441343.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/581a06dc652dac7b6d6014fa49ddbb02_29165656.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/f9de6b9162ad7b8f973776ca2731277a_42412860.png change filename to text .imagette232845701748264520/ imagette232845701748264520/1747961005_2706809_1360687302_7f469b8865ead32859a2f3adad12c4ec_rle_crop_3810908771_0.png.png imagette232845701748264520/1747961365_2710542_1360687447_f408fbd70f331d0a2ede4b2120cd8740_rle_crop_3810909005_0.png.png imagette232845701748264520/1747961365_2710542_1360687447_f408fbd70f331d0a2ede4b2120cd8740_rle_crop_3810909002_0.png.png imagette232845701748264520/1747961365_2710542_1360687447_f408fbd70f331d0a2ede4b2120cd8740_rle_crop_3810909003_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/25a1bf739cb21c2061365d7c95cbff78_59879130.png imagette232845701748264520 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23284543 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23284578,23284579,23284580,23284581,23284582,23284583,23284584,23284585,23284586,23284587,23284588,23284589?tags=mal_croppe,Carton_gris,flou,kraft,Carton_brun,Teint_Dans_La_Masse,cartonnette,autre_refus,plastique,environnement,papier,metal your option no_mail is active, we will not send the real mail to your client args[1360687485] : ('0.07849162160659186',) no score found for photo 1360687485 We are sending mail with results at report@fotonower.com args[1360687457] : ('0.07849162160659186',) no score found for photo 1360687457 We are sending mail with results at report@fotonower.com args[1360687455] : ('0.07849162160659186',) no score found for photo 1360687455 We are sending mail with results at report@fotonower.com args[1360687453] : ('0.07849162160659186',) no score found for photo 1360687453 We are sending mail with results at report@fotonower.com args[1360687451] : ('0.07849162160659186',) no score found for photo 1360687451 We are sending mail with results at report@fotonower.com args[1360687447] : ('0.07849162160659186',) no score found for photo 1360687447 We are sending mail with results at report@fotonower.com args[1360687431] : ('0.07849162160659186',) no score found for photo 1360687431 We are sending mail with results at report@fotonower.com args[1360687428] : ('0.07849162160659186',) no score found for photo 1360687428 We are sending mail with results at report@fotonower.com args[1360687425] : ('0.07849162160659186',) no score found for photo 1360687425 We are sending mail with results at report@fotonower.com args[1360687422] : ('0.07849162160659186',) no score found for photo 1360687422 We are sending mail with results at report@fotonower.com args[1360687402] : ('0.07849162160659186',) no score found for photo 1360687402 We are sending mail with results at report@fotonower.com args[1360687400] : ('0.07849162160659186',) no score found for photo 1360687400 We are sending mail with results at report@fotonower.com args[1360687398] : ('0.07849162160659186',) no score found for photo 1360687398 We are sending mail with results at report@fotonower.com args[1360687381] : ('0.07849162160659186',) no score found for photo 1360687381 We are sending mail with results at report@fotonower.com args[1360687380] : ('0.07849162160659186',) no score found for photo 1360687380 We are sending mail with results at report@fotonower.com args[1360687378] : ('0.07849162160659186',) no score found for photo 1360687378 We are sending mail with results at report@fotonower.com args[1360687376] : ('0.07849162160659186',) no score found for photo 1360687376 We are sending mail with results at report@fotonower.com args[1360687374] : ('0.07849162160659186',) no score found for photo 1360687374 We are sending mail with results at report@fotonower.com args[1360687372] : ('0.07849162160659186',) no score found for photo 1360687372 We are sending mail with results at report@fotonower.com args[1360687356] : ('0.07849162160659186',) no score found for photo 1360687356 We are sending mail with results at report@fotonower.com args[1360687354] : ('0.07849162160659186',) no score found for photo 1360687354 We are sending mail with results at report@fotonower.com args[1360687352] : ('0.07849162160659186',) no score found for photo 1360687352 We are sending mail with results at report@fotonower.com args[1360687350] : ('0.07849162160659186',) no score found for photo 1360687350 We are sending mail with results at report@fotonower.com args[1360687348] : ('0.07849162160659186',) no score found for photo 1360687348 We are sending mail with results at report@fotonower.com args[1360687309] : ('0.07849162160659186',) no score found for photo 1360687309 We are sending mail with results at report@fotonower.com args[1360687306] : ('0.07849162160659186',) no score found for photo 1360687306 We are sending mail with results at report@fotonower.com args[1360687302] : ('0.07849162160659186',) no score found for photo 1360687302 We are sending mail with results at report@fotonower.com args[1360687251] : ('0.07849162160659186',) no score found for photo 1360687251 We are sending mail with results at report@fotonower.com refus_total : 0.07849162160659186 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=23284543 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_P23284543_26-05-2025_15_01_59.pdf results_Auto_P23284543_26-05-2025_15_01_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284543_26-05-2025_15_01_59.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','23284543','results_Auto_P23284543_26-05-2025_15_01_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284543_26-05-2025_15_01_59.pdf','pdf','','0.25','0.07849162160659186') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23284543]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1360687485, 1360687457, 1360687455, 1360687453, 1360687451, 1360687447, 1360687431, 1360687428, 1360687425, 1360687422, 1360687402, 1360687400, 1360687398, 1360687381, 1360687380, 1360687378, 1360687376, 1360687374, 1360687372, 1360687356, 1360687354, 1360687352, 1360687350, 1360687348, 1360687309, 1360687306, 1360687302, 1360687251] map_info['map_portfolio_photo'] : {23284543: [1360687485, 1360687457, 1360687455, 1360687453, 1360687451, 1360687447, 1360687431, 1360687428, 1360687425, 1360687422, 1360687402, 1360687400, 1360687398, 1360687381, 1360687380, 1360687378, 1360687376, 1360687374, 1360687372, 1360687356, 1360687354, 1360687352, 1360687350, 1360687348, 1360687309, 1360687306, 1360687302, 1360687251]} final : False mtd_id 4302 list_pids : [1360687485, 1360687457, 1360687455, 1360687453, 1360687451, 1360687447, 1360687431, 1360687428, 1360687425, 1360687422, 1360687402, 1360687400, 1360687398, 1360687381, 1360687380, 1360687378, 1360687376, 1360687374, 1360687372, 1360687356, 1360687354, 1360687352, 1360687350, 1360687348, 1360687309, 1360687306, 1360687302, 1360687251] 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, '2943557') ('4302', '23284543', '1360687485', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687457', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687455', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687453', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687451', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687447', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687431', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687428', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687425', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687422', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687402', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687400', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687398', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687381', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687380', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687378', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687376', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687374', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687372', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687356', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687354', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687352', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687350', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687348', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687309', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687306', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687302', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687251', None, None, None, None, None, '2943557') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 28 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '23284543', '1360687485', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687457', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687455', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687453', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687451', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687447', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687431', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687428', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687425', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687422', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687402', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687400', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687398', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687381', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687380', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687378', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687376', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687374', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687372', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687356', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687354', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687352', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687350', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687348', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687309', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687306', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687302', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687251', None, None, None, None, None, '2943557')] time used for this insertion : 0.015510320663452148 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.0624494552612305 time spend to save output : 0.01597285270690918 total time spend for step 4 : 4.07842230796814 step5:split_time_score Mon May 26 15:02:02 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 : ['23284543'] 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 : [('23284543',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23284543) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1360687453: {'path': 'temp/1748264518_4165046_1360687453_23fa6013752262cce8c750535371c0e0.jpg', 'extension': 'jpg'}, 1360687455: {'path': 'temp/1748264518_4165046_1360687455_cf67fd287865bdb9514b517310dea291.jpg', 'extension': 'jpg'}, 1360687457: {'path': 'temp/1748264518_4165046_1360687457_d693c80502724757d73ca4106b469937.jpg', 'extension': 'jpg'}, 1360687485: {'path': 'temp/1748264518_4165046_1360687485_7150a339a39c3f190dc1d7a0b747846f.jpg', 'extension': 'jpg'}, 1360687251: {'path': 'temp/1748264518_4165046_1360687251_3c73df84a6d132e588b9b943def7d847.jpg', 'extension': 'jpg'}, 1360687302: {'path': 'temp/1748264518_4165046_1360687302_7f469b8865ead32859a2f3adad12c4ec.jpg', 'extension': 'jpg'}, 1360687306: {'path': 'temp/1748264518_4165046_1360687306_60c4034dd571eaf549b1b762f0a7935e.jpg', 'extension': 'jpg'}, 1360687309: {'path': 'temp/1748264518_4165046_1360687309_e7b612ddfc5fcf8b86d8a17af1106025.jpg', 'extension': 'jpg'}, 1360687348: {'path': 'temp/1748264518_4165046_1360687348_007f0062b448e12aa90ea8407b8123ed.jpg', 'extension': 'jpg'}, 1360687350: {'path': 'temp/1748264518_4165046_1360687350_ea5f5d5647a404de3b97b720c3caa68e.jpg', 'extension': 'jpg'}, 1360687378: {'path': 'temp/1748264518_4165046_1360687378_e993a5de1c6b0f2d312ea0823d9407a7.jpg', 'extension': 'jpg'}, 1360687380: {'path': 'temp/1748264518_4165046_1360687380_9f1755ee1464cc6965ee25ec2c50fb11.jpg', 'extension': 'jpg'}, 1360687381: {'path': 'temp/1748264518_4165046_1360687381_ac0edfe5f7f6b8a12b296566ad659ba7.jpg', 'extension': 'jpg'}, 1360687398: {'path': 'temp/1748264518_4165046_1360687398_d6022f40df5ed5cdc08938cdb331716a.jpg', 'extension': 'jpg'}, 1360687400: {'path': 'temp/1748264518_4165046_1360687400_2b9b232971036e11cc8f2f928b313da7.jpg', 'extension': 'jpg'}, 1360687402: {'path': 'temp/1748264518_4165046_1360687402_86d8abc6ce2cbd15e882c76b6c3d5826.jpg', 'extension': 'jpg'}, 1360687352: {'path': 'temp/1748264518_4165046_1360687352_85c58f9f9dd4a91103bb1946680b2d16.jpg', 'extension': 'jpg'}, 1360687354: {'path': 'temp/1748264518_4165046_1360687354_e38497476ff70200feca71a943dd9878.jpg', 'extension': 'jpg'}, 1360687356: {'path': 'temp/1748264518_4165046_1360687356_46ff1a80e089b177212ee9ea5e98c11f.jpg', 'extension': 'jpg'}, 1360687372: {'path': 'temp/1748264518_4165046_1360687372_5addca23ea6cc5eb6dd38b6134a8ab44.jpg', 'extension': 'jpg'}, 1360687374: {'path': 'temp/1748264518_4165046_1360687374_2187c91625d395e7b649e090b7f682e3.jpg', 'extension': 'jpg'}, 1360687376: {'path': 'temp/1748264518_4165046_1360687376_fec6fe920c27c85ab939de1e686efa1e.jpg', 'extension': 'jpg'}, 1360687422: {'path': 'temp/1748264518_4165046_1360687422_dae17c66035273c010ee4cb0e7dbb382.jpg', 'extension': 'jpg'}, 1360687425: {'path': 'temp/1748264518_4165046_1360687425_b4d8d4bf2e2f958e77acb85f66dc9c12.jpg', 'extension': 'jpg'}, 1360687428: {'path': 'temp/1748264518_4165046_1360687428_98147131bfb5ae6a5f406b12f3af09dd.jpg', 'extension': 'jpg'}, 1360687431: {'path': 'temp/1748264518_4165046_1360687431_5d4bb5b292e36dc7389105ca50c80ca3.jpg', 'extension': 'jpg'}, 1360687447: {'path': 'temp/1748264518_4165046_1360687447_f408fbd70f331d0a2ede4b2120cd8740.jpg', 'extension': 'jpg'}, 1360687451: {'path': 'temp/1748264518_4165046_1360687451_b40cd5b6619507c54ac84301c678994a.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 = 23284543; (('arc_en_ciel_jrm',), ('arc_en_ciel_jrm_bis',)) 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 = 23284543 group by h (('02', 28),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23284543 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 (23284543) 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 (23284543) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23052025 23284543 Nombre de photos uploadées : 28 / 23040 (0%) 23052025 23284543 Nombre de photos taguées (types de déchets): 0 / 28 (0%) 23052025 23284543 Nombre de photos taguées (volume) : 0 / 28 (0%) [{'photo_id': 1360687251, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/3c73df84a6d132e588b9b943def7d847.jpg', 'username': None, 'uploaded_at': 1747960687, 'text': 'image_23052025_02_37_34_10141.jpg'}, {'photo_id': 1360687309, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/e7b612ddfc5fcf8b86d8a17af1106025.jpg', 'username': None, 'uploaded_at': 1747960808, 'text': 'image_23052025_02_37_44_10138.jpg'}, {'photo_id': 1360687306, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/60c4034dd571eaf549b1b762f0a7935e.jpg', 'username': None, 'uploaded_at': 1747960808, 'text': 'image_23052025_02_39_34_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1360687302, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/7f469b8865ead32859a2f3adad12c4ec.jpg', 'username': None, 'uploaded_at': 1747960808, 'text': 'image_23052025_02_39_44_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ???????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002336740493774414 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23284543, '2025-05-23' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1831613,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02379918098449707 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= 1831613 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23282309, 'dashboard_result_id': 10879379, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23282309_23-05-2025_00_11_40.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23282326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23282327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23282328, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23282329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23282330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23282331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23282332, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23282333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23282334, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23282335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23282336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23282337, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23304624, 'dashboard_result_id': 10879380, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23304624_23-05-2025_17_00_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23304645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23304646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23304647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23304649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23304650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23304651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23304652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23304653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23304654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23304655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23304656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23304657, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23283058, 'dashboard_result_id': 10879381, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23283058_23-05-2025_01_03_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23283060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23283061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23283062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23283063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23283064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23283065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23283066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23283067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23283068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23283069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23283070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23283071, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23282803, 'dashboard_result_id': 10879382, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23282803_26-05-2025_14_25_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23282809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23282811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23282812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23282813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23282814, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23282815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23282816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23282817, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23282818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23282819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23282820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23282821, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23283810, 'dashboard_result_id': 10879383, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23283810_23-05-2025_02_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23283819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23283820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23283821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23283822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23283823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23283824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23283825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23283826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23283827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23283828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23283829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23283830, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23284061, 'dashboard_result_id': 10879384, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284061_23-05-2025_02_13_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23284072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284074, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23284185, 'dashboard_result_id': 10879385, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284185_26-05-2025_14_24_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23284192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284196, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284199, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23284543, 'dashboard_result_id': 10879386, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284543_23-05-2025_02_47_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23284575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284576, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23284637, 'dashboard_result_id': 10879387, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284637_26-05-2025_15_01_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23284639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284645, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284650, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23285058, 'dashboard_result_id': 10879388, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23285058_26-05-2025_15_01_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23285061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23285062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23285063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23285064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23285065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23285066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23285067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23285068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23285069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23285070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23285071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23285072, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23285265, 'dashboard_result_id': 10879389, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23285265_26-05-2025_15_00_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23285267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23285268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23285269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23285270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23285271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23285272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23285273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23285274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23285275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23285276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23285277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23285278, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23286346, 'dashboard_result_id': 10879390, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23286346_26-05-2025_14_59_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23286348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23286349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23286350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23286351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23286352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23286353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23286354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23286355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23286356, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23286357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23286358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23286359, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23285758, 'dashboard_result_id': 10879391, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23285758_26-05-2025_14_58_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23285759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23285760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23285761, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23285762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23285763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23285764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23285765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23285766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23285767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23285768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23285769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23285770, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23286077, 'dashboard_result_id': 10879392, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23286077_26-05-2025_14_57_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23286078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23286079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23286080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23286081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23286082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23286083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23286084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23286085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23286086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23286087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23286088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23286089, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23286960, 'dashboard_result_id': 10879393, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23286960_26-05-2025_14_57_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23286962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23286963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23286964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23286965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23286966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23286967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23286968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23286969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23286970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23286971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23286972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23286973, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23287222, 'dashboard_result_id': 10879394, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287222_26-05-2025_14_57_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23287224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287232, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287235, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23287637, 'dashboard_result_id': 10879395, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287637_26-05-2025_14_54_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23287659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287662, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23287638, 'dashboard_result_id': 10879396, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287638_26-05-2025_14_54_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23287646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287651, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23287834, 'dashboard_result_id': 10879397, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287834_26-05-2025_14_52_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23287836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287838, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287844, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287845, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287847, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23288115, 'dashboard_result_id': 10879398, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23288115_26-05-2025_14_52_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23288117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23288118, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23288119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23288120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23288121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23288122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23288123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23288124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23288125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23288126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23288127, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23288128, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23288547, 'dashboard_result_id': 10879399, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23288547_23-05-2025_06_37_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23288548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23288549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23288550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23288551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23288552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23288553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23288554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23288555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23288556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23288557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23288558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23288559, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23288807, 'dashboard_result_id': 10879400, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23288807_26-05-2025_14_50_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23288809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23288810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23288811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23288812, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23288813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23288814, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23288815, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23288816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23288817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23288818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23288819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23288820, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23309457, 'dashboard_result_id': 10879401, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23309457_26-05-2025_11_48_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327702, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327707, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23290064, 'dashboard_result_id': 10879402, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290064_26-05-2025_14_50_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23290076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23290077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23290078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23290079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23290080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23290081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23290082, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23290083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23290084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23290085, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23290086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23290087, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23305438, 'dashboard_result_id': 10879403, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23305438_23-05-2025_18_00_37.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23305455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23305456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23305457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23305458, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23305459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23305460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23305461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23305462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23305463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23305464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23305465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23305466, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23309458, 'dashboard_result_id': 10879404, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23309458_26-05-2025_11_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327631, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327636, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23291043, 'dashboard_result_id': 10879405, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23291043_26-05-2025_14_49_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23291061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23291062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23291063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23291064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23291065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23291066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23291067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23291068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23291069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23291070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23291071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23291072, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23290765, 'dashboard_result_id': 10879406, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290765_26-05-2025_14_48_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23290773, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23290774, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23290775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23290776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23290777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23290778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23290779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23290780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23290781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23290782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23290783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23290784, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23291275, 'dashboard_result_id': 10879407, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23291275_26-05-2025_14_48_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23291286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23291287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23291288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23291289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23291290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23291291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23291292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23291293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23291294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23291295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23291296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23291297, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23292382, 'dashboard_result_id': 10879408, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23292382_23-05-2025_09_33_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23292385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23292386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23292387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23292388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23292389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23292390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23292391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23292392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23292393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23292394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23292395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23292396, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23292519, 'dashboard_result_id': 10879409, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23292519_26-05-2025_14_42_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23292522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23292523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23292524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23292525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23292526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23292527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23292528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23292529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23292530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23292531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23292532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23292533, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23309459, 'dashboard_result_id': 10879410, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23309459_26-05-2025_11_46_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327596, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327599, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327605, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23306643, 'dashboard_result_id': 10879411, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23306643_23-05-2025_20_01_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23306647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23306648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23306649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23306650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23306651, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23306652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23306653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23306654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23306655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23306656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23306657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23306658, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23293107, 'dashboard_result_id': 10879412, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23293107_26-05-2025_13_43_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23293108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23293109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23293110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23293111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23293112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23293113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23293114, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23293115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23293116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23293117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23293118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23293119, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23305993, 'dashboard_result_id': 10879413, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23305993_23-05-2025_19_01_37.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23306032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23306033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23306034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23306035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23306036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23306037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23306038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23306039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23306040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23306041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23306042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23306043, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23305996, 'dashboard_result_id': 10879414, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23305996_23-05-2025_19_00_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23306002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23306003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23306004, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23306005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23306006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23306007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23306008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23306009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23306010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23306011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23306012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23306013, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23303395, 'dashboard_result_id': 10879415, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23303395_23-05-2025_16_01_43.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23303449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23303450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23303451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23303452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23303453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23303454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23303455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23303456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23303457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23303458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23303459, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23303460, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23296109, 'dashboard_result_id': 10879416, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23296109_23-05-2025_12_01_37.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23296112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23296113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23296114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23296115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23296116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23296117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23296118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23296119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23296120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23296121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23296122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23296123, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23295188, 'dashboard_result_id': 10879417, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23295188_26-05-2025_13_29_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23295221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23295222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23295223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23295224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23295226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23295227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23295228, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23295229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23295230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23295231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23295232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23295233, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23303398, 'dashboard_result_id': 10879418, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23303398_23-05-2025_16_01_36.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23303436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23303437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23303438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23303439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23303440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23303441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23303443, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23303444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23303445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23303446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23303447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23303448, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23297474, 'dashboard_result_id': 10879419, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23297474_26-05-2025_13_00_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23297504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23297505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23297506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23297507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23297508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23297509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23297511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23297512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23297513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23297514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23297515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23297516, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23299796, 'dashboard_result_id': 10879420, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23299796_26-05-2025_13_10_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23299834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23299835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23299836, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23299837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23299838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23299839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23299840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23299841, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23299842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23299843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23299844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23299845, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23300457, 'dashboard_result_id': 10879421, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23300457_26-05-2025_13_07_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23300534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23300535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23300536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23300537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23300538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23300539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23300540, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23300541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23300542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23300543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23300544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23300545, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23301804, 'dashboard_result_id': 10879422, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23301804_23-05-2025_15_01_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23301806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23301807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23301808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23301809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23301810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23301811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23301812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23301813, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23301814, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23301815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23301816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23301817, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23302868, 'dashboard_result_id': 10879423, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23302868_23-05-2025_15_35_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23302873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23302874, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23302875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23302876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23302877, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23302878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23302879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23302880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23302881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23302882, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23302883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23302884, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23309776, 'dashboard_result_id': 10879424, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23309776_26-05-2025_11_42_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23309813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23309814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23309815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23309816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23309817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23309818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23309819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23309820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23309821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23309822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23309823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23309824, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23310639, 'dashboard_result_id': 10879425, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23310639_23-05-2025_23_41_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23310676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23310677, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23310678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23310679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23310680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23310681, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23310682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23310683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23310684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23310685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23310686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23310687, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1840896, 'mtr_portfolio_id': 23310493, 'dashboard_result_id': 10879426, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23310493_26-05-2025_11_38_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23310531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23310532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23310533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23310534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23310535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23310536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23310537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23310538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23310539, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23310540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23310541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23310542, '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 = 23282309 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2939198, 'mtr_portfolio_id': 23282309, 'created_at': datetime.datetime(2025, 5, 23, 0, 11, 39), 'result': '0.049260136663882605', 'result_long': None, 'result_double': None}] Qualite : 0.049260136663882605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23282309 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23282309_23-05-2025_00_11_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23282309 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23282309_23-05-2025_00_11_40.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23282326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23282327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23282328, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23282329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23282330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23282331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23282332, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23282333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23282334, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23282335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23282336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23282337, 'pht': 3726}}" where mtr_portfolio_id = 23282309 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23282309 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879379, 0.049260136663882605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23282309_23-05-2025_00_11_40.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23282326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23282327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23282328, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23282329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23282330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23282331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23282332, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23282333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23282334, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23282335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23282336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23282337, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23304624 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2946049, 'mtr_portfolio_id': 23304624, 'created_at': datetime.datetime(2025, 5, 23, 17, 0, 34), 'result': '0.048645099607279196', 'result_long': None, 'result_double': None}] Qualite : 0.048645099607279196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23304624 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23304624_23-05-2025_17_00_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23304624 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23304624_23-05-2025_17_00_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23304645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23304646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23304647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23304649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23304650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23304651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23304652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23304653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23304654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23304655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23304656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23304657, 'pht': 3726}}" where mtr_portfolio_id = 23304624 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23304624 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879380, 0.048645099607279196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23304624_23-05-2025_17_00_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23304645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23304646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23304647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23304649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23304650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23304651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23304652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23304653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23304654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23304655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23304656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23304657, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23283058 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2939537, 'mtr_portfolio_id': 23283058, 'created_at': datetime.datetime(2025, 5, 23, 1, 3, 32), 'result': '0.031939725503842456', 'result_long': None, 'result_double': None}] Qualite : 0.031939725503842456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23283058 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23283058_23-05-2025_01_03_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23283058 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23283058_23-05-2025_01_03_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23283060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23283061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23283062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23283063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23283064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23283065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23283066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23283067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23283068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23283069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23283070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23283071, 'pht': 3726}}" where mtr_portfolio_id = 23283058 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23283058 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879381, 0.031939725503842456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23283058_23-05-2025_01_03_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23283060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23283061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23283062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23283063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23283064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23283065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23283066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23283067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23283068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23283069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23283070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23283071, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23282803 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943898, 'mtr_portfolio_id': 23282803, 'created_at': datetime.datetime(2025, 5, 26, 14, 25, 30), 'result': '0.037674885556400646', 'result_long': None, 'result_double': None}] Qualite : 0.037674885556400646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23282803 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23282803_26-05-2025_14_25_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23282803 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23282803_26-05-2025_14_25_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23282809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23282811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23282812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23282813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23282814, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23282815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23282816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23282817, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23282818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23282819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23282820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23282821, 'pht': 3726}}" where mtr_portfolio_id = 23282803 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23282803 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879382, 0.037674885556400646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23282803_26-05-2025_14_25_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23282809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23282811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23282812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23282813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23282814, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23282815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23282816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23282817, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23282818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23282819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23282820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23282821, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23283810 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2939818, 'mtr_portfolio_id': 23283810, 'created_at': datetime.datetime(2025, 5, 23, 2, 3, 28), 'result': '0.03903763175748807', 'result_long': None, 'result_double': None}] Qualite : 0.03903763175748807 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23283810 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23283810_23-05-2025_02_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23283810 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23283810_23-05-2025_02_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23283819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23283820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23283821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23283822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23283823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23283824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23283825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23283826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23283827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23283828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23283829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23283830, 'pht': 3726}}" where mtr_portfolio_id = 23283810 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23283810 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879383, 0.03903763175748807, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23283810_23-05-2025_02_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23283819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23283820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23283821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23283822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23283823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23283824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23283825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23283826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23283827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23283828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23283829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23283830, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23284061 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2939917, 'mtr_portfolio_id': 23284061, 'created_at': datetime.datetime(2025, 5, 23, 2, 13, 35), 'result': '0.014606609257288712', 'result_long': None, 'result_double': None}] Qualite : 0.014606609257288712 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23284061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284061_23-05-2025_02_13_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23284061 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284061_23-05-2025_02_13_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23284072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284074, 'pht': 3726}}" where mtr_portfolio_id = 23284061 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23284061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879384, 0.014606609257288712, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284061_23-05-2025_02_13_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23284072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284074, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23284185 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943899, 'mtr_portfolio_id': 23284185, 'created_at': datetime.datetime(2025, 5, 26, 14, 24, 28), 'result': '0.06139283378281599', 'result_long': None, 'result_double': None}] Qualite : 0.06139283378281599 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23284185 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284185_26-05-2025_14_24_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23284185 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284185_26-05-2025_14_24_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23284192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284196, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284199, 'pht': 3726}}" where mtr_portfolio_id = 23284185 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23284185 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879385, 0.06139283378281599, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284185_26-05-2025_14_24_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23284192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284196, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284199, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23284543 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943557, 'mtr_portfolio_id': 23284543, 'created_at': datetime.datetime(2025, 5, 26, 15, 1, 58), 'result': '0.07849162160659186', 'result_long': None, 'result_double': None}] Qualite : 0.07849162160659186 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23284543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284543_26-05-2025_15_01_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23284543 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284543_26-05-2025_15_01_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23284575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284576, 'pht': 3726}}" where mtr_portfolio_id = 23284543 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23284543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879386, 0.07849162160659186, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284543_26-05-2025_15_01_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23284575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284576, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23284637 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943558, 'mtr_portfolio_id': 23284637, 'created_at': datetime.datetime(2025, 5, 26, 15, 1, 29), 'result': '0.02116161060463407', 'result_long': None, 'result_double': None}] Qualite : 0.02116161060463407 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23284637 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284637_26-05-2025_15_01_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23284637 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284637_26-05-2025_15_01_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23284639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284645, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284650, 'pht': 3726}}" where mtr_portfolio_id = 23284637 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23284637 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879387, 0.02116161060463407, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284637_26-05-2025_15_01_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23284639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284645, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284650, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23285058 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943559, 'mtr_portfolio_id': 23285058, 'created_at': datetime.datetime(2025, 5, 26, 15, 0, 58), 'result': '0.05051425779816264', 'result_long': None, 'result_double': None}] Qualite : 0.05051425779816264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23285058 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23285058_26-05-2025_15_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23285058 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23285058_26-05-2025_15_01_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23285061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23285062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23285063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23285064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23285065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23285066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23285067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23285068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23285069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23285070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23285071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23285072, 'pht': 3726}}" where mtr_portfolio_id = 23285058 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23285058 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879388, 0.05051425779816264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23285058_26-05-2025_15_01_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23285061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23285062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23285063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23285064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23285065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23285066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23285067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23285068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23285069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23285070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23285071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23285072, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23285265 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943560, 'mtr_portfolio_id': 23285265, 'created_at': datetime.datetime(2025, 5, 26, 14, 59, 58), 'result': '0.04482751226494379', 'result_long': None, 'result_double': None}] Qualite : 0.04482751226494379 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23285265 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23285265_26-05-2025_15_00_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23285265 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23285265_26-05-2025_15_00_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23285267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23285268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23285269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23285270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23285271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23285272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23285273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23285274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23285275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23285276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23285277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23285278, 'pht': 3726}}" where mtr_portfolio_id = 23285265 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23285265 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879389, 0.04482751226494379, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23285265_26-05-2025_15_00_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23285267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23285268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23285269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23285270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23285271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23285272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23285273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23285274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23285275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23285276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23285277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23285278, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23286346 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943561, 'mtr_portfolio_id': 23286346, 'created_at': datetime.datetime(2025, 5, 26, 14, 59, 27), 'result': '0.07920681716625969', 'result_long': None, 'result_double': None}] Qualite : 0.07920681716625969 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23286346 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23286346_26-05-2025_14_59_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23286346 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23286346_26-05-2025_14_59_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23286348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23286349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23286350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23286351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23286352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23286353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23286354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23286355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23286356, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23286357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23286358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23286359, 'pht': 3726}}" where mtr_portfolio_id = 23286346 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23286346 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879390, 0.07920681716625969, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23286346_26-05-2025_14_59_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23286348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23286349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23286350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23286351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23286352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23286353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23286354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23286355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23286356, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23286357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23286358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23286359, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23285758 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943562, 'mtr_portfolio_id': 23285758, 'created_at': datetime.datetime(2025, 5, 26, 14, 58, 28), 'result': '0.054911784430796015', 'result_long': None, 'result_double': None}] Qualite : 0.054911784430796015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23285758 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23285758_26-05-2025_14_58_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23285758 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23285758_26-05-2025_14_58_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23285759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23285760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23285761, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23285762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23285763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23285764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23285765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23285766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23285767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23285768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23285769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23285770, 'pht': 3726}}" where mtr_portfolio_id = 23285758 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23285758 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879391, 0.054911784430796015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23285758_26-05-2025_14_58_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23285759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23285760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23285761, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23285762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23285763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23285764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23285765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23285766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23285767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23285768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23285769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23285770, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23286077 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943563, 'mtr_portfolio_id': 23286077, 'created_at': datetime.datetime(2025, 5, 26, 14, 57, 57), 'result': '0.06338704010670235', 'result_long': None, 'result_double': None}] Qualite : 0.06338704010670235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23286077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23286077_26-05-2025_14_57_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23286077 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23286077_26-05-2025_14_57_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23286078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23286079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23286080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23286081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23286082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23286083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23286084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23286085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23286086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23286087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23286088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23286089, 'pht': 3726}}" where mtr_portfolio_id = 23286077 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23286077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879392, 0.06338704010670235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23286077_26-05-2025_14_57_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23286078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23286079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23286080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23286081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23286082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23286083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23286084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23286085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23286086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23286087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23286088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23286089, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23286960 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943564, 'mtr_portfolio_id': 23286960, 'created_at': datetime.datetime(2025, 5, 26, 14, 57, 28), 'result': '0.04410894381375473', 'result_long': None, 'result_double': None}] Qualite : 0.04410894381375473 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23286960 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23286960_26-05-2025_14_57_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23286960 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23286960_26-05-2025_14_57_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23286962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23286963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23286964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23286965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23286966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23286967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23286968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23286969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23286970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23286971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23286972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23286973, 'pht': 3726}}" where mtr_portfolio_id = 23286960 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23286960 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879393, 0.04410894381375473, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23286960_26-05-2025_14_57_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23286962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23286963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23286964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23286965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23286966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23286967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23286968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23286969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23286970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23286971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23286972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23286973, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23287222 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943565, 'mtr_portfolio_id': 23287222, 'created_at': datetime.datetime(2025, 5, 26, 14, 56, 58), 'result': '0.051669532519632765', 'result_long': None, 'result_double': None}] Qualite : 0.051669532519632765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23287222 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287222_26-05-2025_14_57_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23287222 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287222_26-05-2025_14_57_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23287224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287232, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287235, 'pht': 3726}}" where mtr_portfolio_id = 23287222 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23287222 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879394, 0.051669532519632765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287222_26-05-2025_14_57_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23287224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287232, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287235, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23287637 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943566, 'mtr_portfolio_id': 23287637, 'created_at': datetime.datetime(2025, 5, 26, 14, 54, 30), 'result': '0.02489637938620779', 'result_long': None, 'result_double': None}] Qualite : 0.02489637938620779 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23287637 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287637_26-05-2025_14_54_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23287637 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287637_26-05-2025_14_54_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23287659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287662, 'pht': 3726}}" where mtr_portfolio_id = 23287637 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23287637 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879395, 0.02489637938620779, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287637_26-05-2025_14_54_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23287659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287662, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23287638 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943567, 'mtr_portfolio_id': 23287638, 'created_at': datetime.datetime(2025, 5, 26, 14, 53, 59), 'result': '0.043053091951411576', 'result_long': None, 'result_double': None}] Qualite : 0.043053091951411576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23287638 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287638_26-05-2025_14_54_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23287638 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287638_26-05-2025_14_54_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23287646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287651, 'pht': 3726}}" where mtr_portfolio_id = 23287638 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23287638 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879396, 0.043053091951411576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287638_26-05-2025_14_54_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23287646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287651, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23287834 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943568, 'mtr_portfolio_id': 23287834, 'created_at': datetime.datetime(2025, 5, 26, 14, 52, 30), 'result': '0.028363749527641317', 'result_long': None, 'result_double': None}] Qualite : 0.028363749527641317 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23287834 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287834_26-05-2025_14_52_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23287834 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287834_26-05-2025_14_52_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23287836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287838, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287844, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287845, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287847, 'pht': 3726}}" where mtr_portfolio_id = 23287834 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23287834 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879397, 0.028363749527641317, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287834_26-05-2025_14_52_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23287836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287838, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287844, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287845, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287847, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23288115 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943569, 'mtr_portfolio_id': 23288115, 'created_at': datetime.datetime(2025, 5, 26, 14, 51, 59), 'result': '0.09252529888664819', 'result_long': None, 'result_double': None}] Qualite : 0.09252529888664819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23288115 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23288115_26-05-2025_14_52_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23288115 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23288115_26-05-2025_14_52_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23288117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23288118, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23288119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23288120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23288121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23288122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23288123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23288124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23288125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23288126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23288127, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23288128, 'pht': 3726}}" where mtr_portfolio_id = 23288115 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23288115 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879398, 0.09252529888664819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23288115_26-05-2025_14_52_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23288117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23288118, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23288119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23288120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23288121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23288122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23288123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23288124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23288125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23288126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23288127, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23288128, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23288547 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23288547 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 23288547 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23288547 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23288547 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23288547 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23288547_26-05-2025_14_51_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23288547 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23288547_26-05-2025_14_51_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23288548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23288549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23288550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23288551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23288552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23288553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23288554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23288555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23288556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23288557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23288558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23288559, 'pht': 3726}}" where mtr_portfolio_id = 23288547 and dashboard_run_id = 1840898 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23288807 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943571, 'mtr_portfolio_id': 23288807, 'created_at': datetime.datetime(2025, 5, 26, 14, 50, 28), 'result': '0.04767460023010003', 'result_long': None, 'result_double': None}] Qualite : 0.04767460023010003 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23288807 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23288807_26-05-2025_14_50_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23288807 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23288807_26-05-2025_14_50_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23288809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23288810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23288811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23288812, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23288813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23288814, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23288815, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23288816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23288817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23288818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23288819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23288820, 'pht': 3726}}" where mtr_portfolio_id = 23288807 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23288807 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879400, 0.04767460023010003, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23288807_26-05-2025_14_50_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23288809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23288810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23288811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23288812, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23288813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23288814, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23288815, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23288816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23288817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23288818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23288819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23288820, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23309457 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2946736, 'mtr_portfolio_id': 23309457, 'created_at': datetime.datetime(2025, 5, 26, 11, 47, 57), 'result': '0.05115101714818417', 'result_long': None, 'result_double': None}] Qualite : 0.05115101714818417 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23309457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23309457_26-05-2025_11_48_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23309457 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23309457_26-05-2025_11_48_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327702, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327707, 'pht': 3726}}" where mtr_portfolio_id = 23309457 and dashboard_run_id = 1840896 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23309457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879401, 0.05115101714818417, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23309457_26-05-2025_11_48_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327702, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327707, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23290064 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943572, 'mtr_portfolio_id': 23290064, 'created_at': datetime.datetime(2025, 5, 26, 14, 49, 57), 'result': '0.03726798186647803', 'result_long': None, 'result_double': None}] Qualite : 0.03726798186647803 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23290064 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290064_26-05-2025_14_50_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23290064 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290064_26-05-2025_14_50_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23290076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23290077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23290078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23290079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23290080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23290081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23290082, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23290083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23290084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23290085, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23290086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23290087, 'pht': 3726}}" where mtr_portfolio_id = 23290064 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23290064 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879402, 0.03726798186647803, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290064_26-05-2025_14_50_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23290076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23290077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23290078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23290079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23290080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23290081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23290082, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23290083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23290084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23290085, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23290086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23290087, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23305438 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2946168, 'mtr_portfolio_id': 23305438, 'created_at': datetime.datetime(2025, 5, 23, 18, 0, 34), 'result': '0.07300197106569571', 'result_long': None, 'result_double': None}] Qualite : 0.07300197106569571 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23305438 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23305438_23-05-2025_18_00_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23305438 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23305438_23-05-2025_18_00_37.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23305455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23305456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23305457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23305458, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23305459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23305460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23305461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23305462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23305463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23305464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23305465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23305466, 'pht': 3726}}" where mtr_portfolio_id = 23305438 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23305438 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879403, 0.07300197106569571, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23305438_23-05-2025_18_00_37.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23305455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23305456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23305457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23305458, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23305459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23305460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23305461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23305462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23305463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23305464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23305465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23305466, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23309458 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2946737, 'mtr_portfolio_id': 23309458, 'created_at': datetime.datetime(2025, 5, 26, 11, 46, 29), 'result': '0.040691904480527584', 'result_long': None, 'result_double': None}] Qualite : 0.040691904480527584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23309458 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23309458_26-05-2025_11_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23309458 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23309458_26-05-2025_11_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327631, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327636, 'pht': 3726}}" where mtr_portfolio_id = 23309458 and dashboard_run_id = 1840896 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23309458 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879404, 0.040691904480527584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23309458_26-05-2025_11_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327631, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327636, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23291043 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943573, 'mtr_portfolio_id': 23291043, 'created_at': datetime.datetime(2025, 5, 26, 14, 49, 29), 'result': '0.03974789209131804', 'result_long': None, 'result_double': None}] Qualite : 0.03974789209131804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23291043 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23291043_26-05-2025_14_49_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23291043 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23291043_26-05-2025_14_49_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23291061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23291062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23291063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23291064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23291065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23291066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23291067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23291068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23291069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23291070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23291071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23291072, 'pht': 3726}}" where mtr_portfolio_id = 23291043 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23291043 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879405, 0.03974789209131804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23291043_26-05-2025_14_49_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23291061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23291062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23291063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23291064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23291065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23291066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23291067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23291068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23291069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23291070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23291071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23291072, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23290765 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943574, 'mtr_portfolio_id': 23290765, 'created_at': datetime.datetime(2025, 5, 26, 14, 48, 29), 'result': '0.03937798374952385', 'result_long': None, 'result_double': None}] Qualite : 0.03937798374952385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23290765 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290765_26-05-2025_14_48_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23290765 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290765_26-05-2025_14_48_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23290773, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23290774, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23290775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23290776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23290777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23290778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23290779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23290780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23290781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23290782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23290783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23290784, 'pht': 3726}}" where mtr_portfolio_id = 23290765 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23290765 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879406, 0.03937798374952385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290765_26-05-2025_14_48_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23290773, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23290774, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23290775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23290776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23290777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23290778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23290779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23290780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23290781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23290782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23290783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23290784, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23291275 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943575, 'mtr_portfolio_id': 23291275, 'created_at': datetime.datetime(2025, 5, 26, 14, 47, 58), 'result': '0.032906802138447745', 'result_long': None, 'result_double': None}] Qualite : 0.032906802138447745 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23291275 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23291275_26-05-2025_14_48_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23291275 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23291275_26-05-2025_14_48_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23291286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23291287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23291288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23291289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23291290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23291291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23291292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23291293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23291294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23291295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23291296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23291297, 'pht': 3726}}" where mtr_portfolio_id = 23291275 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23291275 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879407, 0.032906802138447745, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23291275_26-05-2025_14_48_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23291286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23291287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23291288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23291289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23291290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23291291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23291292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23291293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23291294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23291295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23291296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23291297, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23292382 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943774, 'mtr_portfolio_id': 23292382, 'created_at': datetime.datetime(2025, 5, 23, 9, 33, 32), 'result': '0.03689983979342696', 'result_long': None, 'result_double': None}] Qualite : 0.03689983979342696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23292382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23292382_23-05-2025_09_33_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23292382 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23292382_23-05-2025_09_33_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23292385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23292386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23292387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23292388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23292389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23292390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23292391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23292392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23292393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23292394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23292395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23292396, 'pht': 3726}}" where mtr_portfolio_id = 23292382 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23292382 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879408, 0.03689983979342696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23292382_23-05-2025_09_33_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23292385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23292386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23292387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23292388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23292389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23292390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23292391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23292392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23292393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23292394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23292395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23292396, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23292519 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2943790, 'mtr_portfolio_id': 23292519, 'created_at': datetime.datetime(2025, 5, 26, 14, 42, 28), 'result': '0.09853127524122728', 'result_long': None, 'result_double': None}] Qualite : 0.09853127524122728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23292519 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23292519_26-05-2025_14_42_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23292519 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23292519_26-05-2025_14_42_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23292522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23292523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23292524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23292525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23292526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23292527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23292528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23292529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23292530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23292531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23292532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23292533, 'pht': 3726}}" where mtr_portfolio_id = 23292519 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23292519 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879409, 0.09853127524122728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23292519_26-05-2025_14_42_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23292522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23292523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23292524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23292525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23292526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23292527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23292528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23292529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23292530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23292531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23292532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23292533, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23309459 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2946738, 'mtr_portfolio_id': 23309459, 'created_at': datetime.datetime(2025, 5, 26, 11, 46), 'result': '0.02173304178455117', 'result_long': None, 'result_double': None}] Qualite : 0.02173304178455117 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23309459 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23309459_26-05-2025_11_46_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23309459 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23309459_26-05-2025_11_46_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327596, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327599, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327605, 'pht': 3726}}" where mtr_portfolio_id = 23309459 and dashboard_run_id = 1840896 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23309459 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879410, 0.02173304178455117, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23309459_26-05-2025_11_46_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327596, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327599, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327605, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23306643 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2946359, 'mtr_portfolio_id': 23306643, 'created_at': datetime.datetime(2025, 5, 23, 20, 1, 29), 'result': '0.018205471114361688', 'result_long': None, 'result_double': None}] Qualite : 0.018205471114361688 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23306643 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23306643_23-05-2025_20_01_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23306643 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23306643_23-05-2025_20_01_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23306647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23306648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23306649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23306650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23306651, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23306652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23306653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23306654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23306655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23306656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23306657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23306658, 'pht': 3726}}" where mtr_portfolio_id = 23306643 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23306643 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879411, 0.018205471114361688, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23306643_23-05-2025_20_01_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23306647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23306648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23306649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23306650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23306651, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23306652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23306653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23306654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23306655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23306656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23306657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23306658, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23293107 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2944242, 'mtr_portfolio_id': 23293107, 'created_at': datetime.datetime(2025, 5, 26, 13, 43, 29), 'result': '0.13082168273447528', 'result_long': None, 'result_double': None}] Qualite : 0.13082168273447528 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23293107 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23293107_26-05-2025_13_43_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23293107 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23293107_26-05-2025_13_43_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23293108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23293109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23293110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23293111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23293112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23293113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23293114, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23293115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23293116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23293117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23293118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23293119, 'pht': 3726}}" where mtr_portfolio_id = 23293107 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23293107 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879412, 0.13082168273447528, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23293107_26-05-2025_13_43_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23293108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23293109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23293110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23293111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23293112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23293113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23293114, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23293115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23293116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23293117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23293118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23293119, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23305993 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2946267, 'mtr_portfolio_id': 23305993, 'created_at': datetime.datetime(2025, 5, 23, 19, 1, 34), 'result': '0.04899943066318743', 'result_long': None, 'result_double': None}] Qualite : 0.04899943066318743 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23305993 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23305993_23-05-2025_19_01_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23305993 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23305993_23-05-2025_19_01_37.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23306032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23306033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23306034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23306035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23306036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23306037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23306038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23306039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23306040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23306041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23306042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23306043, 'pht': 3726}}" where mtr_portfolio_id = 23305993 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23305993 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879413, 0.04899943066318743, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23305993_23-05-2025_19_01_37.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23306032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23306033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23306034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23306035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23306036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23306037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23306038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23306039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23306040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23306041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23306042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23306043, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23305996 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23305996 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 23305996 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23305996 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23305996 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2946268, 'mtr_portfolio_id': 23305996, 'created_at': datetime.datetime(2025, 5, 23, 19, 0, 29), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23305996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23305996_23-05-2025_19_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23305996 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23305996_23-05-2025_19_00_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23306002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23306003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23306004, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23306005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23306006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23306007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23306008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23306009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23306010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23306011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23306012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23306013, 'pht': 3726}}" where mtr_portfolio_id = 23305996 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23305996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879414, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23305996_23-05-2025_19_00_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23306002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23306003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23306004, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23306005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23306006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23306007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23306008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23306009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23306010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23306011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23306012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23306013, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23303395 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2945940, 'mtr_portfolio_id': 23303395, 'created_at': datetime.datetime(2025, 5, 23, 16, 1, 35), 'result': '0.03969406451626526', 'result_long': None, 'result_double': None}] Qualite : 0.03969406451626526 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23303395 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23303395_23-05-2025_16_01_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23303395 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23303395_23-05-2025_16_01_43.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23303449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23303450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23303451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23303452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23303453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23303454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23303455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23303456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23303457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23303458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23303459, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23303460, 'pht': 3726}}" where mtr_portfolio_id = 23303395 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23303395 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879415, 0.03969406451626526, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23303395_23-05-2025_16_01_43.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23303449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23303450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23303451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23303452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23303453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23303454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23303455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23303456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23303457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23303458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23303459, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23303460, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23296109 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23296109 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 23296109 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23296109 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23296109 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23296109 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23296109_23-05-2025_12_01_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23296109 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23296109_23-05-2025_12_01_37.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23296112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23296113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23296114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23296115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23296116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23296117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23296118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23296119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23296120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23296121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23296122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23296123, 'pht': 3726}}" where mtr_portfolio_id = 23296109 and dashboard_run_id = 1840898 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23295188 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2944996, 'mtr_portfolio_id': 23295188, 'created_at': datetime.datetime(2025, 5, 26, 13, 29, 31), 'result': '0.02706719542379491', 'result_long': None, 'result_double': None}] Qualite : 0.02706719542379491 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23295188 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23295188_26-05-2025_13_29_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23295188 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23295188_26-05-2025_13_29_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23295221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23295222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23295223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23295224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23295226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23295227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23295228, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23295229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23295230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23295231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23295232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23295233, 'pht': 3726}}" where mtr_portfolio_id = 23295188 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23295188 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879417, 0.02706719542379491, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23295188_26-05-2025_13_29_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23295221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23295222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23295223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23295224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23295226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23295227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23295228, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23295229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23295230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23295231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23295232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23295233, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23303398 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2945941, 'mtr_portfolio_id': 23303398, 'created_at': datetime.datetime(2025, 5, 23, 16, 1, 29), 'result': '0.06355173350632357', 'result_long': None, 'result_double': None}] Qualite : 0.06355173350632357 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23303398 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23303398_23-05-2025_16_01_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23303398 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23303398_23-05-2025_16_01_36.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23303436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23303437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23303438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23303439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23303440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23303441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23303443, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23303444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23303445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23303446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23303447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23303448, 'pht': 3726}}" where mtr_portfolio_id = 23303398 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23303398 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879418, 0.06355173350632357, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23303398_23-05-2025_16_01_36.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23303436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23303437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23303438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23303439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23303440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23303441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23303443, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23303444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23303445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23303446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23303447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23303448, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23297474 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2945474, 'mtr_portfolio_id': 23297474, 'created_at': datetime.datetime(2025, 5, 26, 13, 0, 28), 'result': '0.03302016356036787', 'result_long': None, 'result_double': None}] Qualite : 0.03302016356036787 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23297474 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23297474_26-05-2025_13_00_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23297474 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23297474_26-05-2025_13_00_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23297504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23297505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23297506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23297507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23297508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23297509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23297511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23297512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23297513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23297514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23297515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23297516, 'pht': 3726}}" where mtr_portfolio_id = 23297474 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23297474 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879419, 0.03302016356036787, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23297474_26-05-2025_13_00_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23297504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23297505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23297506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23297507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23297508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23297509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23297511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23297512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23297513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23297514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23297515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23297516, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23299796 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2945653, 'mtr_portfolio_id': 23299796, 'created_at': datetime.datetime(2025, 5, 26, 13, 9, 59), 'result': '0.0031488256367268167', 'result_long': None, 'result_double': None}] Qualite : 0.0031488256367268167 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23299796 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23299796_26-05-2025_13_10_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23299796 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23299796_26-05-2025_13_10_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23299834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23299835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23299836, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23299837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23299838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23299839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23299840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23299841, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23299842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23299843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23299844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23299845, 'pht': 3726}}" where mtr_portfolio_id = 23299796 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23299796 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879420, 0.0031488256367268167, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23299796_26-05-2025_13_10_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23299834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23299835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23299836, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23299837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23299838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23299839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23299840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23299841, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23299842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23299843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23299844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23299845, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23300457 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2945694, 'mtr_portfolio_id': 23300457, 'created_at': datetime.datetime(2025, 5, 26, 13, 7, 28), 'result': '0.07619664336741928', 'result_long': None, 'result_double': None}] Qualite : 0.07619664336741928 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23300457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23300457_26-05-2025_13_07_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23300457 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23300457_26-05-2025_13_07_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23300534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23300535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23300536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23300537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23300538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23300539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23300540, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23300541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23300542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23300543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23300544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23300545, 'pht': 3726}}" where mtr_portfolio_id = 23300457 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23300457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879421, 0.07619664336741928, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23300457_26-05-2025_13_07_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23300534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23300535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23300536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23300537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23300538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23300539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23300540, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23300541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23300542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23300543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23300544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23300545, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23301804 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23301804 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 23301804 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23301804 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23301804 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23301804 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23301804_26-05-2025_12_58_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23301804 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23301804_26-05-2025_12_58_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23301806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23301807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23301808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23301809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23301810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23301811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23301812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23301813, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23301814, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23301815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23301816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23301817, 'pht': 3726}}" where mtr_portfolio_id = 23301804 and dashboard_run_id = 1840898 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23302868 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2945875, 'mtr_portfolio_id': 23302868, 'created_at': datetime.datetime(2025, 5, 23, 15, 35, 34), 'result': '0.09018094947646639', 'result_long': None, 'result_double': None}] Qualite : 0.09018094947646639 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23302868 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23302868_23-05-2025_15_35_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23302868 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23302868_23-05-2025_15_35_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23302873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23302874, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23302875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23302876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23302877, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23302878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23302879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23302880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23302881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23302882, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23302883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23302884, 'pht': 3726}}" where mtr_portfolio_id = 23302868 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23302868 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879423, 0.09018094947646639, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23302868_23-05-2025_15_35_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23302873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23302874, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23302875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23302876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23302877, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23302878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23302879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23302880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23302881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23302882, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23302883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23302884, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23309776 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2946758, 'mtr_portfolio_id': 23309776, 'created_at': datetime.datetime(2025, 5, 26, 11, 42, 1), 'result': '0.02014171305070155', 'result_long': None, 'result_double': None}] Qualite : 0.02014171305070155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23309776 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23309776_26-05-2025_11_42_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23309776 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23309776_26-05-2025_11_42_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23309813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23309814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23309815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23309816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23309817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23309818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23309819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23309820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23309821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23309822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23309823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23309824, 'pht': 3726}}" where mtr_portfolio_id = 23309776 and dashboard_run_id = 1840898 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23309776 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879424, 0.02014171305070155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23309776_26-05-2025_11_42_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23309813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23309814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23309815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23309816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23309817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23309818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23309819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23309820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23309821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23309822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23309823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23309824, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23310639 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2946840, 'mtr_portfolio_id': 23310639, 'created_at': datetime.datetime(2025, 5, 23, 23, 41, 34), 'result': '0.029191679979385748', 'result_long': None, 'result_double': None}] Qualite : 0.029191679979385748 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23310639 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23310639_23-05-2025_23_41_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23310639 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23310639_23-05-2025_23_41_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23310676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23310677, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23310678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23310679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23310680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23310681, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23310682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23310683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23310684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23310685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23310686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23310687, 'pht': 3726}}" where mtr_portfolio_id = 23310639 and dashboard_run_id = 1840896 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23310639 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879425, 0.029191679979385748, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23310639_23-05-2025_23_41_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23310676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23310677, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23310678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23310679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23310680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23310681, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23310682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23310683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23310684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23310685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23310686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23310687, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23310493 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2946820, 'mtr_portfolio_id': 23310493, 'created_at': datetime.datetime(2025, 5, 26, 11, 38, 28), 'result': '0.015251441557466194', 'result_long': None, 'result_double': None}] Qualite : 0.015251441557466194 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23310493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23310493_26-05-2025_11_38_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23310493 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23310493_26-05-2025_11_38_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23310531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23310532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23310533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23310534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23310535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23310536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23310537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23310538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23310539, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23310540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23310541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23310542, 'pht': 3726}}" where mtr_portfolio_id = 23310493 and dashboard_run_id = 1840896 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23310493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10879426, 0.015251441557466194, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23310493_26-05-2025_11_38_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23310531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23310532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23310533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23310534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23310535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23310536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23310537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23310538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23310539, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23310540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23310541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23310542, '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 (23282309,23304624,23283058,23282803,23283810,23284061,23284185,23284543,23284637,23285058,23285265,23286346,23285758,23286077,23286960,23287222,23287637,23287638,23287834,23288115,23288547,23288807,23309457,23290064,23305438,23309458,23291043,23290765,23291275,23292382,23292519,23309459,23306643,23293107,23305993,23305996,23303395,23296109,23295188,23303398,23297474,23299796,23300457,23301804,23302868,23309776,23310639,23310493) result : ((1360680878,), (1360680881,), (1360680886,), (1360680919,), (1360680926,), (1360680932,), (1360680938,), (1360680943,), (1360680966,), (1360680970,), (1360680974,), (1360680977,), (1360680981,), (1360680985,), (1360681004,), (1360681009,), (1360681014,), (1360681048,), (1360681053,), (1360681057,), (1360681061,), (1360681065,), (1360681068,), (1360681089,), (1360681094,), (1360681098,), (1360681102,), (1360681106,), (1360681181,), (1360681186,), (1360681192,), (1360681197,), (1360681201,), (1360681220,), (1360681257,), (1360681273,), (1360681281,), (1360681544,), (1360681548,), (1360681552,), (1360681557,), (1360681629,), (1360681643,), (1360681650,), (1360681660,), (1360681760,), (1360681764,), (1360681767,), (1360681772,), (1360681776,), (1360681800,), (1360681841,), (1360682678,), (1360682681,), (1360682701,), (1360682705,), (1360682708,), (1360682711,), (1360682728,), (1360682732,), (1360682736,), (1360682750,), (1360682753,), (1360682757,), (1360682761,), (1360682766,), (1360682787,), (1360682790,), (1360682793,), (1360682819,), (1360682823,), (1360682826,), (1360682829,), (1360682832,), (1360682851,), (1360682855,), (1360682858,), (1360682875,), (1360682879,), (1360682883,), (1360682886,), (1360682902,), (1360682905,), (1360682908,), (1360682911,), (1360682932,), (1360682937,), (1360682941,), (1360682945,), (1360682948,), (1360682950,), (1360682960,), (1360682964,), (1360682967,), (1360682972,), (1360682989,), (1360682992,), (1360682995,), (1360683011,), (1360683017,), (1360683021,), (1360683025,), (1360683029,), (1360683030,), (1360683383,), (1360683405,), (1360683429,), (1360683454,), (1360683527,), (1360683547,), (1360683567,), (1360683600,), (1360683624,), (1360685448,), (1360682259,), (1360682263,), (1360682266,), (1360682269,), (1360682273,), (1360682284,), (1360682287,), (1360682317,), (1360682321,), (1360682325,), (1360682328,), (1360682347,), (1360682349,), (1360682351,), (1360682376,), (1360682379,), (1360682382,), (1360682386,), (1360682406,), (1360682410,), (1360682414,), (1360682418,), (1360682432,), (1360682435,), (1360682438,), (1360682457,), (1360682461,), (1360682465,), (1360682485,), (1360682489,), (1360682493,), (1360682496,), (1360682513,), (1360682517,), (1360682521,), (1360682524,), (1360682528,), (1360682540,), (1360682544,), (1360682547,), (1360682571,), (1360682575,), (1360682579,), (1360682582,), (1360682585,), (1360682587,), (1360682600,), (1360682604,), (1360682606,), (1360682610,), (1360682612,), (1360682629,), (1360682633,), (1360682652,), (1360682655,), (1360682658,), (1360682660,), (1360682663,), (1360682665,), (1360682684,), (1360685442,), (1360685445,), (1360685471,), (1360685474,), (1360685477,), (1360685480,), (1360685500,), (1360685522,), (1360685524,), (1360685526,), (1360685529,), (1360685552,), (1360685555,), (1360685558,), (1360685561,), (1360685563,), (1360685566,), (1360685588,), (1360685589,), (1360685591,), (1360685594,), (1360685609,), (1360685611,), (1360685614,), (1360685654,), (1360685656,), (1360685675,), (1360685678,), (1360685681,), (1360685685,), (1360685687,), (1360685705,), (1360685709,), (1360685713,), (1360685717,), (1360685720,), (1360685764,), (1360685766,), (1360685790,), (1360685792,), (1360685794,), (1360686131,), (1360686206,), (1360686232,), (1360686235,), (1360686238,), (1360686241,), (1360686255,), (1360686258,), (1360686261,), (1360686264,), (1360686267,), (1360686278,), (1360686281,), (1360686284,), (1360686287,), (1360686302,), (1360686306,), (1360686309,), (1360686312,), (1360686316,), (1360686329,), (1360686333,), (1360686336,), (1360686339,), (1360686342,), (1360686344,), (1360686361,), (1360686366,), (1360686370,), (1360686392,), (1360686397,), (1360686402,), (1360686405,), (1360686418,), (1360686422,), (1360686425,), (1360686429,), (1360686432,), (1360686434,), (1360686449,), (1360686453,), (1360686456,), (1360686460,), (1360686483,), (1360686487,), (1360686491,), (1360686507,), (1360686511,), (1360686515,), (1360686519,), (1360686524,), (1360686543,), (1360686546,), (1360686549,), (1360686552,), (1360686555,), (1360686570,), (1360686572,), (1360686574,), (1360686576,), (1360686578,), (1360686597,), (1360686599,), (1360686631,), (1360686623,), (1360686625,), (1360686627,), (1360686629,), (1360686651,), (1360686655,), (1360686658,), (1360686661,), (1360686663,), (1360686665,), (1360686683,), (1360686685,), (1360686688,), (1360686712,), (1360686715,), (1360686754,), (1360686757,), (1360686759,), (1360686761,), (1360686763,), (1360686764,), (1360686792,), (1360686794,), (1360686796,), (1360686798,), (1360686800,), (1360686801,), (1360686821,), (1360686823,), (1360686826,), (1360686850,), (1360686852,), (1360686853,), (1360686856,), (1360686859,), (1360686878,), (1360686880,), (1360686883,), (1360686885,), (1360686887,), (1360686906,), (1360686908,), (1360686910,), (1360686912,), (1360686914,), (1360686931,), (1360686933,), (1360686935,), (1360686937,), (1360686939,), (1360686960,), (1360686962,), (1360686965,), (1360686968,), (1360686969,), (1360686990,), (1360686992,), (1360686995,), (1360686997,), (1360687015,), (1360687017,), (1360687019,), (1360687254,), (1360687251,), (1360687302,), (1360687306,), (1360687309,), (1360687348,), (1360687350,), (1360687352,), (1360687354,), (1360687356,), (1360687372,), (1360687374,), (1360687376,), (1360687378,), (1360687380,), (1360687381,), (1360687398,), (1360687400,), (1360687402,), (1360687422,), (1360687425,), (1360687428,), (1360687431,), (1360687447,), (1360687451,), (1360687453,), (1360687455,), (1360687457,), (1360687485,), (1360687475,), (1360687478,), (1360687480,), (1360687482,), (1360687483,), (1360687505,), (1360687506,), (1360687508,), (1360687524,), (1360687527,), (1360687530,), (1360687533,), (1360687535,), (1360687554,), (1360687556,), (1360687558,), (1360687560,), (1360687591,), (1360687593,), (1360687594,), (1360687596,), (1360687622,), (1360687625,), (1360687649,), (1360687651,), (1360687654,), (1360687656,), (1360687658,), (1360687676,), (1360687679,), (1360687682,), (1360687685,), (1360687689,), (1360687710,), (1360687712,), (1360687715,), (1360687717,), (1360687719,), (1360687720,), (1360687737,), (1360687739,), (1360687741,), (1360687762,), (1360687765,), (1360687767,), (1360687770,), (1360687772,), (1360687787,), (1360687789,), (1360687791,), (1360687793,), (1360687812,), (1360687814,), (1360687816,), (1360687818,), (1360687852,), (1360687855,), (1360687858,), (1360687861,), (1360687865,), (1360687871,), (1360687875,), (1360687903,), (1360687893,), (1360687897,), (1360687900,), (1360687925,), (1360687929,), (1360687931,), (1360687934,), (1360687939,), (1360687940,), (1360687951,), (1360687955,), (1360687959,), (1360687977,), (1360687980,), (1360687983,), (1360687986,), (1360688006,), (1360688010,), (1360688013,), (1360688017,), (1360688020,), (1360688037,), (1360688041,), (1360688045,), (1360688048,), (1360688051,), (1360688064,), (1360688068,), (1360688071,), (1360688076,), (1360688080,), (1360688099,), (1360688103,), (1360688106,), (1360688126,), (1360688129,), (1360688132,), (1360688135,), (1360688138,), (1360688140,), (1360688162,), (1360688166,), (1360688170,), (1360688173,), (1360688177,), (1360688215,), (1360688219,), (1360688222,), (1360688239,), (1360688242,), (1360688266,), (1360688269,), (1360688272,), (1360688276,), (1360688278,), (1360688297,), (1360688301,), (1360688303,), (1360688325,), (1360688326,), (1360688328,), (1360688329,), (1360688330,), (1360688331,), (1360688347,), (1360688345,), (1360688346,), (1360688372,), (1360688375,), (1360688378,), (1360688380,), (1360688398,), (1360688401,), (1360688404,), (1360688407,), (1360688408,), (1360688425,), (1360688427,), (1360688429,), (1360688431,), (1360688460,), (1360688463,), (1360688466,), (1360688468,), (1360688471,), (1360688472,), (1360688500,), (1360688502,), (1360688504,), (1360688506,), (1360688535,), (1360688538,), (1360688540,), (1360688543,), (1360688547,), (1360688565,), (1360688568,), (1360688585,), (1360688588,), (1360688591,), (1360688612,), (1360688614,), (1360688616,), (1360688619,), (1360688622,), (1360688637,), (1360688640,), (1360688643,), (1360688646,), (1360688650,), (1360688670,), (1360688674,), (1360688678,), (1360688681,), (1360688696,), (1360688699,), (1360688704,), (1360688707,), (1360688710,), (1360688711,), (1360688724,), (1360688728,), (1360688733,), (1360688736,), (1360688756,), (1360688759,), (1360688762,), (1360688766,), (1360688769,), (1360688798,), (1360689305,), (1360689308,), (1360689326,), (1360689330,), (1360689333,), (1360689336,), (1360689339,), (1360689349,), (1360689353,), (1360689356,), (1360689359,), (1360689362,), (1360689378,), (1360689382,), (1360689384,), (1360689403,), (1360689408,), (1360689412,), (1360689416,), (1360689418,), (1360689441,), (1360689445,), (1360689449,), (1360689452,), (1360689455,), (1360689469,), (1360689472,), (1360689475,), (1360689478,), (1360689480,), (1360689502,), (1360689504,), (1360689507,), (1360689537,), (1360689540,), (1360689544,), (1360689548,), (1360689552,), (1360689574,), (1360689577,), (1360689580,), (1360689583,), (1360689585,), (1360689587,), (1360689607,), (1360689608,), (1360689609,), (1360689611,), (1360689613,), (1360689615,), (1360689633,), (1360689635,), (1360689637,), (1360689639,), (1360689656,), (1360689658,), (1360689660,), (1360689662,), (1360689664,), (1360689665,), (1360689690,), (1360689695,), (1360689698,), (1360689747,), (1360689735,), (1360689738,), (1360689740,), (1360689744,), (1360689762,), (1360689765,), (1360689769,), (1360689771,), (1360689796,), (1360689800,), (1360689804,), (1360689836,), (1360689840,), (1360689844,), (1360689848,), (1360689864,), (1360689866,), (1360689869,), (1360689872,), (1360689876,), (1360689892,), (1360689896,), (1360689899,), (1360689904,), (1360689922,), (1360689925,), (1360689928,), (1360689947,), (1360689949,), (1360689951,), (1360689953,), (1360689971,), (1360689973,), (1360689975,), (1360689994,), (1360689996,), (1360689998,), (1360690000,), (1360690002,), (1360690027,), (1360690030,), (1360691331,), (1360688788,), (1360688791,), (1360688794,), (1360688825,), (1360688828,), (1360688831,), (1360688834,), (1360688837,), (1360688858,), (1360688861,), (1360688863,), (1360688867,), (1360688893,), (1360688896,), (1360688901,), (1360688904,), (1360688908,), (1360688910,), (1360688933,), (1360688935,), (1360688937,), (1360688940,), (1360688943,), (1360688946,), (1360688984,), (1360688988,), (1360688991,), (1360689011,), (1360689015,), (1360689019,), (1360689022,), (1360689044,), (1360689047,), (1360689051,), (1360689056,), (1360689058,), (1360689060,), (1360689079,), (1360689085,), (1360689089,), (1360689092,), (1360689103,), (1360689108,), (1360689112,), (1360689146,), (1360689149,), (1360689151,), (1360689154,), (1360689157,), (1360689178,), (1360689182,), (1360689185,), (1360689218,), (1360689220,), (1360689221,), (1360689235,), (1360689239,), (1360689242,), (1360689245,), (1360689248,), (1360689250,), (1360689272,), (1360689277,), (1360689281,), (1360689284,), (1360689286,), (1360689288,), (1360689311,), (1360691328,), (1360691390,), (1360691442,), (1360691446,), (1360691452,), (1360691454,), (1360691475,), (1360691479,), (1360691483,), (1360691504,), (1360691508,), (1360691557,), (1360691559,), (1360691561,), (1360691563,), (1360691566,), (1360691569,), (1360691609,), (1360691611,), (1360691613,), (1360691615,), (1360691633,), (1360691636,), (1360691639,), (1360691641,), (1360691644,), (1360691664,), (1360691667,), (1360691670,), (1360691673,), (1360691675,), (1360691676,), (1360691700,), (1360691703,), (1360691705,), (1360691708,), (1360691709,), (1360691710,), (1360691727,), (1360691731,), (1360691734,), (1360691763,), (1360691758,), (1360691761,), (1360691780,), (1360691782,), (1360691784,), (1360691786,), (1360691788,), (1360691789,), (1360691802,), (1360691804,), (1360691807,), (1360691846,), (1360691850,), (1360691854,), (1360691873,), (1360691900,), (1360691954,), (1360691958,), (1360691961,), (1360691984,), (1360691987,), (1360691990,), (1360691993,), (1360692017,), (1360692019,), (1360692021,), (1360692023,), (1360692041,), (1360692047,), (1360692050,), (1360692052,), (1360692071,), (1360692074,), (1360692078,), (1360692080,), (1360692083,), (1360692101,), (1360692103,), (1360692105,), (1360692107,), (1360692123,), (1360692125,), (1360692127,), (1360692148,), (1360692151,), (1360692154,), (1360692156,), (1360692184,), (1360692188,), (1360692191,), (1360692194,), (1360692213,), (1360692218,), (1360692248,), (1360692252,), (1360692256,), (1360692280,), (1360692274,), (1360692277,), (1360692300,), (1360692302,), (1360692304,), (1360692325,), (1360692327,), (1360692329,), (1360692331,), (1360692349,), (1360692351,), (1360692353,), (1360692355,), (1360692373,), (1360692376,), (1360692379,), (1360692398,), (1360692400,), (1360692401,), (1360692434,), (1360692437,), (1360692464,), (1360692466,), (1360692468,), (1360692470,), (1360692500,), (1360692502,), (1360692504,), (1360692506,), (1360692508,), (1360692534,), (1360692537,), (1360692540,), (1360692542,), (1360692564,), (1360692566,), (1360692567,), (1360692569,), (1360692593,), (1360692596,), (1360692599,), (1360692602,), (1360692604,), (1360692633,), (1360692650,), (1360692655,), (1360692662,), (1360692744,), (1360692747,), (1360692749,), (1360692753,), (1360692757,), (1360692758,), (1360692770,), (1360692774,), (1360692821,), (1360692808,), (1360692810,), (1360692813,), (1360692816,), (1360692819,), (1360692839,), (1360692841,), (1360692843,), (1360692845,), (1360692847,), (1360692879,), (1360692881,), (1360692883,), (1360692908,), (1360692910,), (1360692932,), (1360692936,), (1360692939,), (1360692942,), (1360692993,), (1360692995,), (1360692997,), (1360692999,), (1360693001,), (1360693097,), (1360693099,), (1360693101,), (1360693131,), (1360693133,), (1360693135,), (1360693137,), (1360693140,), (1360693157,), (1360693160,), (1360693163,), (1360693166,), (1360693168,), (1360693183,), (1360693187,), (1360693191,), (1360693194,), (1360693210,), (1360693213,), (1360693216,), (1360693219,), (1360693238,), (1360693241,), (1360693244,), (1360693247,), (1360693270,), (1360693272,), (1360693274,), (1360693276,), (1360693278,), (1360693280,), (1360693305,), (1360693311,), (1360693315,), (1360693319,), (1360693323,), (1360693330,), (1360693331,), (1360693333,), (1360693334,), (1360693336,), (1360693337,), (1360693341,), (1360693342,), (1360693374,), (1360693358,), (1360693362,), (1360693363,), (1360693366,), (1360693370,), (1360693397,), (1360693402,), (1360693406,), (1360693410,), (1360693434,), (1360693437,), (1360693444,), (1360693447,), (1360693450,), (1360693468,), (1360693523,), (1360693550,), (1360693577,), (1360693584,), (1360693598,), (1360693600,), (1360693602,), (1360693604,), (1360693607,), (1360693610,), (1360693625,), (1360693628,), (1360693631,), (1360693633,), (1360693636,), (1360693653,), (1360693656,), (1360693659,), (1360693661,), (1360693664,), (1360693665,), (1360693682,), (1360693684,), (1360693686,), (1360693702,), (1360693709,), (1360693712,), (1360693715,), (1360693718,), (1360693752,), (1360693771,), (1360693779,), (1360693782,), (1360693787,), (1360693816,), (1360693820,), (1360693824,), (1360693826,), (1360693859,), (1360693861,), (1360693864,), (1360693866,), (1360693868,), (1360693895,), (1360693898,), (1360693901,), (1360693904,), (1360693907,), (1360693922,), (1360693925,), (1360693927,), (1360693953,), (1360693956,), (1360693959,), (1360693963,), (1360693966,), (1360693994,), (1360693988,), (1360693990,), (1360693992,), (1360694020,), (1360694025,), (1360694030,), (1360694034,), (1360694054,), (1360694059,), (1360694062,), (1360694089,), (1360694093,), (1360694097,), (1360694102,), (1360694105,), (1360694107,), (1360694127,), (1360694130,), (1360694133,), (1360694135,), (1360694139,), (1360694142,), (1360694156,), (1360694158,), (1360694160,), (1360694162,), (1360694187,), (1360694190,), (1360694193,), (1360694196,), (1360694198,), (1360694202,), (1360694219,), (1360694221,), (1360694222,), (1360694224,), (1360694251,), (1360694252,), (1360694253,), (1360694254,), (1360694272,), (1360694274,), (1360694276,), (1360694277,), (1360694279,), (1360694292,), (1360694316,), (1360694351,), (1360694390,), (1360694393,), (1360694519,), (1360694540,), (1360694543,), (1360694546,), (1360694548,), (1360694573,), (1360694575,), (1360694577,), (1360694598,), (1360694602,), (1360694605,), (1360694608,), (1360694612,), (1360694615,), (1360694629,), (1360694632,), (1360694635,), (1360694637,), (1360694640,), (1360694660,), (1360694663,), (1360694665,), (1360694689,), (1360694694,), (1360694697,), (1360694701,), (1360694704,), (1360694705,), (1360694726,), (1360694729,), (1360694732,), (1360694734,), (1360694736,), (1360694737,), (1360694747,), (1360694749,), (1360694751,), (1360694753,), (1360694779,), (1360694782,), (1360694785,), (1360694787,), (1360694789,), (1360694800,), (1360694803,), (1360694805,), (1360694807,), (1360694811,), (1360694830,), (1360694821,), (1360694823,), (1360694825,), (1360694827,), (1360694849,), (1360694853,), (1360694856,), (1360694872,), (1360694875,), (1360694877,), (1360694879,), (1360694882,), (1360694904,), (1360694906,), (1360694908,), (1360694910,), (1360694912,), (1360694932,), (1360694934,), (1360694936,), (1360694938,), (1360694960,), (1360694963,), (1360694965,), (1360694967,), (1360694968,), (1360694980,), (1360694982,), (1360694984,), (1360694986,), (1360694988,), (1360695008,), (1360695010,), (1360695034,), (1360695038,), (1360695042,), (1360695044,), (1360695047,), (1360695064,), (1360695067,), (1360695070,), (1360695073,), (1360695075,), (1360695091,), (1360695094,), (1360695096,), (1360695099,), (1360695113,), (1360695115,), (1360695117,), (1360695119,), (1360695136,), (1360695138,), (1360695140,), (1360695174,), (1360695179,), (1360695183,), (1360695188,), (1360695192,), (1360695196,), (1360695235,), (1360696352,), (1360696379,), (1360696406,), (1360696639,), (1360696641,), (1360696644,), (1360696669,), (1360696673,), (1360696676,), (1360696787,), (1360696790,), (1360696793,), (1360696796,), (1360696799,), (1360696801,), (1360696850,), (1360696854,), (1360696859,), (1360696864,), (1360696870,), (1360696977,), (1360696981,), (1360696985,), (1360697026,), (1360697029,), (1360697032,), (1360697040,), (1360697046,), (1360697050,), (1360697071,), (1360697082,), (1360697084,), (1360697089,), (1360697090,), (1360697094,), (1360697110,), (1360697114,), (1360697118,), (1360697122,), (1360697125,), (1360697201,), (1360697230,), (1360697258,), (1360697275,), (1360697379,), (1360697398,), (1360697401,), (1360697404,), (1360697423,), (1360697444,), (1360697508,), (1360697515,), (1360697519,), (1360697523,), (1360697561,), (1360697565,), (1360697569,), (1360697571,), (1360697574,), (1360697609,), (1360697612,), (1360697616,), (1360697618,), (1360697622,), (1360697657,), (1360697660,), (1360697663,), (1360697666,), (1360697700,), (1360697704,), (1360697710,), (1360697715,), (1360697719,), (1360697721,), (1360697800,), (1360700301,), (1360700303,), (1360700306,), (1360700344,), (1360700348,), (1360700354,), (1360700359,), (1360700363,), (1360700366,), (1360700390,), (1360700393,), (1360700398,), (1360700433,), (1360700438,), (1360700443,), (1360700447,), (1360700474,), (1360700478,), (1360700482,), (1360700486,), (1360700489,), (1360700527,), (1360700534,), (1360700539,), (1360700543,), (1360700546,), (1360700566,), (1360700570,), (1360700574,), (1360700605,), (1360700608,), (1360700611,), (1360700616,), (1360700620,), (1360700626,), (1360700653,), (1360700658,), (1360700666,), (1360700669,), (1360700672,), (1360700674,), (1360700702,), (1360700705,), (1360700710,), (1360700751,), (1360700756,), (1360700761,), (1360700767,), (1360700773,), (1360700794,), (1360700799,), (1360700803,), (1360700807,), (1360700828,), (1360700837,), (1360700843,), (1360700849,), (1360700876,), (1360700880,), (1360700884,), (1360700914,), (1360700919,), (1360700922,), (1360700928,), (1360700934,), (1360700941,), (1360700997,), (1360699631,), (1360699632,), (1360699634,), (1360699636,), (1360699700,), (1360699702,), (1360699707,), (1360699710,), (1360699714,), (1360699716,), (1360699746,), (1360699748,), (1360699751,), (1360699754,), (1360699782,), (1360699785,), (1360699788,), (1360699827,), (1360699832,), (1360699834,), (1360699837,), (1360699839,), (1360699876,), (1360699879,), (1360699882,), (1360699885,), (1360699915,), (1360699918,), (1360699920,), (1360699922,), (1360699956,), (1360699958,), (1360699963,), (1360699965,), (1360699969,), (1360699971,), (1360699996,), (1360699999,), (1360700003,), (1360700006,), (1360700009,), (1360700010,), (1360700038,), (1360700040,), (1360700043,), (1360700046,), (1360700081,), (1360700086,), (1360700092,), (1360700097,), (1360700099,), (1360700119,), (1360700123,), (1360700128,), (1360700134,), (1360700145,), (1360700169,), (1360700173,), (1360700177,), (1360700180,), (1360700212,), (1360700215,), (1360700219,), (1360700223,), (1360700226,), (1360700229,), (1360700260,), (1360700264,), (1360700269,), (1360700310,), (1360700985,), (1360700989,), (1360700993,), (1360701035,), (1360701040,), (1360701045,), (1360701050,), (1360701055,), (1360701085,), (1360701089,), (1360701091,), (1360701094,), (1360701098,), (1360701103,), (1360701137,), (1360701142,), (1360701148,), (1360701191,), (1360701196,), (1360701200,), (1360701204,), (1360701236,), (1360701240,), (1360701245,), (1360701251,), (1360701256,), (1360701282,), (1360701286,), (1360701291,), (1360701295,), (1360701299,), (1360701303,), (1360701326,), (1360701332,), (1360701337,), (1360701370,), (1360701373,), (1360701376,), (1360701380,), (1360701410,), (1360701415,), (1360701420,), (1360701427,), (1360701434,), (1360701473,), (1360701477,), (1360701482,), (1360701487,), (1360701521,), (1360701525,), (1360701528,), (1360701531,), (1360701568,), (1360701570,), (1360701603,), (1360701606,), (1360701610,), (1360701614,), (1360701651,), (1360701654,), (1360701657,), (1360701660,), (1360701664,), (1360701669,), (1360701715,), (1360701699,), (1360701703,), (1360701707,), (1360701711,), (1360701745,), (1360701747,), (1360701750,), (1360701753,), (1360701755,), (1360701782,), (1360701784,), (1360701787,), (1360702016,), (1360702019,), (1360702022,), (1360702025,), (1360702028,), (1360702031,), (1360702063,), (1360702067,), (1360702072,), (1360702077,), (1360702081,), (1360702085,), (1360702107,), (1360702110,), (1360702114,), (1360702150,), (1360702154,), (1360702159,), (1360702164,), (1360702169,), (1360702174,), (1360702204,), (1360702209,), (1360702215,), (1360702221,), (1360702225,), (1360702229,), (1360702254,), (1360702257,), (1360702321,), (1360702330,), (1360702336,), (1360702342,), (1360702349,), (1360702404,), (1360703585,), (1360703797,), (1360703800,), (1360703840,), (1360703843,), (1360703848,), (1360703884,), (1360703887,), (1360703891,), (1360703927,), (1360703942,), (1360703944,), (1360703948,), (1360703995,), (1360704001,), (1360704006,), (1360704009,), (1360704037,), (1360704041,), (1360704044,), (1360704048,), (1360704051,), (1360704078,), (1360704081,), (1360704083,), (1360704117,), (1360704119,), (1360704122,), (1360704125,), (1360704127,), (1360704130,), (1360704170,), (1360704173,), (1360704176,), (1360704178,), (1360704183,), (1360704222,), (1360705541,), (1360705546,), (1360705548,), (1360705573,), (1360705578,), (1360705581,), (1360705587,), (1360705610,), (1360705613,), (1360705616,), (1360705618,), (1360705650,), (1360705652,), (1360705655,), (1360705658,), (1360705698,), (1360705701,), (1360705703,), (1360705706,), (1360705750,), (1360705754,), (1360705759,), (1360705764,), (1360705794,), (1360705798,), (1360705834,), (1360705837,), (1360705840,), (1360705844,), (1360705873,), (1360705877,), (1360705881,), (1360705885,), (1360705922,), (1360705925,), (1360705929,), (1360705931,), (1360705934,), (1360705937,), (1360705962,), (1360705972,), (1360705975,), (1360705981,), (1360706007,), (1360706010,), (1360706015,), (1360706019,), (1360706023,), (1360706025,), (1360706053,), (1360706056,), (1360706062,), (1360706064,), (1360706066,), (1360706091,), (1360706095,), (1360706098,), (1360706102,), (1360706106,), (1360706135,), (1360706138,), (1360706143,), (1360706148,), (1360706199,), (1360720354,), (1360720381,), (1360720410,), (1360720571,), (1360720624,), (1360720673,), (1360720726,), (1360721244,), (1360721276,), (1360721307,), (1360721338,), (1360721812,), (1360721864,), (1360721916,), (1360721977,), (1360722028,), (1360722343,), (1360722379,), (1360722420,), (1360723006,), (1360723047,), (1360723095,), (1360723396,), (1360723399,), (1360723411,), (1360723440,), (1360723512,), (1360723516,), (1360723518,), (1360723560,), (1360723564,), (1360724096,), (1360724124,), (1360724517,), (1360724619,), (1360724623,), (1360724628,), (1360724631,), (1360724908,), (1360724937,), (1360724966,), (1360724996,), (1360725351,), (1360714793,), (1360714823,), (1360714866,), (1360715359,), (1360715404,), (1360715433,), (1360715463,), (1360715494,), (1360716164,), (1360716213,), (1360716278,), (1360716367,), (1360716420,), (1360716431,), (1360716569,), (1360716597,), (1360716637,), (1360716689,), (1360716983,), (1360717119,), (1360717123,), (1360717128,), (1360717134,), (1360717266,), (1360717274,), (1360717597,), (1360717624,), (1360717653,), (1360717681,), (1360718031,), (1360718058,), (1360718086,), (1360718107,), (1360718216,), (1360718245,), (1360718777,), (1360718803,), (1360718831,), (1360718862,), (1360719202,), (1360719230,), (1360719258,), (1360719263,), (1360719424,), (1360719454,), (1360719489,), (1360719497,), (1360719606,), (1360719610,), (1360719614,), (1360719618,), (1360719621,), (1360719886,), (1360719989,), (1360720063,), (1360720441,), (1360733471,), (1360733499,), (1360733529,), (1360733559,), (1360733901,), (1360733941,), (1360733970,), (1360734001,), (1360734029,), (1360734338,), (1360734367,), (1360734589,), (1360734602,), (1360734605,), (1360734638,), (1360734644,), (1360734649,), (1360734653,), (1360734658,), (1360734688,), (1360734692,), (1360734697,), (1360734701,), (1360734740,), (1360734744,), (1360734747,), (1360734770,), (1360734774,), (1360735052,), (1360735078,), (1360735582,), (1360735610,), (1360767776,), (1360771437,), (1360771492,), (1360771544,), (1360771962,), (1360772147,), (1360772365,), (1360772789,), (1360774582,), (1360774595,), (1360775515,), (1360777856,), (1360777906,), (1360778323,), (1360779158,), (1360779161,), (1360779165,), (1360780660,), (1360780833,), (1360795903,), (1360795983,), (1360796027,), (1360796031,), (1360796401,), (1360796471,), (1360797207,), (1360797720,), (1360799554,), (1360800809,), (1360803256,), (1360803327,), (1360803401,), (1360803726,), (1360803964,), (1360803970,), (1360804524,), (1360805784,), (1360805814,), (1360805844,), (1360806280,), (1360806330,), (1360808235,), (1360808268,), (1360812603,), (1360707754,), (1360707782,), (1360708241,), (1360708474,), (1360708549,), (1360708605,), (1360709057,), (1360709074,), (1360709102,), (1360709132,), (1360709162,), (1360709190,), (1360709274,), (1360709303,), (1360709364,), (1360710061,), (1360710101,), (1360710160,), (1360710998,), (1360711053,), (1360711105,), (1360711155,), (1360711413,), (1360711464,), (1360711520,), (1360711554,), (1360711597,), (1360711771,), (1360711778,), (1360711806,), (1360711835,), (1360712175,), (1360712752,), (1360712778,), (1360712806,), (1360712833,), (1360713284,), (1360713459,), (1360713487,), (1360713534,), (1360713581,), (1360713677,), (1360713681,), (1360713684,), (1360713687,), (1360713690,), (1360713967,), (1360713983,), (1360713993,), (1360714367,), (1360714396,), (1360714423,), (1360714451,), (1360714479,), (1360714507,), (1360714896,), (1360725800,), (1360725828,), (1360725856,), (1360725885,), (1360725915,), (1360726055,), (1360726059,), (1360726063,), (1360726313,), (1360726332,), (1360726360,), (1360726901,), (1360726955,), (1360727008,), (1360727728,), (1360727779,), (1360727828,), (1360727883,), (1360727935,), (1360728055,), (1360728074,), (1360728102,), (1360728133,), (1360728738,), (1360728775,), (1360728815,), (1360728867,), (1360729263,), (1360729295,), (1360729324,), (1360729730,), (1360729762,), (1360729801,), (1360729857,), (1360730179,), (1360730237,), (1360730291,), (1360730348,), (1360730397,), (1360730449,), (1360730867,), (1360730927,), (1360730967,), (1360730976,), (1360731682,), (1360731758,), (1360731819,), (1360731868,), (1360731926,), (1360732723,), (1360732756,), (1360733588,), (1360681830,), (1360681833,), (1360681835,), (1360681837,), (1360681840,), (1360681860,), (1360681863,), (1360681865,), (1360681869,), (1360681871,), (1360681920,), (1360681923,), (1360681926,), (1360681928,), (1360681943,), (1360681945,), (1360681947,), (1360681988,), (1360682016,), (1360682020,), (1360682023,), (1360682026,), (1360682063,), (1360682084,), (1360682106,), (1360682109,), (1360682113,), (1360682115,), (1360682116,), (1360682135,), (1360682138,), (1360682141,), (1360682144,), (1360682146,), (1360682148,), (1360682163,), (1360682165,), (1360682167,), (1360682169,), (1360682171,), (1360682172,), (1360682188,), (1360682192,), (1360682195,), (1360682198,), (1360682227,), (1360682232,), (1360682236,), (1360682239,), (1360682242,), (1360682245,), (1360682275,), (1360697784,), (1360697786,), (1360697790,), (1360697793,), (1360697798,), (1360697828,), (1360697831,), (1360697834,), (1360697874,), (1360697877,), (1360697881,), (1360697885,), (1360697889,), (1360697891,), (1360698017,), (1360698054,), (1360698067,), (1360698070,), (1360698083,), (1360698086,), (1360698199,), (1360698209,), (1360698214,), (1360698331,), (1360698334,), (1360698338,), (1360698342,), (1360698346,), (1360698376,), (1360698378,), (1360698381,), (1360698384,), (1360698387,), (1360698421,), (1360698424,), (1360698427,), (1360698431,), (1360698434,), (1360698469,), (1360698471,), (1360698474,), (1360698482,), (1360698776,), (1360698844,), (1360698848,), (1360698886,), (1360698889,), (1360698893,), (1360698898,), (1360698902,), (1360698939,), (1360706192,), (1360706195,), (1360706236,), (1360706240,), (1360706244,), (1360706250,), (1360706255,), (1360706258,), (1360706303,), (1360706306,), (1360706310,), (1360706314,), (1360706317,), (1360706321,), (1360706368,), (1360706371,), (1360706374,), (1360706377,), (1360706415,), (1360706416,), (1360706418,), (1360706422,), (1360706425,), (1360706461,), (1360706465,), (1360706470,), (1360706475,), (1360706478,), (1360706503,), (1360706506,), (1360706509,), (1360706513,), (1360706544,), (1360706546,), (1360706549,), (1360706552,), (1360706554,), (1360706577,), (1360706582,), (1360706586,), (1360706589,), (1360706591,), (1360706596,), (1360706625,), (1360706631,), (1360706637,), (1360706676,), (1360706714,), (1360706719,), (1360706756,), (1360706762,), (1360706766,), (1360706768,), (1360706802,), (1360706804,), (1360706807,), (1360706811,), (1360706848,), (1360706852,), (1360706857,), (1360706903,), (1360706894,), (1360706898,), (1360706900,), (1360706932,), (1360706935,), (1360706939,), (1360706943,), (1360706948,), (1360706985,), (1360706987,), (1360706990,), (1360707022,), (1360707026,), (1360707033,), (1360707037,), (1360707041,), (1360707043,), (1360707070,), (1360707073,), (1360707076,), (1360707079,), (1360707082,), (1360707085,), (1360707139,), (1360707142,), (1360707145,), (1360707149,), (1360707189,), (1360707193,), (1360707197,), (1360707200,), (1360707208,), (1360707237,), (1360707241,), (1360707245,), (1360707248,), (1360707252,), (1360707257,), (1360707290,), (1360707296,), (1360707300,), (1360707303,), (1360707339,), (1360707341,), (1360707345,), (1360707349,), (1360707353,), (1360707359,), (1360707389,), (1360707392,), (1360707397,), (1360707430,), (1360707433,), (1360707438,), (1360707442,), (1360707446,), (1360707449,), (1360707515,), (1360707517,), (1360707520,), (1360707523,), (1360707525,), (1360707558,), (1360707565,), (1360707639,), (1360704931,), (1360704935,), (1360704977,), (1360705064,), (1360705106,), (1360705113,), (1360705159,), (1360705162,), (1360705199,), (1360705207,), (1360705211,), (1360705216,), (1360705244,), (1360705249,), (1360705254,), (1360705259,), (1360705295,), (1360705301,), (1360705306,), (1360705311,), (1360705357,), (1360705360,), (1360705363,), (1360705366,), (1360705389,), (1360705392,), (1360705431,), (1360705435,), (1360705438,), (1360705441,), (1360705464,), (1360705466,), (1360705469,), (1360705473,), (1360705477,), (1360705500,), (1360705506,), (1360705511,), (1360705517,), (1360705550,), (1360695227,), (1360695232,), (1360695269,), (1360695272,), (1360695276,), (1360695280,), (1360695287,), (1360695310,), (1360695313,), (1360695317,), (1360695320,), (1360695323,), (1360695349,), (1360695362,), (1360695366,), (1360695370,), (1360695393,), (1360695398,), (1360695403,), (1360695409,), (1360695412,), (1360695434,), (1360695437,), (1360695441,), (1360695445,), (1360695449,), (1360695452,), (1360695478,), (1360695482,), (1360695485,), (1360695487,), (1360695490,), (1360695494,), (1360695537,), (1360695542,), (1360695546,), (1360695677,), (1360695705,), (1360695722,), (1360695725,), (1360695729,), (1360695732,), (1360695760,), (1360695763,), (1360695769,), (1360695773,), (1360695776,), (1360695781,), (1360695852,), (1360695856,), (1360695866,), (1360695894,), (1360695920,), (1360696046,), (1360696050,), (1360696054,), (1360696058,), (1360696061,), (1360696072,), (1360696100,), (1360696103,), (1360696105,), (1360696108,), (1360696111,), (1360696150,), (1360696154,), (1360696158,), (1360696164,), (1360696204,), (1360696209,), (1360696213,), (1360696217,), (1360696234,), (1360696243,), (1360696425,), (1360698929,), (1360698934,), (1360698970,), (1360698976,), (1360698983,), (1360698989,), (1360699026,), (1360699030,), (1360699034,), (1360699038,), (1360699042,), (1360699045,), (1360699065,), (1360699069,), (1360699074,), (1360699078,), (1360699082,), (1360699141,), (1360699144,), (1360699147,), (1360699150,), (1360699202,), (1360699206,), (1360699210,), (1360699213,), (1360699215,), (1360699217,), (1360699242,), (1360699245,), (1360699250,), (1360699254,), (1360699256,), (1360699280,), (1360699282,), (1360699285,), (1360699324,), (1360699327,), (1360699331,), (1360699366,), (1360699369,), (1360699371,), (1360699375,), (1360699405,), (1360699409,), (1360699413,), (1360699417,), (1360699448,), (1360699450,), (1360699453,), (1360699520,), (1360699523,), (1360699527,), (1360699531,), (1360699534,), (1360699598,), (1360699601,), (1360699605,), (1360699638,), (1360704219,), (1360704220,), (1360704261,), (1360704263,), (1360704266,), (1360704269,), (1360704271,), (1360704275,), (1360704318,), (1360704321,), (1360704324,), (1360704327,), (1360704329,), (1360704332,), (1360704364,), (1360704366,), (1360704370,), (1360704374,), (1360704377,), (1360704380,), (1360704399,), (1360704403,), (1360704409,), (1360704413,), (1360704472,), (1360704477,), (1360704482,), (1360704487,), (1360704491,), (1360704519,), (1360704522,), (1360704525,), (1360704529,), (1360704558,), (1360704562,), (1360704606,), (1360704609,), (1360704612,), (1360704614,), (1360704617,), (1360704648,), (1360704651,), (1360704654,), (1360704658,), (1360704662,), (1360704694,), (1360704699,), (1360704703,), (1360704706,), (1360704709,), (1360704713,), (1360704735,), (1360704738,), (1360704741,), (1360704771,), (1360704779,), (1360704782,), (1360704786,), (1360704790,), (1360704795,), (1360704813,), (1360704820,), (1360704828,), (1360704834,), (1360704840,), (1360704846,), (1360704890,), (1360898638,), (1360898684,), (1360901137,), (1360901165,), (1360901571,), (1360902274,), (1360902697,), (1360902731,), (1360903656,), (1360905544,), (1360905547,), (1360906767,), (1360906898,), (1360904199,), (1360904201,), (1360904223,), (1360904253,), (1360904257,), (1360905352,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23052025': {'nb_upload': 28, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23284543]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1360687485, 1360687457, 1360687455, 1360687453, 1360687451, 1360687447, 1360687431, 1360687428, 1360687425, 1360687422, 1360687402, 1360687400, 1360687398, 1360687381, 1360687380, 1360687378, 1360687376, 1360687374, 1360687372, 1360687356, 1360687354, 1360687352, 1360687350, 1360687348, 1360687309, 1360687306, 1360687302, 1360687251] map_info['map_portfolio_photo'] : {23284543: [1360687485, 1360687457, 1360687455, 1360687453, 1360687451, 1360687447, 1360687431, 1360687428, 1360687425, 1360687422, 1360687402, 1360687400, 1360687398, 1360687381, 1360687380, 1360687378, 1360687376, 1360687374, 1360687372, 1360687356, 1360687354, 1360687352, 1360687350, 1360687348, 1360687309, 1360687306, 1360687302, 1360687251]} final : True mtd_id 4302 list_pids : [1360687485, 1360687457, 1360687455, 1360687453, 1360687451, 1360687447, 1360687431, 1360687428, 1360687425, 1360687422, 1360687402, 1360687400, 1360687398, 1360687381, 1360687380, 1360687378, 1360687376, 1360687374, 1360687372, 1360687356, 1360687354, 1360687352, 1360687350, 1360687348, 1360687309, 1360687306, 1360687302, 1360687251] Looping around the photos to save general results len do output : 1 /23284543Didn'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, '2943557') ('4302', '23284543', '1360687485', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687457', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687455', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687453', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687451', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687447', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687431', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687428', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687425', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687422', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687402', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687400', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687398', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687381', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687380', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687378', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687376', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687374', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687372', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687356', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687354', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687352', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687350', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687348', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687309', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687306', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687302', None, None, None, None, None, '2943557') ('4302', None, None, None, None, None, None, None, '2943557') ('4302', '23284543', '1360687251', None, None, None, None, None, '2943557') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 29 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '23284543', 'None', None, None, None, None, '2943557'), ('4302', '23284543', '1360687485', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687457', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687455', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687453', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687451', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687447', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687431', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687428', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687425', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687422', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687402', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687400', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687398', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687381', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687380', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687378', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687376', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687374', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687372', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687356', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687354', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687352', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687350', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687348', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687309', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687306', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687302', None, None, None, None, None, '2943557'), ('4302', '23284543', '1360687251', None, None, None, None, None, '2943557')] time used for this insertion : 0.015571117401123047 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.51257061958313 time spend to save output : 0.01591968536376953 total time spend for step 5 : 3.5284903049468994 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 (2943557) 2.61user 2.41system 0:10.69elapsed 47%CPU (0avgtext+0avgdata 162652maxresident)k 120inputs+16832outputs (10major+76176minor)pagefaults 0swaps