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 : 3852262 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 (2751263) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2751263) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22316204 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2751263'] with mtr_portfolio_ids : ['22316204'] and first list_photo_ids : [] new path : /proc/3852262/ Name: python3 Umask: 0002 State: R (running) Tgid: 3852262 Ngid: 0 Pid: 3852262 PPid: 3852261 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3852262 NSpid: 3852262 NSpgid: 3849020 NSsid: 3849020 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97580 kB VmRSS: 97580 kB RssAnon: 59804 kB RssFile: 37776 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 51 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3852262', 'Ngid': '0', 'Pid': '3852262', 'PPid': '3852261', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3852262', 'NSpid': '3852262', 'NSpgid': '3849020', 'NSsid': '3849020', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97580 kB', 'VmRSS': '97580 kB', 'RssAnon': '59804 kB', 'RssFile': '37776 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '51', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '3852262', '1106936', '0', '1106936', '865684', '97580', b'', 'marlene', '2751263') 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 (22316204) 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 (2751263 ) ) 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 (22316204) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1352787366, 'portfolio_id': 22316204}, {'photo_id': 1352785055, 'portfolio_id': 22316204}, {'photo_id': 1352785052, 'portfolio_id': 22316204}, {'photo_id': 1352785050, 'portfolio_id': 22316204}, {'photo_id': 1352784792, 'portfolio_id': 22316204}, {'photo_id': 1352784765, 'portfolio_id': 22316204}, {'photo_id': 1352784762, 'portfolio_id': 22316204}, {'photo_id': 1352784759, 'portfolio_id': 22316204}, {'photo_id': 1352783794, 'portfolio_id': 22316204}, {'photo_id': 1352783243, 'portfolio_id': 22316204}, {'photo_id': 1352783216, 'portfolio_id': 22316204}, {'photo_id': 1352783191, 'portfolio_id': 22316204}, {'photo_id': 1352782991, 'portfolio_id': 22316204}] map_portfolio_id_photo_id: {22316204: [1352787366, 1352785055, 1352785052, 1352785050, 1352784792, 1352784765, 1352784762, 1352784759, 1352783794, 1352783243, 1352783216, 1352783191, 1352782991]} ##### 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.02264714241027832 #### 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 Wed Apr 23 05:54:56 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 (22316204) 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 : 22316204 get user id for portfolio 22316204 get sub ptf for main ptf 22316204, type 3726 and hashtags ['Carton_gris', 'papier', 'metal', 'cartonnette', 'Teint_Dans_La_Masse', 'kraft', 'plastique', 'mal_croppe', 'Carton_brun', 'autre_refus', 'environnement', 'flou'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22316204 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','metal','cartonnette','Teint_Dans_La_Masse','kraft','plastique','mal_croppe','Carton_brun','autre_refus','environnement','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22316204 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','metal','cartonnette','Teint_Dans_La_Masse','kraft','plastique','mal_croppe','Carton_brun','autre_refus','environnement','flou')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22316204, 'sub_port_id': 22316206, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775780, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 14, 58)}, 'plastique': {'main_port_id': 22316204, 'sub_port_id': 22316207, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775781, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 14, 58)}, 'Carton_gris': {'main_port_id': 22316204, 'sub_port_id': 22316208, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775782, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 14, 58)}, 'Carton_brun': {'main_port_id': 22316204, 'sub_port_id': 22316209, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775783, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 14, 58)}, 'papier': {'main_port_id': 22316204, 'sub_port_id': 22316210, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775784, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 14, 58)}, 'environnement': {'main_port_id': 22316204, 'sub_port_id': 22316211, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775785, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 14, 58)}, 'mal_croppe': {'main_port_id': 22316204, 'sub_port_id': 22316212, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775786, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 14, 58)}, 'metal': {'main_port_id': 22316204, 'sub_port_id': 22316213, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775787, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 14, 58)}, 'cartonnette': {'main_port_id': 22316204, 'sub_port_id': 22316214, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775788, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 14, 58)}, 'kraft': {'main_port_id': 22316204, 'sub_port_id': 22316215, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775789, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 14, 58)}, 'flou': {'main_port_id': 22316204, 'sub_port_id': 22316216, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775790, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 14, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22316204, 'sub_port_id': 22316217, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775791, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 14, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22316206 , 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=22316204 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 (22316206) result : ((1352785164,), (1352788640,), (1352805699,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22316204) result : ((1352782991,), (1352783191,), (1352783216,), (1352783243,), (1352783794,), (1352784759,), (1352784762,), (1352784765,), (1352784792,), (1352785050,), (1352785052,), (1352785055,), (1352787366,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22316207 , 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=22316204 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 (22316207) result : ((1352783502,), (1352783503,), (1352785205,), (1352785206,), (1352785207,), (1352785208,), (1352785210,), (1352785211,), (1352785212,), (1352785213,), (1352785214,), (1352786505,), (1352786507,), (1352786509,), (1352786510,), (1352786511,), (1352788659,), (1352788660,), (1352788662,), (1352788663,), (1352805810,), (1352805811,), (1352805812,), (1352805813,), (1352805814,), (1352805816,), (1352805819,), (1352805820,), (1352805821,), (1352805822,), (1352805823,), (1352805824,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22316204) result : ((1352782991,), (1352783191,), (1352783216,), (1352783243,), (1352783794,), (1352784759,), (1352784762,), (1352784765,), (1352784792,), (1352785050,), (1352785052,), (1352785055,), (1352787366,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22316208 , 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=22316204 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 (22316208) result : ((1352785172,), (1352785173,), (1352786336,), (1352805712,), (1352805713,), (1352805714,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22316204) result : ((1352782991,), (1352783191,), (1352783216,), (1352783243,), (1352783794,), (1352784759,), (1352784762,), (1352784765,), (1352784792,), (1352785050,), (1352785052,), (1352785055,), (1352787366,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22316209 , 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=22316204 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 (22316209) result : ((1352786476,), (1352788645,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22316204) result : ((1352782991,), (1352783191,), (1352783216,), (1352783243,), (1352783794,), (1352784759,), (1352784762,), (1352784765,), (1352784792,), (1352785050,), (1352785052,), (1352785055,), (1352787366,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22316210 , 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=22316204 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 (22316210) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22316204) result : ((1352782991,), (1352783191,), (1352783216,), (1352783243,), (1352783794,), (1352784759,), (1352784762,), (1352784765,), (1352784792,), (1352785050,), (1352785052,), (1352785055,), (1352787366,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22316211 , 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=22316204 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 (22316211) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22316204) result : ((1352782991,), (1352783191,), (1352783216,), (1352783243,), (1352783794,), (1352784759,), (1352784762,), (1352784765,), (1352784792,), (1352785050,), (1352785052,), (1352785055,), (1352787366,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22316212 , 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=22316204 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 (22316212) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22316204) result : ((1352782991,), (1352783191,), (1352783216,), (1352783243,), (1352783794,), (1352784759,), (1352784762,), (1352784765,), (1352784792,), (1352785050,), (1352785052,), (1352785055,), (1352787366,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22316213 , 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=22316204 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 (22316213) result : ((1352786525,), (1352805834,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22316204) result : ((1352782991,), (1352783191,), (1352783216,), (1352783243,), (1352783794,), (1352784759,), (1352784762,), (1352784765,), (1352784792,), (1352785050,), (1352785052,), (1352785055,), (1352787366,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22316214 , 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=22316204 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 (22316214) result : ((1352785182,), (1352785183,), (1352785184,), (1352786375,), (1352805723,), (1352805725,), (1352805726,), (1352805727,), (1352805728,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22316204) result : ((1352782991,), (1352783191,), (1352783216,), (1352783243,), (1352783794,), (1352784759,), (1352784762,), (1352784765,), (1352784792,), (1352785050,), (1352785052,), (1352785055,), (1352787366,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22316215 , 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=22316204 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 (22316215) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22316204) result : ((1352782991,), (1352783191,), (1352783216,), (1352783243,), (1352783794,), (1352784759,), (1352784762,), (1352784765,), (1352784792,), (1352785050,), (1352785052,), (1352785055,), (1352787366,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22316216 , 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=22316204 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 (22316216) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22316204) result : ((1352782991,), (1352783191,), (1352783216,), (1352783243,), (1352783794,), (1352784759,), (1352784762,), (1352784765,), (1352784792,), (1352785050,), (1352785052,), (1352785055,), (1352787366,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22316217 , 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=22316204 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 (22316217) result : ((1352785159,), (1352785160,), (1352786294,), (1352786296,), (1352786298,), (1352788634,), (1352805690,), (1352805691,), (1352805692,), (1352805694,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22316204) result : ((1352782991,), (1352783191,), (1352783216,), (1352783243,), (1352783794,), (1352784759,), (1352784762,), (1352784765,), (1352784792,), (1352785050,), (1352785052,), (1352785055,), (1352787366,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22316204 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','metal','cartonnette','Teint_Dans_La_Masse','kraft','plastique','mal_croppe','Carton_brun','autre_refus','environnement','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22316204 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','metal','cartonnette','Teint_Dans_La_Masse','kraft','plastique','mal_croppe','Carton_brun','autre_refus','environnement','flou')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22316204, 'sub_port_id': 22316218, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775792, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 15)}, 'plastique': {'main_port_id': 22316204, 'sub_port_id': 22316219, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775793, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 15)}, 'Carton_gris': {'main_port_id': 22316204, 'sub_port_id': 22316220, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775794, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 15)}, 'Carton_brun': {'main_port_id': 22316204, 'sub_port_id': 22316221, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775795, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 15)}, 'papier': {'main_port_id': 22316204, 'sub_port_id': 22316222, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775796, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 15)}, 'environnement': {'main_port_id': 22316204, 'sub_port_id': 22316223, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775797, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 15)}, 'mal_croppe': {'main_port_id': 22316204, 'sub_port_id': 22316224, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775798, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 15)}, 'metal': {'main_port_id': 22316204, 'sub_port_id': 22316225, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775799, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 15)}, 'cartonnette': {'main_port_id': 22316204, 'sub_port_id': 22316226, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775800, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 15)}, 'kraft': {'main_port_id': 22316204, 'sub_port_id': 22316227, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775801, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 15)}, 'flou': {'main_port_id': 22316204, 'sub_port_id': 22316228, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775802, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 15)}, 'Teint_Dans_La_Masse': {'main_port_id': 22316204, 'sub_port_id': 22316229, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14775803, 'last_updated_at': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 21, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 21, 15)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22316218,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22316206 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22316219,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22316207 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22316220,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22316208 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22316221,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22316209 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22316222,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22316210 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22316223,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22316211 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22316224,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22316212 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22316225,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22316213 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22316226,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22316214 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22316227,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22316215 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22316228,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22316216 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22316229,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22316217 lien utilise dans velours : https://www.fotonower.com/velours/22316218,22316219,22316220,22316221,22316222,22316223,22316224,22316225,22316226,22316227,22316228,22316229?tags=autre_refus,plastique,Carton_gris,Carton_brun,papier,environnement,mal_croppe,metal,cartonnette,kraft,flou,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22316204]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1352787366, 1352785055, 1352785052, 1352785050, 1352784792, 1352784765, 1352784762, 1352784759, 1352783794, 1352783243, 1352783216, 1352783191, 1352782991] map_info['map_portfolio_photo'] : {22316204: [1352787366, 1352785055, 1352785052, 1352785050, 1352784792, 1352784765, 1352784762, 1352784759, 1352783794, 1352783243, 1352783216, 1352783191, 1352782991]} final : False mtd_id 4302 list_pids : [1352787366, 1352785055, 1352785052, 1352785050, 1352784792, 1352784765, 1352784762, 1352784759, 1352783794, 1352783243, 1352783216, 1352783191, 1352782991] Looping around the photos to save general results len do output : 1 /22316204. 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, '2751263') ('4302', '22316204', '1352787366', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352785055', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352785052', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352785050', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352784792', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352784765', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352784762', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352784759', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352783794', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352783243', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352783216', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352783191', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352782991', None, None, None, None, None, '2751263') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '22316204', "{'autre_refus': 22316206, 'plastique': 22316207, 'Carton_gris': 22316208, 'Carton_brun': 22316209, 'papier': 22316210, 'environnement': 22316211, 'mal_croppe': 22316212, 'metal': 22316213, 'cartonnette': 22316214, 'kraft': 22316215, 'flou': 22316216, 'Teint_Dans_La_Masse': 22316217}", None, None, None, None, '2751263'), ('4302', '22316204', '1352787366', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352785055', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352785052', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352785050', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352784792', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352784765', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352784762', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352784759', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352783794', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352783243', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352783216', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352783191', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352782991', None, None, None, None, None, '2751263')] time used for this insertion : 0.015530586242675781 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4571239948272705 time spend to save output : 0.01587963104248047 total time spend for step 1 : 1.473003625869751 step2:final Wed Apr 23 05:54: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 (22316204) 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 22316204 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1352782991,1352783243,1352783216,1352783191,1352783794,1352784792,1352784765,1352784762,1352784759,1352785055,1352785052,1352785050,1352787366); 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([22316204]) Inside saveOutput : final : False verbose : True original output for save of step final : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ('0.12051910287255656',), 1352783216: ('0.12051910287255656',), 1352783191: ('0.12051910287255656',), 1352782991: ('0.12051910287255656',)} new output for save of step final : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ('0.12051910287255656',), 1352783216: ('0.12051910287255656',), 1352783191: ('0.12051910287255656',), 1352782991: ('0.12051910287255656',)} [1352787366, 1352785055, 1352785052, 1352785050, 1352784792, 1352784765, 1352784762, 1352784759, 1352783794, 1352783243, 1352783216, 1352783191, 1352782991] map_info['map_portfolio_photo'] : {22316204: [1352787366, 1352785055, 1352785052, 1352785050, 1352784792, 1352784765, 1352784762, 1352784759, 1352783794, 1352783243, 1352783216, 1352783191, 1352782991]} final : False mtd_id 4302 list_pids : [1352787366, 1352785055, 1352785052, 1352785050, 1352784792, 1352784765, 1352784762, 1352784759, 1352783794, 1352783243, 1352783216, 1352783191, 1352782991] Looping around the photos to save general results len do output : 13 /1352787366.Didn't retrieve data . /1352785055.Didn't retrieve data . /1352785052.Didn't retrieve data . /1352785050.Didn't retrieve data . /1352784792.Didn't retrieve data . /1352784765.Didn't retrieve data . /1352784762.Didn't retrieve data . /1352784759.Didn't retrieve data . /1352783794.Didn't retrieve data . /1352783243.Didn't retrieve data . /1352783216.Didn't retrieve data . /1352783191.Didn't retrieve data . /1352782991.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, '2751263') ('4302', '22316204', '1352787366', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352785055', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352785052', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352785050', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352784792', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352784765', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352784762', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352784759', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352783794', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352783243', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352783216', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352783191', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352782991', None, None, None, None, None, '2751263') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '22316204', '1352787366', '0.12051910287255656', None, None, None, None, '2751263'), ('4302', '22316204', '1352785055', '0.12051910287255656', None, None, None, None, '2751263'), ('4302', '22316204', '1352785052', '0.12051910287255656', None, None, None, None, '2751263'), ('4302', '22316204', '1352785050', '0.12051910287255656', None, None, None, None, '2751263'), ('4302', '22316204', '1352784792', '0.12051910287255656', None, None, None, None, '2751263'), ('4302', '22316204', '1352784765', '0.12051910287255656', None, None, None, None, '2751263'), ('4302', '22316204', '1352784762', '0.12051910287255656', None, None, None, None, '2751263'), ('4302', '22316204', '1352784759', '0.12051910287255656', None, None, None, None, '2751263'), ('4302', '22316204', '1352783794', '0.12051910287255656', None, None, None, None, '2751263'), ('4302', '22316204', '1352783243', '0.12051910287255656', None, None, None, None, '2751263'), ('4302', '22316204', '1352783216', '0.12051910287255656', None, None, None, None, '2751263'), ('4302', '22316204', '1352783191', '0.12051910287255656', None, None, None, None, '2751263'), ('4302', '22316204', '1352782991', '0.12051910287255656', None, None, None, None, '2751263')] time used for this insertion : 0.014078140258789062 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06479549407958984 time spend to save output : 0.014743566513061523 total time spend for step 2 : 0.07953906059265137 step3:velours_tree Wed Apr 23 05:54: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 : {22316204: [{'autre_refus': 22316206, 'plastique': 22316207, 'Carton_gris': 22316208, 'Carton_brun': 22316209, 'papier': 22316210, 'environnement': 22316211, 'mal_croppe': 22316212, 'metal': 22316213, 'cartonnette': 22316214, 'kraft': 22316215, 'flou': 22316216, 'Teint_Dans_La_Masse': 22316217}]} input_args_next_step : {22316204: ()} output_args : {22316204: [{'autre_refus': 22316206, 'plastique': 22316207, 'Carton_gris': 22316208, 'Carton_brun': 22316209, 'papier': 22316210, 'environnement': 22316211, 'mal_croppe': 22316212, 'metal': 22316213, 'cartonnette': 22316214, 'kraft': 22316215, 'flou': 22316216, 'Teint_Dans_La_Masse': 22316217}]} args : 22316204 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 : ({'autre_refus': 22316206, 'plastique': 22316207, 'Carton_gris': 22316208, 'Carton_brun': 22316209, 'papier': 22316210, 'environnement': 22316211, 'mal_croppe': 22316212, 'metal': 22316213, 'cartonnette': 22316214, 'kraft': 22316215, 'flou': 22316216, 'Teint_Dans_La_Masse': 22316217},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22316204) 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([22316204]) 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.28745150566101074 time spend to save output : 4.9591064453125e-05 total time spend for step 3 : 0.28750109672546387 step4:send_mail_cod Wed Apr 23 05:54: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 : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ('0.12051910287255656',), 1352783216: ('0.12051910287255656',), 1352783191: ('0.12051910287255656',), 1352782991: ('0.12051910287255656',)} input_args_next_step : {1352787366: ()} output_args : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ('0.12051910287255656',), 1352783216: ('0.12051910287255656',), 1352783191: ('0.12051910287255656',), 1352782991: ('0.12051910287255656',)} args : 1352787366 depend.output_id : 0 input_args_next_step : {1352787366: ('0.12051910287255656',), 1352785055: ()} output_args : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ('0.12051910287255656',), 1352783216: ('0.12051910287255656',), 1352783191: ('0.12051910287255656',), 1352782991: ('0.12051910287255656',)} args : 1352785055 depend.output_id : 0 input_args_next_step : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ()} output_args : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ('0.12051910287255656',), 1352783216: ('0.12051910287255656',), 1352783191: ('0.12051910287255656',), 1352782991: ('0.12051910287255656',)} args : 1352785052 depend.output_id : 0 input_args_next_step : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ()} output_args : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ('0.12051910287255656',), 1352783216: ('0.12051910287255656',), 1352783191: ('0.12051910287255656',), 1352782991: ('0.12051910287255656',)} args : 1352785050 depend.output_id : 0 input_args_next_step : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ()} output_args : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ('0.12051910287255656',), 1352783216: ('0.12051910287255656',), 1352783191: ('0.12051910287255656',), 1352782991: ('0.12051910287255656',)} args : 1352784792 depend.output_id : 0 input_args_next_step : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ()} output_args : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ('0.12051910287255656',), 1352783216: ('0.12051910287255656',), 1352783191: ('0.12051910287255656',), 1352782991: ('0.12051910287255656',)} args : 1352784765 depend.output_id : 0 input_args_next_step : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ()} output_args : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ('0.12051910287255656',), 1352783216: ('0.12051910287255656',), 1352783191: ('0.12051910287255656',), 1352782991: ('0.12051910287255656',)} args : 1352784762 depend.output_id : 0 input_args_next_step : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ()} output_args : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ('0.12051910287255656',), 1352783216: ('0.12051910287255656',), 1352783191: ('0.12051910287255656',), 1352782991: ('0.12051910287255656',)} args : 1352784759 depend.output_id : 0 input_args_next_step : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ()} output_args : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ('0.12051910287255656',), 1352783216: ('0.12051910287255656',), 1352783191: ('0.12051910287255656',), 1352782991: ('0.12051910287255656',)} args : 1352783794 depend.output_id : 0 input_args_next_step : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ()} output_args : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ('0.12051910287255656',), 1352783216: ('0.12051910287255656',), 1352783191: ('0.12051910287255656',), 1352782991: ('0.12051910287255656',)} args : 1352783243 depend.output_id : 0 input_args_next_step : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ('0.12051910287255656',), 1352783216: ()} output_args : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ('0.12051910287255656',), 1352783216: ('0.12051910287255656',), 1352783191: ('0.12051910287255656',), 1352782991: ('0.12051910287255656',)} args : 1352783216 depend.output_id : 0 input_args_next_step : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ('0.12051910287255656',), 1352783216: ('0.12051910287255656',), 1352783191: ()} output_args : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ('0.12051910287255656',), 1352783216: ('0.12051910287255656',), 1352783191: ('0.12051910287255656',), 1352782991: ('0.12051910287255656',)} args : 1352783191 depend.output_id : 0 input_args_next_step : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ('0.12051910287255656',), 1352783216: ('0.12051910287255656',), 1352783191: ('0.12051910287255656',), 1352782991: ()} output_args : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ('0.12051910287255656',), 1352783216: ('0.12051910287255656',), 1352783191: ('0.12051910287255656',), 1352782991: ('0.12051910287255656',)} args : 1352782991 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 : {22316204: [{'autre_refus': 22316206, 'plastique': 22316207, 'Carton_gris': 22316208, 'Carton_brun': 22316209, 'papier': 22316210, 'environnement': 22316211, 'mal_croppe': 22316212, 'metal': 22316213, 'cartonnette': 22316214, 'kraft': 22316215, 'flou': 22316216, 'Teint_Dans_La_Masse': 22316217}]} input_args_next_step : {1352787366: ('0.12051910287255656',), 1352785055: ('0.12051910287255656',), 1352785052: ('0.12051910287255656',), 1352785050: ('0.12051910287255656',), 1352784792: ('0.12051910287255656',), 1352784765: ('0.12051910287255656',), 1352784762: ('0.12051910287255656',), 1352784759: ('0.12051910287255656',), 1352783794: ('0.12051910287255656',), 1352783243: ('0.12051910287255656',), 1352783216: ('0.12051910287255656',), 1352783191: ('0.12051910287255656',), 1352782991: ('0.12051910287255656',), 22316204: ()} output_args : {22316204: [{'autre_refus': 22316206, 'plastique': 22316207, 'Carton_gris': 22316208, 'Carton_brun': 22316209, 'papier': 22316210, 'environnement': 22316211, 'mal_croppe': 22316212, 'metal': 22316213, 'cartonnette': 22316214, 'kraft': 22316215, 'flou': 22316216, 'Teint_Dans_La_Masse': 22316217}]} args : 22316204 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 :14, first value : ('0.12051910287255656',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22316204) 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 (1352787366,1352785055,1352785052,1352785050,1352784792,1352784765,1352784762,1352784759,1352783794,1352783243,1352783216,1352783191,1352782991) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1352782991 begin to download photo : 1352783243 begin to download photo : 1352784762 begin to download photo : 1352785050 begin to download photo : 1352787366 download finish for photo 1352785050 begin to download photo : 1352785052 download finish for photo 1352787366 download finish for photo 1352783243 begin to download photo : 1352783794 download finish for photo 1352782991 begin to download photo : 1352783191 download finish for photo 1352784762 begin to download photo : 1352784765 download finish for photo 1352783794 begin to download photo : 1352784759 download finish for photo 1352784759 download finish for photo 1352783191 begin to download photo : 1352783216 download finish for photo 1352783216 download finish for photo 1352784765 begin to download photo : 1352784792 download finish for photo 1352784792 download finish for photo 1352785052 begin to download photo : 1352785055 download finish for photo 1352785055 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P22316204_23-04-2025_05_55_02.pdf 22316206 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=22316206 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352785164: '1745349314_3500181_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764022996_0.png', 1352788640: '1745349551_3502907_1352787366_f83947a53ead1182ef1248c338d15281_rle_crop_3764027523_0.png', 1352805699: '1745352074_3535071_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764022996_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/2f229e8f4b72862017183bde83a31b2a_95796120.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/388f73d813d2f08ff8a75ab7b3e028c2_77105847.png change filename to text .imagette223162061745380502/ imagette223162061745380502/1745349551_3502907_1352787366_f83947a53ead1182ef1248c338d15281_rle_crop_3764027523_0.png.png imagette223162061745380502/1745349314_3500181_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764022996_0.png.png imagette223162061745380502/1745352074_3535071_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764022996_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/2f229e8f4b72862017183bde83a31b2a_60568522.png imagette223162061745380502 22316207 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=22316207 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352788659: '1745349551_3502907_1352787366_f83947a53ead1182ef1248c338d15281_rle_crop_3764027530_0.png', 1352805824: '1745352074_3535071_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764022997_0.png', 1352805823: '1745352074_3535071_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764023000_0.png', 1352805822: '1745352074_3535071_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764023011_0.png', 1352805821: '1745352074_3535071_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764023010_0.png', 1352805820: '1745352074_3535071_1352784762_9f42482142f3c1365a31975697fbc27e_rle_crop_3764022743_0.png', 1352805819: '1745352074_3535071_1352784762_9f42482142f3c1365a31975697fbc27e_rle_crop_3764022745_0.png', 1352805816: '1745352074_3535071_1352784762_9f42482142f3c1365a31975697fbc27e_rle_crop_3764022746_0.png', 1352805814: '1745352074_3535071_1352784762_9f42482142f3c1365a31975697fbc27e_rle_crop_3764134159_0.png', 1352805813: '1745352074_3535071_1352784765_d3ae7c9e0736a248a8e2324ffc96b95e_rle_crop_3764022680_0.png', 1352805812: '1745352074_3535071_1352784765_d3ae7c9e0736a248a8e2324ffc96b95e_rle_crop_3764022682_0.png', 1352805811: '1745352074_3535071_1352785055_539401ab469fc8e19ef6b17fdae9c409_rle_crop_3764134144_0.png', 1352805810: '1745352074_3535071_1352785055_539401ab469fc8e19ef6b17fdae9c409_rle_crop_3764134142_0.png', 1352788663: '1745349551_3502907_1352787366_f83947a53ead1182ef1248c338d15281_rle_crop_3764027536_0.png', 1352788662: '1745349551_3502907_1352787366_f83947a53ead1182ef1248c338d15281_rle_crop_3764027528_0.png', 1352788660: '1745349551_3502907_1352787366_f83947a53ead1182ef1248c338d15281_rle_crop_3764027526_0.png', 1352783502: '1745348832_3496585_1352783191_1c4dc6a6c7352363fdf0481dd42913db_rle_crop_3763993519_0.png', 1352786511: '1745349422_3501729_1352785050_f6306c7f54996fb90d6602b59104136d_rle_crop_3764027275_0.png', 1352786510: '1745349422_3501729_1352785050_f6306c7f54996fb90d6602b59104136d_rle_crop_3764027283_0.png', 1352786509: '1745349422_3501729_1352785050_f6306c7f54996fb90d6602b59104136d_rle_crop_3764027280_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/a020b15e1baabf4d2ca2c3ace6f4a4c3_66934892.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/7ed265c3d9a0d34f8e1f1a2e9cbf24c3_38168913.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/dd4d831b6a01c447043ad472e9d0b151_94396940.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/9ff09c5b860d1d52c1cbdc1cc6e8d04c_46268003.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/4515759e45f05674cd55a85437e69172_76043202.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/1eca9a3c5dfd0d5f138b2656e9cde243_18150893.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/4da1ebab301d37c9ed4ab14856c4b736_53830473.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/c68d55ec55d06b3d4958a120064729b8_34380197.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/a40295b4db3f529284262c769052aa11_9965453.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/e145a70adee3140e894ea6ce2522918e_81150799.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/8bff833235cbb19325893c0eb526cd7b_16865038.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/d39729f6a9d38ae89248167ea402125b_38735493.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/52af7637a5e34f0d68962959a542a26f_5248534.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/1c9843b405b04cfe26b71a6fb4ccc65f_93702682.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/1e86d55ee16594499b868a17485b66e7_47015497.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/072516e452b5325706b9984df83d161e_78784326.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/72c0669bd44593814e5a3020f8e9f966_15702080.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/5aa7f1ea64adb0bb2cc7c4bb0fbdf817_38301924.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/4cd8d7e34058730c92f5a00c1247f2d0_36237821.png change filename to text .imagette223162071745380502/ imagette223162071745380502/1745352074_3535071_1352784765_d3ae7c9e0736a248a8e2324ffc96b95e_rle_crop_3764022682_0.png.png imagette223162071745380502/1745352074_3535071_1352784762_9f42482142f3c1365a31975697fbc27e_rle_crop_3764022743_0.png.png imagette223162071745380502/1745349422_3501729_1352785050_f6306c7f54996fb90d6602b59104136d_rle_crop_3764027275_0.png.png imagette223162071745380502/1745349551_3502907_1352787366_f83947a53ead1182ef1248c338d15281_rle_crop_3764027530_0.png.png imagette223162071745380502/1745352074_3535071_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764023010_0.png.png imagette223162071745380502/1745352074_3535071_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764023000_0.png.png imagette223162071745380502/1745352074_3535071_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764022997_0.png.png imagette223162071745380502/1745348832_3496585_1352783191_1c4dc6a6c7352363fdf0481dd42913db_rle_crop_3763993519_0.png.png imagette223162071745380502/1745352074_3535071_1352784762_9f42482142f3c1365a31975697fbc27e_rle_crop_3764134159_0.png.png imagette223162071745380502/1745349551_3502907_1352787366_f83947a53ead1182ef1248c338d15281_rle_crop_3764027526_0.png.png imagette223162071745380502/1745352074_3535071_1352785055_539401ab469fc8e19ef6b17fdae9c409_rle_crop_3764134142_0.png.png imagette223162071745380502/1745349422_3501729_1352785050_f6306c7f54996fb90d6602b59104136d_rle_crop_3764027280_0.png.png imagette223162071745380502/1745352074_3535071_1352785055_539401ab469fc8e19ef6b17fdae9c409_rle_crop_3764134144_0.png.png imagette223162071745380502/1745349551_3502907_1352787366_f83947a53ead1182ef1248c338d15281_rle_crop_3764027528_0.png.png imagette223162071745380502/1745352074_3535071_1352784765_d3ae7c9e0736a248a8e2324ffc96b95e_rle_crop_3764022680_0.png.png imagette223162071745380502/1745352074_3535071_1352784762_9f42482142f3c1365a31975697fbc27e_rle_crop_3764022745_0.png.png imagette223162071745380502/1745352074_3535071_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764023011_0.png.png imagette223162071745380502/1745349551_3502907_1352787366_f83947a53ead1182ef1248c338d15281_rle_crop_3764027536_0.png.png imagette223162071745380502/1745352074_3535071_1352784762_9f42482142f3c1365a31975697fbc27e_rle_crop_3764022746_0.png.png imagette223162071745380502/1745349422_3501729_1352785050_f6306c7f54996fb90d6602b59104136d_rle_crop_3764027283_0.png.png imagette223162121745380504/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/0dd581201a140bc401c90570927d370d_21993658.png imagette223162071745380502 22316212 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=22316212 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223162121745380504 22316213 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=22316213 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352786525: '1745349422_3501729_1352785052_b61461322bbfa7d12c51505e3119bb76_rle_crop_3764027257_0.png', 1352805834: '1745352074_3535071_1352785055_539401ab469fc8e19ef6b17fdae9c409_rle_crop_3764134139_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/aa55624ac18eb214a84e6ba60f554eb9_61794916.png change filename to text .imagette223162131745380504/ imagette223162131745380504/1745352074_3535071_1352785055_539401ab469fc8e19ef6b17fdae9c409_rle_crop_3764134139_0.png.png imagette223162131745380504/1745349422_3501729_1352785052_b61461322bbfa7d12c51505e3119bb76_rle_crop_3764027257_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/815c6032f195813e43cdda1060961df7_4420857.png imagette223162131745380504 22316214 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=22316214 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352785182: '1745349314_3500181_1352784765_d3ae7c9e0736a248a8e2324ffc96b95e_rle_crop_3764022674_0.png', 1352785183: '1745349314_3500181_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764023005_0.png', 1352785184: '1745349314_3500181_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764022998_0.png', 1352786375: '1745349422_3501729_1352785052_b61461322bbfa7d12c51505e3119bb76_rle_crop_3764027255_0.png', 1352805723: '1745352074_3535071_1352785055_539401ab469fc8e19ef6b17fdae9c409_rle_crop_3764134138_0.png', 1352805725: '1745352074_3535071_1352785055_539401ab469fc8e19ef6b17fdae9c409_rle_crop_3764134134_0.png', 1352805726: '1745352074_3535071_1352784765_d3ae7c9e0736a248a8e2324ffc96b95e_rle_crop_3764022674_0.png', 1352805727: '1745352074_3535071_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764023005_0.png', 1352805728: '1745352074_3535071_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764022998_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/8b0d24063720b193aacc67eb6442a34c_51970889.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/b2e76d687ce02ea1abd2a4f6996651a4_4048190.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/d1be8059aa14f5d25667ca107ab907f4_90763057.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/993bf636aedceec88bed76e0514fab3c_47587349.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/c6eca6ce49dcfaa5a8719797369eb02c_30084388.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/67f27ec0a70561b4f7a4f11c44d184cf_58560641.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/8b0d24063720b193aacc67eb6442a34c_55348034.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/b2e76d687ce02ea1abd2a4f6996651a4_42859015.png change filename to text .imagette223162141745380504/ imagette223162141745380504/1745352074_3535071_1352785055_539401ab469fc8e19ef6b17fdae9c409_rle_crop_3764134138_0.png.png imagette223162141745380504/1745349422_3501729_1352785052_b61461322bbfa7d12c51505e3119bb76_rle_crop_3764027255_0.png.png imagette223162141745380504/1745352074_3535071_1352785055_539401ab469fc8e19ef6b17fdae9c409_rle_crop_3764134134_0.png.png imagette223162141745380504/1745352074_3535071_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764022998_0.png.png imagette223162141745380504/1745349314_3500181_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764022998_0.png.png imagette223162141745380504/1745349314_3500181_1352784765_d3ae7c9e0736a248a8e2324ffc96b95e_rle_crop_3764022674_0.png.png imagette223162141745380504/1745352074_3535071_1352784765_d3ae7c9e0736a248a8e2324ffc96b95e_rle_crop_3764022674_0.png.png imagette223162141745380504/1745352074_3535071_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764023005_0.png.png imagette223162141745380504/1745349314_3500181_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764023005_0.png.png imagette223162151745380505/ imagette223162161745380505/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/d1be8059aa14f5d25667ca107ab907f4_8459955.png imagette223162141745380504 22316215 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=22316215 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223162151745380505 22316216 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=22316216 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223162161745380505 22316208 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=22316208 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352785172: '1745349314_3500181_1352784762_9f42482142f3c1365a31975697fbc27e_rle_crop_3764022738_0.png', 1352785173: '1745349314_3500181_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764023002_0.png', 1352786336: '1745349422_3501729_1352785052_b61461322bbfa7d12c51505e3119bb76_rle_crop_3764027263_0.png', 1352805712: '1745352074_3535071_1352785055_539401ab469fc8e19ef6b17fdae9c409_rle_crop_3764134135_0.png', 1352805713: '1745352074_3535071_1352784762_9f42482142f3c1365a31975697fbc27e_rle_crop_3764022738_0.png', 1352805714: '1745352074_3535071_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764023002_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/48e5b11e0573a4ab4de24286e9177494_43670557.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/c6e7d5ecaaa9953a65589207c36ec35e_77801267.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/8867e382be1b08692362804e96e7c392_69994713.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/72c6193a395c3e3f5983f81f3bcb3600_74381496.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/48e5b11e0573a4ab4de24286e9177494_29297025.png change filename to text .imagette223162081745380505/ imagette223162081745380505/1745352074_3535071_1352784762_9f42482142f3c1365a31975697fbc27e_rle_crop_3764022738_0.png.png imagette223162081745380505/1745349422_3501729_1352785052_b61461322bbfa7d12c51505e3119bb76_rle_crop_3764027263_0.png.png imagette223162081745380505/1745352074_3535071_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764023002_0.png.png imagette223162081745380505/1745352074_3535071_1352785055_539401ab469fc8e19ef6b17fdae9c409_rle_crop_3764134135_0.png.png imagette223162081745380505/1745349314_3500181_1352784762_9f42482142f3c1365a31975697fbc27e_rle_crop_3764022738_0.png.png imagette223162081745380505/1745349314_3500181_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764023002_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/c6e7d5ecaaa9953a65589207c36ec35e_90995977.png imagette223162081745380505 22316209 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=22316209 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352786476: '1745349422_3501729_1352785050_f6306c7f54996fb90d6602b59104136d_rle_crop_3764027276_0.png', 1352788645: '1745349551_3502907_1352787366_f83947a53ead1182ef1248c338d15281_rle_crop_3764027522_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/b37f6ef30666c617ba20b85c22e1a39e_16668318.png change filename to text .imagette223162091745380506/ imagette223162091745380506/1745349422_3501729_1352785050_f6306c7f54996fb90d6602b59104136d_rle_crop_3764027276_0.png.png imagette223162091745380506/1745349551_3502907_1352787366_f83947a53ead1182ef1248c338d15281_rle_crop_3764027522_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/f9550d3a79973c32142ee01f12427d52_69829867.png imagette223162091745380506 22316217 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=22316217 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352785159: '1745349314_3500181_1352784762_9f42482142f3c1365a31975697fbc27e_rle_crop_3764022742_0.png', 1352785160: '1745349314_3500181_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764023008_0.png', 1352786294: '1745349422_3501729_1352785052_b61461322bbfa7d12c51505e3119bb76_rle_crop_3764027262_0.png', 1352786296: '1745349422_3501729_1352785052_b61461322bbfa7d12c51505e3119bb76_rle_crop_3764027259_0.png', 1352786298: '1745349422_3501729_1352785050_f6306c7f54996fb90d6602b59104136d_rle_crop_3764027279_0.png', 1352788634: '1745349551_3502907_1352787366_f83947a53ead1182ef1248c338d15281_rle_crop_3764027535_0.png', 1352805690: '1745352074_3535071_1352785055_539401ab469fc8e19ef6b17fdae9c409_rle_crop_3764134141_0.png', 1352805691: '1745352074_3535071_1352785055_539401ab469fc8e19ef6b17fdae9c409_rle_crop_3764134136_0.png', 1352805692: '1745352074_3535071_1352784762_9f42482142f3c1365a31975697fbc27e_rle_crop_3764022742_0.png', 1352805694: '1745352074_3535071_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764023008_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/ad78752e471a43970f66d3e4e382824e_92595149.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/666303adf379a0811663609cbda59627_13573536.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/d2b215ee544eebca4fcb694ca75ca6a8_55026491.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/649abb001a3d9e10ec4c77901a3577d4_14414715.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/ad3e101b7e69dba079e8a39949757a98_99991259.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/743d1da88fd4d4cae2a076ce55b62bed_81192687.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/4f05eb8603cedd894e4860d28e85c839_58675165.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/e6b23232e9d9fc5ead97740f50450c12_42548509.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/ad78752e471a43970f66d3e4e382824e_61617249.png change filename to text .imagette223162171745380506/ imagette223162171745380506/1745349314_3500181_1352784762_9f42482142f3c1365a31975697fbc27e_rle_crop_3764022742_0.png.png imagette223162171745380506/1745349422_3501729_1352785052_b61461322bbfa7d12c51505e3119bb76_rle_crop_3764027262_0.png.png imagette223162171745380506/1745349551_3502907_1352787366_f83947a53ead1182ef1248c338d15281_rle_crop_3764027535_0.png.png imagette223162171745380506/1745352074_3535071_1352785055_539401ab469fc8e19ef6b17fdae9c409_rle_crop_3764134136_0.png.png imagette223162171745380506/1745352074_3535071_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764023008_0.png.png imagette223162171745380506/1745352074_3535071_1352784762_9f42482142f3c1365a31975697fbc27e_rle_crop_3764022742_0.png.png imagette223162171745380506/1745349422_3501729_1352785050_f6306c7f54996fb90d6602b59104136d_rle_crop_3764027279_0.png.png imagette223162171745380506/1745349314_3500181_1352784759_3d836dce73b898ca57f38e59be30296d_rle_crop_3764023008_0.png.png imagette223162171745380506/1745352074_3535071_1352785055_539401ab469fc8e19ef6b17fdae9c409_rle_crop_3764134141_0.png.png imagette223162171745380506/1745349422_3501729_1352785052_b61461322bbfa7d12c51505e3119bb76_rle_crop_3764027259_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/666303adf379a0811663609cbda59627_93959177.png imagette223162171745380506 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22316204 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22316218,22316219,22316220,22316221,22316222,22316223,22316224,22316225,22316226,22316227,22316228,22316229?tags=autre_refus,plastique,Carton_gris,Carton_brun,papier,environnement,mal_croppe,metal,cartonnette,kraft,flou,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1352787366] : ('0.12051910287255656',) no score found for photo 1352787366 We are sending mail with results at report@fotonower.com args[1352785055] : ('0.12051910287255656',) no score found for photo 1352785055 We are sending mail with results at report@fotonower.com args[1352785052] : ('0.12051910287255656',) no score found for photo 1352785052 We are sending mail with results at report@fotonower.com args[1352785050] : ('0.12051910287255656',) no score found for photo 1352785050 We are sending mail with results at report@fotonower.com args[1352784792] : ('0.12051910287255656',) no score found for photo 1352784792 We are sending mail with results at report@fotonower.com args[1352784765] : ('0.12051910287255656',) no score found for photo 1352784765 We are sending mail with results at report@fotonower.com args[1352784762] : ('0.12051910287255656',) no score found for photo 1352784762 We are sending mail with results at report@fotonower.com args[1352784759] : ('0.12051910287255656',) no score found for photo 1352784759 We are sending mail with results at report@fotonower.com args[1352783794] : ('0.12051910287255656',) no score found for photo 1352783794 We are sending mail with results at report@fotonower.com args[1352783243] : ('0.12051910287255656',) no score found for photo 1352783243 We are sending mail with results at report@fotonower.com args[1352783216] : ('0.12051910287255656',) no score found for photo 1352783216 We are sending mail with results at report@fotonower.com args[1352783191] : ('0.12051910287255656',) no score found for photo 1352783191 We are sending mail with results at report@fotonower.com args[1352782991] : ('0.12051910287255656',) no score found for photo 1352782991 We are sending mail with results at report@fotonower.com refus_total : 0.12051910287255656 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=22316204 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_P22316204_23-04-2025_05_55_02.pdf results_Auto_P22316204_23-04-2025_05_55_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22316204_23-04-2025_05_55_02.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','22316204','results_Auto_P22316204_23-04-2025_05_55_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22316204_23-04-2025_05_55_02.pdf','pdf','','0.29','0.12051910287255656') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22316204]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1352787366, 1352785055, 1352785052, 1352785050, 1352784792, 1352784765, 1352784762, 1352784759, 1352783794, 1352783243, 1352783216, 1352783191, 1352782991] map_info['map_portfolio_photo'] : {22316204: [1352787366, 1352785055, 1352785052, 1352785050, 1352784792, 1352784765, 1352784762, 1352784759, 1352783794, 1352783243, 1352783216, 1352783191, 1352782991]} final : False mtd_id 4302 list_pids : [1352787366, 1352785055, 1352785052, 1352785050, 1352784792, 1352784765, 1352784762, 1352784759, 1352783794, 1352783243, 1352783216, 1352783191, 1352782991] 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, '2751263') ('4302', '22316204', '1352787366', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352785055', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352785052', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352785050', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352784792', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352784765', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352784762', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352784759', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352783794', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352783243', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352783216', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352783191', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352782991', None, None, None, None, None, '2751263') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '22316204', '1352787366', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352785055', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352785052', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352785050', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352784792', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352784765', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352784762', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352784759', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352783794', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352783243', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352783216', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352783191', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352782991', None, None, None, None, None, '2751263')] time used for this insertion : 0.013474702835083008 save_final save missing photos in datou_result : time spend for datou_step_exec : 10.001662969589233 time spend to save output : 0.013741731643676758 total time spend for step 4 : 10.01540470123291 step5:split_time_score Wed Apr 23 05:55:08 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22316204'] 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 : [('22316204',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22316204) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1352787366: {'path': 'temp/1745380498_3852262_1352787366_f83947a53ead1182ef1248c338d15281.jpg', 'extension': 'jpg'}, 1352783243: {'path': 'temp/1745380498_3852262_1352783243_23c56c3244bc09f0a4cf81b54faed72a.jpg', 'extension': 'jpg'}, 1352783794: {'path': 'temp/1745380498_3852262_1352783794_93a5fb070685f78de69bc8b5d8edc908.jpg', 'extension': 'jpg'}, 1352784759: {'path': 'temp/1745380498_3852262_1352784759_3d836dce73b898ca57f38e59be30296d.jpg', 'extension': 'jpg'}, 1352782991: {'path': 'temp/1745380498_3852262_1352782991_1966d7639744ce23ed5a08b151fcd081.jpg', 'extension': 'jpg'}, 1352783191: {'path': 'temp/1745380498_3852262_1352783191_1c4dc6a6c7352363fdf0481dd42913db.jpg', 'extension': 'jpg'}, 1352783216: {'path': 'temp/1745380498_3852262_1352783216_ebde4d89fb596b3653c564de250e460c.jpg', 'extension': 'jpg'}, 1352784762: {'path': 'temp/1745380498_3852262_1352784762_9f42482142f3c1365a31975697fbc27e.jpg', 'extension': 'jpg'}, 1352784765: {'path': 'temp/1745380498_3852262_1352784765_d3ae7c9e0736a248a8e2324ffc96b95e.jpg', 'extension': 'jpg'}, 1352784792: {'path': 'temp/1745380498_3852262_1352784792_fa6a1615f467b747c2b02bf2dcde5145.jpg', 'extension': 'jpg'}, 1352785050: {'path': 'temp/1745380498_3852262_1352785050_f6306c7f54996fb90d6602b59104136d.jpg', 'extension': 'jpg'}, 1352785052: {'path': 'temp/1745380498_3852262_1352785052_b61461322bbfa7d12c51505e3119bb76.jpg', 'extension': 'jpg'}, 1352785055: {'path': 'temp/1745380498_3852262_1352785055_539401ab469fc8e19ef6b17fdae9c409.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 = 22316204; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22316204 group by h (('21', 13),) 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=22316204 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 (22316204) 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 (22316204) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 22042025 22316204 Nombre de photos uploadées : 13 / 23040 (0%) 22042025 22316204 Nombre de photos taguées (types de déchets): 0 / 13 (0%) 22042025 22316204 Nombre de photos taguées (volume) : 0 / 13 (0%) [{'photo_id': 1352782991, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/1966d7639744ce23ed5a08b151fcd081.jpg', 'username': None, 'uploaded_at': 1745348707, 'text': 'image_22042025_21_02_04_10150.jpg'}, {'photo_id': 1352783243, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/23c56c3244bc09f0a4cf81b54faed72a.jpg', 'username': None, 'uploaded_at': 1745348767, 'text': 'image_22042025_21_04_44_9134.jpg'}, {'photo_id': 1352783216, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/ebde4d89fb596b3653c564de250e460c.jpg', 'username': None, 'uploaded_at': 1745348767, 'text': 'image_22042025_21_05_14_010135m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1352783191, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/1c4dc6a6c7352363fdf0481dd42913db.jpg', 'username': None, 'uploaded_at': 1745348767, 'text': 'image_22042025_21_05_24_010137m0.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 6.9141387939453125e-06 ????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0007164478302001953 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22316204, '2025-04-22' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1735821,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02283191680908203 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= 1735821 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22283193, 'dashboard_result_id': 10036073, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22283193_23-04-2025_05_34_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22283195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22283196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22283197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22283198, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22283199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22283200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22283201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22283202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22283203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22283204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22283205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22283206, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22283528, 'dashboard_result_id': 10036074, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22283528_23-04-2025_05_35_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22283570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22283571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22283572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22283573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22283574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22283575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22283576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22283577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22283578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22283579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22283580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22283581, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22284061, 'dashboard_result_id': 10036075, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22284061_23-04-2025_05_36_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22284062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22284063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22284064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22284065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22284066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22284067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22284068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22284069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22284070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22284071, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22284072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22284073, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22284551, 'dashboard_result_id': 10036076, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22284551_23-04-2025_05_36_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22284553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22284554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22284556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22284557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22284558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22284559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22284560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22284563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22284564, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22285051, 'dashboard_result_id': 10036077, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22285051_23-04-2025_05_37_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285063, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22285528, 'dashboard_result_id': 10036078, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22285528_23-04-2025_05_37_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285564, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22285832, 'dashboard_result_id': 10036079, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22285832_23-04-2025_05_38_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285868, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22286020, 'dashboard_result_id': 10036080, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22286020_23-04-2025_05_40_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22286045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22286046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22286047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22286048, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22286049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22286050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22286051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22286052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22286053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22286054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22286055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22286056, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22286721, 'dashboard_result_id': 10036081, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22286721_23-04-2025_05_40_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22286727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22286728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22286729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22286730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22286731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22286732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22286733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22286734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22286735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22286736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22286737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22286738, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22287212, 'dashboard_result_id': 10036082, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22287212_23-04-2025_05_40_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22287250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22287251, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22287252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22287253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22287254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22287255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22287256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22287257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22287258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22287259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22287260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22287261, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22288002, 'dashboard_result_id': 10036083, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22288002_23-04-2025_05_41_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22288005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22288006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288008, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288016, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22288420, 'dashboard_result_id': 10036084, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22288420_23-04-2025_05_41_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22288451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22288454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288462, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22289161, 'dashboard_result_id': 10036085, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22289161_23-04-2025_05_42_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22289191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22289193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22289197, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22289960, 'dashboard_result_id': 10036086, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22289960_23-04-2025_05_42_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22289990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22290000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22290001, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22290784, 'dashboard_result_id': 10036087, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22290784_23-04-2025_05_43_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22290806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22290807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22290808, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22290809, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22290810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22290811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22290812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22290813, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22290814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22290815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22290816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22290817, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22291519, 'dashboard_result_id': 10036088, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22291519_23-04-2025_05_43_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22291583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22291584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22291585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22291586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22291587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22291588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22291589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22291590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22291591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22291592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22291593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22291594, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22293115, 'dashboard_result_id': 10036089, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22293115_23-04-2025_05_44_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22293120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22293121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22293122, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22293123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22293124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22293125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22293126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22293127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22293128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22293129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22293130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22293131, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22293696, 'dashboard_result_id': 10036090, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22293696_23-04-2025_05_44_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22293718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22293719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22293720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22293721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22293722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22293723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22293724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22293725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22293726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22293727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22293728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22293729, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22294121, 'dashboard_result_id': 10036091, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294121_23-04-2025_05_45_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294168, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22294892, 'dashboard_result_id': 10036092, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294892_23-04-2025_05_45_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294969, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22295521, 'dashboard_result_id': 10036093, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22295521_23-04-2025_05_46_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22295524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22295525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22295526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22295527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22295528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22295529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22295530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22295531, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22295532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22295533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22295534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22295535, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22296368, 'dashboard_result_id': 10036094, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22296368_23-04-2025_05_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22296370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22296371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22296372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22296373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22296374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22296375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22296376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22296377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22296378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22296379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22296380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22296381, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22296833, 'dashboard_result_id': 10036095, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22296833_23-04-2025_05_49_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22296839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22296840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22296841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22296842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22296843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22296844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22296845, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22296846, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22296847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22296848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22296849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22296850, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22297501, 'dashboard_result_id': 10036096, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22297501_23-04-2025_05_50_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22297551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22297552, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22297553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22297554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22297555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22297556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22297557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22297558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22297559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22297560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22297561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22297562, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22298134, 'dashboard_result_id': 10036097, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22298134_23-04-2025_05_51_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22298155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22298156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22298157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22298158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22298159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22298160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22298161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22298162, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22298163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22298164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22298165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22298166, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22298962, 'dashboard_result_id': 10036098, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22298962_23-04-2025_05_51_55.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22298968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22298969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22298970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22298971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22298972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22298973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22298974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22298975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22298976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22298977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22298978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22298979, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22299585, 'dashboard_result_id': 10036099, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22299585_23-04-2025_05_51_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22299603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22299604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22299605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22299606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22299607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22299608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22299609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22299610, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22299611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22299612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22299613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22299614, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22307186, 'dashboard_result_id': 10036100, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22307186_23-04-2025_05_52_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22307211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22307212, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22307213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22307214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22307215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22307216, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22307217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22307218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22307219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22307220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22307221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22307222, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22312258, 'dashboard_result_id': 10036101, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22312258_23-04-2025_05_52_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22312260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22312261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22312262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22312263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22312264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22312265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22312266, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22312267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22312268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22312269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22312270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22312271, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22312446, 'dashboard_result_id': 10036102, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22312446_23-04-2025_05_53_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22312471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22312472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22312473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22312474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22312475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22312476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22312477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22312478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22312479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22312480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22312481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22312482, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22312886, 'dashboard_result_id': 10036103, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22312886_23-04-2025_05_53_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22312910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22312911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22312912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22312913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22312914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22312915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22312916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22312917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22312918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22312919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22312920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22312921, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22313109, 'dashboard_result_id': 10036104, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22313109_23-04-2025_05_54_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22313110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22313111, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22313112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22313113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22313114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22313115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22313116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22313117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22313118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22313119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22313120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22313121, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22316204, 'dashboard_result_id': 10036105, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22316204_22-04-2025_21_21_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22316206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22316207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22316208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22316209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22316210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22316211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22316212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22316213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22316214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22316215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22316216, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22316217, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22318358, 'dashboard_result_id': 10036106, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22318358_22-04-2025_22_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22318359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22318360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22318361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22318362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22318363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22318364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22318365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22318366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22318367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22318368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22318369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22318370, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22319618, 'dashboard_result_id': 10036107, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22319618_22-04-2025_22_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22319619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22319620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22319621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22319622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22319623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22319624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22319625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22319626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22319627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22319628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22319629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22319630, '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 = 22283193 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751231, 'mtr_portfolio_id': 22283193, 'created_at': datetime.datetime(2025, 4, 23, 5, 34, 30), 'result': '0.06962585916446648', 'result_long': None, 'result_double': None}] Qualite : 0.06962585916446648 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22283193 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22283193_23-04-2025_05_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22283193 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22283193_23-04-2025_05_34_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22283195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22283196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22283197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22283198, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22283199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22283200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22283201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22283202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22283203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22283204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22283205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22283206, 'pht': 3726}}" where mtr_portfolio_id = 22283193 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22283193 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036073, 0.06962585916446648, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22283193_23-04-2025_05_34_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22283195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22283196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22283197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22283198, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22283199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22283200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22283201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22283202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22283203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22283204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22283205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22283206, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22283528 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751232, 'mtr_portfolio_id': 22283528, 'created_at': datetime.datetime(2025, 4, 23, 5, 35, 30), 'result': '0.03793785543376423', 'result_long': None, 'result_double': None}] Qualite : 0.03793785543376423 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22283528 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22283528_23-04-2025_05_35_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22283528 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22283528_23-04-2025_05_35_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22283570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22283571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22283572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22283573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22283574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22283575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22283576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22283577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22283578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22283579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22283580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22283581, 'pht': 3726}}" where mtr_portfolio_id = 22283528 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22283528 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036074, 0.03793785543376423, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22283528_23-04-2025_05_35_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22283570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22283571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22283572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22283573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22283574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22283575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22283576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22283577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22283578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22283579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22283580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22283581, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22284061 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751233, 'mtr_portfolio_id': 22284061, 'created_at': datetime.datetime(2025, 4, 23, 5, 36), 'result': '0.05867734234964999', 'result_long': None, 'result_double': None}] Qualite : 0.05867734234964999 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22284061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22284061_23-04-2025_05_36_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22284061 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22284061_23-04-2025_05_36_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22284062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22284063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22284064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22284065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22284066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22284067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22284068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22284069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22284070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22284071, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22284072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22284073, 'pht': 3726}}" where mtr_portfolio_id = 22284061 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22284061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036075, 0.05867734234964999, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22284061_23-04-2025_05_36_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22284062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22284063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22284064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22284065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22284066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22284067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22284068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22284069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22284070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22284071, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22284072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22284073, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22284551 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751234, 'mtr_portfolio_id': 22284551, 'created_at': datetime.datetime(2025, 4, 23, 5, 36, 29), 'result': '0.05282893047066502', 'result_long': None, 'result_double': None}] Qualite : 0.05282893047066502 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22284551 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22284551_23-04-2025_05_36_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22284551 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22284551_23-04-2025_05_36_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22284553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22284554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22284556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22284557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22284558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22284559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22284560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22284563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22284564, 'pht': 3726}}" where mtr_portfolio_id = 22284551 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22284551 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036076, 0.05282893047066502, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22284551_23-04-2025_05_36_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22284553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22284554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22284556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22284557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22284558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22284559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22284560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22284563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22284564, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22285051 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751235, 'mtr_portfolio_id': 22285051, 'created_at': datetime.datetime(2025, 4, 23, 5, 37), 'result': '0.04822730406897405', 'result_long': None, 'result_double': None}] Qualite : 0.04822730406897405 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22285051 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22285051_23-04-2025_05_37_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22285051 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22285051_23-04-2025_05_37_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285063, 'pht': 3726}}" where mtr_portfolio_id = 22285051 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22285051 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036077, 0.04822730406897405, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22285051_23-04-2025_05_37_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285063, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22285528 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751236, 'mtr_portfolio_id': 22285528, 'created_at': datetime.datetime(2025, 4, 23, 5, 37, 29), 'result': '0.046087788564791024', 'result_long': None, 'result_double': None}] Qualite : 0.046087788564791024 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22285528 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22285528_23-04-2025_05_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22285528 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22285528_23-04-2025_05_37_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285564, 'pht': 3726}}" where mtr_portfolio_id = 22285528 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22285528 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036078, 0.046087788564791024, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22285528_23-04-2025_05_37_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285564, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22285832 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751237, 'mtr_portfolio_id': 22285832, 'created_at': datetime.datetime(2025, 4, 23, 5, 37, 59), 'result': '0.056055445977496024', 'result_long': None, 'result_double': None}] Qualite : 0.056055445977496024 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22285832 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22285832_23-04-2025_05_38_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22285832 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22285832_23-04-2025_05_38_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285868, 'pht': 3726}}" where mtr_portfolio_id = 22285832 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22285832 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036079, 0.056055445977496024, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22285832_23-04-2025_05_38_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285868, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22286020 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751238, 'mtr_portfolio_id': 22286020, 'created_at': datetime.datetime(2025, 4, 23, 5, 39, 59), 'result': '0.062093377337052245', 'result_long': None, 'result_double': None}] Qualite : 0.062093377337052245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22286020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22286020_23-04-2025_05_40_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22286020 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22286020_23-04-2025_05_40_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22286045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22286046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22286047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22286048, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22286049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22286050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22286051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22286052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22286053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22286054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22286055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22286056, 'pht': 3726}}" where mtr_portfolio_id = 22286020 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22286020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036080, 0.062093377337052245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22286020_23-04-2025_05_40_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22286045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22286046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22286047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22286048, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22286049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22286050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22286051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22286052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22286053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22286054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22286055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22286056, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22286721 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751239, 'mtr_portfolio_id': 22286721, 'created_at': datetime.datetime(2025, 4, 23, 5, 40, 32), 'result': '0.06932375115098806', 'result_long': None, 'result_double': None}] Qualite : 0.06932375115098806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22286721 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22286721_23-04-2025_05_40_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22286721 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22286721_23-04-2025_05_40_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22286727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22286728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22286729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22286730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22286731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22286732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22286733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22286734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22286735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22286736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22286737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22286738, 'pht': 3726}}" where mtr_portfolio_id = 22286721 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22286721 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036081, 0.06932375115098806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22286721_23-04-2025_05_40_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22286727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22286728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22286729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22286730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22286731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22286732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22286733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22286734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22286735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22286736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22286737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22286738, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22287212 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751240, 'mtr_portfolio_id': 22287212, 'created_at': datetime.datetime(2025, 4, 23, 5, 40, 40), 'result': '0.036085302809219594', 'result_long': None, 'result_double': None}] Qualite : 0.036085302809219594 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22287212 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22287212_23-04-2025_05_40_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22287212 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22287212_23-04-2025_05_40_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22287250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22287251, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22287252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22287253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22287254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22287255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22287256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22287257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22287258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22287259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22287260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22287261, 'pht': 3726}}" where mtr_portfolio_id = 22287212 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22287212 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036082, 0.036085302809219594, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22287212_23-04-2025_05_40_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22287250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22287251, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22287252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22287253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22287254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22287255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22287256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22287257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22287258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22287259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22287260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22287261, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22288002 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751241, 'mtr_portfolio_id': 22288002, 'created_at': datetime.datetime(2025, 4, 23, 5, 41), 'result': '0.06437147384994373', 'result_long': None, 'result_double': None}] Qualite : 0.06437147384994373 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22288002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22288002_23-04-2025_05_41_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22288002 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22288002_23-04-2025_05_41_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22288005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22288006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288008, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288016, 'pht': 3726}}" where mtr_portfolio_id = 22288002 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22288002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036083, 0.06437147384994373, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22288002_23-04-2025_05_41_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22288005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22288006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288008, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288016, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22288420 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751242, 'mtr_portfolio_id': 22288420, 'created_at': datetime.datetime(2025, 4, 23, 5, 41, 29), 'result': '0.04747768583885379', 'result_long': None, 'result_double': None}] Qualite : 0.04747768583885379 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22288420 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22288420_23-04-2025_05_41_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22288420 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22288420_23-04-2025_05_41_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22288451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22288454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288462, 'pht': 3726}}" where mtr_portfolio_id = 22288420 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22288420 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036084, 0.04747768583885379, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22288420_23-04-2025_05_41_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22288451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22288454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288462, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22289161 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751243, 'mtr_portfolio_id': 22289161, 'created_at': datetime.datetime(2025, 4, 23, 5, 41, 58), 'result': '0.06031934622027948', 'result_long': None, 'result_double': None}] Qualite : 0.06031934622027948 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22289161 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22289161_23-04-2025_05_42_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22289161 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22289161_23-04-2025_05_42_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22289191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22289193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22289197, 'pht': 3726}}" where mtr_portfolio_id = 22289161 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22289161 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036085, 0.06031934622027948, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22289161_23-04-2025_05_42_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22289191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22289193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22289197, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22289960 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751244, 'mtr_portfolio_id': 22289960, 'created_at': datetime.datetime(2025, 4, 23, 5, 42, 30), 'result': '0.0664285835238874', 'result_long': None, 'result_double': None}] Qualite : 0.0664285835238874 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22289960 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22289960_23-04-2025_05_42_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22289960 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22289960_23-04-2025_05_42_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22289990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22290000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22290001, 'pht': 3726}}" where mtr_portfolio_id = 22289960 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22289960 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036086, 0.0664285835238874, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22289960_23-04-2025_05_42_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22289990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22290000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22290001, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22290784 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751245, 'mtr_portfolio_id': 22290784, 'created_at': datetime.datetime(2025, 4, 23, 5, 42, 59), 'result': '0.07256011865599683', 'result_long': None, 'result_double': None}] Qualite : 0.07256011865599683 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22290784 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22290784_23-04-2025_05_43_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22290784 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22290784_23-04-2025_05_43_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22290806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22290807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22290808, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22290809, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22290810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22290811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22290812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22290813, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22290814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22290815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22290816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22290817, 'pht': 3726}}" where mtr_portfolio_id = 22290784 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22290784 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036087, 0.07256011865599683, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22290784_23-04-2025_05_43_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22290806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22290807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22290808, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22290809, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22290810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22290811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22290812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22290813, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22290814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22290815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22290816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22290817, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22291519 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751246, 'mtr_portfolio_id': 22291519, 'created_at': datetime.datetime(2025, 4, 23, 5, 43, 28), 'result': '0.06857737511311014', 'result_long': None, 'result_double': None}] Qualite : 0.06857737511311014 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22291519 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22291519_23-04-2025_05_43_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22291519 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22291519_23-04-2025_05_43_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22291583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22291584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22291585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22291586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22291587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22291588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22291589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22291590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22291591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22291592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22291593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22291594, 'pht': 3726}}" where mtr_portfolio_id = 22291519 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22291519 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036088, 0.06857737511311014, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22291519_23-04-2025_05_43_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22291583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22291584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22291585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22291586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22291587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22291588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22291589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22291590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22291591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22291592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22291593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22291594, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22293115 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751247, 'mtr_portfolio_id': 22293115, 'created_at': datetime.datetime(2025, 4, 23, 5, 43, 58), 'result': '0.049755792495785454', 'result_long': None, 'result_double': None}] Qualite : 0.049755792495785454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22293115 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22293115_23-04-2025_05_44_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22293115 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22293115_23-04-2025_05_44_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22293120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22293121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22293122, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22293123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22293124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22293125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22293126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22293127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22293128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22293129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22293130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22293131, 'pht': 3726}}" where mtr_portfolio_id = 22293115 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22293115 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036089, 0.049755792495785454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22293115_23-04-2025_05_44_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22293120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22293121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22293122, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22293123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22293124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22293125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22293126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22293127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22293128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22293129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22293130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22293131, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22293696 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751248, 'mtr_portfolio_id': 22293696, 'created_at': datetime.datetime(2025, 4, 23, 5, 44, 30), 'result': '0.052695905350806656', 'result_long': None, 'result_double': None}] Qualite : 0.052695905350806656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22293696 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22293696_23-04-2025_05_44_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22293696 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22293696_23-04-2025_05_44_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22293718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22293719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22293720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22293721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22293722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22293723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22293724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22293725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22293726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22293727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22293728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22293729, 'pht': 3726}}" where mtr_portfolio_id = 22293696 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22293696 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036090, 0.052695905350806656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22293696_23-04-2025_05_44_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22293718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22293719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22293720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22293721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22293722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22293723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22293724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22293725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22293726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22293727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22293728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22293729, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22294121 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751249, 'mtr_portfolio_id': 22294121, 'created_at': datetime.datetime(2025, 4, 23, 5, 44, 59), 'result': '0.0619362016745457', 'result_long': None, 'result_double': None}] Qualite : 0.0619362016745457 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22294121 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294121_23-04-2025_05_45_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22294121 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294121_23-04-2025_05_45_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294168, 'pht': 3726}}" where mtr_portfolio_id = 22294121 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22294121 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036091, 0.0619362016745457, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294121_23-04-2025_05_45_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294168, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22294892 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751250, 'mtr_portfolio_id': 22294892, 'created_at': datetime.datetime(2025, 4, 23, 5, 45, 30), 'result': '0.053395757547631026', 'result_long': None, 'result_double': None}] Qualite : 0.053395757547631026 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22294892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294892_23-04-2025_05_45_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22294892 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294892_23-04-2025_05_45_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294969, 'pht': 3726}}" where mtr_portfolio_id = 22294892 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22294892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036092, 0.053395757547631026, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294892_23-04-2025_05_45_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294969, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22295521 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751251, 'mtr_portfolio_id': 22295521, 'created_at': datetime.datetime(2025, 4, 23, 5, 45, 59), 'result': '0.05736137361763881', 'result_long': None, 'result_double': None}] Qualite : 0.05736137361763881 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22295521 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22295521_23-04-2025_05_46_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22295521 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22295521_23-04-2025_05_46_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22295524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22295525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22295526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22295527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22295528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22295529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22295530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22295531, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22295532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22295533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22295534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22295535, 'pht': 3726}}" where mtr_portfolio_id = 22295521 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22295521 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036093, 0.05736137361763881, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22295521_23-04-2025_05_46_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22295524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22295525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22295526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22295527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22295528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22295529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22295530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22295531, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22295532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22295533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22295534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22295535, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22296368 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751252, 'mtr_portfolio_id': 22296368, 'created_at': datetime.datetime(2025, 4, 23, 5, 48, 58), 'result': '0.05021747237311406', 'result_long': None, 'result_double': None}] Qualite : 0.05021747237311406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22296368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22296368_23-04-2025_05_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22296368 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22296368_23-04-2025_05_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22296370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22296371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22296372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22296373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22296374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22296375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22296376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22296377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22296378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22296379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22296380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22296381, 'pht': 3726}}" where mtr_portfolio_id = 22296368 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22296368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036094, 0.05021747237311406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22296368_23-04-2025_05_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22296370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22296371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22296372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22296373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22296374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22296375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22296376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22296377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22296378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22296379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22296380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22296381, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22296833 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751253, 'mtr_portfolio_id': 22296833, 'created_at': datetime.datetime(2025, 4, 23, 5, 49, 30), 'result': '0.06545087457382659', 'result_long': None, 'result_double': None}] Qualite : 0.06545087457382659 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22296833 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22296833_23-04-2025_05_49_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22296833 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22296833_23-04-2025_05_49_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22296839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22296840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22296841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22296842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22296843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22296844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22296845, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22296846, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22296847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22296848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22296849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22296850, 'pht': 3726}}" where mtr_portfolio_id = 22296833 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22296833 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036095, 0.06545087457382659, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22296833_23-04-2025_05_49_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22296839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22296840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22296841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22296842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22296843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22296844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22296845, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22296846, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22296847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22296848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22296849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22296850, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22297501 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751254, 'mtr_portfolio_id': 22297501, 'created_at': datetime.datetime(2025, 4, 23, 5, 50), 'result': '0.0603003139045279', 'result_long': None, 'result_double': None}] Qualite : 0.0603003139045279 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22297501 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22297501_23-04-2025_05_50_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22297501 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22297501_23-04-2025_05_50_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22297551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22297552, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22297553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22297554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22297555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22297556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22297557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22297558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22297559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22297560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22297561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22297562, 'pht': 3726}}" where mtr_portfolio_id = 22297501 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22297501 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036096, 0.0603003139045279, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22297501_23-04-2025_05_50_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22297551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22297552, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22297553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22297554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22297555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22297556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22297557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22297558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22297559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22297560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22297561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22297562, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22298134 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751255, 'mtr_portfolio_id': 22298134, 'created_at': datetime.datetime(2025, 4, 23, 5, 51), 'result': '0.04102069891365551', 'result_long': None, 'result_double': None}] Qualite : 0.04102069891365551 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22298134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22298134_23-04-2025_05_51_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22298134 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22298134_23-04-2025_05_51_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22298155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22298156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22298157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22298158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22298159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22298160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22298161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22298162, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22298163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22298164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22298165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22298166, 'pht': 3726}}" where mtr_portfolio_id = 22298134 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22298134 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036097, 0.04102069891365551, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22298134_23-04-2025_05_51_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22298155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22298156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22298157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22298158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22298159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22298160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22298161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22298162, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22298163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22298164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22298165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22298166, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22298962 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751256, 'mtr_portfolio_id': 22298962, 'created_at': datetime.datetime(2025, 4, 23, 5, 51, 50), 'result': '0.06566814647202765', 'result_long': None, 'result_double': None}] Qualite : 0.06566814647202765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22298962 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22298962_23-04-2025_05_51_55.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22298962 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22298962_23-04-2025_05_51_55.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22298968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22298969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22298970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22298971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22298972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22298973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22298974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22298975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22298976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22298977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22298978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22298979, 'pht': 3726}}" where mtr_portfolio_id = 22298962 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22298962 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036098, 0.06566814647202765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22298962_23-04-2025_05_51_55.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22298968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22298969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22298970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22298971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22298972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22298973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22298974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22298975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22298976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22298977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22298978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22298979, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22299585 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751257, 'mtr_portfolio_id': 22299585, 'created_at': datetime.datetime(2025, 4, 23, 5, 51, 30), 'result': '0.04878292693378914', 'result_long': None, 'result_double': None}] Qualite : 0.04878292693378914 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22299585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22299585_23-04-2025_05_51_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22299585 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22299585_23-04-2025_05_51_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22299603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22299604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22299605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22299606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22299607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22299608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22299609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22299610, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22299611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22299612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22299613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22299614, 'pht': 3726}}" where mtr_portfolio_id = 22299585 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22299585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036099, 0.04878292693378914, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22299585_23-04-2025_05_51_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22299603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22299604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22299605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22299606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22299607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22299608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22299609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22299610, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22299611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22299612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22299613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22299614, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22307186 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751258, 'mtr_portfolio_id': 22307186, 'created_at': datetime.datetime(2025, 4, 23, 5, 52), 'result': '0.0586795616574983', 'result_long': None, 'result_double': None}] Qualite : 0.0586795616574983 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22307186 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22307186_23-04-2025_05_52_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22307186 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22307186_23-04-2025_05_52_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22307211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22307212, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22307213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22307214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22307215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22307216, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22307217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22307218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22307219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22307220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22307221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22307222, 'pht': 3726}}" where mtr_portfolio_id = 22307186 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22307186 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036100, 0.0586795616574983, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22307186_23-04-2025_05_52_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22307211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22307212, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22307213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22307214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22307215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22307216, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22307217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22307218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22307219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22307220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22307221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22307222, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22312258 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751259, 'mtr_portfolio_id': 22312258, 'created_at': datetime.datetime(2025, 4, 23, 5, 52, 28), 'result': '0.03208411424011029', 'result_long': None, 'result_double': None}] Qualite : 0.03208411424011029 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22312258 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22312258_23-04-2025_05_52_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22312258 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22312258_23-04-2025_05_52_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22312260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22312261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22312262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22312263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22312264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22312265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22312266, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22312267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22312268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22312269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22312270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22312271, 'pht': 3726}}" where mtr_portfolio_id = 22312258 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22312258 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036101, 0.03208411424011029, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22312258_23-04-2025_05_52_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22312260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22312261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22312262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22312263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22312264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22312265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22312266, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22312267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22312268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22312269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22312270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22312271, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22312446 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751260, 'mtr_portfolio_id': 22312446, 'created_at': datetime.datetime(2025, 4, 23, 5, 52, 59), 'result': '0.10432914903297445', 'result_long': None, 'result_double': None}] Qualite : 0.10432914903297445 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22312446 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22312446_23-04-2025_05_53_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22312446 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22312446_23-04-2025_05_53_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22312471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22312472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22312473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22312474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22312475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22312476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22312477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22312478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22312479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22312480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22312481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22312482, 'pht': 3726}}" where mtr_portfolio_id = 22312446 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22312446 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036102, 0.10432914903297445, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22312446_23-04-2025_05_53_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22312471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22312472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22312473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22312474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22312475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22312476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22312477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22312478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22312479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22312480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22312481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22312482, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22312886 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751261, 'mtr_portfolio_id': 22312886, 'created_at': datetime.datetime(2025, 4, 23, 5, 53, 29), 'result': '0.04802438907292716', 'result_long': None, 'result_double': None}] Qualite : 0.04802438907292716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22312886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22312886_23-04-2025_05_53_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22312886 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22312886_23-04-2025_05_53_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22312910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22312911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22312912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22312913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22312914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22312915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22312916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22312917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22312918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22312919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22312920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22312921, 'pht': 3726}}" where mtr_portfolio_id = 22312886 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22312886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036103, 0.04802438907292716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22312886_23-04-2025_05_53_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22312910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22312911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22312912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22312913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22312914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22312915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22312916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22312917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22312918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22312919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22312920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22312921, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22313109 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751262, 'mtr_portfolio_id': 22313109, 'created_at': datetime.datetime(2025, 4, 23, 5, 53, 58), 'result': '0.026130116073334944', 'result_long': None, 'result_double': None}] Qualite : 0.026130116073334944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22313109 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22313109_23-04-2025_05_54_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22313109 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22313109_23-04-2025_05_54_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22313110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22313111, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22313112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22313113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22313114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22313115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22313116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22313117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22313118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22313119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22313120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22313121, 'pht': 3726}}" where mtr_portfolio_id = 22313109 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22313109 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036104, 0.026130116073334944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22313109_23-04-2025_05_54_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22313110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22313111, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22313112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22313113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22313114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22313115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22313116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22313117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22313118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22313119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22313120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22313121, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22316204 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2751263, 'mtr_portfolio_id': 22316204, 'created_at': datetime.datetime(2025, 4, 23, 5, 54, 58), 'result': '0.12051910287255656', 'result_long': None, 'result_double': None}] Qualite : 0.12051910287255656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22316204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22316204_23-04-2025_05_55_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22316204 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22316204_23-04-2025_05_55_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22316206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22316207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22316208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22316209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22316210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22316211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22316212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22316213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22316214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22316215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22316216, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22316217, 'pht': 3726}}" where mtr_portfolio_id = 22316204 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22316204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036105, 0.12051910287255656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22316204_23-04-2025_05_55_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22316206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22316207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22316208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22316209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22316210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22316211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22316212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22316213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22316214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22316215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22316216, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22316217, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22318358 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2750151, 'mtr_portfolio_id': 22318358, 'created_at': datetime.datetime(2025, 4, 22, 22, 16, 59), 'result': '0.014501348190915005', 'result_long': None, 'result_double': None}] Qualite : 0.014501348190915005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22318358 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22318358_22-04-2025_22_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22318358 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22318358_22-04-2025_22_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22318359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22318360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22318361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22318362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22318363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22318364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22318365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22318366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22318367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22318368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22318369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22318370, 'pht': 3726}}" where mtr_portfolio_id = 22318358 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22318358 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036106, 0.014501348190915005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22318358_22-04-2025_22_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22318359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22318360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22318361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22318362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22318363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22318364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22318365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22318366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22318367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22318368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22318369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22318370, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22319618 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2750242, 'mtr_portfolio_id': 22319618, 'created_at': datetime.datetime(2025, 4, 22, 22, 41, 1), 'result': '0.007249436232774333', 'result_long': None, 'result_double': None}] Qualite : 0.007249436232774333 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22319618 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22319618_22-04-2025_22_41_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22319618 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22319618_22-04-2025_22_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22319619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22319620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22319621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22319622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22319623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22319624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22319625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22319626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22319627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22319628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22319629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22319630, 'pht': 3726}}" where mtr_portfolio_id = 22319618 and dashboard_run_id = 1747698 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22319618 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036107, 0.007249436232774333, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22319618_22-04-2025_22_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22319619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22319620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22319621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22319622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22319623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22319624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22319625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22319626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22319627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22319628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22319629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22319630, '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 (22283193,22283528,22284061,22284551,22285051,22285528,22285832,22286020,22286721,22287212,22288002,22288420,22289161,22289960,22290784,22291519,22293115,22293696,22294121,22294892,22295521,22296368,22296833,22297501,22298134,22298962,22299585,22307186,22312258,22312446,22312886,22313109,22316204,22318358,22319618) result : ((1352518726,), (1352518825,), (1352518827,), (1352518963,), (1352518965,), (1352518966,), (1352518967,), (1352518968,), (1352518970,), (1352518994,), (1352519002,), (1352519012,), (1352519016,), (1352519144,), (1352519165,), (1352519167,), (1352519169,), (1352519189,), (1352519301,), (1352519304,), (1352519306,), (1352519326,), (1352519327,), (1352519333,), (1352519360,), (1352519648,), (1352519651,), (1352519656,), (1352519662,), (1352519665,), (1352519789,), (1352519796,), (1352519798,), (1352519826,), (1352519937,), (1352519912,), (1352519915,), (1352519918,), (1352519924,), (1352519928,), (1352520039,), (1352520151,), (1352520155,), (1352520156,), (1352520157,), (1352520161,), (1352520317,), (1352520320,), (1352520332,), (1352520490,), (1352520492,), (1352520493,), (1352520494,), (1352520495,), (1352520671,), (1352520697,), (1352520723,), (1352520748,), (1352520777,), (1352520804,), (1352521087,), (1352521128,), (1352521155,), (1352521184,), (1352521215,), (1352521244,), (1352521505,), (1352521529,), (1352521559,), (1352521635,), (1352521636,), (1352521637,), (1352521638,), (1352521639,), (1352521748,), (1352521756,), (1352521773,), (1352521782,), (1352521784,), (1352521788,), (1352521816,), (1352521818,), (1352522106,), (1352522141,), (1352522171,), (1352522206,), (1352522382,), (1352522384,), (1352522386,), (1352522388,), (1352522391,), (1352522394,), (1352522423,), (1352522425,), (1352522426,), (1352522475,), (1352522478,), (1352522480,), (1352522482,), (1352522484,), (1352522524,), (1352522553,), (1352522581,), (1352522614,), (1352522642,), (1352523193,), (1352523138,), (1352523836,), (1352523838,), (1352523848,), (1352523861,), (1352524066,), (1352524089,), (1352524133,), (1352524390,), (1352524584,), (1352524597,), (1352524598,), (1352524643,), (1352524644,), (1352524645,), (1352524646,), (1352524649,), (1352524680,), (1352524682,), (1352524684,), (1352524686,), (1352524709,), (1352524711,), (1352524712,), (1352524744,), (1352524745,), (1352524746,), (1352524747,), (1352524749,), (1352524754,), (1352524791,), (1352524793,), (1352524795,), (1352524797,), (1352524944,), (1352524999,), (1352525001,), (1352525003,), (1352525005,), (1352525123,), (1352525138,), (1352525263,), (1352525292,), (1352525306,), (1352525476,), (1352525433,), (1352525472,), (1352525514,), (1352525515,), (1352525516,), (1352525520,), (1352525524,), (1352525529,), (1352525561,), (1352525563,), (1352525639,), (1352525644,), (1352525646,), (1352525674,), (1352525675,), (1352525676,), (1352525677,), (1352525679,), (1352525711,), (1352525712,), (1352525843,), (1352525846,), (1352525849,), (1352525852,), (1352526106,), (1352526130,), (1352526156,), (1352526181,), (1352526384,), (1352526401,), (1352526409,), (1352526414,), (1352526418,), (1352526428,), (1352526455,), (1352526457,), (1352526669,), (1352526692,), (1352527020,), (1352527048,), (1352527054,), (1352527061,), (1352527176,), (1352527149,), (1352528950,), (1352528954,), (1352528956,), (1352528959,), (1352528980,), (1352528982,), (1352528984,), (1352528986,), (1352528988,), (1352529021,), (1352529023,), (1352529025,), (1352529056,), (1352529058,), (1352529060,), (1352529062,), (1352529064,), (1352529067,), (1352529086,), (1352529088,), (1352529090,), (1352529092,), (1352529111,), (1352529113,), (1352529115,), (1352529117,), (1352529120,), (1352529405,), (1352529407,), (1352529431,), (1352529434,), (1352529439,), (1352529442,), (1352529446,), (1352529448,), (1352529489,), (1352529474,), (1352529483,), (1352529486,), (1352529511,), (1352529516,), (1352529518,), (1352529522,), (1352529545,), (1352529549,), (1352529551,), (1352529582,), (1352529585,), (1352529587,), (1352529590,), (1352529612,), (1352529615,), (1352529617,), (1352529619,), (1352529647,), (1352529649,), (1352529651,), (1352529653,), (1352529677,), (1352529680,), (1352529683,), (1352529690,), (1352529696,), (1352529699,), (1352529718,), (1352529722,), (1352529724,), (1352529726,), (1352529730,), (1352529732,), (1352529757,), (1352529759,), (1352529761,), (1352529787,), (1352529790,), (1352529792,), (1352529793,), (1352529798,), (1352529823,), (1352529825,), (1352529828,), (1352529831,), (1352529833,), (1352529851,), (1352529853,), (1352529856,), (1352529858,), (1352529890,), (1352529892,), (1352529894,), (1352529914,), (1352529917,), (1352529919,), (1352529923,), (1352529936,), (1352529943,), (1352529969,), (1352529978,), (1352529981,), (1352529984,), (1352529988,), (1352530031,), (1352530029,), (1352530073,), (1352530080,), (1352530083,), (1352530086,), (1352530091,), (1352530126,), (1352530129,), (1352530131,), (1352530133,), (1352530136,), (1352530140,), (1352530176,), (1352530180,), (1352530183,), (1352530187,), (1352530191,), (1352530216,), (1352530219,), (1352530221,), (1352530223,), (1352530226,), (1352530260,), (1352530268,), (1352530274,), (1352530278,), (1352530283,), (1352530302,), (1352530304,), (1352530307,), (1352530310,), (1352530345,), (1352530348,), (1352530351,), (1352530354,), (1352530358,), (1352530363,), (1352530387,), (1352530389,), (1352530391,), (1352530396,), (1352530428,), (1352530431,), (1352530434,), (1352530437,), (1352530484,), (1352530489,), (1352530491,), (1352530493,), (1352530498,), (1352530503,), (1352530537,), (1352530542,), (1352530545,), (1352530548,), (1352530552,), (1352530579,), (1352530581,), (1352530584,), (1352530613,), (1352530617,), (1352530620,), (1352530624,), (1352530628,), (1352530631,), (1352530657,), (1352530660,), (1352530663,), (1352530665,), (1352530712,), (1352530695,), (1352530698,), (1352530702,), (1352530705,), (1352530709,), (1352530730,), (1352530733,), (1352530735,), (1352530737,), (1352530740,), (1352530769,), (1352530774,), (1352530778,), (1352530781,), (1352530785,), (1352530814,), (1352530817,), (1352530819,), (1352530822,), (1352530826,), (1352530857,), (1352530860,), (1352530866,), (1352530872,), (1352530924,), (1352530926,), (1352530928,), (1352530930,), (1352530933,), (1352530936,), (1352530967,), (1352530969,), (1352530971,), (1352530973,), (1352531014,), (1352531016,), (1352531018,), (1352531020,), (1352531065,), (1352531073,), (1352531082,), (1352531094,), (1352531096,), (1352531099,), (1352531135,), (1352531137,), (1352531139,), (1352531141,), (1352531143,), (1352531186,), (1352531193,), (1352531196,), (1352531199,), (1352531203,), (1352531255,), (1352531257,), (1352531259,), (1352531260,), (1352531322,), (1352531328,), (1352531331,), (1352531335,), (1352531621,), (1352531685,), (1352531742,), (1352531804,), (1352531867,), (1352531924,), (1352532092,), (1352532156,), (1352532210,), (1352532264,), (1352532598,), (1352532494,), (1352532544,), (1352532997,), (1352533005,), (1352533036,), (1352533066,), (1352533094,), (1352533876,), (1352533980,), (1352534081,), (1352534097,), (1352534104,), (1352534129,), (1352534269,), (1352534272,), (1352534286,), (1352534292,), (1352534367,), (1352534371,), (1352534375,), (1352534380,), (1352534387,), (1352534391,), (1352534426,), (1352534434,), (1352534445,), (1352534461,), (1352534842,), (1352534847,), (1352534852,), (1352534856,), (1352534869,), (1352534895,), (1352534959,), (1352534968,), (1352534994,), (1352535139,), (1352535144,), (1352535148,), (1352535206,), (1352535212,), (1352535218,), (1352535225,), (1352535229,), (1352535234,), (1352535295,), (1352535316,), (1352535326,), (1352535336,), (1352535344,), (1352535381,), (1352535535,), (1352535572,), (1352535607,), (1352535839,), (1352535771,), (1352535782,), (1352535788,), (1352535796,), (1352535817,), (1352535945,), (1352535946,), (1352535949,), (1352535952,), (1352535996,), (1352536000,), (1352536005,), (1352536011,), (1352536016,), (1352536020,), (1352536072,), (1352536075,), (1352536078,), (1352536091,), (1352536095,), (1352536205,), (1352536209,), (1352536213,), (1352536216,), (1352536267,), (1352536281,), (1352536300,), (1352536313,), (1352536324,), (1352536351,), (1352536421,), (1352536426,), (1352536431,), (1352536491,), (1352536492,), (1352536493,), (1352536496,), (1352536500,), (1352536505,), (1352536544,), (1352536551,), (1352536554,), (1352536597,), (1352536601,), (1352536603,), (1352536605,), (1352536607,), (1352536671,), (1352536675,), (1352536679,), (1352536682,), (1352536686,), (1352536732,), (1352536745,), (1352536752,), (1352536754,), (1352536768,), (1352536976,), (1352536979,), (1352536982,), (1352536985,), (1352536988,), (1352537026,), (1352537034,), (1352537040,), (1352537043,), (1352537089,), (1352537093,), (1352537099,), (1352537107,), (1352537112,), (1352537158,), (1352537146,), (1352537151,), (1352537155,), (1352537203,), (1352537205,), (1352537207,), (1352537209,), (1352537213,), (1352537217,), (1352537254,), (1352537257,), (1352537261,), (1352537265,), (1352537267,), (1352537272,), (1352537306,), (1352537310,), (1352537314,), (1352537317,), (1352537417,), (1352537429,), (1352537436,), (1352537444,), (1352537447,), (1352537460,), (1352537692,), (1352537694,), (1352537698,), (1352537705,), (1352537767,), (1352537769,), (1352537772,), (1352537775,), (1352537779,), (1352537783,), (1352537849,), (1352537859,), (1352537866,), (1352537870,), (1352537880,), (1352537889,), (1352538050,), (1352538054,), (1352538057,), (1352538060,), (1352538108,), (1352538112,), (1352538116,), (1352538117,), (1352538121,), (1352538125,), (1352538169,), (1352538178,), (1352538194,), (1352538197,), (1352538201,), (1352538269,), (1352538305,), (1352538309,), (1352538314,), (1352538335,), (1352538349,), (1352538505,), (1352538524,), (1352538551,), (1352538603,), (1352538844,), (1352538945,), (1352538949,), (1352538962,), (1352538967,), (1352538973,), (1352539224,), (1352539249,), (1352539251,), (1352539253,), (1352539256,), (1352539334,), (1352539302,), (1352539311,), (1352539321,), (1352539328,), (1352539332,), (1352539586,), (1352539587,), (1352539589,), (1352539591,), (1352539595,), (1352539656,), (1352539658,), (1352539661,), (1352539664,), (1352539804,), (1352539810,), (1352539817,), (1352539820,), (1352539899,), (1352539902,), (1352539920,), (1352539927,), (1352539939,), (1352539945,), (1352540043,), (1352540044,), (1352540045,), (1352540048,), (1352540148,), (1352540150,), (1352540153,), (1352540156,), (1352540159,), (1352540220,), (1352540221,), (1352540222,), (1352540224,), (1352540227,), (1352540266,), (1352540268,), (1352540271,), (1352540274,), (1352540365,), (1352540391,), (1352540405,), (1352540407,), (1352540409,), (1352540412,), (1352540497,), (1352540499,), (1352540502,), (1352540505,), (1352540610,), (1352540617,), (1352540622,), (1352540642,), (1352540662,), (1352540674,), (1352540743,), (1352540751,), (1352540756,), (1352540760,), (1352540766,), (1352540772,), (1352541696,), (1352541727,), (1352541759,), (1352541834,), (1352542058,), (1352541987,), (1352542003,), (1352542025,), (1352542047,), (1352542177,), (1352542206,), (1352542248,), (1352542536,), (1352542564,), (1352542577,), (1352542581,), (1352542587,), (1352542592,), (1352543622,), (1352543651,), (1352543679,), (1352543707,), (1352543734,), (1352544044,), (1352544087,), (1352544773,), (1352544776,), (1352544780,), (1352544784,), (1352544789,), (1352545201,), (1352545301,), (1352545322,), (1352545343,), (1352545347,), (1352545353,), (1352545500,), (1352545504,), (1352545508,), (1352545515,), (1352545675,), (1352545678,), (1352545681,), (1352545684,), (1352545691,), (1352545695,), (1352545725,), (1352545731,), (1352545736,), (1352545742,), (1352545845,), (1352545860,), (1352545866,), (1352545869,), (1352545874,), (1352545877,), (1352546046,), (1352546048,), (1352546051,), (1352546057,), (1352546059,), (1352546065,), (1352546107,), (1352546118,), (1352546132,), (1352546137,), (1352546205,), (1352546209,), (1352546213,), (1352546220,), (1352546230,), (1352546235,), (1352546380,), (1352546398,), (1352546404,), (1352546410,), (1352546418,), (1352546611,), (1352546559,), (1352546581,), (1352546773,), (1352546782,), (1352546787,), (1352546799,), (1352546828,), (1352546916,), (1352546936,), (1352546946,), (1352546951,), (1352546953,), (1352547113,), (1352547116,), (1352547119,), (1352547121,), (1352547303,), (1352547349,), (1352547420,), (1352547436,), (1352547447,), (1352547494,), (1352547563,), (1352547573,), (1352547583,), (1352547595,), (1352547598,), (1352547650,), (1352547652,), (1352547657,), (1352547659,), (1352547664,), (1352547669,), (1352547713,), (1352547728,), (1352547918,), (1352547942,), (1352547944,), (1352547946,), (1352547954,), (1352548094,), (1352548098,), (1352548100,), (1352548103,), (1352548108,), (1352548112,), (1352548180,), (1352548182,), (1352548185,), (1352548188,), (1352548404,), (1352548422,), (1352548432,), (1352548436,), (1352548440,), (1352548549,), (1352548559,), (1352548568,), (1352548579,), (1352548584,), (1352548620,), (1352548628,), (1352548633,), (1352548637,), (1352548645,), (1352548683,), (1352548688,), (1352548694,), (1352548698,), (1352548701,), (1352548781,), (1352548754,), (1352548759,), (1352548857,), (1352549014,), (1352549019,), (1352549078,), (1352549286,), (1352549288,), (1352549311,), (1352549317,), (1352549483,), (1352549520,), (1352549554,), (1352549656,), (1352549660,), (1352549664,), (1352549667,), (1352549673,), (1352549678,), (1352549726,), (1352549729,), (1352549732,), (1352549733,), (1352549782,), (1352549786,), (1352549788,), (1352549800,), (1352549813,), (1352549888,), (1352549891,), (1352549894,), (1352549899,), (1352549905,), (1352549954,), (1352549957,), (1352549959,), (1352549962,), (1352550093,), (1352550222,), (1352550267,), (1352550296,), (1352550324,), (1352550355,), (1352550765,), (1352550822,), (1352550921,), (1352550950,), (1352550977,), (1352551670,), (1352551783,), (1352551845,), (1352551900,), (1352551969,), (1352552035,), (1352552594,), (1352552484,), (1352552526,), (1352552551,), (1352552972,), (1352552978,), (1352552982,), (1352552992,), (1352553024,), (1352553068,), (1352553102,), (1352553122,), (1352553148,), (1352553177,), (1352553205,), (1352553237,), (1352553733,), (1352553758,), (1352553784,), (1352554360,), (1352554398,), (1352554442,), (1352554487,), (1352554513,), (1352554547,), (1352554691,), (1352554765,), (1352554829,), (1352554899,), (1352554973,), (1352555592,), (1352555653,), (1352555683,), (1352555949,), (1352555954,), (1352555958,), (1352555972,), (1352555983,), (1352555987,), (1352556028,), (1352556033,), (1352556036,), (1352556039,), (1352556056,), (1352556303,), (1352556314,), (1352556317,), (1352556365,), (1352556367,), (1352556370,), (1352556373,), (1352556376,), (1352556380,), (1352556408,), (1352556411,), (1352556413,), (1352556414,), (1352556417,), (1352556452,), (1352556454,), (1352556456,), (1352556458,), (1352556574,), (1352556580,), (1352556602,), (1352556635,), (1352556666,), (1352556701,), (1352556879,), (1352562519,), (1352562523,), (1352562579,), (1352562583,), (1352562587,), (1352562590,), (1352562608,), (1352562645,), (1352562659,), (1352562689,), (1352562718,), (1352562744,), (1352562915,), (1352562940,), (1352563089,), (1352563091,), (1352563116,), (1352563143,), (1352563144,), (1352563188,), (1352563193,), (1352563197,), (1352563200,), (1352563214,), (1352563313,), (1352563317,), (1352563405,), (1352563411,), (1352563414,), (1352563419,), (1352563426,), (1352563431,), (1352563530,), (1352563536,), (1352563541,), (1352563544,), (1352563548,), (1352563589,), (1352563593,), (1352563595,), (1352563597,), (1352563667,), (1352563673,), (1352563687,), (1352563690,), (1352563692,), (1352563695,), (1352563741,), (1352563744,), (1352563746,), (1352563941,), (1352564545,), (1352564373,), (1352564514,), (1352564523,), (1352564531,), (1352564622,), (1352564651,), (1352564663,), (1352564687,), (1352564695,), (1352564701,), (1352564742,), (1352564752,), (1352564754,), (1352564784,), (1352564790,), (1352564882,), (1352565105,), (1352565108,), (1352565154,), (1352565155,), (1352565158,), (1352565161,), (1352565164,), (1352565169,), (1352565409,), (1352565412,), (1352565420,), (1352565427,), (1352565471,), (1352565478,), (1352565481,), (1352565483,), (1352565485,), (1352565487,), (1352565492,), (1352565496,), (1352565501,), (1352565507,), (1352565527,), (1352565532,), (1352565538,), (1352565544,), (1352565558,), (1352565562,), (1352565565,), (1352565568,), (1352565571,), (1352565617,), (1352565620,), (1352565622,), (1352565625,), (1352565628,), (1352565633,), (1352565685,), (1352565694,), (1352565701,), (1352565728,), (1352565746,), (1352565759,), (1352565788,), (1352565805,), (1352566034,), (1352565913,), (1352565940,), (1352565971,), (1352566001,), (1352566273,), (1352566306,), (1352566341,), (1352566372,), (1352566378,), (1352566532,), (1352566540,), (1352566553,), (1352566579,), (1352566583,), (1352566596,), (1352567342,), (1352567444,), (1352567503,), (1352568333,), (1352568361,), (1352568390,), (1352568420,), (1352568448,), (1352568887,), (1352569017,), (1352569045,), (1352569074,), (1352569103,), (1352569141,), (1352569387,), (1352569391,), (1352569406,), (1352569421,), (1352569543,), (1352569602,), (1352569658,), (1352569717,), (1352569774,), (1352569830,), (1352570101,), (1352570136,), (1352570150,), (1352570389,), (1352570405,), (1352570411,), (1352570414,), (1352570421,), (1352570530,), (1352570534,), (1352570536,), (1352570538,), (1352570584,), (1352570587,), (1352570590,), (1352570724,), (1352570728,), (1352570732,), (1352570735,), (1352570806,), (1352570817,), (1352570948,), (1352570951,), (1352570955,), (1352570957,), (1352570959,), (1352571254,), (1352571319,), (1352571336,), (1352571341,), (1352571363,), (1352571391,), (1352571521,), (1352571494,), (1352571508,), (1352571520,), (1352571693,), (1352571703,), (1352571718,), (1352571722,), (1352571739,), (1352571936,), (1352571941,), (1352571946,), (1352571950,), (1352572037,), (1352572041,), (1352572044,), (1352572047,), (1352572051,), (1352572061,), (1352572154,), (1352572173,), (1352572182,), (1352572195,), (1352572200,), (1352572204,), (1352572385,), (1352572387,), (1352572390,), (1352572392,), (1352572432,), (1352572437,), (1352572441,), (1352572444,), (1352572449,), (1352572484,), (1352572487,), (1352572490,), (1352572493,), (1352572497,), (1352572501,), (1352572545,), (1352572548,), (1352572553,), (1352572563,), (1352572633,), (1352572638,), (1352572695,), (1352572701,), (1352572734,), (1352572739,), (1352572743,), (1352572746,), (1352572791,), (1352572824,), (1352572958,), (1352572969,), (1352572983,), (1352573101,), (1352573110,), (1352573118,), (1352573120,), (1352573248,), (1352573250,), (1352573252,), (1352573322,), (1352573656,), (1352573663,), (1352573669,), (1352573681,), (1352573688,), (1352573695,), (1352573745,), (1352573730,), (1352573734,), (1352573740,), (1352573812,), (1352573818,), (1352573823,), (1352573847,), (1352573850,), (1352573866,), (1352573979,), (1352573998,), (1352574001,), (1352574004,), (1352574008,), (1352574354,), (1352574437,), (1352574469,), (1352574526,), (1352574532,), (1352574537,), (1352574644,), (1352574655,), (1352574676,), (1352574680,), (1352574707,), (1352574827,), (1352574874,), (1352574886,), (1352574914,), (1352574954,), (1352574967,), (1352574993,), (1352574997,), (1352575001,), (1352575005,), (1352575013,), (1352575065,), (1352575068,), (1352575070,), (1352575072,), (1352575073,), (1352575118,), (1352575123,), (1352575126,), (1352575129,), (1352575133,), (1352575180,), (1352575184,), (1352575193,), (1352575200,), (1352575204,), (1352575298,), (1352575301,), (1352575303,), (1352575306,), (1352575386,), (1352575395,), (1352575402,), (1352575408,), (1352575412,), (1352575595,), (1352575598,), (1352575601,), (1352575604,), (1352575609,), (1352575661,), (1352575669,), (1352575677,), (1352575681,), (1352575691,), (1352575764,), (1352575769,), (1352575774,), (1352575779,), (1352575785,), (1352575791,), (1352575854,), (1352575849,), (1352575851,), (1352576188,), (1352576203,), (1352576215,), (1352576216,), (1352576223,), (1352576459,), (1352576467,), (1352576472,), (1352576481,), (1352576542,), (1352576544,), (1352576546,), (1352576548,), (1352576550,), (1352576554,), (1352576599,), (1352576603,), (1352576607,), (1352576633,), (1352576661,), (1352576758,), (1352576763,), (1352576767,), (1352576770,), (1352576771,), (1352576819,), (1352576821,), (1352576823,), (1352576932,), (1352576985,), (1352577000,), (1352577003,), (1352577007,), (1352577022,), (1352577050,), (1352577806,), (1352577851,), (1352577892,), (1352577928,), (1352578385,), (1352578278,), (1352578282,), (1352578321,), (1352578607,), (1352578626,), (1352578630,), (1352578677,), (1352578679,), (1352578681,), (1352578682,), (1352578684,), (1352578690,), (1352578732,), (1352578734,), (1352578737,), (1352578740,), (1352578783,), (1352578784,), (1352578786,), (1352578788,), (1352578791,), (1352578838,), (1352578845,), (1352578853,), (1352578900,), (1352579003,), (1352579056,), (1352579060,), (1352579063,), (1352579067,), (1352579120,), (1352579122,), (1352579239,), (1352579242,), (1352579249,), (1352579250,), (1352579262,), (1352579357,), (1352579358,), (1352579361,), (1352579363,), (1352579367,), (1352579370,), (1352579447,), (1352579450,), (1352579462,), (1352579511,), (1352579513,), (1352579515,), (1352579517,), (1352579520,), (1352579559,), (1352579564,), (1352579572,), (1352579576,), (1352579586,), (1352579590,), (1352579633,), (1352579637,), (1352579641,), (1352579644,), (1352579739,), (1352579719,), (1352579723,), (1352579727,), (1352579730,), (1352579734,), (1352579899,), (1352579928,), (1352579957,), (1352579971,), (1352580012,), (1352580014,), (1352580019,), (1352580030,), (1352580039,), (1352580045,), (1352580117,), (1352580120,), (1352580124,), (1352580128,), (1352580200,), (1352580205,), (1352580210,), (1352580244,), (1352580248,), (1352580269,), (1352580320,), (1352580323,), (1352580326,), (1352580331,), (1352580374,), (1352580379,), (1352580383,), (1352580388,), (1352580400,), (1352580405,), (1352580443,), (1352580447,), (1352580451,), (1352580496,), (1352580594,), (1352580853,), (1352580917,), (1352580929,), (1352581004,), (1352581033,), (1352581038,), (1352581042,), (1352581048,), (1352581105,), (1352581109,), (1352581113,), (1352581116,), (1352581120,), (1352581159,), (1352581165,), (1352581171,), (1352581257,), (1352581236,), (1352581241,), (1352581246,), (1352581250,), (1352581253,), (1352581282,), (1352581287,), (1352581291,), (1352581302,), (1352581312,), (1352581360,), (1352581364,), (1352581368,), (1352581436,), (1352581451,), (1352581460,), (1352581463,), (1352581586,), (1352581589,), (1352581592,), (1352581596,), (1352581662,), (1352581667,), (1352581674,), (1352581754,), (1352581756,), (1352581760,), (1352581762,), (1352581763,), (1352581768,), (1352581925,), (1352581931,), (1352581935,), (1352581939,), (1352581942,), (1352581977,), (1352581995,), (1352582025,), (1352582055,), (1352582223,), (1352582242,), (1352582246,), (1352582250,), (1352582253,), (1352582306,), (1352582308,), (1352582310,), (1352582312,), (1352582509,), (1352582545,), (1352582589,), (1352582891,), (1352582922,), (1352582939,), (1352582946,), (1352582950,), (1352583258,), (1352583296,), (1352583340,), (1352583356,), (1352583363,), (1352583366,), (1352583484,), (1352583492,), (1352583521,), (1352583527,), (1352583801,), (1352583743,), (1352583782,), (1352583787,), (1352583791,), (1352583793,), (1352584033,), (1352584037,), (1352584038,), (1352584042,), (1352584096,), (1352584100,), (1352584108,), (1352584115,), (1352584118,), (1352584122,), (1352584182,), (1352584183,), (1352584185,), (1352584187,), (1352584190,), (1352584237,), (1352584253,), (1352584259,), (1352584274,), (1352584286,), (1352584289,), (1352584425,), (1352584440,), (1352584491,), (1352584543,), (1352584776,), (1352584779,), (1352584782,), (1352584797,), (1352584830,), (1352584961,), (1352584965,), (1352584968,), (1352584972,), (1352585019,), (1352585027,), (1352585033,), (1352585036,), (1352585039,), (1352585042,), (1352585073,), (1352585078,), (1352585081,), (1352585132,), (1352585135,), (1352585139,), (1352585143,), (1352585147,), (1352585150,), (1352585178,), (1352585180,), (1352585182,), (1352585184,), (1352585187,), (1352585305,), (1352585308,), (1352585356,), (1352585382,), (1352586572,), (1352586632,), (1352586725,), (1352586765,), (1352586798,), (1352586834,), (1352587311,), (1352587253,), (1352587258,), (1352587265,), (1352587286,), (1352587521,), (1352587546,), (1352587576,), (1352587713,), (1352587717,), (1352587720,), (1352587724,), (1352587728,), (1352587741,), (1352587925,), (1352587953,), (1352587981,), (1352588337,), (1352588389,), (1352588418,), (1352588447,), (1352588477,), (1352588507,), (1352588702,), (1352588708,), (1352588712,), (1352588992,), (1352589042,), (1352589384,), (1352589395,), (1352589399,), (1352589402,), (1352589415,), (1352589446,), (1352589532,), (1352589535,), (1352589538,), (1352589544,), (1352589550,), (1352589570,), (1352589666,), (1352612910,), (1352674526,), (1352675007,), (1352675807,), (1352676566,), (1352676604,), (1352676861,), (1352677649,), (1352678360,), (1352735304,), (1352735308,), (1352735311,), (1352736569,), (1352737154,), (1352737167,), (1352737264,), (1352737319,), (1352737322,), (1352738718,), (1352739693,), (1352740938,), (1352740974,), (1352741982,), (1352742019,), (1352742424,), (1352742657,), (1352742695,), (1352743214,), (1352743244,), (1352743467,), (1352743494,), (1352743674,), (1352744341,), (1352744493,), (1352744496,), (1352744499,), (1352744629,), (1352744688,), (1352744696,), (1352745338,), (1352745482,), (1352745485,), (1352745535,), (1352745856,), (1352745858,), (1352745861,), (1352746268,), (1352746290,), (1352746832,), (1352746892,), (1352747933,), (1352782991,), (1352783191,), (1352783216,), (1352783243,), (1352783794,), (1352784759,), (1352784762,), (1352784765,), (1352784792,), (1352785050,), (1352785052,), (1352785055,), (1352787366,), (1352805009,), (1352805066,), (1352805774,), (1352805845,), (1352806950,), (1352806969,), (1352809033,), (1352809078,), (1352809204,), (1352809261,), (1352809342,), (1352809347,), (1352809665,), (1352809948,), (1352810084,), (1352810596,), (1352810592,), (1352811861,), (1352813226,), (1352813263,), (1352814779,), (1352814854,), (1352814856,), (1352820532,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'22042025': {'nb_upload': 13, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22316204]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1352787366, 1352785055, 1352785052, 1352785050, 1352784792, 1352784765, 1352784762, 1352784759, 1352783794, 1352783243, 1352783216, 1352783191, 1352782991] map_info['map_portfolio_photo'] : {22316204: [1352787366, 1352785055, 1352785052, 1352785050, 1352784792, 1352784765, 1352784762, 1352784759, 1352783794, 1352783243, 1352783216, 1352783191, 1352782991]} final : True mtd_id 4302 list_pids : [1352787366, 1352785055, 1352785052, 1352785050, 1352784792, 1352784765, 1352784762, 1352784759, 1352783794, 1352783243, 1352783216, 1352783191, 1352782991] Looping around the photos to save general results len do output : 1 /22316204Didn'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, '2751263') ('4302', '22316204', '1352787366', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352785055', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352785052', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352785050', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352784792', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352784765', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352784762', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352784759', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352783794', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352783243', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352783216', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352783191', None, None, None, None, None, '2751263') ('4302', None, None, None, None, None, None, None, '2751263') ('4302', '22316204', '1352782991', None, None, None, None, None, '2751263') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '22316204', 'None', None, None, None, None, '2751263'), ('4302', '22316204', '1352787366', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352785055', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352785052', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352785050', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352784792', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352784765', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352784762', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352784759', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352783794', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352783243', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352783216', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352783191', None, None, None, None, None, '2751263'), ('4302', '22316204', '1352782991', None, None, None, None, None, '2751263')] time used for this insertion : 0.014168262481689453 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0587871074676514 time spend to save output : 0.014386653900146484 total time spend for step 5 : 2.073173761367798 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 (2751263) 2.42user 2.48system 0:16.45elapsed 29%CPU (0avgtext+0avgdata 159076maxresident)k 864inputs+18696outputs (18major+76137minor)pagefaults 0swaps