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 : 1160780 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 (2602995) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2602995) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20696236 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2602995'] with mtr_portfolio_ids : ['20696236'] and first list_photo_ids : [] new path : /proc/1160780/ Name: python3 Umask: 0002 State: R (running) Tgid: 1160780 Ngid: 0 Pid: 1160780 PPid: 1160779 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1160780 NSpid: 1160780 NSpgid: 1159881 NSsid: 1159881 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99960 kB VmRSS: 99960 kB RssAnon: 59752 kB RssFile: 40208 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 536 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 43 nonvoluntary_ctxt_switches: 143 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1160780', 'Ngid': '0', 'Pid': '1160780', 'PPid': '1160779', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1160780', 'NSpid': '1160780', 'NSpgid': '1159881', 'NSsid': '1159881', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99960 kB', 'VmRSS': '99960 kB', 'RssAnon': '59752 kB', 'RssFile': '40208 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '536 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '43', 'nonvoluntary_ctxt_switches': '143'} ('datou_batch_current', '1160780', '1106928', '0', '1106928', '865680', '99960', b'', 'marlene', '2602995') 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 (20696236) 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 (2602995 ) ) 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 (20696236) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338684832, 'portfolio_id': 20696236}, {'photo_id': 1338683163, 'portfolio_id': 20696236}, {'photo_id': 1338683161, 'portfolio_id': 20696236}, {'photo_id': 1338683157, 'portfolio_id': 20696236}, {'photo_id': 1338683151, 'portfolio_id': 20696236}, {'photo_id': 1338682972, 'portfolio_id': 20696236}, {'photo_id': 1338682970, 'portfolio_id': 20696236}, {'photo_id': 1338682968, 'portfolio_id': 20696236}, {'photo_id': 1338682944, 'portfolio_id': 20696236}, {'photo_id': 1338682941, 'portfolio_id': 20696236}, {'photo_id': 1338682939, 'portfolio_id': 20696236}, {'photo_id': 1338682935, 'portfolio_id': 20696236}, {'photo_id': 1338682932, 'portfolio_id': 20696236}, {'photo_id': 1338682930, 'portfolio_id': 20696236}, {'photo_id': 1338682672, 'portfolio_id': 20696236}, {'photo_id': 1338682655, 'portfolio_id': 20696236}, {'photo_id': 1338682458, 'portfolio_id': 20696236}, {'photo_id': 1338682450, 'portfolio_id': 20696236}, {'photo_id': 1338682408, 'portfolio_id': 20696236}, {'photo_id': 1338682380, 'portfolio_id': 20696236}, {'photo_id': 1338682374, 'portfolio_id': 20696236}, {'photo_id': 1338682371, 'portfolio_id': 20696236}] map_portfolio_id_photo_id: {20696236: [1338684832, 1338683163, 1338683161, 1338683157, 1338683151, 1338682972, 1338682970, 1338682968, 1338682944, 1338682941, 1338682939, 1338682935, 1338682932, 1338682930, 1338682672, 1338682655, 1338682458, 1338682450, 1338682408, 1338682380, 1338682374, 1338682371]} ##### 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.26517176628112793 #### 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 Fri Feb 21 05:55:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20696236) 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 : 20696236 get user id for portfolio 20696236 get sub ptf for main ptf 20696236, type 3726 and hashtags ['environnement', 'Teint_Dans_La_Masse', 'autre_refus', 'metal', 'kraft', 'mal_croppe', 'Carton_brun', 'papier', 'cartonnette', 'plastique', 'flou', 'Carton_gris'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20696236 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','autre_refus','metal','kraft','mal_croppe','Carton_brun','papier','cartonnette','plastique','flou','Carton_gris')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20696236 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','autre_refus','metal','kraft','mal_croppe','Carton_brun','papier','cartonnette','plastique','flou','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 20696236, 'sub_port_id': 20696314, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13344988, 'last_updated_at': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 28)}, 'Carton_gris': {'main_port_id': 20696236, 'sub_port_id': 20696315, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13344989, 'last_updated_at': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 28)}, 'environnement': {'main_port_id': 20696236, 'sub_port_id': 20696316, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13344990, 'last_updated_at': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 28)}, 'autre_refus': {'main_port_id': 20696236, 'sub_port_id': 20696317, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13344991, 'last_updated_at': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 28)}, 'Carton_brun': {'main_port_id': 20696236, 'sub_port_id': 20696318, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13344992, 'last_updated_at': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 28)}, 'kraft': {'main_port_id': 20696236, 'sub_port_id': 20696319, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13344993, 'last_updated_at': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 28)}, 'metal': {'main_port_id': 20696236, 'sub_port_id': 20696320, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13344994, 'last_updated_at': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 28)}, 'papier': {'main_port_id': 20696236, 'sub_port_id': 20696321, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13344995, 'last_updated_at': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 28)}, 'mal_croppe': {'main_port_id': 20696236, 'sub_port_id': 20696322, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13344996, 'last_updated_at': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 28)}, 'cartonnette': {'main_port_id': 20696236, 'sub_port_id': 20696323, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13344997, 'last_updated_at': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 28)}, 'flou': {'main_port_id': 20696236, 'sub_port_id': 20696324, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13344998, 'last_updated_at': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 20696236, 'sub_port_id': 20696325, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13344999, 'last_updated_at': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20696314 , 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=20696236 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 (20696314) result : ((1338683877,), (1338683940,), (1338689478,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20696236) result : ((1338682371,), (1338682374,), (1338682380,), (1338682408,), (1338682450,), (1338682458,), (1338682655,), (1338682672,), (1338682930,), (1338682932,), (1338682935,), (1338682939,), (1338682941,), (1338682944,), (1338682968,), (1338682970,), (1338682972,), (1338683151,), (1338683157,), (1338683161,), (1338683163,), (1338684832,)) 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 20696315 , 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=20696236 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 (20696315) result : ((1338683229,), (1338683230,), (1338683231,), (1338683241,), (1338683242,), (1338683659,), (1338683660,), (1338683931,), (1338683932,), (1338683933,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20696236) result : ((1338682371,), (1338682374,), (1338682380,), (1338682408,), (1338682450,), (1338682458,), (1338682655,), (1338682672,), (1338682930,), (1338682932,), (1338682935,), (1338682939,), (1338682941,), (1338682944,), (1338682968,), (1338682970,), (1338682972,), (1338683151,), (1338683157,), (1338683161,), (1338683163,), (1338684832,)) 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 20696316 , 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=20696236 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 (20696316) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20696236) result : ((1338682371,), (1338682374,), (1338682380,), (1338682408,), (1338682450,), (1338682458,), (1338682655,), (1338682672,), (1338682930,), (1338682932,), (1338682935,), (1338682939,), (1338682941,), (1338682944,), (1338682968,), (1338682970,), (1338682972,), (1338683151,), (1338683157,), (1338683161,), (1338683163,), (1338684832,)) 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 20696317 , 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=20696236 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 (20696317) result : ((1338683227,), (1338683228,), (1338683239,), (1338683240,), (1338683633,), (1338683635,), (1338683636,), (1338683874,), (1338683929,), (1338683930,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20696236) result : ((1338682371,), (1338682374,), (1338682380,), (1338682408,), (1338682450,), (1338682458,), (1338682655,), (1338682672,), (1338682930,), (1338682932,), (1338682935,), (1338682939,), (1338682941,), (1338682944,), (1338682968,), (1338682970,), (1338682972,), (1338683151,), (1338683157,), (1338683161,), (1338683163,), (1338684832,)) 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 20696318 , 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=20696236 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 (20696318) result : ((1338683234,), (1338683235,), (1338683236,), (1338683245,), (1338683699,), (1338683876,), (1338683935,), (1338683936,), (1338683937,), (1338683938,), (1338689930,), (1338689931,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20696236) result : ((1338682371,), (1338682374,), (1338682380,), (1338682408,), (1338682450,), (1338682458,), (1338682655,), (1338682672,), (1338682930,), (1338682932,), (1338682935,), (1338682939,), (1338682941,), (1338682944,), (1338682968,), (1338682970,), (1338682972,), (1338683151,), (1338683157,), (1338683161,), (1338683163,), (1338684832,)) 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 20696319 , 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=20696236 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 (20696319) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20696236) result : ((1338682371,), (1338682374,), (1338682380,), (1338682408,), (1338682450,), (1338682458,), (1338682655,), (1338682672,), (1338682930,), (1338682932,), (1338682935,), (1338682939,), (1338682941,), (1338682944,), (1338682968,), (1338682970,), (1338682972,), (1338683151,), (1338683157,), (1338683161,), (1338683163,), (1338684832,)) 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 20696320 , 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=20696236 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 (20696320) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20696236) result : ((1338682371,), (1338682374,), (1338682380,), (1338682408,), (1338682450,), (1338682458,), (1338682655,), (1338682672,), (1338682930,), (1338682932,), (1338682935,), (1338682939,), (1338682941,), (1338682944,), (1338682968,), (1338682970,), (1338682972,), (1338683151,), (1338683157,), (1338683161,), (1338683163,), (1338684832,)) 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 20696321 , 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=20696236 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 (20696321) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20696236) result : ((1338682371,), (1338682374,), (1338682380,), (1338682408,), (1338682450,), (1338682458,), (1338682655,), (1338682672,), (1338682930,), (1338682932,), (1338682935,), (1338682939,), (1338682941,), (1338682944,), (1338682968,), (1338682970,), (1338682972,), (1338683151,), (1338683157,), (1338683161,), (1338683163,), (1338684832,)) 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 20696322 , 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=20696236 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 (20696322) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20696236) result : ((1338682371,), (1338682374,), (1338682380,), (1338682408,), (1338682450,), (1338682458,), (1338682655,), (1338682672,), (1338682930,), (1338682932,), (1338682935,), (1338682939,), (1338682941,), (1338682944,), (1338682968,), (1338682970,), (1338682972,), (1338683151,), (1338683157,), (1338683161,), (1338683163,), (1338684832,)) 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 20696323 , 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=20696236 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 (20696323) result : ((1338683233,), (1338683243,), (1338683679,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20696236) result : ((1338682371,), (1338682374,), (1338682380,), (1338682408,), (1338682450,), (1338682458,), (1338682655,), (1338682672,), (1338682930,), (1338682932,), (1338682935,), (1338682939,), (1338682941,), (1338682944,), (1338682968,), (1338682970,), (1338682972,), (1338683151,), (1338683157,), (1338683161,), (1338683163,), (1338684832,)) 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 20696324 , 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=20696236 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 (20696324) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20696236) result : ((1338682371,), (1338682374,), (1338682380,), (1338682408,), (1338682450,), (1338682458,), (1338682655,), (1338682672,), (1338682930,), (1338682932,), (1338682935,), (1338682939,), (1338682941,), (1338682944,), (1338682968,), (1338682970,), (1338682972,), (1338683151,), (1338683157,), (1338683161,), (1338683163,), (1338684832,)) 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 20696325 , 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=20696236 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 (20696325) result : ((1338683224,), (1338683225,), (1338683226,), (1338683871,), (1338683872,), (1338683923,), (1338683924,), (1338683925,), (1338689928,), (1338689929,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20696236) result : ((1338682371,), (1338682374,), (1338682380,), (1338682408,), (1338682450,), (1338682458,), (1338682655,), (1338682672,), (1338682930,), (1338682932,), (1338682935,), (1338682939,), (1338682941,), (1338682944,), (1338682968,), (1338682970,), (1338682972,), (1338683151,), (1338683157,), (1338683161,), (1338683163,), (1338684832,)) 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`=20696236 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','autre_refus','metal','kraft','mal_croppe','Carton_brun','papier','cartonnette','plastique','flou','Carton_gris')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20696236 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','autre_refus','metal','kraft','mal_croppe','Carton_brun','papier','cartonnette','plastique','flou','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 20696236, 'sub_port_id': 20696326, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13345000, 'last_updated_at': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 30)}, 'Carton_gris': {'main_port_id': 20696236, 'sub_port_id': 20696327, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13345001, 'last_updated_at': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 30)}, 'environnement': {'main_port_id': 20696236, 'sub_port_id': 20696328, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13345002, 'last_updated_at': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 30)}, 'autre_refus': {'main_port_id': 20696236, 'sub_port_id': 20696329, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13345003, 'last_updated_at': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 30)}, 'Carton_brun': {'main_port_id': 20696236, 'sub_port_id': 20696330, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13345004, 'last_updated_at': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 30)}, 'kraft': {'main_port_id': 20696236, 'sub_port_id': 20696331, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13345005, 'last_updated_at': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 30)}, 'metal': {'main_port_id': 20696236, 'sub_port_id': 20696332, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13345006, 'last_updated_at': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 30)}, 'papier': {'main_port_id': 20696236, 'sub_port_id': 20696333, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13345007, 'last_updated_at': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 30)}, 'mal_croppe': {'main_port_id': 20696236, 'sub_port_id': 20696334, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13345008, 'last_updated_at': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 30)}, 'cartonnette': {'main_port_id': 20696236, 'sub_port_id': 20696335, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13345009, 'last_updated_at': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 30)}, 'flou': {'main_port_id': 20696236, 'sub_port_id': 20696336, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13345010, 'last_updated_at': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 22, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 20696236, 'sub_port_id': 20696337, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13345011, 'last_updated_at': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 23, 2, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 22, 49, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20696326,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20696314 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20696327,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20696315 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20696328,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20696316 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20696329,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20696317 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20696330,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20696318 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20696331,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20696319 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20696332,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20696320 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20696333,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20696321 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20696334,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20696322 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20696335,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20696323 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20696336,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20696324 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20696337,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20696325 lien utilise dans velours : https://www.fotonower.com/velours/20696326,20696327,20696328,20696329,20696330,20696331,20696332,20696333,20696334,20696335,20696336,20696337?tags=plastique,Carton_gris,environnement,autre_refus,Carton_brun,kraft,metal,papier,mal_croppe,cartonnette,flou,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20696236]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338684832, 1338683163, 1338683161, 1338683157, 1338683151, 1338682972, 1338682970, 1338682968, 1338682944, 1338682941, 1338682939, 1338682935, 1338682932, 1338682930, 1338682672, 1338682655, 1338682458, 1338682450, 1338682408, 1338682380, 1338682374, 1338682371] map_info['map_portfolio_photo'] : {20696236: [1338684832, 1338683163, 1338683161, 1338683157, 1338683151, 1338682972, 1338682970, 1338682968, 1338682944, 1338682941, 1338682939, 1338682935, 1338682932, 1338682930, 1338682672, 1338682655, 1338682458, 1338682450, 1338682408, 1338682380, 1338682374, 1338682371]} final : False mtd_id 4302 list_pids : [1338684832, 1338683163, 1338683161, 1338683157, 1338683151, 1338682972, 1338682970, 1338682968, 1338682944, 1338682941, 1338682939, 1338682935, 1338682932, 1338682930, 1338682672, 1338682655, 1338682458, 1338682450, 1338682408, 1338682380, 1338682374, 1338682371] Looping around the photos to save general results len do output : 1 /20696236. 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, '2602995') ('4302', '20696236', '1338684832', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338683163', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338683161', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338683157', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338683151', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682972', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682970', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682968', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682944', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682941', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682939', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682935', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682932', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682930', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682672', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682655', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682458', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682450', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682408', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682380', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682374', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682371', None, None, None, None, None, '2602995') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 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, '20696236', "{'plastique': 20696314, 'Carton_gris': 20696315, 'environnement': 20696316, 'autre_refus': 20696317, 'Carton_brun': 20696318, 'kraft': 20696319, 'metal': 20696320, 'papier': 20696321, 'mal_croppe': 20696322, 'cartonnette': 20696323, 'flou': 20696324, 'Teint_Dans_La_Masse': 20696325}", None, None, None, None, '2602995'), ('4302', '20696236', '1338684832', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338683163', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338683161', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338683157', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338683151', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682972', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682970', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682968', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682944', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682941', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682939', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682935', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682932', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682930', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682672', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682655', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682458', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682450', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682408', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682380', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682374', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682371', None, None, None, None, None, '2602995')] time used for this insertion : 0.019847869873046875 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7548398971557617 time spend to save output : 0.020227909088134766 total time spend for step 1 : 1.7750678062438965 step2:final Fri Feb 21 05:55:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20696236) 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 20696236 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338682380,1338682374,1338682371,1338682672,1338682655,1338682458,1338682450,1338682408,1338682944,1338682941,1338682939,1338682935,1338682932,1338682930,1338682972,1338682970,1338682968,1338683163,1338683161,1338683157,1338683151,1338684832); 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([20696236]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} new output for save of step final : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} [1338684832, 1338683163, 1338683161, 1338683157, 1338683151, 1338682972, 1338682970, 1338682968, 1338682944, 1338682941, 1338682939, 1338682935, 1338682932, 1338682930, 1338682672, 1338682655, 1338682458, 1338682450, 1338682408, 1338682380, 1338682374, 1338682371] map_info['map_portfolio_photo'] : {20696236: [1338684832, 1338683163, 1338683161, 1338683157, 1338683151, 1338682972, 1338682970, 1338682968, 1338682944, 1338682941, 1338682939, 1338682935, 1338682932, 1338682930, 1338682672, 1338682655, 1338682458, 1338682450, 1338682408, 1338682380, 1338682374, 1338682371]} final : False mtd_id 4302 list_pids : [1338684832, 1338683163, 1338683161, 1338683157, 1338683151, 1338682972, 1338682970, 1338682968, 1338682944, 1338682941, 1338682939, 1338682935, 1338682932, 1338682930, 1338682672, 1338682655, 1338682458, 1338682450, 1338682408, 1338682380, 1338682374, 1338682371] Looping around the photos to save general results len do output : 22 /1338684832.Didn't retrieve data . /1338683163.Didn't retrieve data . /1338683161.Didn't retrieve data . /1338683157.Didn't retrieve data . /1338683151.Didn't retrieve data . /1338682972.Didn't retrieve data . /1338682970.Didn't retrieve data . /1338682968.Didn't retrieve data . /1338682944.Didn't retrieve data . /1338682941.Didn't retrieve data . /1338682939.Didn't retrieve data . /1338682935.Didn't retrieve data . /1338682932.Didn't retrieve data . /1338682930.Didn't retrieve data . /1338682672.Didn't retrieve data . /1338682655.Didn't retrieve data . /1338682458.Didn't retrieve data . /1338682450.Didn't retrieve data . /1338682408.Didn't retrieve data . /1338682380.Didn't retrieve data . /1338682374.Didn't retrieve data . /1338682371.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, '2602995') ('4302', '20696236', '1338684832', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338683163', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338683161', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338683157', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338683151', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682972', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682970', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682968', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682944', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682941', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682939', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682935', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682932', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682930', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682672', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682655', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682458', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682450', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682408', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682380', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682374', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682371', None, None, None, None, None, '2602995') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 66 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', '20696236', '1338684832', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338683163', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338683161', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338683157', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338683151', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338682972', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338682970', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338682968', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338682944', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338682941', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338682939', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338682935', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338682932', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338682930', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338682672', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338682655', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338682458', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338682450', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338682408', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338682380', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338682374', '0.06243439918061308', None, None, None, None, '2602995'), ('4302', '20696236', '1338682371', '0.06243439918061308', None, None, None, None, '2602995')] time used for this insertion : 0.02138495445251465 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07689166069030762 time spend to save output : 0.022214174270629883 total time spend for step 2 : 0.0991058349609375 step3:velours_tree Fri Feb 21 05:55:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20696236: [{'plastique': 20696314, 'Carton_gris': 20696315, 'environnement': 20696316, 'autre_refus': 20696317, 'Carton_brun': 20696318, 'kraft': 20696319, 'metal': 20696320, 'papier': 20696321, 'mal_croppe': 20696322, 'cartonnette': 20696323, 'flou': 20696324, 'Teint_Dans_La_Masse': 20696325}]} input_args_next_step : {20696236: ()} output_args : {20696236: [{'plastique': 20696314, 'Carton_gris': 20696315, 'environnement': 20696316, 'autre_refus': 20696317, 'Carton_brun': 20696318, 'kraft': 20696319, 'metal': 20696320, 'papier': 20696321, 'mal_croppe': 20696322, 'cartonnette': 20696323, 'flou': 20696324, 'Teint_Dans_La_Masse': 20696325}]} args : 20696236 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 : ({'plastique': 20696314, 'Carton_gris': 20696315, 'environnement': 20696316, 'autre_refus': 20696317, 'Carton_brun': 20696318, 'kraft': 20696319, 'metal': 20696320, 'papier': 20696321, 'mal_croppe': 20696322, 'cartonnette': 20696323, 'flou': 20696324, 'Teint_Dans_La_Masse': 20696325},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20696236) 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([20696236]) 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.3375210762023926 time spend to save output : 5.14984130859375e-05 total time spend for step 3 : 0.3375725746154785 step4:send_mail_cod Fri Feb 21 05:55:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} input_args_next_step : {1338684832: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338684832 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338683163 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338683161 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338683157 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338683151 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338682972 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338682970 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338682968 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338682944 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338682941 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338682939 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338682935 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338682932 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338682930 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338682672 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338682655 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338682458 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338682450 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338682408 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338682380 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338682374 depend.output_id : 0 input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ()} output_args : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',)} args : 1338682371 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 : {20696236: [{'plastique': 20696314, 'Carton_gris': 20696315, 'environnement': 20696316, 'autre_refus': 20696317, 'Carton_brun': 20696318, 'kraft': 20696319, 'metal': 20696320, 'papier': 20696321, 'mal_croppe': 20696322, 'cartonnette': 20696323, 'flou': 20696324, 'Teint_Dans_La_Masse': 20696325}]} input_args_next_step : {1338684832: ('0.06243439918061308',), 1338683163: ('0.06243439918061308',), 1338683161: ('0.06243439918061308',), 1338683157: ('0.06243439918061308',), 1338683151: ('0.06243439918061308',), 1338682972: ('0.06243439918061308',), 1338682970: ('0.06243439918061308',), 1338682968: ('0.06243439918061308',), 1338682944: ('0.06243439918061308',), 1338682941: ('0.06243439918061308',), 1338682939: ('0.06243439918061308',), 1338682935: ('0.06243439918061308',), 1338682932: ('0.06243439918061308',), 1338682930: ('0.06243439918061308',), 1338682672: ('0.06243439918061308',), 1338682655: ('0.06243439918061308',), 1338682458: ('0.06243439918061308',), 1338682450: ('0.06243439918061308',), 1338682408: ('0.06243439918061308',), 1338682380: ('0.06243439918061308',), 1338682374: ('0.06243439918061308',), 1338682371: ('0.06243439918061308',), 20696236: ()} output_args : {20696236: [{'plastique': 20696314, 'Carton_gris': 20696315, 'environnement': 20696316, 'autre_refus': 20696317, 'Carton_brun': 20696318, 'kraft': 20696319, 'metal': 20696320, 'papier': 20696321, 'mal_croppe': 20696322, 'cartonnette': 20696323, 'flou': 20696324, 'Teint_Dans_La_Masse': 20696325}]} args : 20696236 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 :23, first value : ('0.06243439918061308',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20696236) 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 (1338684832,1338683163,1338683161,1338683157,1338683151,1338682972,1338682970,1338682968,1338682944,1338682941,1338682939,1338682935,1338682932,1338682930,1338682672,1338682655,1338682458,1338682450,1338682408,1338682380,1338682374,1338682371) Found this number of photos: 22 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338682371 begin to download photo : 1338682458 begin to download photo : 1338682935 begin to download photo : 1338682970 begin to download photo : 1338683163 download finish for photo 1338682970 begin to download photo : 1338682972 download finish for photo 1338682371 begin to download photo : 1338682374 download finish for photo 1338682458 begin to download photo : 1338682655 download finish for photo 1338682935 begin to download photo : 1338682939 download finish for photo 1338683163 begin to download photo : 1338684832 download finish for photo 1338682374 begin to download photo : 1338682380 download finish for photo 1338682972 begin to download photo : 1338683151 download finish for photo 1338682655 begin to download photo : 1338682672 download finish for photo 1338682939 begin to download photo : 1338682941 download finish for photo 1338684832 download finish for photo 1338682380 begin to download photo : 1338682408 download finish for photo 1338683151 begin to download photo : 1338683157 download finish for photo 1338682672 begin to download photo : 1338682930 download finish for photo 1338682941 begin to download photo : 1338682944 download finish for photo 1338682408 begin to download photo : 1338682450 download finish for photo 1338683157 begin to download photo : 1338683161 download finish for photo 1338682930 begin to download photo : 1338682932 download finish for photo 1338682944 begin to download photo : 1338682968 download finish for photo 1338683161 download finish for photo 1338682932 download finish for photo 1338682450 download finish for photo 1338682968 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 : 22 ; length of list_pids : 22 ; length of list_args : 22 results_Auto_P20696236_21-02-2025_05_55_31.pdf 20696314 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=20696314 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338683877: '1740088413_2885708_1338682944_73500cb8872ec435266c5f0dc46d64fb_rle_crop_3681130931_0.png', 1338683940: '1740088433_2886053_1338682935_44c5a80de61051636571f716e18dee52_rle_crop_3681130803_0.png', 1338689478: '1740090534_2959095_1338684832_ac75c4b8238ed1e5cd369ecf02c48215_rle_crop_3681168578_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/b4b3f8975172a7673b6aec72eada31ca_88672383.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/ae013a85172d1fdaeb802864649be586_62965288.png change filename to text .imagette206963141740113731/ imagette206963141740113731/1740088433_2886053_1338682935_44c5a80de61051636571f716e18dee52_rle_crop_3681130803_0.png.png imagette206963141740113731/1740090534_2959095_1338684832_ac75c4b8238ed1e5cd369ecf02c48215_rle_crop_3681168578_0.png.png imagette206963141740113731/1740088413_2885708_1338682944_73500cb8872ec435266c5f0dc46d64fb_rle_crop_3681130931_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/259c2072a4832cda554cd9d071842ecc_76253095.png imagette206963141740113731 20696317 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=20696317 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338683227: '1740088193_2880285_1338682450_cf2c11e212b2a38275f84b57f9a52dd5_rle_crop_3681129238_0.png', 1338683228: '1740088193_2880285_1338682408_f6ab6c56c214cc387d9ca05fe8afcbc6_rle_crop_3681129264_0.png', 1338683239: '1740088214_2880574_1338682374_8572f4f336e56040797d0ae4bb067058_rle_crop_3681129846_0.png', 1338683240: '1740088214_2880574_1338682371_7259d2a0b50d5161e7c000d2a76133c5_rle_crop_3681129860_0.png', 1338683633: '1740088355_2884906_1338682374_8572f4f336e56040797d0ae4bb067058_bib_crop_3681129846_0.jpg', 1338683635: '1740088355_2884906_1338682374_8572f4f336e56040797d0ae4bb067058_rle_crop_3681130771_0.png', 1338683636: '1740088355_2884906_1338682371_7259d2a0b50d5161e7c000d2a76133c5_rle_crop_3681129860_0.png', 1338683874: '1740088413_2885708_1338682944_73500cb8872ec435266c5f0dc46d64fb_rle_crop_3681130933_0.png', 1338683929: '1740088433_2886053_1338682972_f4655d60864e6b0245c05968aad0af36_rle_crop_3681130662_0.png', 1338683930: '1740088433_2886053_1338682932_285149e20c528cda17f41ce5bd3d8ee6_rle_crop_3681130873_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/446b7774cc721581b0dd9f6e5b51f54b_78436916.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/6db3bf391462854130773e68b56fbaac_18132877.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/cbdfcdbfdefe569eddd4c97e570faa27_73245083.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/d7a49bce39f656b98496cb8f482b701e_27580855.png change filename to text .wget -O 5.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/a150f9a7396697e67df295ec65241f99_66044642.jpg change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/eae36f8da85df37c8defd4cf2b2dd1e2_44236456.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/d7a49bce39f656b98496cb8f482b701e_63356213.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/623319a54e6c3062b7b7417ed7e4c3ba_38753067.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/daf63e8bd50e42bfc68600fa47760d66_91755929.png change filename to text .imagette206963171740113731/ imagette206963171740113731/1740088193_2880285_1338682408_f6ab6c56c214cc387d9ca05fe8afcbc6_rle_crop_3681129264_0.png.png imagette206963171740113731/1740088355_2884906_1338682374_8572f4f336e56040797d0ae4bb067058_bib_crop_3681129846_0.jpg.jpg imagette206963171740113731/1740088214_2880574_1338682371_7259d2a0b50d5161e7c000d2a76133c5_rle_crop_3681129860_0.png.png imagette206963171740113731/1740088193_2880285_1338682450_cf2c11e212b2a38275f84b57f9a52dd5_rle_crop_3681129238_0.png.png imagette206963171740113731/1740088214_2880574_1338682374_8572f4f336e56040797d0ae4bb067058_rle_crop_3681129846_0.png.png imagette206963171740113731/1740088413_2885708_1338682944_73500cb8872ec435266c5f0dc46d64fb_rle_crop_3681130933_0.png.png imagette206963171740113731/1740088355_2884906_1338682374_8572f4f336e56040797d0ae4bb067058_rle_crop_3681130771_0.png.png imagette206963171740113731/1740088433_2886053_1338682972_f4655d60864e6b0245c05968aad0af36_rle_crop_3681130662_0.png.png imagette206963171740113731/1740088355_2884906_1338682371_7259d2a0b50d5161e7c000d2a76133c5_rle_crop_3681129860_0.png.png imagette206963171740113731/1740088433_2886053_1338682932_285149e20c528cda17f41ce5bd3d8ee6_rle_crop_3681130873_0.png.png imagette206963191740113734/ imagette206963201740113734/ imagette206963221740113734/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/a5c08ab04478f61e18fad7c5d445d520_49110735.png imagette206963171740113731 20696319 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=20696319 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206963191740113734 20696320 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=20696320 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206963201740113734 20696322 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=20696322 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206963221740113734 20696323 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=20696323 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338683233: '1740088193_2880285_1338682458_519acdd8b81412b1e3ae5b7fe0b6d45a_rle_crop_3681129077_0.png', 1338683243: '1740088214_2880574_1338682374_8572f4f336e56040797d0ae4bb067058_rle_crop_3681129845_0.png', 1338683679: '1740088355_2884906_1338682374_8572f4f336e56040797d0ae4bb067058_rle_crop_3681129845_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/f7fcfa0b2b17ea5372a9e41090eb4bc6_38356936.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/71eb66b7b2faec22087fab0a45944ebd_86869646.png change filename to text .imagette206963231740113734/ imagette206963231740113734/1740088355_2884906_1338682374_8572f4f336e56040797d0ae4bb067058_rle_crop_3681129845_0.png.png imagette206963231740113734/1740088193_2880285_1338682458_519acdd8b81412b1e3ae5b7fe0b6d45a_rle_crop_3681129077_0.png.png imagette206963231740113734/1740088214_2880574_1338682374_8572f4f336e56040797d0ae4bb067058_rle_crop_3681129845_0.png.png imagette206963241740113734/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/71eb66b7b2faec22087fab0a45944ebd_14781910.png imagette206963231740113734 20696324 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=20696324 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206963241740113734 20696315 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=20696315 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338683229: '1740088193_2880285_1338682458_519acdd8b81412b1e3ae5b7fe0b6d45a_rle_crop_3681129073_0.png', 1338683230: '1740088193_2880285_1338682450_cf2c11e212b2a38275f84b57f9a52dd5_rle_crop_3681129237_0.png', 1338683231: '1740088193_2880285_1338682450_cf2c11e212b2a38275f84b57f9a52dd5_rle_crop_3681129242_0.png', 1338683241: '1740088214_2880574_1338682380_14321b8eb923f2af14c9372da3646047_rle_crop_3681129830_0.png', 1338683242: '1740088214_2880574_1338682374_8572f4f336e56040797d0ae4bb067058_rle_crop_3681129848_0.png', 1338683659: '1740088355_2884906_1338682380_14321b8eb923f2af14c9372da3646047_rle_crop_3681129830_0.png', 1338683660: '1740088355_2884906_1338682374_8572f4f336e56040797d0ae4bb067058_rle_crop_3681129848_0.png', 1338683931: '1740088433_2886053_1338682972_f4655d60864e6b0245c05968aad0af36_rle_crop_3681130666_0.png', 1338683932: '1740088433_2886053_1338682932_285149e20c528cda17f41ce5bd3d8ee6_rle_crop_3681130875_0.png', 1338683933: '1740088433_2886053_1338682930_d0c67a3d29092f069259676cf7252c98_rle_crop_3681130892_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/0885e172518694844abf957fa1c4a4bf_16260413.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/6cc98f1c6af2dadb0b78d9ae4a7b58be_58881355.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/7b861f3bc096e6a73df36bf021a025eb_43439982.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/5b7e256541bc8299e9207d78dc428d34_90186808.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/4b85f471addd4a35b0b3faddbdc5c01a_56135132.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/5b7e256541bc8299e9207d78dc428d34_33978883.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/4b85f471addd4a35b0b3faddbdc5c01a_63560141.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/15bf8094cae81912b20dd4a07ca29b25_44586558.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/8fdf60411b047a02551e16a37aec397f_93368643.png change filename to text .imagette206963151740113734/ imagette206963151740113734/1740088214_2880574_1338682374_8572f4f336e56040797d0ae4bb067058_rle_crop_3681129848_0.png.png imagette206963151740113734/1740088433_2886053_1338682930_d0c67a3d29092f069259676cf7252c98_rle_crop_3681130892_0.png.png imagette206963151740113734/1740088193_2880285_1338682450_cf2c11e212b2a38275f84b57f9a52dd5_rle_crop_3681129242_0.png.png imagette206963151740113734/1740088355_2884906_1338682380_14321b8eb923f2af14c9372da3646047_rle_crop_3681129830_0.png.png imagette206963151740113734/1740088433_2886053_1338682932_285149e20c528cda17f41ce5bd3d8ee6_rle_crop_3681130875_0.png.png imagette206963151740113734/1740088214_2880574_1338682380_14321b8eb923f2af14c9372da3646047_rle_crop_3681129830_0.png.png imagette206963151740113734/1740088193_2880285_1338682450_cf2c11e212b2a38275f84b57f9a52dd5_rle_crop_3681129237_0.png.png imagette206963151740113734/1740088355_2884906_1338682374_8572f4f336e56040797d0ae4bb067058_rle_crop_3681129848_0.png.png imagette206963151740113734/1740088433_2886053_1338682972_f4655d60864e6b0245c05968aad0af36_rle_crop_3681130666_0.png.png imagette206963151740113734/1740088193_2880285_1338682458_519acdd8b81412b1e3ae5b7fe0b6d45a_rle_crop_3681129073_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/197596bbfb1abcdb2319b87eb8f9960b_49324877.png imagette206963151740113734 20696318 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=20696318 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338683234: '1740088193_2880285_1338682655_f206cb23062741afb66c2089584513b1_rle_crop_3681129066_0.png', 1338683235: '1740088193_2880285_1338682458_519acdd8b81412b1e3ae5b7fe0b6d45a_rle_crop_3681129076_0.png', 1338683236: '1740088193_2880285_1338682408_f6ab6c56c214cc387d9ca05fe8afcbc6_rle_crop_3681129260_0.png', 1338683245: '1740088214_2880574_1338682380_14321b8eb923f2af14c9372da3646047_rle_crop_3681129834_0.png', 1338683699: '1740088355_2884906_1338682380_14321b8eb923f2af14c9372da3646047_rle_crop_3681129834_0.png', 1338683876: '1740088413_2885708_1338682944_73500cb8872ec435266c5f0dc46d64fb_rle_crop_3681130942_0.png', 1338683935: '1740088433_2886053_1338682972_f4655d60864e6b0245c05968aad0af36_rle_crop_3681130667_0.png', 1338683936: '1740088433_2886053_1338682935_44c5a80de61051636571f716e18dee52_rle_crop_3681130806_0.png', 1338683937: '1740088433_2886053_1338682935_44c5a80de61051636571f716e18dee52_rle_crop_3681130805_0.png', 1338683938: '1740088433_2886053_1338682932_285149e20c528cda17f41ce5bd3d8ee6_rle_crop_3681130879_0.png', 1338689930: '1740090714_2963712_1338682970_8675cd2f702fde6b693ca65ace2b8579_rle_crop_3681170400_0.png', 1338689931: '1740090714_2963712_1338682968_2bef07924d65a04c665673efd897dfc5_rle_crop_3681170613_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/b87e6162fd1def8893d78e4c16b2b487_88473858.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/438aac94130bf1f8f614d2feec991f2b_66564831.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/c109301956b34f4389357a80401a92bb_2839678.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/1d0cdbe484b099427a8162cd53cd5beb_35802966.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/1d0cdbe484b099427a8162cd53cd5beb_82752979.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/7f0cdc46755806f05a395a55abf37078_82073638.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/dd26c125cd91810b7b75208bee0e3305_29515822.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/be51fc1c98070ac79ca40c61297ac674_49180399.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/fc31983663ed50405ba1b096867a5203_62231901.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/87e582cc1c54895f50dfa2d27f346618_7286875.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/592a41f20c1c84d8ce883b3e78ebcdfd_17200029.png change filename to text .imagette206963181740113736/ imagette206963181740113736/1740088214_2880574_1338682380_14321b8eb923f2af14c9372da3646047_rle_crop_3681129834_0.png.png imagette206963181740113736/1740088193_2880285_1338682408_f6ab6c56c214cc387d9ca05fe8afcbc6_rle_crop_3681129260_0.png.png imagette206963181740113736/1740088433_2886053_1338682972_f4655d60864e6b0245c05968aad0af36_rle_crop_3681130667_0.png.png imagette206963181740113736/1740088193_2880285_1338682458_519acdd8b81412b1e3ae5b7fe0b6d45a_rle_crop_3681129076_0.png.png imagette206963181740113736/1740088193_2880285_1338682655_f206cb23062741afb66c2089584513b1_rle_crop_3681129066_0.png.png imagette206963181740113736/1740090714_2963712_1338682968_2bef07924d65a04c665673efd897dfc5_rle_crop_3681170613_0.png.png imagette206963181740113736/1740088433_2886053_1338682935_44c5a80de61051636571f716e18dee52_rle_crop_3681130806_0.png.png imagette206963181740113736/1740090714_2963712_1338682970_8675cd2f702fde6b693ca65ace2b8579_rle_crop_3681170400_0.png.png imagette206963181740113736/1740088433_2886053_1338682935_44c5a80de61051636571f716e18dee52_rle_crop_3681130805_0.png.png imagette206963181740113736/1740088433_2886053_1338682932_285149e20c528cda17f41ce5bd3d8ee6_rle_crop_3681130879_0.png.png imagette206963181740113736/1740088355_2884906_1338682380_14321b8eb923f2af14c9372da3646047_rle_crop_3681129834_0.png.png imagette206963181740113736/1740088413_2885708_1338682944_73500cb8872ec435266c5f0dc46d64fb_rle_crop_3681130942_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/5c9d61471ee012cf9dd6d95e883daa01_32185574.png imagette206963181740113736 20696325 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=20696325 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338683224: '1740088193_2880285_1338682450_cf2c11e212b2a38275f84b57f9a52dd5_rle_crop_3681129243_0.png', 1338683225: '1740088193_2880285_1338682450_cf2c11e212b2a38275f84b57f9a52dd5_rle_crop_3681129247_0.png', 1338683226: '1740088193_2880285_1338682408_f6ab6c56c214cc387d9ca05fe8afcbc6_rle_crop_3681129259_0.png', 1338683871: '1740088413_2885708_1338682944_73500cb8872ec435266c5f0dc46d64fb_rle_crop_3681130944_0.png', 1338683872: '1740088413_2885708_1338682944_73500cb8872ec435266c5f0dc46d64fb_rle_crop_3681130938_0.png', 1338683923: '1740088433_2886053_1338682932_285149e20c528cda17f41ce5bd3d8ee6_rle_crop_3681130877_0.png', 1338683924: '1740088433_2886053_1338682930_d0c67a3d29092f069259676cf7252c98_rle_crop_3681130899_0.png', 1338683925: '1740088433_2886053_1338682930_d0c67a3d29092f069259676cf7252c98_rle_crop_3681130895_0.png', 1338689928: '1740090714_2963712_1338682968_2bef07924d65a04c665673efd897dfc5_rle_crop_3681170608_0.png', 1338689929: '1740090714_2963712_1338682968_2bef07924d65a04c665673efd897dfc5_rle_crop_3681170610_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/6a41d1bafb49ba42d07912f35c5d19d9_29170029.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/5252acee73617d84ba8d774db82b6861_83998134.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/e64247e5a4b1ab215a94eddc4a417664_92861604.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/a4030c0afce94513c731be7ef8174204_54577528.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/fc99d78ce9c2ca6421c61a62fa1f7f50_57658135.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/a6dfa366cc124d07f46015b15b31b5da_41426453.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/545d68d9865a80e6629b2c219d5095da_27144523.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/311890d01aa4d3eab7a800a6941eeda3_82081972.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/9a143288fa21039b2ba31516e0d81b2e_98318967.png change filename to text .imagette206963251740113737/ imagette206963251740113737/1740088433_2886053_1338682932_285149e20c528cda17f41ce5bd3d8ee6_rle_crop_3681130877_0.png.png imagette206963251740113737/1740088193_2880285_1338682450_cf2c11e212b2a38275f84b57f9a52dd5_rle_crop_3681129243_0.png.png imagette206963251740113737/1740090714_2963712_1338682968_2bef07924d65a04c665673efd897dfc5_rle_crop_3681170608_0.png.png imagette206963251740113737/1740088413_2885708_1338682944_73500cb8872ec435266c5f0dc46d64fb_rle_crop_3681130944_0.png.png imagette206963251740113737/1740088413_2885708_1338682944_73500cb8872ec435266c5f0dc46d64fb_rle_crop_3681130938_0.png.png imagette206963251740113737/1740088433_2886053_1338682930_d0c67a3d29092f069259676cf7252c98_rle_crop_3681130895_0.png.png imagette206963251740113737/1740088193_2880285_1338682408_f6ab6c56c214cc387d9ca05fe8afcbc6_rle_crop_3681129259_0.png.png imagette206963251740113737/1740088433_2886053_1338682930_d0c67a3d29092f069259676cf7252c98_rle_crop_3681130899_0.png.png imagette206963251740113737/1740090714_2963712_1338682968_2bef07924d65a04c665673efd897dfc5_rle_crop_3681170610_0.png.png imagette206963251740113737/1740088193_2880285_1338682450_cf2c11e212b2a38275f84b57f9a52dd5_rle_crop_3681129247_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/a07bdedcdc92e50d84360d5055580411_18199868.png imagette206963251740113737 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20696236 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20696326,20696327,20696328,20696329,20696330,20696331,20696332,20696333,20696334,20696335,20696336,20696337?tags=plastique,Carton_gris,environnement,autre_refus,Carton_brun,kraft,metal,papier,mal_croppe,cartonnette,flou,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1338684832] : ('0.06243439918061308',) no score found for photo 1338684832 We are sending mail with results at report@fotonower.com args[1338683163] : ('0.06243439918061308',) no score found for photo 1338683163 We are sending mail with results at report@fotonower.com args[1338683161] : ('0.06243439918061308',) no score found for photo 1338683161 We are sending mail with results at report@fotonower.com args[1338683157] : ('0.06243439918061308',) no score found for photo 1338683157 We are sending mail with results at report@fotonower.com args[1338683151] : ('0.06243439918061308',) no score found for photo 1338683151 We are sending mail with results at report@fotonower.com args[1338682972] : ('0.06243439918061308',) no score found for photo 1338682972 We are sending mail with results at report@fotonower.com args[1338682970] : ('0.06243439918061308',) no score found for photo 1338682970 We are sending mail with results at report@fotonower.com args[1338682968] : ('0.06243439918061308',) no score found for photo 1338682968 We are sending mail with results at report@fotonower.com args[1338682944] : ('0.06243439918061308',) no score found for photo 1338682944 We are sending mail with results at report@fotonower.com args[1338682941] : ('0.06243439918061308',) no score found for photo 1338682941 We are sending mail with results at report@fotonower.com args[1338682939] : ('0.06243439918061308',) no score found for photo 1338682939 We are sending mail with results at report@fotonower.com args[1338682935] : ('0.06243439918061308',) no score found for photo 1338682935 We are sending mail with results at report@fotonower.com args[1338682932] : ('0.06243439918061308',) no score found for photo 1338682932 We are sending mail with results at report@fotonower.com args[1338682930] : ('0.06243439918061308',) no score found for photo 1338682930 We are sending mail with results at report@fotonower.com args[1338682672] : ('0.06243439918061308',) no score found for photo 1338682672 We are sending mail with results at report@fotonower.com args[1338682655] : ('0.06243439918061308',) no score found for photo 1338682655 We are sending mail with results at report@fotonower.com args[1338682458] : ('0.06243439918061308',) no score found for photo 1338682458 We are sending mail with results at report@fotonower.com args[1338682450] : ('0.06243439918061308',) no score found for photo 1338682450 We are sending mail with results at report@fotonower.com args[1338682408] : ('0.06243439918061308',) no score found for photo 1338682408 We are sending mail with results at report@fotonower.com args[1338682380] : ('0.06243439918061308',) no score found for photo 1338682380 We are sending mail with results at report@fotonower.com args[1338682374] : ('0.06243439918061308',) no score found for photo 1338682374 We are sending mail with results at report@fotonower.com args[1338682371] : ('0.06243439918061308',) no score found for photo 1338682371 We are sending mail with results at report@fotonower.com refus_total : 0.06243439918061308 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=20696236 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_P20696236_21-02-2025_05_55_31.pdf results_Auto_P20696236_21-02-2025_05_55_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696236_21-02-2025_05_55_31.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20696236','results_Auto_P20696236_21-02-2025_05_55_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696236_21-02-2025_05_55_31.pdf','pdf','','0.31','0.06243439918061308') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20696236]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338684832, 1338683163, 1338683161, 1338683157, 1338683151, 1338682972, 1338682970, 1338682968, 1338682944, 1338682941, 1338682939, 1338682935, 1338682932, 1338682930, 1338682672, 1338682655, 1338682458, 1338682450, 1338682408, 1338682380, 1338682374, 1338682371] map_info['map_portfolio_photo'] : {20696236: [1338684832, 1338683163, 1338683161, 1338683157, 1338683151, 1338682972, 1338682970, 1338682968, 1338682944, 1338682941, 1338682939, 1338682935, 1338682932, 1338682930, 1338682672, 1338682655, 1338682458, 1338682450, 1338682408, 1338682380, 1338682374, 1338682371]} final : False mtd_id 4302 list_pids : [1338684832, 1338683163, 1338683161, 1338683157, 1338683151, 1338682972, 1338682970, 1338682968, 1338682944, 1338682941, 1338682939, 1338682935, 1338682932, 1338682930, 1338682672, 1338682655, 1338682458, 1338682450, 1338682408, 1338682380, 1338682374, 1338682371] 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, '2602995') ('4302', '20696236', '1338684832', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338683163', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338683161', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338683157', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338683151', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682972', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682970', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682968', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682944', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682941', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682939', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682935', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682932', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682930', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682672', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682655', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682458', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682450', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682408', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682380', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682374', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682371', None, None, None, None, None, '2602995') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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', '20696236', '1338684832', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338683163', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338683161', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338683157', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338683151', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682972', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682970', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682968', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682944', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682941', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682939', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682935', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682932', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682930', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682672', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682655', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682458', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682450', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682408', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682380', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682374', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682371', None, None, None, None, None, '2602995')] time used for this insertion : 0.014515161514282227 save_final save missing photos in datou_result : time spend for datou_step_exec : 9.87808346748352 time spend to save output : 0.014871597290039062 total time spend for step 4 : 9.89295506477356 step5:split_time_score Fri Feb 21 05:55:40 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 : ['20696236'] 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 : [('20696236',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20696236) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338683163: {'path': 'temp/1740113730_1160780_1338683163_b550626d40799d09d6d4255ce4dc2d72.jpg', 'extension': 'jpg'}, 1338684832: {'path': 'temp/1740113730_1160780_1338684832_ac75c4b8238ed1e5cd369ecf02c48215.jpg', 'extension': 'jpg'}, 1338682970: {'path': 'temp/1740113730_1160780_1338682970_8675cd2f702fde6b693ca65ace2b8579.jpg', 'extension': 'jpg'}, 1338682972: {'path': 'temp/1740113730_1160780_1338682972_f4655d60864e6b0245c05968aad0af36.jpg', 'extension': 'jpg'}, 1338683151: {'path': 'temp/1740113730_1160780_1338683151_58daa3251bdcb749d8feb56ca56d3b07.jpg', 'extension': 'jpg'}, 1338683157: {'path': 'temp/1740113730_1160780_1338683157_aba88d0371961967e7bbd3c543ca9f57.jpg', 'extension': 'jpg'}, 1338683161: {'path': 'temp/1740113730_1160780_1338683161_e64527dbfbe5698f99b370cc35027b5e.jpg', 'extension': 'jpg'}, 1338682458: {'path': 'temp/1740113730_1160780_1338682458_519acdd8b81412b1e3ae5b7fe0b6d45a.jpg', 'extension': 'jpg'}, 1338682655: {'path': 'temp/1740113730_1160780_1338682655_f206cb23062741afb66c2089584513b1.jpg', 'extension': 'jpg'}, 1338682672: {'path': 'temp/1740113730_1160780_1338682672_f4f0343f01af45cdf1f962d6fb1e43cc.jpg', 'extension': 'jpg'}, 1338682930: {'path': 'temp/1740113730_1160780_1338682930_d0c67a3d29092f069259676cf7252c98.jpg', 'extension': 'jpg'}, 1338682932: {'path': 'temp/1740113730_1160780_1338682932_285149e20c528cda17f41ce5bd3d8ee6.jpg', 'extension': 'jpg'}, 1338682371: {'path': 'temp/1740113730_1160780_1338682371_7259d2a0b50d5161e7c000d2a76133c5.jpg', 'extension': 'jpg'}, 1338682374: {'path': 'temp/1740113730_1160780_1338682374_8572f4f336e56040797d0ae4bb067058.jpg', 'extension': 'jpg'}, 1338682380: {'path': 'temp/1740113730_1160780_1338682380_14321b8eb923f2af14c9372da3646047.jpg', 'extension': 'jpg'}, 1338682408: {'path': 'temp/1740113730_1160780_1338682408_f6ab6c56c214cc387d9ca05fe8afcbc6.jpg', 'extension': 'jpg'}, 1338682450: {'path': 'temp/1740113730_1160780_1338682450_cf2c11e212b2a38275f84b57f9a52dd5.jpg', 'extension': 'jpg'}, 1338682935: {'path': 'temp/1740113730_1160780_1338682935_44c5a80de61051636571f716e18dee52.jpg', 'extension': 'jpg'}, 1338682939: {'path': 'temp/1740113730_1160780_1338682939_6edefb6bf73f8f43853845b1a662a2f0.jpg', 'extension': 'jpg'}, 1338682941: {'path': 'temp/1740113730_1160780_1338682941_8137bd540caacb21071778c56d6a4b47.jpg', 'extension': 'jpg'}, 1338682944: {'path': 'temp/1740113730_1160780_1338682944_73500cb8872ec435266c5f0dc46d64fb.jpg', 'extension': 'jpg'}, 1338682968: {'path': 'temp/1740113730_1160780_1338682968_2bef07924d65a04c665673efd897dfc5.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 = 20696236; (('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 = 20696236 group by h (('22', 22),) 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=20696236 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 (20696236) 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 (20696236) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 20022025 20696236 Nombre de photos uploadées : 22 / 23040 (0%) 20022025 20696236 Nombre de photos taguées (types de déchets): 0 / 22 (0%) 20022025 20696236 Nombre de photos taguées (volume) : 0 / 22 (0%) [{'photo_id': 1338682380, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/14321b8eb923f2af14c9372da3646047.jpg', 'username': None, 'uploaded_at': 1740087982, 'text': 'image_20022025_22_45_03_009141m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1338682374, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/8572f4f336e56040797d0ae4bb067058.jpg', 'username': None, 'uploaded_at': 1740087982, 'text': 'image_20022025_22_45_13_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338682371, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/7259d2a0b50d5161e7c000d2a76133c5.jpg', 'username': None, 'uploaded_at': 1740087982, 'text': 'image_20022025_22_45_24_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338682672, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/f4f0343f01af45cdf1f962d6fb1e43cc.jpg', 'username': None, 'uploaded_at': 1740088042, 'text': 'image_20022025_22_45_34_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 7.62939453125e-06 ?????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012392997741699219 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20696236, '2025-02-20' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1613763,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.17134523391723633 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= 1613763 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20677020, 'dashboard_result_id': 8990420, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677020_21-02-2025_05_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677040, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20677493, 'dashboard_result_id': 8990421, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677493_21-02-2025_05_35_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677543, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677544, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20677981, 'dashboard_result_id': 8990422, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677981_21-02-2025_05_36_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677997, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20678504, 'dashboard_result_id': 8990423, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20678504_21-02-2025_05_36_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20678525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20678526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20678527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20678528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20678529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20678530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20678531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20678532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20678533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20678534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20678535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20678536, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20679292, 'dashboard_result_id': 8990424, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679292_21-02-2025_05_37_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679331, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20679803, 'dashboard_result_id': 8990425, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679803_21-02-2025_05_38_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679845, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20680429, 'dashboard_result_id': 8990426, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20680429_21-02-2025_05_39_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20680435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20680436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20680437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20680438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20680439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20680440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20680441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20680442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20680443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20680444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20680445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20680446, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20681180, 'dashboard_result_id': 8990427, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20681180_21-02-2025_05_39_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20681191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20681192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20681193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20681194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20681195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20681196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20681197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20681198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20681199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20681200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20681201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20681202, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20682044, 'dashboard_result_id': 8990428, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20682044_21-02-2025_05_40_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20682074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20682075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20682076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20682077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20682078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20682079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20682080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20682081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20682082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20682083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20682084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20682085, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20682655, 'dashboard_result_id': 8990429, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20682655_21-02-2025_05_40_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20682672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20682673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20682674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20682675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20682676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20682677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20682678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20682679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20682680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20682681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20682682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20682683, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20683276, 'dashboard_result_id': 8990430, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20683276_21-02-2025_05_41_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20683283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20683284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20683285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20683286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20683287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20683288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20683289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20683290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20683291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20683292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20683293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20683294, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20684204, 'dashboard_result_id': 8990431, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20684204_21-02-2025_05_42_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20684208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20684209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20684210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20684211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20684212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20684213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20684214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20684215, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20684216, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20684217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20684218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20684219, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20685137, 'dashboard_result_id': 8990432, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685137_21-02-2025_05_42_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20685176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20685177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20685178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20685179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20685180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20685181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20685182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20685183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20685184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20685185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20685186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20685187, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20685567, 'dashboard_result_id': 8990433, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685567_21-02-2025_05_43_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20685594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20685595, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20685596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20685597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20685598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20685599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20685600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20685601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20685602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20685603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20685604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20685605, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20685890, 'dashboard_result_id': 8990434, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685890_21-02-2025_05_44_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20685895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20685896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20685897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20685898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20685899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20685900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20685901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20685902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20685903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20685904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20685905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20685906, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20686400, 'dashboard_result_id': 8990435, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20686400_21-02-2025_05_44_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20686433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20686434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20686435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20686436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20686437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20686438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20686439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20686440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20686441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20686442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20686443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20686444, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20687022, 'dashboard_result_id': 8990436, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20687022_21-02-2025_05_45_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20687030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20687031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20687032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20687033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20687034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20687035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20687036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20687037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20687038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20687039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20687040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20687041, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20687703, 'dashboard_result_id': 8990437, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20687703_21-02-2025_05_46_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20687736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20687737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20687738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20687739, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20687740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20687741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20687742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20687743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20687744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20687745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20687746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20687747, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20688458, 'dashboard_result_id': 8990438, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20688458_21-02-2025_05_47_09.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20688466, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20688467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20688468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20688469, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20688470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20688471, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20688472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20688473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20688474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20688475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20688476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20688477, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20689330, 'dashboard_result_id': 8990439, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20689330_21-02-2025_05_47_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20689384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20689385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20689386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20689387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20689388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20689389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20689390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20689391, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20689392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20689393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20689394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20689395, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20690178, 'dashboard_result_id': 8990440, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20690178_21-02-2025_05_48_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20690182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20690183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20690184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20690185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20690186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20690187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20690188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20690189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20690190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20690191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20690192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20690193, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20690722, 'dashboard_result_id': 8990441, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20690722_21-02-2025_05_48_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20690790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20690791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20690792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20690793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20690794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20690795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20690796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20690797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20690798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20690799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20690800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20690801, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20691256, 'dashboard_result_id': 8990442, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20691256_21-02-2025_05_50_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20691301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20691302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20691303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20691304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20691305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20691306, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20691307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20691308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20691309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20691310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20691311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20691312, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20692372, 'dashboard_result_id': 8990443, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20692372_21-02-2025_05_50_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20692399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20692400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20692401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20692402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20692403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20692404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20692405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20692406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20692407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20692408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20692409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20692410, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20692904, 'dashboard_result_id': 8990444, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20692904_21-02-2025_05_51_38.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20692944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20692945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20692946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20692947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20692948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20692949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20692950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20692951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20692952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20692953, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20692954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20692955, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20693496, 'dashboard_result_id': 8990445, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20693496_21-02-2025_05_52_08.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20693500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20693501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20693502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20693503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20693504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20693505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20693506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20693507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20693508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20693509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20693510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20693511, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20693855, 'dashboard_result_id': 8990446, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20693855_21-02-2025_05_52_38.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20693884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20693885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20693886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20693887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20693888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20693889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20693890, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20693891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20693892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20693893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20693894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20693895, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20694462, 'dashboard_result_id': 8990447, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20694462_21-02-2025_05_53_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20694494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20694495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20694496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20694497, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20694498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20694499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20694500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20694501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20694502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20694503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20694504, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20694505, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20695009, 'dashboard_result_id': 8990448, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20695009_21-02-2025_05_54_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20695083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20695084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20695085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20695086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20695087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20695088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20695089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20695090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20695091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20695092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20695093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20695094, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20696011, 'dashboard_result_id': 8990449, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696011_21-02-2025_05_54_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20696074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20696075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20696076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20696077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20696078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20696079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20696080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20696081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20696082, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20696083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20696084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20696085, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20696236, 'dashboard_result_id': 8990450, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696236_20-02-2025_23_02_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20696314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20696315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20696316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20696317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20696318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20696319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20696320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20696321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20696322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20696323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20696324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20696325, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20696669, 'dashboard_result_id': 8990451, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696669_20-02-2025_23_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20696674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20696675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20696676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20696677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20696678, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20696679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20696680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20696681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20696682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20696683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20696684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20696685, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20697317, 'dashboard_result_id': 8990452, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20697317_20-02-2025_23_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20697350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20697351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20697352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20697353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20697354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20697355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20697356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20697357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20697358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20697359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20697360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20697361, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20698145, 'dashboard_result_id': 8990453, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20698145_20-02-2025_23_49_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20698220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20698221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20698222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20698223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20698224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20698225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20698226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20698227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20698228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20698229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20698230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20698231, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20698592, 'dashboard_result_id': 8990454, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20698592_21-02-2025_01_09_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20698595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20698596, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20698597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20698598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20698599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20698600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20698601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20698602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20698603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20698604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20698605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20698606, '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 = 20677020 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602965, 'mtr_portfolio_id': 20677020, 'created_at': datetime.datetime(2025, 2, 21, 5, 34, 29), 'result': '0.026277955506590962', 'result_long': None, 'result_double': None}] Qualite : 0.026277955506590962 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20677020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677020_21-02-2025_05_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20677020 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677020_21-02-2025_05_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677040, 'pht': 3726}}" where mtr_portfolio_id = 20677020 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20677020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990420, 0.026277955506590962, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677020_21-02-2025_05_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677040, '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 = 20677493 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602966, 'mtr_portfolio_id': 20677493, 'created_at': datetime.datetime(2025, 2, 21, 5, 35, 30), 'result': '0.035807220813968074', 'result_long': None, 'result_double': None}] Qualite : 0.035807220813968074 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20677493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677493_21-02-2025_05_35_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20677493 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677493_21-02-2025_05_35_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677543, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677544, 'pht': 3726}}" where mtr_portfolio_id = 20677493 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20677493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990421, 0.035807220813968074, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677493_21-02-2025_05_35_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677543, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677544, '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 = 20677981 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602967, 'mtr_portfolio_id': 20677981, 'created_at': datetime.datetime(2025, 2, 21, 5, 35, 59), 'result': '0.07405263222647525', 'result_long': None, 'result_double': None}] Qualite : 0.07405263222647525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20677981 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677981_21-02-2025_05_36_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20677981 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677981_21-02-2025_05_36_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677997, 'pht': 3726}}" where mtr_portfolio_id = 20677981 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20677981 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990422, 0.07405263222647525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677981_21-02-2025_05_36_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677997, '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 = 20678504 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602968, 'mtr_portfolio_id': 20678504, 'created_at': datetime.datetime(2025, 2, 21, 5, 36, 28), 'result': '0.04296565314830263', 'result_long': None, 'result_double': None}] Qualite : 0.04296565314830263 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20678504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20678504_21-02-2025_05_36_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20678504 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20678504_21-02-2025_05_36_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20678525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20678526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20678527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20678528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20678529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20678530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20678531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20678532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20678533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20678534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20678535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20678536, 'pht': 3726}}" where mtr_portfolio_id = 20678504 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20678504 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990423, 0.04296565314830263, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20678504_21-02-2025_05_36_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20678525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20678526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20678527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20678528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20678529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20678530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20678531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20678532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20678533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20678534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20678535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20678536, '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 = 20679292 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602969, 'mtr_portfolio_id': 20679292, 'created_at': datetime.datetime(2025, 2, 21, 5, 37, 31), 'result': '0.04400578514089512', 'result_long': None, 'result_double': None}] Qualite : 0.04400578514089512 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20679292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679292_21-02-2025_05_37_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20679292 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679292_21-02-2025_05_37_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679331, 'pht': 3726}}" where mtr_portfolio_id = 20679292 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20679292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990424, 0.04400578514089512, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679292_21-02-2025_05_37_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679331, '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 = 20679803 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602970, 'mtr_portfolio_id': 20679803, 'created_at': datetime.datetime(2025, 2, 21, 5, 38), 'result': '0.042449429123992626', 'result_long': None, 'result_double': None}] Qualite : 0.042449429123992626 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20679803 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679803_21-02-2025_05_38_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20679803 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679803_21-02-2025_05_38_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679845, 'pht': 3726}}" where mtr_portfolio_id = 20679803 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20679803 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990425, 0.042449429123992626, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679803_21-02-2025_05_38_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679845, '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 = 20680429 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602971, 'mtr_portfolio_id': 20680429, 'created_at': datetime.datetime(2025, 2, 21, 5, 39), 'result': '0.06532194276666281', 'result_long': None, 'result_double': None}] Qualite : 0.06532194276666281 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20680429 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20680429_21-02-2025_05_39_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20680429 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20680429_21-02-2025_05_39_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20680435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20680436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20680437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20680438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20680439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20680440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20680441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20680442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20680443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20680444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20680445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20680446, 'pht': 3726}}" where mtr_portfolio_id = 20680429 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20680429 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990426, 0.06532194276666281, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20680429_21-02-2025_05_39_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20680435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20680436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20680437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20680438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20680439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20680440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20680441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20680442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20680443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20680444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20680445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20680446, '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 = 20681180 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602972, 'mtr_portfolio_id': 20681180, 'created_at': datetime.datetime(2025, 2, 21, 5, 39, 31), 'result': '0.049311636308193796', 'result_long': None, 'result_double': None}] Qualite : 0.049311636308193796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20681180 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20681180_21-02-2025_05_39_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20681180 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20681180_21-02-2025_05_39_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20681191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20681192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20681193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20681194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20681195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20681196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20681197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20681198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20681199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20681200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20681201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20681202, 'pht': 3726}}" where mtr_portfolio_id = 20681180 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20681180 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990427, 0.049311636308193796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20681180_21-02-2025_05_39_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20681191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20681192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20681193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20681194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20681195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20681196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20681197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20681198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20681199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20681200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20681201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20681202, '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 = 20682044 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602973, 'mtr_portfolio_id': 20682044, 'created_at': datetime.datetime(2025, 2, 21, 5, 39, 59), 'result': '0.051993195608785105', 'result_long': None, 'result_double': None}] Qualite : 0.051993195608785105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20682044 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20682044_21-02-2025_05_40_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20682044 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20682044_21-02-2025_05_40_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20682074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20682075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20682076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20682077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20682078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20682079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20682080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20682081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20682082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20682083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20682084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20682085, 'pht': 3726}}" where mtr_portfolio_id = 20682044 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20682044 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990428, 0.051993195608785105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20682044_21-02-2025_05_40_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20682074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20682075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20682076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20682077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20682078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20682079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20682080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20682081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20682082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20682083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20682084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20682085, '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 = 20682655 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602974, 'mtr_portfolio_id': 20682655, 'created_at': datetime.datetime(2025, 2, 21, 5, 40, 32), 'result': '0.0486917271690454', 'result_long': None, 'result_double': None}] Qualite : 0.0486917271690454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20682655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20682655_21-02-2025_05_40_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20682655 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20682655_21-02-2025_05_40_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20682672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20682673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20682674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20682675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20682676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20682677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20682678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20682679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20682680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20682681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20682682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20682683, 'pht': 3726}}" where mtr_portfolio_id = 20682655 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20682655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990429, 0.0486917271690454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20682655_21-02-2025_05_40_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20682672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20682673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20682674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20682675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20682676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20682677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20682678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20682679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20682680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20682681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20682682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20682683, '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 = 20683276 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602975, 'mtr_portfolio_id': 20683276, 'created_at': datetime.datetime(2025, 2, 21, 5, 41, 31), 'result': '0.05215102667291758', 'result_long': None, 'result_double': None}] Qualite : 0.05215102667291758 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20683276 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20683276_21-02-2025_05_41_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20683276 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20683276_21-02-2025_05_41_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20683283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20683284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20683285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20683286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20683287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20683288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20683289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20683290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20683291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20683292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20683293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20683294, 'pht': 3726}}" where mtr_portfolio_id = 20683276 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20683276 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990430, 0.05215102667291758, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20683276_21-02-2025_05_41_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20683283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20683284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20683285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20683286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20683287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20683288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20683289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20683290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20683291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20683292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20683293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20683294, '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 = 20684204 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602976, 'mtr_portfolio_id': 20684204, 'created_at': datetime.datetime(2025, 2, 21, 5, 42), 'result': '0.08233257028717109', 'result_long': None, 'result_double': None}] Qualite : 0.08233257028717109 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20684204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20684204_21-02-2025_05_42_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20684204 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20684204_21-02-2025_05_42_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20684208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20684209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20684210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20684211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20684212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20684213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20684214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20684215, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20684216, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20684217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20684218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20684219, 'pht': 3726}}" where mtr_portfolio_id = 20684204 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20684204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990431, 0.08233257028717109, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20684204_21-02-2025_05_42_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20684208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20684209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20684210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20684211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20684212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20684213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20684214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20684215, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20684216, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20684217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20684218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20684219, '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 = 20685137 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602977, 'mtr_portfolio_id': 20685137, 'created_at': datetime.datetime(2025, 2, 21, 5, 42, 32), 'result': '0.05828723832399367', 'result_long': None, 'result_double': None}] Qualite : 0.05828723832399367 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20685137 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685137_21-02-2025_05_42_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20685137 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685137_21-02-2025_05_42_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20685176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20685177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20685178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20685179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20685180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20685181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20685182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20685183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20685184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20685185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20685186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20685187, 'pht': 3726}}" where mtr_portfolio_id = 20685137 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20685137 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990432, 0.05828723832399367, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685137_21-02-2025_05_42_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20685176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20685177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20685178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20685179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20685180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20685181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20685182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20685183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20685184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20685185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20685186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20685187, '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 = 20685567 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602978, 'mtr_portfolio_id': 20685567, 'created_at': datetime.datetime(2025, 2, 21, 5, 43, 35), 'result': '0.044520829428943164', 'result_long': None, 'result_double': None}] Qualite : 0.044520829428943164 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20685567 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685567_21-02-2025_05_43_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20685567 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685567_21-02-2025_05_43_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20685594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20685595, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20685596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20685597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20685598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20685599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20685600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20685601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20685602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20685603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20685604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20685605, 'pht': 3726}}" where mtr_portfolio_id = 20685567 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20685567 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990433, 0.044520829428943164, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685567_21-02-2025_05_43_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20685594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20685595, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20685596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20685597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20685598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20685599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20685600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20685601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20685602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20685603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20685604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20685605, '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 = 20685890 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602979, 'mtr_portfolio_id': 20685890, 'created_at': datetime.datetime(2025, 2, 21, 5, 43, 58), 'result': '0.051001177541693775', 'result_long': None, 'result_double': None}] Qualite : 0.051001177541693775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20685890 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685890_21-02-2025_05_44_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20685890 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685890_21-02-2025_05_44_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20685895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20685896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20685897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20685898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20685899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20685900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20685901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20685902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20685903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20685904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20685905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20685906, 'pht': 3726}}" where mtr_portfolio_id = 20685890 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20685890 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990434, 0.051001177541693775, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685890_21-02-2025_05_44_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20685895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20685896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20685897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20685898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20685899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20685900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20685901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20685902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20685903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20685904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20685905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20685906, '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 = 20686400 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602980, 'mtr_portfolio_id': 20686400, 'created_at': datetime.datetime(2025, 2, 21, 5, 44, 29), 'result': '0.05588180440391857', 'result_long': None, 'result_double': None}] Qualite : 0.05588180440391857 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20686400 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20686400_21-02-2025_05_44_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20686400 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20686400_21-02-2025_05_44_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20686433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20686434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20686435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20686436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20686437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20686438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20686439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20686440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20686441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20686442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20686443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20686444, 'pht': 3726}}" where mtr_portfolio_id = 20686400 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20686400 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990435, 0.05588180440391857, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20686400_21-02-2025_05_44_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20686433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20686434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20686435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20686436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20686437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20686438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20686439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20686440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20686441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20686442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20686443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20686444, '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 = 20687022 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602981, 'mtr_portfolio_id': 20687022, 'created_at': datetime.datetime(2025, 2, 21, 5, 45, 30), 'result': '0.039902348818293513', 'result_long': None, 'result_double': None}] Qualite : 0.039902348818293513 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20687022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20687022_21-02-2025_05_45_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20687022 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20687022_21-02-2025_05_45_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20687030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20687031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20687032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20687033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20687034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20687035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20687036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20687037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20687038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20687039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20687040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20687041, 'pht': 3726}}" where mtr_portfolio_id = 20687022 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20687022 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990436, 0.039902348818293513, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20687022_21-02-2025_05_45_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20687030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20687031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20687032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20687033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20687034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20687035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20687036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20687037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20687038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20687039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20687040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20687041, '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 = 20687703 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602982, 'mtr_portfolio_id': 20687703, 'created_at': datetime.datetime(2025, 2, 21, 5, 45, 58), 'result': '0.05550179193095137', 'result_long': None, 'result_double': None}] Qualite : 0.05550179193095137 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20687703 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20687703_21-02-2025_05_46_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20687703 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20687703_21-02-2025_05_46_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20687736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20687737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20687738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20687739, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20687740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20687741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20687742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20687743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20687744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20687745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20687746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20687747, 'pht': 3726}}" where mtr_portfolio_id = 20687703 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20687703 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990437, 0.05550179193095137, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20687703_21-02-2025_05_46_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20687736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20687737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20687738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20687739, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20687740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20687741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20687742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20687743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20687744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20687745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20687746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20687747, '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 = 20688458 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602983, 'mtr_portfolio_id': 20688458, 'created_at': datetime.datetime(2025, 2, 21, 5, 47, 6), 'result': '0.04406934465378975', 'result_long': None, 'result_double': None}] Qualite : 0.04406934465378975 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20688458 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20688458_21-02-2025_05_47_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20688458 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20688458_21-02-2025_05_47_09.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20688466, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20688467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20688468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20688469, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20688470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20688471, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20688472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20688473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20688474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20688475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20688476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20688477, 'pht': 3726}}" where mtr_portfolio_id = 20688458 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20688458 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990438, 0.04406934465378975, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20688458_21-02-2025_05_47_09.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20688466, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20688467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20688468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20688469, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20688470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20688471, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20688472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20688473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20688474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20688475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20688476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20688477, '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 = 20689330 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602984, 'mtr_portfolio_id': 20689330, 'created_at': datetime.datetime(2025, 2, 21, 5, 47, 29), 'result': '0.05195443684454396', 'result_long': None, 'result_double': None}] Qualite : 0.05195443684454396 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20689330 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20689330_21-02-2025_05_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20689330 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20689330_21-02-2025_05_47_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20689384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20689385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20689386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20689387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20689388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20689389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20689390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20689391, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20689392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20689393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20689394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20689395, 'pht': 3726}}" where mtr_portfolio_id = 20689330 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20689330 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990439, 0.05195443684454396, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20689330_21-02-2025_05_47_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20689384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20689385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20689386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20689387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20689388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20689389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20689390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20689391, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20689392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20689393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20689394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20689395, '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 = 20690178 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602985, 'mtr_portfolio_id': 20690178, 'created_at': datetime.datetime(2025, 2, 21, 5, 47, 58), 'result': '0.04608894235039552', 'result_long': None, 'result_double': None}] Qualite : 0.04608894235039552 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20690178 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20690178_21-02-2025_05_48_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20690178 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20690178_21-02-2025_05_48_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20690182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20690183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20690184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20690185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20690186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20690187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20690188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20690189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20690190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20690191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20690192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20690193, 'pht': 3726}}" where mtr_portfolio_id = 20690178 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20690178 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990440, 0.04608894235039552, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20690178_21-02-2025_05_48_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20690182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20690183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20690184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20690185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20690186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20690187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20690188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20690189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20690190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20690191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20690192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20690193, '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 = 20690722 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602986, 'mtr_portfolio_id': 20690722, 'created_at': datetime.datetime(2025, 2, 21, 5, 48, 29), 'result': '0.04566151003668198', 'result_long': None, 'result_double': None}] Qualite : 0.04566151003668198 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20690722 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20690722_21-02-2025_05_48_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20690722 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20690722_21-02-2025_05_48_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20690790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20690791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20690792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20690793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20690794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20690795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20690796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20690797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20690798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20690799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20690800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20690801, 'pht': 3726}}" where mtr_portfolio_id = 20690722 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20690722 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990441, 0.04566151003668198, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20690722_21-02-2025_05_48_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20690790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20690791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20690792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20690793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20690794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20690795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20690796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20690797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20690798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20690799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20690800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20690801, '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 = 20691256 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602987, 'mtr_portfolio_id': 20691256, 'created_at': datetime.datetime(2025, 2, 21, 5, 50, 2), 'result': '0.05998540804535198', 'result_long': None, 'result_double': None}] Qualite : 0.05998540804535198 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20691256 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20691256_21-02-2025_05_50_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20691256 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20691256_21-02-2025_05_50_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20691301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20691302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20691303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20691304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20691305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20691306, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20691307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20691308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20691309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20691310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20691311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20691312, 'pht': 3726}}" where mtr_portfolio_id = 20691256 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20691256 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990442, 0.05998540804535198, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20691256_21-02-2025_05_50_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20691301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20691302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20691303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20691304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20691305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20691306, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20691307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20691308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20691309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20691310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20691311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20691312, '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 = 20692372 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602988, 'mtr_portfolio_id': 20692372, 'created_at': datetime.datetime(2025, 2, 21, 5, 50, 32), 'result': '0.06698279958150744', 'result_long': None, 'result_double': None}] Qualite : 0.06698279958150744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20692372 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20692372_21-02-2025_05_50_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20692372 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20692372_21-02-2025_05_50_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20692399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20692400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20692401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20692402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20692403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20692404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20692405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20692406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20692407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20692408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20692409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20692410, 'pht': 3726}}" where mtr_portfolio_id = 20692372 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20692372 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990443, 0.06698279958150744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20692372_21-02-2025_05_50_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20692399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20692400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20692401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20692402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20692403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20692404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20692405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20692406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20692407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20692408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20692409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20692410, '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 = 20692904 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602989, 'mtr_portfolio_id': 20692904, 'created_at': datetime.datetime(2025, 2, 21, 5, 51, 35), 'result': '0.051679333622334615', 'result_long': None, 'result_double': None}] Qualite : 0.051679333622334615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20692904 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20692904_21-02-2025_05_51_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20692904 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20692904_21-02-2025_05_51_38.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20692944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20692945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20692946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20692947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20692948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20692949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20692950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20692951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20692952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20692953, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20692954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20692955, 'pht': 3726}}" where mtr_portfolio_id = 20692904 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20692904 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990444, 0.051679333622334615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20692904_21-02-2025_05_51_38.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20692944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20692945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20692946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20692947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20692948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20692949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20692950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20692951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20692952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20692953, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20692954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20692955, '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 = 20693496 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602990, 'mtr_portfolio_id': 20693496, 'created_at': datetime.datetime(2025, 2, 21, 5, 52, 5), 'result': '0.04916543697660202', 'result_long': None, 'result_double': None}] Qualite : 0.04916543697660202 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20693496 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20693496_21-02-2025_05_52_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20693496 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20693496_21-02-2025_05_52_08.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20693500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20693501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20693502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20693503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20693504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20693505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20693506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20693507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20693508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20693509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20693510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20693511, 'pht': 3726}}" where mtr_portfolio_id = 20693496 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20693496 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990445, 0.04916543697660202, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20693496_21-02-2025_05_52_08.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20693500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20693501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20693502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20693503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20693504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20693505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20693506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20693507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20693508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20693509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20693510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20693511, '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 = 20693855 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602991, 'mtr_portfolio_id': 20693855, 'created_at': datetime.datetime(2025, 2, 21, 5, 52, 35), 'result': '0.0471266700222251', 'result_long': None, 'result_double': None}] Qualite : 0.0471266700222251 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20693855 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20693855_21-02-2025_05_52_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20693855 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20693855_21-02-2025_05_52_38.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20693884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20693885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20693886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20693887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20693888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20693889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20693890, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20693891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20693892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20693893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20693894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20693895, 'pht': 3726}}" where mtr_portfolio_id = 20693855 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20693855 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990446, 0.0471266700222251, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20693855_21-02-2025_05_52_38.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20693884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20693885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20693886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20693887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20693888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20693889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20693890, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20693891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20693892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20693893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20693894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20693895, '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 = 20694462 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602992, 'mtr_portfolio_id': 20694462, 'created_at': datetime.datetime(2025, 2, 21, 5, 53, 33), 'result': '0.048232466279975725', 'result_long': None, 'result_double': None}] Qualite : 0.048232466279975725 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20694462 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20694462_21-02-2025_05_53_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20694462 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20694462_21-02-2025_05_53_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20694494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20694495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20694496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20694497, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20694498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20694499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20694500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20694501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20694502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20694503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20694504, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20694505, 'pht': 3726}}" where mtr_portfolio_id = 20694462 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20694462 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990447, 0.048232466279975725, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20694462_21-02-2025_05_53_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20694494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20694495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20694496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20694497, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20694498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20694499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20694500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20694501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20694502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20694503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20694504, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20694505, '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 = 20695009 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602993, 'mtr_portfolio_id': 20695009, 'created_at': datetime.datetime(2025, 2, 21, 5, 54, 1), 'result': '0.043581978836843734', 'result_long': None, 'result_double': None}] Qualite : 0.043581978836843734 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20695009 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20695009_21-02-2025_05_54_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20695009 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20695009_21-02-2025_05_54_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20695083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20695084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20695085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20695086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20695087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20695088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20695089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20695090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20695091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20695092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20695093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20695094, 'pht': 3726}}" where mtr_portfolio_id = 20695009 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20695009 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990448, 0.043581978836843734, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20695009_21-02-2025_05_54_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20695083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20695084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20695085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20695086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20695087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20695088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20695089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20695090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20695091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20695092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20695093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20695094, '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 = 20696011 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602994, 'mtr_portfolio_id': 20696011, 'created_at': datetime.datetime(2025, 2, 21, 5, 54, 30), 'result': '0.061629002884540644', 'result_long': None, 'result_double': None}] Qualite : 0.061629002884540644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20696011 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696011_21-02-2025_05_54_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20696011 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696011_21-02-2025_05_54_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20696074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20696075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20696076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20696077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20696078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20696079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20696080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20696081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20696082, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20696083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20696084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20696085, 'pht': 3726}}" where mtr_portfolio_id = 20696011 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20696011 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990449, 0.061629002884540644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696011_21-02-2025_05_54_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20696074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20696075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20696076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20696077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20696078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20696079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20696080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20696081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20696082, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20696083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20696084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20696085, '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 = 20696236 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2602995, 'mtr_portfolio_id': 20696236, 'created_at': datetime.datetime(2025, 2, 21, 5, 55, 30), 'result': '0.06243439918061308', 'result_long': None, 'result_double': None}] Qualite : 0.06243439918061308 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20696236 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696236_21-02-2025_05_55_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20696236 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696236_21-02-2025_05_55_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20696314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20696315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20696316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20696317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20696318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20696319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20696320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20696321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20696322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20696323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20696324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20696325, 'pht': 3726}}" where mtr_portfolio_id = 20696236 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20696236 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990450, 0.06243439918061308, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696236_21-02-2025_05_55_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20696314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20696315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20696316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20696317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20696318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20696319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20696320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20696321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20696322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20696323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20696324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20696325, '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 = 20696669 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2601604, 'mtr_portfolio_id': 20696669, 'created_at': datetime.datetime(2025, 2, 20, 23, 19), 'result': '0.07090747875989986', 'result_long': None, 'result_double': None}] Qualite : 0.07090747875989986 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20696669 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696669_20-02-2025_23_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20696669 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696669_20-02-2025_23_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20696674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20696675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20696676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20696677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20696678, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20696679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20696680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20696681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20696682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20696683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20696684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20696685, 'pht': 3726}}" where mtr_portfolio_id = 20696669 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20696669 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990451, 0.07090747875989986, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696669_20-02-2025_23_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20696674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20696675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20696676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20696677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20696678, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20696679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20696680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20696681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20696682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20696683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20696684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20696685, '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 = 20697317 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2601667, 'mtr_portfolio_id': 20697317, 'created_at': datetime.datetime(2025, 2, 20, 23, 32, 58), 'result': '0.058801875129870354', 'result_long': None, 'result_double': None}] Qualite : 0.058801875129870354 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20697317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20697317_20-02-2025_23_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20697317 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20697317_20-02-2025_23_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20697350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20697351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20697352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20697353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20697354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20697355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20697356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20697357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20697358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20697359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20697360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20697361, 'pht': 3726}}" where mtr_portfolio_id = 20697317 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20697317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990452, 0.058801875129870354, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20697317_20-02-2025_23_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20697350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20697351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20697352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20697353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20697354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20697355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20697356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20697357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20697358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20697359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20697360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20697361, '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 = 20698145 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2601723, 'mtr_portfolio_id': 20698145, 'created_at': datetime.datetime(2025, 2, 20, 23, 49, 1), 'result': '0.049601360252442814', 'result_long': None, 'result_double': None}] Qualite : 0.049601360252442814 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20698145 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20698145_20-02-2025_23_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20698145 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20698145_20-02-2025_23_49_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20698220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20698221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20698222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20698223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20698224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20698225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20698226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20698227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20698228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20698229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20698230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20698231, 'pht': 3726}}" where mtr_portfolio_id = 20698145 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20698145 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990453, 0.049601360252442814, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20698145_20-02-2025_23_49_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20698220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20698221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20698222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20698223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20698224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20698225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20698226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20698227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20698228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20698229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20698230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20698231, '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 = 20698592 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2601755, 'mtr_portfolio_id': 20698592, 'created_at': datetime.datetime(2025, 2, 21, 1, 9, 31), 'result': '0.03347254518757418', 'result_long': None, 'result_double': None}] Qualite : 0.03347254518757418 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20698592 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20698592_21-02-2025_01_09_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20698592 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20698592_21-02-2025_01_09_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20698595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20698596, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20698597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20698598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20698599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20698600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20698601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20698602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20698603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20698604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20698605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20698606, 'pht': 3726}}" where mtr_portfolio_id = 20698592 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20698592 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990454, 0.03347254518757418, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20698592_21-02-2025_01_09_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20698595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20698596, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20698597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20698598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20698599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20698600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20698601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20698602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20698603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20698604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20698605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20698606, '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 (20677020,20677493,20677981,20678504,20679292,20679803,20680429,20681180,20682044,20682655,20683276,20684204,20685137,20685567,20685890,20686400,20687022,20687703,20688458,20689330,20690178,20690722,20691256,20692372,20692904,20693496,20693855,20694462,20695009,20696011,20696236,20696669,20697317,20698145,20698592) result : ((1338600917,), (1338600919,), (1338600922,), (1338600925,), (1338600927,), (1338600930,), (1338600939,), (1338600945,), (1338601469,), (1338601472,), (1338601475,), (1338601477,), (1338601481,), (1338601663,), (1338601695,), (1338601701,), (1338601808,), (1338601813,), (1338601846,), (1338601852,), (1338601859,), (1338601862,), (1338601886,), (1338601889,), (1338601919,), (1338601921,), (1338601923,), (1338602202,), (1338602205,), (1338602209,), (1338602214,), (1338602218,), (1338602239,), (1338602242,), (1338602246,), (1338602252,), (1338602329,), (1338602331,), (1338602335,), (1338602340,), (1338602387,), (1338602395,), (1338602404,), (1338602409,), (1338602414,), (1338602614,), (1338602437,), (1338602442,), (1338602447,), (1338602455,), (1338602611,), (1338602841,), (1338602928,), (1338602931,), (1338603253,), (1338603255,), (1338603260,), (1338603263,), (1338603267,), (1338603468,), (1338603472,), (1338603474,), (1338603510,), (1338603564,), (1338603570,), (1338603597,), (1338603601,), (1338603606,), (1338603608,), (1338603614,), (1338603619,), (1338603636,), (1338603639,), (1338603643,), (1338603969,), (1338604001,), (1338604004,), (1338604009,), (1338604063,), (1338604334,), (1338604337,), (1338604373,), (1338604382,), (1338604384,), (1338604390,), (1338604394,), (1338604397,), (1338604413,), (1338604416,), (1338604423,), (1338604773,), (1338604779,), (1338604786,), (1338604792,), (1338604795,), (1338604800,), (1338604838,), (1338604826,), (1338604830,), (1338604835,), (1338605049,), (1338605052,), (1338605055,), (1338605057,), (1338605061,), (1338605064,), (1338605089,), (1338605092,), (1338605096,), (1338605102,), (1338605110,), (1338605117,), (1338605133,), (1338605136,), (1338605138,), (1338605165,), (1338605168,), (1338605171,), (1338605180,), (1338605187,), (1338605192,), (1338605209,), (1338605211,), (1338605213,), (1338605215,), (1338605218,), (1338605239,), (1338605245,), (1338605248,), (1338605252,), (1338606422,), (1338606424,), (1338606427,), (1338606429,), (1338606432,), (1338606650,), (1338606867,), (1338607088,), (1338607095,), (1338607098,), (1338607275,), (1338607279,), (1338607282,), (1338607290,), (1338607295,), (1338607301,), (1338607335,), (1338607340,), (1338607343,), (1338607347,), (1338607418,), (1338607421,), (1338607424,), (1338607435,), (1338607443,), (1338607448,), (1338607522,), (1338607527,), (1338607532,), (1338607536,), (1338607611,), (1338607599,), (1338607604,), (1338607607,), (1338607610,), (1338607634,), (1338607638,), (1338607643,), (1338607646,), (1338608175,), (1338608244,), (1338608249,), (1338608252,), (1338608327,), (1338608339,), (1338608340,), (1338608342,), (1338608344,), (1338608426,), (1338608435,), (1338608444,), (1338608447,), (1338608482,), (1338608509,), (1338608603,), (1338608831,), (1338609102,), (1338609323,), (1338609327,), (1338609797,), (1338609800,), (1338609804,), (1338609808,), (1338609812,), (1338609816,), (1338610017,), (1338610098,), (1338610154,), (1338610218,), (1338610411,), (1338610413,), (1338610422,), (1338610477,), (1338610524,), (1338610591,), (1338610698,), (1338610723,), (1338610739,), (1338610745,), (1338610763,), (1338610807,), (1338610905,), (1338610910,), (1338610918,), (1338610921,), (1338610959,), (1338610971,), (1338611047,), (1338611128,), (1338611259,), (1338611432,), (1338611427,), (1338611429,), (1338611506,), (1338611514,), (1338611527,), (1338611529,), (1338611530,), (1338611533,), (1338611574,), (1338611577,), (1338611580,), (1338611584,), (1338611689,), (1338611691,), (1338611694,), (1338611697,), (1338611703,), (1338611710,), (1338611740,), (1338611742,), (1338611745,), (1338611749,), (1338611753,), (1338611756,), (1338612014,), (1338612239,), (1338612335,), (1338612489,), (1338612528,), (1338612602,), (1338612687,), (1338612741,), (1338612745,), (1338612750,), (1338612973,), (1338613049,), (1338613118,), (1338613123,), (1338613203,), (1338613228,), (1338613348,), (1338613370,), (1338613385,), (1338613418,), (1338613460,), (1338613464,), (1338613467,), (1338613471,), (1338613475,), (1338613478,), (1338613492,), (1338613494,), (1338613499,), (1338613502,), (1338613524,), (1338613533,), (1338613535,), (1338613538,), (1338613541,), (1338613545,), (1338613569,), (1338613571,), (1338613573,), (1338613577,), (1338613598,), (1338613602,), (1338613605,), (1338613608,), (1338613611,), (1338613632,), (1338613634,), (1338613636,), (1338613639,), (1338613640,), (1338613666,), (1338613659,), (1338613663,), (1338613702,), (1338613713,), (1338613715,), (1338613717,), (1338613721,), (1338613724,), (1338613743,), (1338613745,), (1338613747,), (1338613757,), (1338613766,), (1338613769,), (1338613802,), (1338613813,), (1338613815,), (1338613817,), (1338613851,), (1338613853,), (1338613855,), (1338613858,), (1338613861,), (1338613863,), (1338613881,), (1338613884,), (1338613894,), (1338613900,), (1338613907,), (1338613912,), (1338613930,), (1338613935,), (1338613939,), (1338613942,), (1338613964,), (1338613966,), (1338613968,), (1338613969,), (1338613971,), (1338613973,), (1338614058,), (1338614328,), (1338614585,), (1338614960,), (1338614992,), (1338614999,), (1338615003,), (1338615005,), (1338615014,), (1338615127,), (1338615202,), (1338615362,), (1338615508,), (1338615563,), (1338615584,), (1338615754,), (1338615758,), (1338615762,), (1338615766,), (1338616355,), (1338616403,), (1338616460,), (1338616522,), (1338616653,), (1338616736,), (1338617009,), (1338617014,), (1338617020,), (1338617023,), (1338617024,), (1338617063,), (1338617036,), (1338617040,), (1338617049,), (1338617058,), (1338617710,), (1338617733,), (1338617736,), (1338618544,), (1338618582,), (1338618604,), (1338618769,), (1338618773,), (1338618780,), (1338619063,), (1338619114,), (1338619116,), (1338619136,), (1338619498,), (1338619501,), (1338619503,), (1338619505,), (1338619512,), (1338619548,), (1338619550,), (1338619554,), (1338619559,), (1338619568,), (1338619574,), (1338619689,), (1338619720,), (1338619754,), (1338619813,), (1338620405,), (1338620408,), (1338620410,), (1338620420,), (1338620433,), (1338620435,), (1338620678,), (1338620717,), (1338620738,), (1338620743,), (1338620747,), (1338620817,), (1338620820,), (1338620873,), (1338620942,), (1338621032,), (1338621330,), (1338621333,), (1338621337,), (1338621341,), (1338621345,), (1338621607,), (1338621757,), (1338621823,), (1338621867,), (1338621870,), (1338621874,), (1338622111,), (1338622114,), (1338622116,), (1338622157,), (1338622189,), (1338622194,), (1338622198,), (1338622202,), (1338622206,), (1338622208,), (1338622258,), (1338622262,), (1338622266,), (1338622269,), (1338622323,), (1338622293,), (1338622296,), (1338622299,), (1338622303,), (1338622320,), (1338622377,), (1338622380,), (1338622382,), (1338622389,), (1338622395,), (1338622398,), (1338622488,), (1338622491,), (1338622494,), (1338622498,), (1338622518,), (1338622519,), (1338622521,), (1338622523,), (1338622528,), (1338622539,), (1338622568,), (1338622573,), (1338622584,), (1338622586,), (1338622593,), (1338622613,), (1338622614,), (1338622617,), (1338622620,), (1338622623,), (1338622635,), (1338622914,), (1338623101,), (1338623288,), (1338623480,), (1338623888,), (1338623900,), (1338623902,), (1338623904,), (1338623959,), (1338624116,), (1338624194,), (1338624196,), (1338624225,), (1338624276,), (1338624363,), (1338624369,), (1338624371,), (1338624373,), (1338624375,), (1338624409,), (1338624414,), (1338624473,), (1338624515,), (1338624615,), (1338624619,), (1338624623,), (1338624627,), (1338624630,), (1338624680,), (1338624682,), (1338624684,), (1338624687,), (1338624689,), (1338624745,), (1338624757,), (1338624776,), (1338624782,), (1338624785,), (1338624789,), (1338624856,), (1338624858,), (1338624861,), (1338624864,), (1338624866,), (1338624871,), (1338624950,), (1338624941,), (1338624943,), (1338624945,), (1338624948,), (1338625130,), (1338625164,), (1338625167,), (1338625170,), (1338625174,), (1338625178,), (1338625195,), (1338625199,), (1338625209,), (1338625214,), (1338625218,), (1338625249,), (1338625255,), (1338625258,), (1338625261,), (1338625286,), (1338625291,), (1338625304,), (1338625315,), (1338625317,), (1338625354,), (1338625358,), (1338625362,), (1338625363,), (1338625366,), (1338625586,), (1338625589,), (1338625592,), (1338625595,), (1338625598,), (1338625615,), (1338625715,), (1338625719,), (1338625824,), (1338625826,), (1338625828,), (1338625850,), (1338625879,), (1338625889,), (1338626065,), (1338626067,), (1338626070,), (1338626073,), (1338626109,), (1338626111,), (1338626114,), (1338626118,), (1338626123,), (1338626164,), (1338626166,), (1338626168,), (1338626173,), (1338626179,), (1338626182,), (1338626197,), (1338626199,), (1338626205,), (1338626210,), (1338626212,), (1338626229,), (1338626231,), (1338626233,), (1338626240,), (1338626263,), (1338626266,), (1338626268,), (1338626271,), (1338626274,), (1338626277,), (1338626306,), (1338626300,), (1338626302,), (1338626304,), (1338626341,), (1338626344,), (1338626353,), (1338626368,), (1338626372,), (1338626374,), (1338626391,), (1338626437,), (1338626607,), (1338626677,), (1338626713,), (1338627178,), (1338627306,), (1338627361,), (1338627366,), (1338627369,), (1338627642,), (1338627701,), (1338627771,), (1338627988,), (1338627991,), (1338627994,), (1338628015,), (1338628017,), (1338628018,), (1338628020,), (1338628745,), (1338628748,), (1338628751,), (1338628754,), (1338628856,), (1338628858,), (1338628860,), (1338628864,), (1338628884,), (1338628888,), (1338628892,), (1338629501,), (1338629534,), (1338629609,), (1338629615,), (1338629624,), (1338629626,), (1338629628,), (1338629629,), (1338629639,), (1338629640,), (1338629641,), (1338629643,), (1338629644,), (1338629647,), (1338629670,), (1338629663,), (1338629667,), (1338629894,), (1338629897,), (1338629900,), (1338629903,), (1338629906,), (1338629908,), (1338629922,), (1338629924,), (1338629928,), (1338629933,), (1338629976,), (1338629978,), (1338629980,), (1338629983,), (1338629986,), (1338630208,), (1338630287,), (1338630324,), (1338630419,), (1338630458,), (1338630666,), (1338630668,), (1338630673,), (1338630677,), (1338630681,), (1338630739,), (1338631098,), (1338631117,), (1338631122,), (1338631125,), (1338631378,), (1338631386,), (1338631389,), (1338631392,), (1338631395,), (1338631399,), (1338631463,), (1338631472,), (1338631480,), (1338631483,), (1338631489,), (1338631490,), (1338631509,), (1338631514,), (1338631526,), (1338631530,), (1338631572,), (1338631574,), (1338631577,), (1338631612,), (1338631615,), (1338631636,), (1338631688,), (1338631731,), (1338631778,), (1338631829,), (1338631883,), (1338632006,), (1338632008,), (1338632009,), (1338632012,), (1338632014,), (1338632030,), (1338632032,), (1338632093,), (1338632096,), (1338633715,), (1338633712,), (1338633737,), (1338633739,), (1338633740,), (1338633742,), (1338633744,), (1338633781,), (1338633784,), (1338633789,), (1338633798,), (1338633839,), (1338633845,), (1338633849,), (1338633854,), (1338633856,), (1338641243,), (1338641489,), (1338641496,), (1338641500,), (1338641502,), (1338641505,), (1338641519,), (1338641522,), (1338641524,), (1338641528,), (1338641531,), (1338641697,), (1338641699,), (1338641701,), (1338641704,), (1338642102,), (1338642179,), (1338642260,), (1338642265,), (1338642438,), (1338642442,), (1338642454,), (1338642537,), (1338642542,), (1338642545,), (1338642623,), (1338642660,), (1338642669,), (1338642677,), (1338642695,), (1338642698,), (1338642700,), (1338642704,), (1338642707,), (1338642716,), (1338642741,), (1338642744,), (1338642748,), (1338642752,), (1338642782,), (1338642784,), (1338642795,), (1338642797,), (1338642821,), (1338642838,), (1338642843,), (1338642847,), (1338642851,), (1338642854,), (1338642901,), (1338642904,), (1338642908,), (1338642966,), (1338642968,), (1338642970,), (1338642972,), (1338642981,), (1338642983,), (1338643050,), (1338643052,), (1338643054,), (1338643058,), (1338643061,), (1338643830,), (1338643466,), (1338643472,), (1338643659,), (1338644321,), (1338644323,), (1338644347,), (1338644486,), (1338644655,), (1338644662,), (1338644664,), (1338644667,), (1338644692,), (1338644756,), (1338645010,), (1338645083,), (1338645121,), (1338645126,), (1338645357,), (1338645452,), (1338645454,), (1338645458,), (1338645499,), (1338645515,), (1338645570,), (1338645586,), (1338645592,), (1338645604,), (1338645607,), (1338645631,), (1338645633,), (1338645636,), (1338645639,), (1338645669,), (1338645671,), (1338645675,), (1338645702,), (1338645708,), (1338645726,), (1338645755,), (1338645758,), (1338645820,), (1338645823,), (1338645825,), (1338645829,), (1338645832,), (1338645854,), (1338645859,), (1338645863,), (1338645868,), (1338645908,), (1338645889,), (1338645892,), (1338645894,), (1338645899,), (1338645904,), (1338645924,), (1338645930,), (1338645935,), (1338645938,), (1338645940,), (1338645943,), (1338645957,), (1338645961,), (1338645970,), (1338645981,), (1338646023,), (1338646025,), (1338646027,), (1338646037,), (1338646072,), (1338646074,), (1338646082,), (1338646087,), (1338646090,), (1338646095,), (1338646634,), (1338646741,), (1338646752,), (1338646757,), (1338646760,), (1338646944,), (1338646984,), (1338646998,), (1338647100,), (1338647103,), (1338647106,), (1338647108,), (1338647112,), (1338647152,), (1338647156,), (1338647160,), (1338647166,), (1338647173,), (1338647203,), (1338647207,), (1338647210,), (1338647213,), (1338647217,), (1338647237,), (1338647239,), (1338647241,), (1338647243,), (1338647245,), (1338647288,), (1338647292,), (1338647295,), (1338647298,), (1338647303,), (1338647323,), (1338647327,), (1338647331,), (1338647334,), (1338647341,), (1338647361,), (1338647365,), (1338647399,), (1338647406,), (1338647409,), (1338647414,), (1338647460,), (1338647446,), (1338647449,), (1338647452,), (1338647455,), (1338647457,), (1338647633,), (1338647635,), (1338647637,), (1338647669,), (1338647671,), (1338647673,), (1338647726,), (1338647759,), (1338647769,), (1338647785,), (1338647791,), (1338647884,), (1338647894,), (1338647897,), (1338647900,), (1338647903,), (1338647912,), (1338648706,), (1338648764,), (1338648795,), (1338649475,), (1338649477,), (1338649479,), (1338649481,), (1338649507,), (1338649510,), (1338649514,), (1338649517,), (1338650132,), (1338650155,), (1338650162,), (1338650166,), (1338650170,), (1338650543,), (1338650456,), (1338650477,), (1338650510,), (1338650911,), (1338650967,), (1338650971,), (1338650976,), (1338650981,), (1338651115,), (1338651117,), (1338651192,), (1338651198,), (1338651201,), (1338651220,), (1338651222,), (1338651224,), (1338651298,), (1338651300,), (1338651305,), (1338651308,), (1338651332,), (1338651351,), (1338651362,), (1338651369,), (1338651373,), (1338651377,), (1338651393,), (1338651395,), (1338651398,), (1338651402,), (1338651405,), (1338651747,), (1338651951,), (1338652209,), (1338652428,), (1338652432,), (1338652499,), (1338652502,), (1338652531,), (1338652549,), (1338652558,), (1338652571,), (1338652575,), (1338652579,), (1338652627,), (1338652641,), (1338652645,), (1338652660,), (1338652664,), (1338652723,), (1338652726,), (1338652729,), (1338652732,), (1338652750,), (1338652752,), (1338652754,), (1338652757,), (1338652760,), (1338652787,), (1338652790,), (1338652794,), (1338652800,), (1338652803,), (1338652806,), (1338652822,), (1338652825,), (1338652836,), (1338652842,), (1338652848,), (1338652891,), (1338652878,), (1338652881,), (1338652886,), (1338652933,), (1338652935,), (1338652941,), (1338652945,), (1338653184,), (1338653327,), (1338653330,), (1338653519,), (1338653538,), (1338653605,), (1338653611,), (1338653620,), (1338653634,), (1338653638,), (1338653642,), (1338653692,), (1338653696,), (1338653700,), (1338653704,), (1338653707,), (1338653710,), (1338653753,), (1338653759,), (1338653781,), (1338653874,), (1338653878,), (1338653882,), (1338653885,), (1338653888,), (1338653912,), (1338653914,), (1338653917,), (1338653921,), (1338653925,), (1338653950,), (1338653954,), (1338653958,), (1338653962,), (1338653994,), (1338653996,), (1338654002,), (1338654007,), (1338654028,), (1338654031,), (1338654036,), (1338654038,), (1338654041,), (1338654045,), (1338654067,), (1338654068,), (1338654069,), (1338654072,), (1338654232,), (1338654234,), (1338654237,), (1338654276,), (1338654279,), (1338654283,), (1338654287,), (1338654291,), (1338654331,), (1338654317,), (1338654321,), (1338654324,), (1338654328,), (1338654360,), (1338654368,), (1338654371,), (1338654375,), (1338654403,), (1338654407,), (1338654413,), (1338654440,), (1338654443,), (1338654446,), (1338654466,), (1338654499,), (1338654503,), (1338654512,), (1338654524,), (1338654539,), (1338654543,), (1338654570,), (1338654575,), (1338654578,), (1338654581,), (1338654619,), (1338654631,), (1338654638,), (1338654658,), (1338654661,), (1338654664,), (1338654670,), (1338654674,), (1338654742,), (1338654749,), (1338654754,), (1338654758,), (1338654762,), (1338654779,), (1338654782,), (1338655826,), (1338655829,), (1338655851,), (1338655855,), (1338655858,), (1338655877,), (1338655879,), (1338655882,), (1338655884,), (1338655887,), (1338656311,), (1338656394,), (1338656401,), (1338656405,), (1338656409,), (1338656534,), (1338656539,), (1338656547,), (1338656562,), (1338656568,), (1338656959,), (1338656918,), (1338656929,), (1338656934,), (1338656952,), (1338657720,), (1338657931,), (1338657934,), (1338657937,), (1338657940,), (1338657943,), (1338657961,), (1338658057,), (1338658131,), (1338658143,), (1338658151,), (1338658155,), (1338658201,), (1338658207,), (1338658213,), (1338658217,), (1338658254,), (1338658261,), (1338658264,), (1338658293,), (1338658296,), (1338658328,), (1338658332,), (1338658335,), (1338658342,), (1338658347,), (1338658351,), (1338658396,), (1338658400,), (1338658404,), (1338658423,), (1338658427,), (1338658431,), (1338658440,), (1338658442,), (1338658446,), (1338658454,), (1338658517,), (1338658519,), (1338658523,), (1338658525,), (1338658572,), (1338658609,), (1338658612,), (1338658615,), (1338658620,), (1338658624,), (1338658679,), (1338658683,), (1338658752,), (1338658806,), (1338658808,), (1338658813,), (1338658955,), (1338659008,), (1338659015,), (1338659022,), (1338659029,), (1338659033,), (1338659132,), (1338659109,), (1338659111,), (1338659114,), (1338659124,), (1338659416,), (1338659432,), (1338659437,), (1338659441,), (1338659443,), (1338659481,), (1338659490,), (1338659497,), (1338659500,), (1338659503,), (1338659533,), (1338659536,), (1338659539,), (1338659542,), (1338659545,), (1338659580,), (1338659582,), (1338659586,), (1338659593,), (1338659615,), (1338659618,), (1338659621,), (1338659667,), (1338659670,), (1338659673,), (1338659676,), (1338659721,), (1338659732,), (1338659735,), (1338659739,), (1338659741,), (1338659743,), (1338659759,), (1338659761,), (1338659765,), (1338659769,), (1338659772,), (1338659941,), (1338659990,), (1338659992,), (1338659995,), (1338659997,), (1338660017,), (1338660018,), (1338660020,), (1338660023,), (1338660025,), (1338660027,), (1338660044,), (1338660046,), (1338660048,), (1338660050,), (1338660131,), (1338660136,), (1338660137,), (1338660140,), (1338660200,), (1338660203,), (1338660205,), (1338660208,), (1338660211,), (1338660212,), (1338660455,), (1338660448,), (1338660451,), (1338660453,), (1338660507,), (1338660511,), (1338660519,), (1338660527,), (1338660535,), (1338660886,), (1338660889,), (1338660891,), (1338660896,), (1338660900,), (1338660944,), (1338660947,), (1338660950,), (1338661002,), (1338661554,), (1338661560,), (1338661566,), (1338661579,), (1338661685,), (1338661763,), (1338661799,), (1338661804,), (1338661833,), (1338661836,), (1338661839,), (1338661864,), (1338661867,), (1338661870,), (1338661960,), (1338661963,), (1338661969,), (1338662046,), (1338662050,), (1338662114,), (1338662117,), (1338662121,), (1338662123,), (1338662156,), (1338662162,), (1338662170,), (1338662179,), (1338662184,), (1338662254,), (1338662197,), (1338662200,), (1338662203,), (1338662249,), (1338662251,), (1338662414,), (1338662437,), (1338662441,), (1338662445,), (1338662499,), (1338662583,), (1338662589,), (1338662591,), (1338663051,), (1338663063,), (1338663186,), (1338663202,), (1338663327,), (1338663330,), (1338663336,), (1338663343,), (1338663347,), (1338663349,), (1338663376,), (1338663378,), (1338663381,), (1338663385,), (1338663388,), (1338663391,), (1338663404,), (1338663413,), (1338663415,), (1338663419,), (1338663439,), (1338663442,), (1338663445,), (1338663448,), (1338663482,), (1338663518,), (1338663523,), (1338663527,), (1338663531,), (1338663545,), (1338663547,), (1338663549,), (1338663551,), (1338663553,), (1338663578,), (1338663580,), (1338663582,), (1338664475,), (1338666178,), (1338666296,), (1338666852,), (1338667395,), (1338667397,), (1338667445,), (1338667448,), (1338667449,), (1338667467,), (1338667476,), (1338667507,), (1338668433,), (1338668436,), (1338668715,), (1338668718,), (1338668756,), (1338668802,), (1338668810,), (1338668817,), (1338668819,), (1338668865,), (1338668869,), (1338668872,), (1338668891,), (1338668977,), (1338668980,), (1338668983,), (1338668986,), (1338668989,), (1338668992,), (1338669003,), (1338669005,), (1338669007,), (1338669011,), (1338669067,), (1338669069,), (1338669071,), (1338669116,), (1338669119,), (1338669124,), (1338669153,), (1338669156,), (1338669157,), (1338669162,), (1338669164,), (1338669216,), (1338669194,), (1338669197,), (1338669200,), (1338669203,), (1338669518,), (1338669523,), (1338669529,), (1338669577,), (1338669717,), (1338669877,), (1338669882,), (1338669884,), (1338669887,), (1338669890,), (1338669915,), (1338669926,), (1338669935,), (1338669937,), (1338669940,), (1338669943,), (1338669969,), (1338669972,), (1338669975,), (1338669978,), (1338669980,), (1338669983,), (1338670001,), (1338670005,), (1338670008,), (1338670011,), (1338670061,), (1338670064,), (1338670067,), (1338670070,), (1338670072,), (1338670107,), (1338670112,), (1338670115,), (1338670169,), (1338670183,), (1338670228,), (1338670253,), (1338670263,), (1338670269,), (1338670339,), (1338670344,), (1338670347,), (1338670350,), (1338670353,), (1338670356,), (1338670405,), (1338670407,), (1338670412,), (1338670423,), (1338670524,), (1338670529,), (1338670555,), (1338670602,), (1338670615,), (1338670619,), (1338670656,), (1338670659,), (1338670661,), (1338670664,), (1338670667,), (1338670703,), (1338670705,), (1338670707,), (1338670713,), (1338670775,), (1338670821,), (1338670823,), (1338670826,), (1338670872,), (1338670848,), (1338670853,), (1338670861,), (1338670868,), (1338670885,), (1338670887,), (1338670889,), (1338670893,), (1338670934,), (1338670939,), (1338670945,), (1338670952,), (1338670962,), (1338671012,), (1338671014,), (1338671015,), (1338671019,), (1338671021,), (1338671026,), (1338671058,), (1338671060,), (1338671061,), (1338671063,), (1338671080,), (1338671085,), (1338671177,), (1338671180,), (1338671182,), (1338671184,), (1338671186,), (1338671494,), (1338671497,), (1338671501,), (1338671505,), (1338671511,), (1338671617,), (1338671625,), (1338671629,), (1338671631,), (1338671634,), (1338671637,), (1338671664,), (1338671666,), (1338671668,), (1338671672,), (1338671675,), (1338671679,), (1338671698,), (1338671700,), (1338671708,), (1338671711,), (1338671715,), (1338671730,), (1338671897,), (1338672068,), (1338672236,), (1338672404,), (1338672716,), (1338672720,), (1338672726,), (1338672734,), (1338672738,), (1338672742,), (1338672782,), (1338672922,), (1338673069,), (1338673176,), (1338673185,), (1338673311,), (1338673313,), (1338673319,), (1338673324,), (1338673328,), (1338673332,), (1338673373,), (1338673379,), (1338673416,), (1338673590,), (1338673694,), (1338673679,), (1338673682,), (1338673686,), (1338673690,), (1338673718,), (1338673722,), (1338673726,), (1338673729,), (1338673740,), (1338673784,), (1338673788,), (1338673791,), (1338673796,), (1338673805,), (1338673871,), (1338673876,), (1338673880,), (1338673883,), (1338673886,), (1338673890,), (1338673973,), (1338673976,), (1338673978,), (1338673986,), (1338674233,), (1338674235,), (1338674238,), (1338674241,), (1338674252,), (1338674255,), (1338674271,), (1338674291,), (1338674293,), (1338674295,), (1338674298,), (1338674301,), (1338674347,), (1338674350,), (1338674353,), (1338674356,), (1338674358,), (1338674377,), (1338674380,), (1338674382,), (1338674479,), (1338675441,), (1338675442,), (1338675486,), (1338675693,), (1338675716,), (1338675789,), (1338675992,), (1338676069,), (1338676228,), (1338676231,), (1338676234,), (1338676238,), (1338676477,), (1338676479,), (1338676481,), (1338676483,), (1338676486,), (1338676488,), (1338676536,), (1338676541,), (1338676547,), (1338676552,), (1338676560,), (1338676563,), (1338676564,), (1338676565,), (1338676568,), (1338676569,), (1338676571,), (1338676573,), (1338676575,), (1338676576,), (1338676605,), (1338676582,), (1338676587,), (1338676591,), (1338676596,), (1338676601,), (1338676618,), (1338676622,), (1338676626,), (1338676630,), (1338676634,), (1338676659,), (1338676663,), (1338676667,), (1338676673,), (1338676678,), (1338676682,), (1338676701,), (1338676712,), (1338676719,), (1338676725,), (1338676744,), (1338676747,), (1338676750,), (1338676755,), (1338677307,), (1338677330,), (1338677334,), (1338677362,), (1338677367,), (1338677375,), (1338677388,), (1338677393,), (1338677396,), (1338677400,), (1338677402,), (1338677437,), (1338677447,), (1338677448,), (1338677451,), (1338677454,), (1338677458,), (1338677477,), (1338677481,), (1338677486,), (1338677489,), (1338677513,), (1338677521,), (1338677525,), (1338677528,), (1338677531,), (1338677534,), (1338677568,), (1338677577,), (1338677585,), (1338677595,), (1338677633,), (1338677635,), (1338677637,), (1338677639,), (1338677641,), (1338677682,), (1338677686,), (1338677694,), (1338677697,), (1338677700,), (1338677703,), (1338677749,), (1338677754,), (1338677758,), (1338677793,), (1338677796,), (1338677800,), (1338677806,), (1338677818,), (1338677823,), (1338677869,), (1338677834,), (1338677842,), (1338677849,), (1338677859,), (1338677864,), (1338677906,), (1338678009,), (1338678099,), (1338678102,), (1338678595,), (1338678667,), (1338678735,), (1338678816,), (1338678844,), (1338678848,), (1338678912,), (1338678914,), (1338678916,), (1338678920,), (1338678956,), (1338678961,), (1338678963,), (1338678966,), (1338678971,), (1338678977,), (1338679005,), (1338679009,), (1338679011,), (1338679015,), (1338679018,), (1338679021,), (1338679046,), (1338679048,), (1338679050,), (1338679053,), (1338679110,), (1338679112,), (1338679114,), (1338679118,), (1338679122,), (1338679126,), (1338679144,), (1338679147,), (1338679149,), (1338679151,), (1338679154,), (1338679156,), (1338679173,), (1338679176,), (1338679178,), (1338679182,), (1338679232,), (1338679235,), (1338679238,), (1338679286,), (1338679337,), (1338679973,), (1338681057,), (1338681051,), (1338681054,), (1338681081,), (1338681083,), (1338682062,), (1338682063,), (1338682066,), (1338682104,), (1338682106,), (1338682108,), (1338682110,), (1338682112,), (1338682134,), (1338682135,), (1338682136,), (1338682138,), (1338682140,), (1338682143,), (1338682160,), (1338682165,), (1338682168,), (1338682173,), (1338682200,), (1338682204,), (1338682208,), (1338682212,), (1338682217,), (1338682220,), (1338682231,), (1338682233,), (1338682234,), (1338682237,), (1338682240,), (1338682298,), (1338682301,), (1338682304,), (1338682307,), (1338682310,), (1338682314,), (1338682387,), (1338682371,), (1338682374,), (1338682380,), (1338682408,), (1338682450,), (1338682458,), (1338682655,), (1338682672,), (1338682930,), (1338682932,), (1338682935,), (1338682939,), (1338682941,), (1338682944,), (1338682968,), (1338682970,), (1338682972,), (1338683151,), (1338683157,), (1338683161,), (1338683163,), (1338684832,), (1338684804,), (1338684860,), (1338684862,), (1338684865,), (1338684869,), (1338684873,), (1338684876,), (1338685029,), (1338685115,), (1338685119,), (1338685138,), (1338685139,), (1338685141,), (1338685145,), (1338685148,), (1338685195,), (1338685202,), (1338685215,), (1338685221,), (1338685223,), (1338685239,), (1338685240,), (1338685242,), (1338685245,), (1338685248,), (1338685252,), (1338685270,), (1338685272,), (1338685277,), (1338685280,), (1338685318,), (1338685336,), (1338685385,), (1338685453,), (1338685525,), (1338685604,), (1338686200,), (1338686411,), (1338686596,), (1338686724,), (1338686728,), (1338686759,), (1338686761,), (1338686916,), (1338686988,), (1338687128,), (1338687131,), (1338687133,), (1338687137,), (1338687147,), (1338687156,), (1338687217,), (1338687271,), (1338687321,), (1338687334,), (1338687427,), (1338687492,), (1338687520,), (1338687524,), (1338687630,), (1338687633,), (1338687635,), (1338687638,), (1338687641,), (1338687681,), (1338687703,), (1338687710,), (1338687724,), (1338687731,), (1338687747,), (1338687821,), (1338687804,), (1338687806,), (1338687808,), (1338687813,), (1338687817,), (1338688086,), (1338688163,), (1338688216,), (1338688218,), (1338688256,), (1338688258,), (1338688260,), (1338688357,), (1338688557,), (1338688728,), (1338688765,), (1338688768,), (1338688771,), (1338688954,), (1338688956,), (1338688958,), (1338688960,), (1338688980,), (1338688981,), (1338689060,), (1338689081,), (1338689191,), (1338689194,), (1338689197,), (1338689200,), (1338689231,), (1338689234,), (1338689237,), (1338689261,), (1338689263,), (1338689322,), (1338689324,), (1338689326,), (1338689327,), (1338689329,), (1338689332,), (1338689355,), (1338689357,), (1338689359,), (1338689362,), (1338689390,), (1338689391,), (1338689393,), (1338689430,), (1338689432,), (1338689434,), (1338689441,), (1338689471,), (1338689476,), (1338689477,), (1338689481,), (1338689485,), (1338689509,), (1338689511,), (1338689514,), (1338689519,), (1338689577,), (1338689555,), (1338689560,), (1338689563,), (1338689566,), (1338689569,), (1338689803,), (1338689881,), (1338689910,), (1338689918,), (1338689921,), (1338689940,), (1338689944,), (1338689949,), (1338689954,), (1338689960,), (1338689963,), (1338689982,), (1338689988,), (1338689997,), (1338690005,), (1338690035,), (1338690037,), (1338690071,), (1338690073,), (1338690075,), (1338690077,), (1338690080,), (1338690083,), (1338690099,), (1338690101,), (1338690105,), (1338690109,), (1338690132,), (1338690208,), (1338690223,), (1338690226,), (1338690229,), (1338690327,), (1338690335,), (1338690338,), (1338690342,), (1338690346,), (1338690368,), (1338690371,), (1338690375,), (1338690601,), (1338690607,), (1338690765,), (1338690767,), (1338690770,), (1338690772,), (1338690776,), (1338690781,), (1338690823,), (1338690830,), (1338690838,), (1338690855,), (1338690884,), (1338690897,), (1338690906,), (1338690910,), (1338690919,), (1338690923,), (1338690969,), (1338690965,), (1338690967,), (1338691060,), (1338691062,), (1338691065,), (1338691069,), (1338691072,), (1338691076,), (1338691120,), (1338691123,), (1338691126,), (1338691131,), (1338691135,), (1338691151,), (1338691156,), (1338691160,), (1338691164,), (1338691189,), (1338691197,), (1338691217,), (1338691403,), (1338692498,), (1338692502,), (1338692536,), (1338692546,), (1338692551,), (1338692555,), (1338692568,), (1338692585,), (1338692587,), (1338692591,), (1338692594,), (1338692599,), (1338692629,), (1338692633,), (1338692636,), (1338692691,), (1338693273,), (1338693278,), (1338693327,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'20022025': {'nb_upload': 22, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20696236]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338684832, 1338683163, 1338683161, 1338683157, 1338683151, 1338682972, 1338682970, 1338682968, 1338682944, 1338682941, 1338682939, 1338682935, 1338682932, 1338682930, 1338682672, 1338682655, 1338682458, 1338682450, 1338682408, 1338682380, 1338682374, 1338682371] map_info['map_portfolio_photo'] : {20696236: [1338684832, 1338683163, 1338683161, 1338683157, 1338683151, 1338682972, 1338682970, 1338682968, 1338682944, 1338682941, 1338682939, 1338682935, 1338682932, 1338682930, 1338682672, 1338682655, 1338682458, 1338682450, 1338682408, 1338682380, 1338682374, 1338682371]} final : True mtd_id 4302 list_pids : [1338684832, 1338683163, 1338683161, 1338683157, 1338683151, 1338682972, 1338682970, 1338682968, 1338682944, 1338682941, 1338682939, 1338682935, 1338682932, 1338682930, 1338682672, 1338682655, 1338682458, 1338682450, 1338682408, 1338682380, 1338682374, 1338682371] Looping around the photos to save general results len do output : 1 /20696236Didn'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, '2602995') ('4302', '20696236', '1338684832', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338683163', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338683161', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338683157', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338683151', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682972', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682970', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682968', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682944', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682941', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682939', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682935', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682932', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682930', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682672', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682655', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682458', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682450', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682408', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682380', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682374', None, None, None, None, None, '2602995') ('4302', None, None, None, None, None, None, None, '2602995') ('4302', '20696236', '1338682371', None, None, None, None, None, '2602995') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 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, '20696236', 'None', None, None, None, None, '2602995'), ('4302', '20696236', '1338684832', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338683163', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338683161', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338683157', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338683151', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682972', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682970', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682968', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682944', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682941', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682939', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682935', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682932', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682930', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682672', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682655', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682458', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682450', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682408', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682380', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682374', None, None, None, None, None, '2602995'), ('4302', '20696236', '1338682371', None, None, None, None, None, '2602995')] time used for this insertion : 0.01629042625427246 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.98926043510437 time spend to save output : 0.016651153564453125 total time spend for step 5 : 3.0059115886688232 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 (2602995) 2.76user 2.13system 0:18.48elapsed 26%CPU (0avgtext+0avgdata 162288maxresident)k 512inputs+19104outputs (2major+78552minor)pagefaults 0swaps