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 : 626631 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 (3663758) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3663758) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26526952 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3663758'] with mtr_portfolio_ids : ['26526952'] and first list_photo_ids : [] new path : /proc/626631/ Name: python3 Umask: 0002 State: R (running) Tgid: 626631 Ngid: 0 Pid: 626631 PPid: 626630 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 626631 NSpid: 626631 NSpgid: 625339 NSsid: 625339 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98284 kB VmRSS: 98284 kB RssAnon: 60172 kB RssFile: 38112 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 48 nonvoluntary_ctxt_switches: 81 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '626631', 'Ngid': '0', 'Pid': '626631', 'PPid': '626630', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '626631', 'NSpid': '626631', 'NSpgid': '625339', 'NSsid': '625339', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98284 kB', 'VmRSS': '98284 kB', 'RssAnon': '60172 kB', 'RssFile': '38112 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '48', 'nonvoluntary_ctxt_switches': '81'} ('datou_batch_current', '626631', '1107252', '0', '1107252', '866004', '98284', b'', 'marlene', '3663758') 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 (26526952) 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 (3663758 ) ) 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 (26526952) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1381400839, 'portfolio_id': 26526952}, {'photo_id': 1381400837, 'portfolio_id': 26526952}, {'photo_id': 1381400836, 'portfolio_id': 26526952}, {'photo_id': 1381400835, 'portfolio_id': 26526952}, {'photo_id': 1381400834, 'portfolio_id': 26526952}, {'photo_id': 1381400786, 'portfolio_id': 26526952}, {'photo_id': 1381400785, 'portfolio_id': 26526952}, {'photo_id': 1381400784, 'portfolio_id': 26526952}, {'photo_id': 1381400783, 'portfolio_id': 26526952}, {'photo_id': 1381400782, 'portfolio_id': 26526952}, {'photo_id': 1381400771, 'portfolio_id': 26526952}, {'photo_id': 1381400714, 'portfolio_id': 26526952}, {'photo_id': 1381400713, 'portfolio_id': 26526952}, {'photo_id': 1381400712, 'portfolio_id': 26526952}, {'photo_id': 1381400711, 'portfolio_id': 26526952}, {'photo_id': 1381400673, 'portfolio_id': 26526952}, {'photo_id': 1381400672, 'portfolio_id': 26526952}, {'photo_id': 1381400671, 'portfolio_id': 26526952}, {'photo_id': 1381400627, 'portfolio_id': 26526952}, {'photo_id': 1381400626, 'portfolio_id': 26526952}, {'photo_id': 1381400625, 'portfolio_id': 26526952}, {'photo_id': 1381400624, 'portfolio_id': 26526952}, {'photo_id': 1381400623, 'portfolio_id': 26526952}, {'photo_id': 1381400622, 'portfolio_id': 26526952}, {'photo_id': 1381400573, 'portfolio_id': 26526952}, {'photo_id': 1381400572, 'portfolio_id': 26526952}, {'photo_id': 1381400571, 'portfolio_id': 26526952}, {'photo_id': 1381400570, 'portfolio_id': 26526952}, {'photo_id': 1381400506, 'portfolio_id': 26526952}, {'photo_id': 1381400505, 'portfolio_id': 26526952}, {'photo_id': 1381400504, 'portfolio_id': 26526952}, {'photo_id': 1381400460, 'portfolio_id': 26526952}, {'photo_id': 1381400459, 'portfolio_id': 26526952}] map_portfolio_id_photo_id: {26526952: [1381400839, 1381400837, 1381400836, 1381400835, 1381400834, 1381400786, 1381400785, 1381400784, 1381400783, 1381400782, 1381400771, 1381400714, 1381400713, 1381400712, 1381400711, 1381400673, 1381400672, 1381400671, 1381400627, 1381400626, 1381400625, 1381400624, 1381400623, 1381400622, 1381400573, 1381400572, 1381400571, 1381400570, 1381400506, 1381400505, 1381400504, 1381400460, 1381400459]} ##### 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.01486825942993164 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Sep 4 08:24:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26526952) 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 : 26526952 get user id for portfolio 26526952 get sub ptf for main ptf 26526952, type 3726 and hashtags ['environnement', 'cartonnette', 'mal_croppe', 'autre_refus', 'papier', 'Carton_brun', 'flou', 'Teint_Dans_La_Masse', 'plastique', 'kraft', 'Carton_gris', 'metal'] 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`=26526952 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','cartonnette','mal_croppe','autre_refus','papier','Carton_brun','flou','Teint_Dans_La_Masse','plastique','kraft','Carton_gris','metal')) 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`=26526952 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','cartonnette','mal_croppe','autre_refus','papier','Carton_brun','flou','Teint_Dans_La_Masse','plastique','kraft','Carton_gris','metal')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 26526952, 'sub_port_id': 26526962, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861752, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 56)}, 'mal_croppe': {'main_port_id': 26526952, 'sub_port_id': 26526963, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861753, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 26526952, 'sub_port_id': 26526964, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861754, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 56)}, 'metal': {'main_port_id': 26526952, 'sub_port_id': 26526965, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861755, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 56)}, 'kraft': {'main_port_id': 26526952, 'sub_port_id': 26526966, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861756, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 56)}, 'Carton_brun': {'main_port_id': 26526952, 'sub_port_id': 26526967, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861757, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 56)}, 'cartonnette': {'main_port_id': 26526952, 'sub_port_id': 26526968, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861758, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 56)}, 'papier': {'main_port_id': 26526952, 'sub_port_id': 26526969, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861759, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 56)}, 'plastique': {'main_port_id': 26526952, 'sub_port_id': 26526970, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861760, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 56)}, 'Carton_gris': {'main_port_id': 26526952, 'sub_port_id': 26526971, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861761, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 56)}, 'autre_refus': {'main_port_id': 26526952, 'sub_port_id': 26526972, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861762, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 56)}, 'flou': {'main_port_id': 26526952, 'sub_port_id': 26526973, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861763, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26526962 , 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=26526952 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 (26526962) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26526952) result : ((1381400459,), (1381400460,), (1381400504,), (1381400505,), (1381400506,), (1381400570,), (1381400571,), (1381400572,), (1381400573,), (1381400622,), (1381400623,), (1381400624,), (1381400625,), (1381400626,), (1381400627,), (1381400671,), (1381400672,), (1381400673,), (1381400711,), (1381400712,), (1381400713,), (1381400714,), (1381400771,), (1381400782,), (1381400783,), (1381400784,), (1381400785,), (1381400786,), (1381400834,), (1381400835,), (1381400836,), (1381400837,), (1381400839,)) 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 26526963 , 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=26526952 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 (26526963) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26526952) result : ((1381400459,), (1381400460,), (1381400504,), (1381400505,), (1381400506,), (1381400570,), (1381400571,), (1381400572,), (1381400573,), (1381400622,), (1381400623,), (1381400624,), (1381400625,), (1381400626,), (1381400627,), (1381400671,), (1381400672,), (1381400673,), (1381400711,), (1381400712,), (1381400713,), (1381400714,), (1381400771,), (1381400782,), (1381400783,), (1381400784,), (1381400785,), (1381400786,), (1381400834,), (1381400835,), (1381400836,), (1381400837,), (1381400839,)) 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 26526964 , 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=26526952 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 (26526964) result : ((1381400657,), (1381400689,), (1381400690,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26526952) result : ((1381400459,), (1381400460,), (1381400504,), (1381400505,), (1381400506,), (1381400570,), (1381400571,), (1381400572,), (1381400573,), (1381400622,), (1381400623,), (1381400624,), (1381400625,), (1381400626,), (1381400627,), (1381400671,), (1381400672,), (1381400673,), (1381400711,), (1381400712,), (1381400713,), (1381400714,), (1381400771,), (1381400782,), (1381400783,), (1381400784,), (1381400785,), (1381400786,), (1381400834,), (1381400835,), (1381400836,), (1381400837,), (1381400839,)) 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 26526965 , 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=26526952 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 (26526965) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26526952) result : ((1381400459,), (1381400460,), (1381400504,), (1381400505,), (1381400506,), (1381400570,), (1381400571,), (1381400572,), (1381400573,), (1381400622,), (1381400623,), (1381400624,), (1381400625,), (1381400626,), (1381400627,), (1381400671,), (1381400672,), (1381400673,), (1381400711,), (1381400712,), (1381400713,), (1381400714,), (1381400771,), (1381400782,), (1381400783,), (1381400784,), (1381400785,), (1381400786,), (1381400834,), (1381400835,), (1381400836,), (1381400837,), (1381400839,)) 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 26526966 , 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=26526952 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 (26526966) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26526952) result : ((1381400459,), (1381400460,), (1381400504,), (1381400505,), (1381400506,), (1381400570,), (1381400571,), (1381400572,), (1381400573,), (1381400622,), (1381400623,), (1381400624,), (1381400625,), (1381400626,), (1381400627,), (1381400671,), (1381400672,), (1381400673,), (1381400711,), (1381400712,), (1381400713,), (1381400714,), (1381400771,), (1381400782,), (1381400783,), (1381400784,), (1381400785,), (1381400786,), (1381400834,), (1381400835,), (1381400836,), (1381400837,), (1381400839,)) 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 26526967 , 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=26526952 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 (26526967) result : ((1381400694,), (1381400696,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26526952) result : ((1381400459,), (1381400460,), (1381400504,), (1381400505,), (1381400506,), (1381400570,), (1381400571,), (1381400572,), (1381400573,), (1381400622,), (1381400623,), (1381400624,), (1381400625,), (1381400626,), (1381400627,), (1381400671,), (1381400672,), (1381400673,), (1381400711,), (1381400712,), (1381400713,), (1381400714,), (1381400771,), (1381400782,), (1381400783,), (1381400784,), (1381400785,), (1381400786,), (1381400834,), (1381400835,), (1381400836,), (1381400837,), (1381400839,)) 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 26526968 , 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=26526952 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 (26526968) result : ((1381400658,), (1381400692,), (1381400693,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26526952) result : ((1381400459,), (1381400460,), (1381400504,), (1381400505,), (1381400506,), (1381400570,), (1381400571,), (1381400572,), (1381400573,), (1381400622,), (1381400623,), (1381400624,), (1381400625,), (1381400626,), (1381400627,), (1381400671,), (1381400672,), (1381400673,), (1381400711,), (1381400712,), (1381400713,), (1381400714,), (1381400771,), (1381400782,), (1381400783,), (1381400784,), (1381400785,), (1381400786,), (1381400834,), (1381400835,), (1381400836,), (1381400837,), (1381400839,)) 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 26526969 , 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=26526952 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 (26526969) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26526952) result : ((1381400459,), (1381400460,), (1381400504,), (1381400505,), (1381400506,), (1381400570,), (1381400571,), (1381400572,), (1381400573,), (1381400622,), (1381400623,), (1381400624,), (1381400625,), (1381400626,), (1381400627,), (1381400671,), (1381400672,), (1381400673,), (1381400711,), (1381400712,), (1381400713,), (1381400714,), (1381400771,), (1381400782,), (1381400783,), (1381400784,), (1381400785,), (1381400786,), (1381400834,), (1381400835,), (1381400836,), (1381400837,), (1381400839,)) 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 26526970 , 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=26526952 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 (26526970) result : ((1381400659,), (1381400660,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26526952) result : ((1381400459,), (1381400460,), (1381400504,), (1381400505,), (1381400506,), (1381400570,), (1381400571,), (1381400572,), (1381400573,), (1381400622,), (1381400623,), (1381400624,), (1381400625,), (1381400626,), (1381400627,), (1381400671,), (1381400672,), (1381400673,), (1381400711,), (1381400712,), (1381400713,), (1381400714,), (1381400771,), (1381400782,), (1381400783,), (1381400784,), (1381400785,), (1381400786,), (1381400834,), (1381400835,), (1381400836,), (1381400837,), (1381400839,)) 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 26526971 , 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=26526952 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 (26526971) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26526952) result : ((1381400459,), (1381400460,), (1381400504,), (1381400505,), (1381400506,), (1381400570,), (1381400571,), (1381400572,), (1381400573,), (1381400622,), (1381400623,), (1381400624,), (1381400625,), (1381400626,), (1381400627,), (1381400671,), (1381400672,), (1381400673,), (1381400711,), (1381400712,), (1381400713,), (1381400714,), (1381400771,), (1381400782,), (1381400783,), (1381400784,), (1381400785,), (1381400786,), (1381400834,), (1381400835,), (1381400836,), (1381400837,), (1381400839,)) 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 26526972 , 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=26526952 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 (26526972) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26526952) result : ((1381400459,), (1381400460,), (1381400504,), (1381400505,), (1381400506,), (1381400570,), (1381400571,), (1381400572,), (1381400573,), (1381400622,), (1381400623,), (1381400624,), (1381400625,), (1381400626,), (1381400627,), (1381400671,), (1381400672,), (1381400673,), (1381400711,), (1381400712,), (1381400713,), (1381400714,), (1381400771,), (1381400782,), (1381400783,), (1381400784,), (1381400785,), (1381400786,), (1381400834,), (1381400835,), (1381400836,), (1381400837,), (1381400839,)) 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 26526973 , 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=26526952 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 (26526973) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26526952) result : ((1381400459,), (1381400460,), (1381400504,), (1381400505,), (1381400506,), (1381400570,), (1381400571,), (1381400572,), (1381400573,), (1381400622,), (1381400623,), (1381400624,), (1381400625,), (1381400626,), (1381400627,), (1381400671,), (1381400672,), (1381400673,), (1381400711,), (1381400712,), (1381400713,), (1381400714,), (1381400771,), (1381400782,), (1381400783,), (1381400784,), (1381400785,), (1381400786,), (1381400834,), (1381400835,), (1381400836,), (1381400837,), (1381400839,)) 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`=26526952 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','cartonnette','mal_croppe','autre_refus','papier','Carton_brun','flou','Teint_Dans_La_Masse','plastique','kraft','Carton_gris','metal')) 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`=26526952 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','cartonnette','mal_croppe','autre_refus','papier','Carton_brun','flou','Teint_Dans_La_Masse','plastique','kraft','Carton_gris','metal')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 26526952, 'sub_port_id': 26526974, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861764, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 57)}, 'mal_croppe': {'main_port_id': 26526952, 'sub_port_id': 26526975, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861765, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 26526952, 'sub_port_id': 26526976, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861766, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 57)}, 'metal': {'main_port_id': 26526952, 'sub_port_id': 26526977, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861767, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 57)}, 'kraft': {'main_port_id': 26526952, 'sub_port_id': 26526978, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861768, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 57)}, 'Carton_brun': {'main_port_id': 26526952, 'sub_port_id': 26526979, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861769, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 57)}, 'cartonnette': {'main_port_id': 26526952, 'sub_port_id': 26526980, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861770, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 57)}, 'papier': {'main_port_id': 26526952, 'sub_port_id': 26526981, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861771, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 57)}, 'plastique': {'main_port_id': 26526952, 'sub_port_id': 26526982, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861772, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 57)}, 'Carton_gris': {'main_port_id': 26526952, 'sub_port_id': 26526983, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861773, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 57)}, 'autre_refus': {'main_port_id': 26526952, 'sub_port_id': 26526984, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861774, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 57)}, 'flou': {'main_port_id': 26526952, 'sub_port_id': 26526985, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17861775, 'last_updated_at': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 8, 18, 57)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26526974,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26526962 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26526975,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26526963 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26526976,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26526964 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26526977,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26526965 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26526978,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26526966 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26526979,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26526967 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26526980,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26526968 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26526981,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26526969 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26526982,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26526970 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26526983,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26526971 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26526984,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26526972 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26526985,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26526973 lien utilise dans velours : https://marlene.fotonower.com/velours/26526974,26526975,26526976,26526977,26526978,26526979,26526980,26526981,26526982,26526983,26526984,26526985?tags=environnement,mal_croppe,Teint_Dans_La_Masse,metal,kraft,Carton_brun,cartonnette,papier,plastique,Carton_gris,autre_refus,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26526952]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1381400839, 1381400837, 1381400836, 1381400835, 1381400834, 1381400786, 1381400785, 1381400784, 1381400783, 1381400782, 1381400771] map_info['map_portfolio_photo'] : {26526952: [1381400839, 1381400837, 1381400836, 1381400835, 1381400834, 1381400786, 1381400785, 1381400784, 1381400783, 1381400782, 1381400771, 1381400714, 1381400713, 1381400712, 1381400711, 1381400673, 1381400672, 1381400671, 1381400627, 1381400626, 1381400625, 1381400624, 1381400623, 1381400622, 1381400573, 1381400572, 1381400571, 1381400570, 1381400506, 1381400505, 1381400504, 1381400460, 1381400459]} final : False mtd_id 4302 list_pids : [1381400839, 1381400837, 1381400836, 1381400835, 1381400834, 1381400786, 1381400785, 1381400784, 1381400783, 1381400782, 1381400771] Looping around the photos to save general results len do output : 1 /26526952. 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, '3663758') ('4302', '26526952', '1381400839', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400837', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400836', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400835', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400834', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400786', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400785', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400784', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400783', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400782', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400771', None, None, None, None, None, '3663758') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '26526952', "{'environnement': 26526962, 'mal_croppe': 26526963, 'Teint_Dans_La_Masse': 26526964, 'metal': 26526965, 'kraft': 26526966, 'Carton_brun': 26526967, 'cartonnette': 26526968, 'papier': 26526969, 'plastique': 26526970, 'Carton_gris': 26526971, 'autre_refus': 26526972, 'flou': 26526973}", None, None, None, None, '3663758'), ('4302', '26526952', '1381400839', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400837', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400836', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400835', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400834', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400786', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400785', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400784', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400783', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400782', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400771', None, None, None, None, None, '3663758')] time used for this insertion : 0.05389142036437988 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.463071584701538 time spend to save output : 0.05423998832702637 total time spend for step 1 : 1.5173115730285645 step2:final Thu Sep 4 08:25:00 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 (26526952) 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 26526952 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1381400460,1381400459,1381400506,1381400505,1381400504,1381400573,1381400572,1381400571,1381400570,1381400627,1381400626,1381400625,1381400624,1381400623,1381400622,1381400673,1381400672,1381400671,1381400714,1381400713,1381400712,1381400711,1381400786,1381400785,1381400771,1381400784,1381400783,1381400782,1381400839,1381400837,1381400836,1381400835,1381400834); 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([26526952]) Inside saveOutput : final : False verbose : True original output for save of step final : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ('0.03250358345591564',), 1381400785: ('0.03250358345591564',), 1381400784: ('0.03250358345591564',), 1381400783: ('0.03250358345591564',), 1381400782: ('0.03250358345591564',), 1381400771: ('0.03250358345591564',)} new output for save of step final : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ('0.03250358345591564',), 1381400785: ('0.03250358345591564',), 1381400784: ('0.03250358345591564',), 1381400783: ('0.03250358345591564',), 1381400782: ('0.03250358345591564',), 1381400771: ('0.03250358345591564',)} [1381400839, 1381400837, 1381400836, 1381400835, 1381400834, 1381400786, 1381400785, 1381400784, 1381400783, 1381400782, 1381400771] map_info['map_portfolio_photo'] : {26526952: [1381400839, 1381400837, 1381400836, 1381400835, 1381400834, 1381400786, 1381400785, 1381400784, 1381400783, 1381400782, 1381400771, 1381400714, 1381400713, 1381400712, 1381400711, 1381400673, 1381400672, 1381400671, 1381400627, 1381400626, 1381400625, 1381400624, 1381400623, 1381400622, 1381400573, 1381400572, 1381400571, 1381400570, 1381400506, 1381400505, 1381400504, 1381400460, 1381400459]} final : False mtd_id 4302 list_pids : [1381400839, 1381400837, 1381400836, 1381400835, 1381400834, 1381400786, 1381400785, 1381400784, 1381400783, 1381400782, 1381400771] Looping around the photos to save general results len do output : 11 /1381400839.Didn't retrieve data . /1381400837.Didn't retrieve data . /1381400836.Didn't retrieve data . /1381400835.Didn't retrieve data . /1381400834.Didn't retrieve data . /1381400786.Didn't retrieve data . /1381400785.Didn't retrieve data . /1381400784.Didn't retrieve data . /1381400783.Didn't retrieve data . /1381400782.Didn't retrieve data . /1381400771.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, '3663758') ('4302', '26526952', '1381400839', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400837', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400836', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400835', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400834', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400786', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400785', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400784', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400783', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400782', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400771', None, None, None, None, None, '3663758') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '26526952', '1381400839', '0.03250358345591564', None, None, None, None, '3663758'), ('4302', '26526952', '1381400837', '0.03250358345591564', None, None, None, None, '3663758'), ('4302', '26526952', '1381400836', '0.03250358345591564', None, None, None, None, '3663758'), ('4302', '26526952', '1381400835', '0.03250358345591564', None, None, None, None, '3663758'), ('4302', '26526952', '1381400834', '0.03250358345591564', None, None, None, None, '3663758'), ('4302', '26526952', '1381400786', '0.03250358345591564', None, None, None, None, '3663758'), ('4302', '26526952', '1381400785', '0.03250358345591564', None, None, None, None, '3663758'), ('4302', '26526952', '1381400784', '0.03250358345591564', None, None, None, None, '3663758'), ('4302', '26526952', '1381400783', '0.03250358345591564', None, None, None, None, '3663758'), ('4302', '26526952', '1381400782', '0.03250358345591564', None, None, None, None, '3663758'), ('4302', '26526952', '1381400771', '0.03250358345591564', None, None, None, None, '3663758')] time used for this insertion : 0.017650127410888672 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08974027633666992 time spend to save output : 0.018244028091430664 total time spend for step 2 : 0.10798430442810059 step3:velours_tree Thu Sep 4 08:25:00 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 : {26526952: [{'environnement': 26526962, 'mal_croppe': 26526963, 'Teint_Dans_La_Masse': 26526964, 'metal': 26526965, 'kraft': 26526966, 'Carton_brun': 26526967, 'cartonnette': 26526968, 'papier': 26526969, 'plastique': 26526970, 'Carton_gris': 26526971, 'autre_refus': 26526972, 'flou': 26526973}]} input_args_next_step : {26526952: ()} output_args : {26526952: [{'environnement': 26526962, 'mal_croppe': 26526963, 'Teint_Dans_La_Masse': 26526964, 'metal': 26526965, 'kraft': 26526966, 'Carton_brun': 26526967, 'cartonnette': 26526968, 'papier': 26526969, 'plastique': 26526970, 'Carton_gris': 26526971, 'autre_refus': 26526972, 'flou': 26526973}]} args : 26526952 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'environnement': 26526962, 'mal_croppe': 26526963, 'Teint_Dans_La_Masse': 26526964, 'metal': 26526965, 'kraft': 26526966, 'Carton_brun': 26526967, 'cartonnette': 26526968, 'papier': 26526969, 'plastique': 26526970, 'Carton_gris': 26526971, 'autre_refus': 26526972, 'flou': 26526973},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26526952) 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([26526952]) 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.31813573837280273 time spend to save output : 5.221366882324219e-05 total time spend for step 3 : 0.318187952041626 step4:send_mail_cod Thu Sep 4 08:25:00 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 : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ('0.03250358345591564',), 1381400785: ('0.03250358345591564',), 1381400784: ('0.03250358345591564',), 1381400783: ('0.03250358345591564',), 1381400782: ('0.03250358345591564',), 1381400771: ('0.03250358345591564',)} input_args_next_step : {1381400839: ()} output_args : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ('0.03250358345591564',), 1381400785: ('0.03250358345591564',), 1381400784: ('0.03250358345591564',), 1381400783: ('0.03250358345591564',), 1381400782: ('0.03250358345591564',), 1381400771: ('0.03250358345591564',)} args : 1381400839 depend.output_id : 0 input_args_next_step : {1381400839: ('0.03250358345591564',), 1381400837: ()} output_args : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ('0.03250358345591564',), 1381400785: ('0.03250358345591564',), 1381400784: ('0.03250358345591564',), 1381400783: ('0.03250358345591564',), 1381400782: ('0.03250358345591564',), 1381400771: ('0.03250358345591564',)} args : 1381400837 depend.output_id : 0 input_args_next_step : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ()} output_args : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ('0.03250358345591564',), 1381400785: ('0.03250358345591564',), 1381400784: ('0.03250358345591564',), 1381400783: ('0.03250358345591564',), 1381400782: ('0.03250358345591564',), 1381400771: ('0.03250358345591564',)} args : 1381400836 depend.output_id : 0 input_args_next_step : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ()} output_args : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ('0.03250358345591564',), 1381400785: ('0.03250358345591564',), 1381400784: ('0.03250358345591564',), 1381400783: ('0.03250358345591564',), 1381400782: ('0.03250358345591564',), 1381400771: ('0.03250358345591564',)} args : 1381400835 depend.output_id : 0 input_args_next_step : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ()} output_args : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ('0.03250358345591564',), 1381400785: ('0.03250358345591564',), 1381400784: ('0.03250358345591564',), 1381400783: ('0.03250358345591564',), 1381400782: ('0.03250358345591564',), 1381400771: ('0.03250358345591564',)} args : 1381400834 depend.output_id : 0 input_args_next_step : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ()} output_args : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ('0.03250358345591564',), 1381400785: ('0.03250358345591564',), 1381400784: ('0.03250358345591564',), 1381400783: ('0.03250358345591564',), 1381400782: ('0.03250358345591564',), 1381400771: ('0.03250358345591564',)} args : 1381400786 depend.output_id : 0 input_args_next_step : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ('0.03250358345591564',), 1381400785: ()} output_args : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ('0.03250358345591564',), 1381400785: ('0.03250358345591564',), 1381400784: ('0.03250358345591564',), 1381400783: ('0.03250358345591564',), 1381400782: ('0.03250358345591564',), 1381400771: ('0.03250358345591564',)} args : 1381400785 depend.output_id : 0 input_args_next_step : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ('0.03250358345591564',), 1381400785: ('0.03250358345591564',), 1381400784: ()} output_args : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ('0.03250358345591564',), 1381400785: ('0.03250358345591564',), 1381400784: ('0.03250358345591564',), 1381400783: ('0.03250358345591564',), 1381400782: ('0.03250358345591564',), 1381400771: ('0.03250358345591564',)} args : 1381400784 depend.output_id : 0 input_args_next_step : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ('0.03250358345591564',), 1381400785: ('0.03250358345591564',), 1381400784: ('0.03250358345591564',), 1381400783: ()} output_args : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ('0.03250358345591564',), 1381400785: ('0.03250358345591564',), 1381400784: ('0.03250358345591564',), 1381400783: ('0.03250358345591564',), 1381400782: ('0.03250358345591564',), 1381400771: ('0.03250358345591564',)} args : 1381400783 depend.output_id : 0 input_args_next_step : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ('0.03250358345591564',), 1381400785: ('0.03250358345591564',), 1381400784: ('0.03250358345591564',), 1381400783: ('0.03250358345591564',), 1381400782: ()} output_args : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ('0.03250358345591564',), 1381400785: ('0.03250358345591564',), 1381400784: ('0.03250358345591564',), 1381400783: ('0.03250358345591564',), 1381400782: ('0.03250358345591564',), 1381400771: ('0.03250358345591564',)} args : 1381400782 depend.output_id : 0 input_args_next_step : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ('0.03250358345591564',), 1381400785: ('0.03250358345591564',), 1381400784: ('0.03250358345591564',), 1381400783: ('0.03250358345591564',), 1381400782: ('0.03250358345591564',), 1381400771: ()} output_args : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ('0.03250358345591564',), 1381400785: ('0.03250358345591564',), 1381400784: ('0.03250358345591564',), 1381400783: ('0.03250358345591564',), 1381400782: ('0.03250358345591564',), 1381400771: ('0.03250358345591564',)} args : 1381400771 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 : {26526952: [{'environnement': 26526962, 'mal_croppe': 26526963, 'Teint_Dans_La_Masse': 26526964, 'metal': 26526965, 'kraft': 26526966, 'Carton_brun': 26526967, 'cartonnette': 26526968, 'papier': 26526969, 'plastique': 26526970, 'Carton_gris': 26526971, 'autre_refus': 26526972, 'flou': 26526973}]} input_args_next_step : {1381400839: ('0.03250358345591564',), 1381400837: ('0.03250358345591564',), 1381400836: ('0.03250358345591564',), 1381400835: ('0.03250358345591564',), 1381400834: ('0.03250358345591564',), 1381400786: ('0.03250358345591564',), 1381400785: ('0.03250358345591564',), 1381400784: ('0.03250358345591564',), 1381400783: ('0.03250358345591564',), 1381400782: ('0.03250358345591564',), 1381400771: ('0.03250358345591564',), 26526952: ()} output_args : {26526952: [{'environnement': 26526962, 'mal_croppe': 26526963, 'Teint_Dans_La_Masse': 26526964, 'metal': 26526965, 'kraft': 26526966, 'Carton_brun': 26526967, 'cartonnette': 26526968, 'papier': 26526969, 'plastique': 26526970, 'Carton_gris': 26526971, 'autre_refus': 26526972, 'flou': 26526973}]} args : 26526952 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 :12, first value : ('0.03250358345591564',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26526952) 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 (1381400839,1381400837,1381400836,1381400835,1381400834,1381400786,1381400785,1381400784,1381400783,1381400782,1381400771) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1381400771 begin to download photo : 1381400784 begin to download photo : 1381400834 begin to download photo : 1381400837 download finish for photo 1381400784 begin to download photo : 1381400785 download finish for photo 1381400771 begin to download photo : 1381400782 download finish for photo 1381400837 begin to download photo : 1381400839 download finish for photo 1381400834 begin to download photo : 1381400835 download finish for photo 1381400785 begin to download photo : 1381400786 download finish for photo 1381400839 download finish for photo 1381400782 begin to download photo : 1381400783 download finish for photo 1381400835 begin to download photo : 1381400836 download finish for photo 1381400786 download finish for photo 1381400783 download finish for photo 1381400836 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette265269631756967101/ imagette265269651756967101/ imagette265269661756967101/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P26526952_04-09-2025_08_25_01.pdf 26526963 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=26526963 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265269631756967101 26526965 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=26526965 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265269651756967101 26526966 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=26526966 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265269661756967101 26526968 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=26526968 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381400658: '1756966827_2489843_1381400505_9470def39805fbc91dadf8f0518f2dd1_53645719_rle_crop_3943986398_0.png', 1381400692: '1756966867_2490642_1381400506_f7a6e555d993490e026f4f34bac83f21_9267500_rle_crop_3943986586_0.png', 1381400693: '1756966867_2490642_1381400506_f7a6e555d993490e026f4f34bac83f21_9267500_rle_crop_3943986590_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/904aef0f225852cfde8dd10046edfa4b_76375992.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/6d343d0f03263a0c6d92251bceba510b_15790643.png change filename to text .imagette265269681756967101/ imagette265269681756967101/1756966827_2489843_1381400505_9470def39805fbc91dadf8f0518f2dd1_53645719_rle_crop_3943986398_0.png.png imagette265269681756967101/1756966867_2490642_1381400506_f7a6e555d993490e026f4f34bac83f21_9267500_rle_crop_3943986586_0.png.png imagette265269681756967101/1756966867_2490642_1381400506_f7a6e555d993490e026f4f34bac83f21_9267500_rle_crop_3943986590_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/d4db11e85602d8633bec12602850e725_59336812.png imagette265269681756967101 26526970 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=26526970 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381400659: '1756966827_2489843_1381400505_9470def39805fbc91dadf8f0518f2dd1_53645719_rle_crop_3943986406_0.png', 1381400660: '1756966827_2489843_1381400504_30e1ce769a8ab16c89bc4c5fe991d397_40904269_rle_crop_3943986419_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/57032b92a952dca0bcc2aff44713b143_47773466.png change filename to text .imagette265269701756967101/ imagette265269701756967101/1756966827_2489843_1381400505_9470def39805fbc91dadf8f0518f2dd1_53645719_rle_crop_3943986406_0.png.png imagette265269701756967101/1756966827_2489843_1381400504_30e1ce769a8ab16c89bc4c5fe991d397_40904269_rle_crop_3943986419_0.png.png imagette265269721756967101/ imagette265269731756967101/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/40466ec785aada8f8ac18261a1111bdf_51026228.png imagette265269701756967101 26526972 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=26526972 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265269721756967101 26526973 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=26526973 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265269731756967101 26526964 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=26526964 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381400657: '1756966827_2489843_1381400505_9470def39805fbc91dadf8f0518f2dd1_53645719_rle_crop_3943986399_0.png', 1381400689: '1756966867_2490642_1381400459_fe7554fa50bd65726798bb2908a4430b_92891986_rle_crop_3943986612_0.png', 1381400690: '1756966867_2490642_1381400459_fe7554fa50bd65726798bb2908a4430b_92891986_rle_crop_3943986609_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/da9940bf6c21dd0a2ada8e23f2e0d6b9_14210335.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/3cae040d2dc3ea7713f6d60009cb3771_94417572.png change filename to text .imagette265269641756967101/ imagette265269641756967101/1756966867_2490642_1381400459_fe7554fa50bd65726798bb2908a4430b_92891986_rle_crop_3943986612_0.png.png imagette265269641756967101/1756966867_2490642_1381400459_fe7554fa50bd65726798bb2908a4430b_92891986_rle_crop_3943986609_0.png.png imagette265269641756967101/1756966827_2489843_1381400505_9470def39805fbc91dadf8f0518f2dd1_53645719_rle_crop_3943986399_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/f1ee6300b77c5c837eef2746b5ba3c5c_75756011.png imagette265269641756967101 26526967 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=26526967 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381400694: '1756966867_2490642_1381400506_f7a6e555d993490e026f4f34bac83f21_9267500_rle_crop_3943986592_0.png', 1381400696: '1756966867_2490642_1381400459_fe7554fa50bd65726798bb2908a4430b_92891986_rle_crop_3943986607_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/7d33780f6f52e4986717a6e76fda77b1_35768573.png change filename to text .imagette265269671756967101/ imagette265269671756967101/1756966867_2490642_1381400506_f7a6e555d993490e026f4f34bac83f21_9267500_rle_crop_3943986592_0.png.png imagette265269671756967101/1756966867_2490642_1381400459_fe7554fa50bd65726798bb2908a4430b_92891986_rle_crop_3943986607_0.png.png imagette265269711756967101/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/6aa26473884e98425b557b1cbdc2ffad_56416350.png imagette265269671756967101 26526971 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=26526971 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265269711756967101 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26526952 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26526974,26526975,26526976,26526977,26526978,26526979,26526980,26526981,26526982,26526983,26526984,26526985?tags=environnement,mal_croppe,Teint_Dans_La_Masse,metal,kraft,Carton_brun,cartonnette,papier,plastique,Carton_gris,autre_refus,flou your option no_mail is active, we will not send the real mail to your client args[1381400839] : ('0.03250358345591564',) no score found for photo 1381400839 We are sending mail with results at report@fotonower.com args[1381400837] : ('0.03250358345591564',) no score found for photo 1381400837 We are sending mail with results at report@fotonower.com args[1381400836] : ('0.03250358345591564',) no score found for photo 1381400836 We are sending mail with results at report@fotonower.com args[1381400835] : ('0.03250358345591564',) no score found for photo 1381400835 We are sending mail with results at report@fotonower.com args[1381400834] : ('0.03250358345591564',) no score found for photo 1381400834 We are sending mail with results at report@fotonower.com args[1381400786] : ('0.03250358345591564',) no score found for photo 1381400786 We are sending mail with results at report@fotonower.com args[1381400785] : ('0.03250358345591564',) no score found for photo 1381400785 We are sending mail with results at report@fotonower.com args[1381400784] : ('0.03250358345591564',) no score found for photo 1381400784 We are sending mail with results at report@fotonower.com args[1381400783] : ('0.03250358345591564',) no score found for photo 1381400783 We are sending mail with results at report@fotonower.com args[1381400782] : ('0.03250358345591564',) no score found for photo 1381400782 We are sending mail with results at report@fotonower.com args[1381400771] : ('0.03250358345591564',) no score found for photo 1381400771 We are sending mail with results at report@fotonower.com refus_total : 0.03250358345591564 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=26526952 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_P26526952_04-09-2025_08_25_01.pdf results_Auto_P26526952_04-09-2025_08_25_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526952_04-09-2025_08_25_01.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','26526952','results_Auto_P26526952_04-09-2025_08_25_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526952_04-09-2025_08_25_01.pdf','pdf','','0.12','0.03250358345591564') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26526952]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1381400839, 1381400837, 1381400836, 1381400835, 1381400834, 1381400786, 1381400785, 1381400784, 1381400783, 1381400782, 1381400771] map_info['map_portfolio_photo'] : {26526952: [1381400839, 1381400837, 1381400836, 1381400835, 1381400834, 1381400786, 1381400785, 1381400784, 1381400783, 1381400782, 1381400771, 1381400714, 1381400713, 1381400712, 1381400711, 1381400673, 1381400672, 1381400671, 1381400627, 1381400626, 1381400625, 1381400624, 1381400623, 1381400622, 1381400573, 1381400572, 1381400571, 1381400570, 1381400506, 1381400505, 1381400504, 1381400460, 1381400459]} final : False mtd_id 4302 list_pids : [1381400839, 1381400837, 1381400836, 1381400835, 1381400834, 1381400786, 1381400785, 1381400784, 1381400783, 1381400782, 1381400771] 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, '3663758') ('4302', '26526952', '1381400839', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400837', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400836', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400835', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400834', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400786', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400785', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400784', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400783', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400782', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400771', None, None, None, None, None, '3663758') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '26526952', '1381400839', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400837', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400836', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400835', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400834', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400786', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400785', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400784', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400783', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400782', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400771', None, None, None, None, None, '3663758')] time used for this insertion : 0.054941415786743164 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.203061580657959 time spend to save output : 0.05515003204345703 total time spend for step 4 : 2.258211612701416 step5:split_time_score Thu Sep 4 08:25:03 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 : ['26526952'] 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 : [('26526952',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26526952) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1381400837: {'path': 'temp/1756967100_626631_1381400837_b2a696cd81d350e6b2aabb2e119fff57_4336544.jpg', 'extension': 'jpg'}, 1381400839: {'path': 'temp/1756967100_626631_1381400839_e64c38ca7e3c695cd866d1c4820fbf71_61389306.jpg', 'extension': 'jpg'}, 1381400784: {'path': 'temp/1756967100_626631_1381400784_6cc249a111806898d9d05ea3c5ff2f83_89399319.jpg', 'extension': 'jpg'}, 1381400785: {'path': 'temp/1756967100_626631_1381400785_bcf6086d4fd518fc69aaf1e4516064de_81135052.jpg', 'extension': 'jpg'}, 1381400786: {'path': 'temp/1756967100_626631_1381400786_79a6b8f6641e21fcd01472d654bf0323_31711276.jpg', 'extension': 'jpg'}, 1381400771: {'path': 'temp/1756967100_626631_1381400771_d4df538a4263fd9030a76242f3fbab60_4310256.jpg', 'extension': 'jpg'}, 1381400782: {'path': 'temp/1756967100_626631_1381400782_6adced31f545e062d9e6cf2544f64a2f_54959582.jpg', 'extension': 'jpg'}, 1381400783: {'path': 'temp/1756967100_626631_1381400783_ff06a8c70c3abe8c772cca6b03fae40b_45236012.jpg', 'extension': 'jpg'}, 1381400834: {'path': 'temp/1756967100_626631_1381400834_262d6ce17e652ed719557ad7923a3995_35136308.jpg', 'extension': 'jpg'}, 1381400835: {'path': 'temp/1756967100_626631_1381400835_1217d1cf1e975eb3dba60abb69b9aa96_86931491.jpg', 'extension': 'jpg'}, 1381400836: {'path': 'temp/1756967100_626631_1381400836_82fb1cc1c231510a42c1639166bbb07b_76172362.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 = 26526952; (('arc_en_ciel_jrm_live',), ('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 = 26526952 group by h (('08', 33),) 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=26526952 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 (26526952) 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 (26526952) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04092025 26526952 Nombre de photos uploadées : 33 / 23040 (0%) 04092025 26526952 Nombre de photos taguées (types de déchets): 0 / 33 (0%) 04092025 26526952 Nombre de photos taguées (volume) : 0 / 33 (0%) [{'photo_id': 1381400460, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/930e2ed49e1acb26f5759b39b31aa282_91575816.jpg', 'username': None, 'uploaded_at': 1756966632, 'text': 'image_04092025_08_15_14_10135.jpg'}, {'photo_id': 1381400459, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/fe7554fa50bd65726798bb2908a4430b_92891986.jpg', 'username': None, 'uploaded_at': 1756966632, 'text': 'image_04092025_08_16_44_010139m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1381400506, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/f7a6e555d993490e026f4f34bac83f21_9267500.jpg', 'username': None, 'uploaded_at': 1756966693, 'text': 'image_04092025_08_16_54_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1381400505, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/9470def39805fbc91dadf8f0518f2dd1_53645719.jpg', 'username': None, 'uploaded_at': 1756966693, 'text': 'image_04092025_08_17_14_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001382589340209961 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26526952, '2025-09-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-09-04' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2228087,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20366954803466797 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= 2228087 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26511239, 'dashboard_result_id': 14737076, '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_P26511239_04-09-2025_06_14_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26511248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26511249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26511250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26511251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26511252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26511253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26511254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26511255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26511256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26511257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26511258, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26511259, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26512008, 'dashboard_result_id': 14737077, '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_P26512008_04-09-2025_06_15_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512022, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26512746, 'dashboard_result_id': 14737078, '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_P26512746_04-09-2025_06_15_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512760, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26513045, 'dashboard_result_id': 14737079, '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_P26513045_04-09-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26513049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26513050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26513051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26513052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26513053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26513054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26513055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26513056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26513057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26513058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26513059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26513060, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26514289, 'dashboard_result_id': 14737080, '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_P26514289_04-09-2025_06_16_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514301, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26514642, 'dashboard_result_id': 14737081, '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_P26514642_04-09-2025_06_16_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514659, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26515182, 'dashboard_result_id': 14737082, '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_P26515182_04-09-2025_06_17_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515242, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26515774, 'dashboard_result_id': 14737083, '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_P26515774_04-09-2025_06_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515791, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26516310, 'dashboard_result_id': 14737084, '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_P26516310_04-09-2025_06_18_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516320, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516331, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26516863, 'dashboard_result_id': 14737085, '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_P26516863_04-09-2025_06_18_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516880, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26517331, 'dashboard_result_id': 14737086, '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_P26517331_04-09-2025_06_19_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517369, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26517892, 'dashboard_result_id': 14737087, '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_P26517892_04-09-2025_06_19_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517928, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26518418, 'dashboard_result_id': 14737088, '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_P26518418_04-09-2025_06_20_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518452, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26518831, 'dashboard_result_id': 14737089, '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_P26518831_04-09-2025_06_20_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518849, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26519302, 'dashboard_result_id': 14737090, '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_P26519302_04-09-2025_06_20_39.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26519324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26519325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26519326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26519327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26519328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26519329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26519330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26519331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26519332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26519333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26519334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26519335, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26521196, 'dashboard_result_id': 14737091, '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_P26521196_04-09-2025_06_04_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26521395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521397, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521406, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26521198, 'dashboard_result_id': 14737092, '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_P26521198_04-09-2025_06_02_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521269, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26521200, 'dashboard_result_id': 14737093, '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_P26521200_04-09-2025_06_01_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521228, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26521203, 'dashboard_result_id': 14737094, '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_P26521203_04-09-2025_06_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521216, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26521292, 'dashboard_result_id': 14737095, '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_P26521292_04-09-2025_07_01_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521335, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521339, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26523116, 'dashboard_result_id': 14737096, '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_P26523116_04-09-2025_07_01_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523227, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523236, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26523130, 'dashboard_result_id': 14737097, '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_P26523130_04-09-2025_07_00_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523156, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26523144, 'dashboard_result_id': 14737098, '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_P26523144_04-09-2025_07_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523180, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26524019, 'dashboard_result_id': 14737099, '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_P26524019_04-09-2025_07_17_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26524054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26524055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26524056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26524057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26524058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26524059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26524060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26524061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26524062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26524063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26524064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26524065, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26524022, 'dashboard_result_id': 14737100, '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_P26524022_04-09-2025_07_18_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26524157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26524158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26524159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26524160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26524161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26524162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26524163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26524164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26524165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26524166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26524167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26524168, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26526039, 'dashboard_result_id': 14737102, '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_P26526039_04-09-2025_08_01_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526095, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26526041, 'dashboard_result_id': 14737103, '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_P26526041_04-09-2025_08_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526055, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26526889, 'dashboard_result_id': 14737104, '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_P26526889_04-09-2025_08_17_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526912, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2237575, 'mtr_portfolio_id': 26526952, 'dashboard_result_id': 14737105, '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_P26526952_04-09-2025_08_21_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526973, '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 = 26511239 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': 3662799, 'mtr_portfolio_id': 26511239, 'created_at': datetime.datetime(2025, 9, 4, 6, 14, 28), 'result': '0.05235452170997832', 'result_long': None, 'result_double': None}] Qualite : 0.05235452170997832 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26511239 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26511239_04-09-2025_06_14_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26511239 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_P26511239_04-09-2025_06_14_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26511248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26511249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26511250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26511251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26511252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26511253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26511254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26511255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26511256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26511257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26511258, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26511259, 'pht': 3726}}" where mtr_portfolio_id = 26511239 and dashboard_run_id = 2237575 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`=26511239 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737076, 0.05235452170997832, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26511239_04-09-2025_06_14_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26511248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26511249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26511250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26511251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26511252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26511253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26511254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26511255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26511256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26511257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26511258, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26511259, '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 = 26512008 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': 3662800, 'mtr_portfolio_id': 26512008, 'created_at': datetime.datetime(2025, 9, 4, 6, 14, 58), 'result': '0.05836182521425707', 'result_long': None, 'result_double': None}] Qualite : 0.05836182521425707 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26512008 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26512008_04-09-2025_06_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26512008 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_P26512008_04-09-2025_06_15_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512022, 'pht': 3726}}" where mtr_portfolio_id = 26512008 and dashboard_run_id = 2237575 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`=26512008 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737077, 0.05836182521425707, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26512008_04-09-2025_06_15_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512022, '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 = 26512746 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': 3662801, 'mtr_portfolio_id': 26512746, 'created_at': datetime.datetime(2025, 9, 4, 6, 15, 28), 'result': '0.06725556869373282', 'result_long': None, 'result_double': None}] Qualite : 0.06725556869373282 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26512746 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26512746_04-09-2025_06_15_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26512746 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_P26512746_04-09-2025_06_15_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512760, 'pht': 3726}}" where mtr_portfolio_id = 26512746 and dashboard_run_id = 2237575 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`=26512746 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737078, 0.06725556869373282, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26512746_04-09-2025_06_15_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512760, '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 = 26513045 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': 3662802, 'mtr_portfolio_id': 26513045, 'created_at': datetime.datetime(2025, 9, 4, 6, 15, 38), 'result': '0.05307991528254644', 'result_long': None, 'result_double': None}] Qualite : 0.05307991528254644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26513045 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26513045_04-09-2025_06_15_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26513045 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_P26513045_04-09-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26513049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26513050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26513051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26513052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26513053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26513054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26513055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26513056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26513057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26513058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26513059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26513060, 'pht': 3726}}" where mtr_portfolio_id = 26513045 and dashboard_run_id = 2237575 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`=26513045 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737079, 0.05307991528254644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26513045_04-09-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26513049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26513050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26513051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26513052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26513053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26513054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26513055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26513056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26513057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26513058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26513059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26513060, '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 = 26514289 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': 3662803, 'mtr_portfolio_id': 26514289, 'created_at': datetime.datetime(2025, 9, 4, 6, 15, 58), 'result': '0.05834739802176517', 'result_long': None, 'result_double': None}] Qualite : 0.05834739802176517 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26514289 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26514289_04-09-2025_06_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26514289 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_P26514289_04-09-2025_06_16_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514301, 'pht': 3726}}" where mtr_portfolio_id = 26514289 and dashboard_run_id = 2237575 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`=26514289 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737080, 0.05834739802176517, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26514289_04-09-2025_06_16_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514301, '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 = 26514642 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': 3662804, 'mtr_portfolio_id': 26514642, 'created_at': datetime.datetime(2025, 9, 4, 6, 16, 29), 'result': '0.06985876329804716', 'result_long': None, 'result_double': None}] Qualite : 0.06985876329804716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26514642 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26514642_04-09-2025_06_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26514642 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_P26514642_04-09-2025_06_16_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514659, 'pht': 3726}}" where mtr_portfolio_id = 26514642 and dashboard_run_id = 2237575 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`=26514642 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737081, 0.06985876329804716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26514642_04-09-2025_06_16_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514659, '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 = 26515182 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': 3662805, 'mtr_portfolio_id': 26515182, 'created_at': datetime.datetime(2025, 9, 4, 6, 16, 59), 'result': '0.08199694817227696', 'result_long': None, 'result_double': None}] Qualite : 0.08199694817227696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26515182 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26515182_04-09-2025_06_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26515182 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_P26515182_04-09-2025_06_17_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515242, 'pht': 3726}}" where mtr_portfolio_id = 26515182 and dashboard_run_id = 2237575 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`=26515182 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737082, 0.08199694817227696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26515182_04-09-2025_06_17_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515242, '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 = 26515774 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': 3662806, 'mtr_portfolio_id': 26515774, 'created_at': datetime.datetime(2025, 9, 4, 6, 17, 28), 'result': '0.04594157915341626', 'result_long': None, 'result_double': None}] Qualite : 0.04594157915341626 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26515774 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26515774_04-09-2025_06_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26515774 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_P26515774_04-09-2025_06_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515791, 'pht': 3726}}" where mtr_portfolio_id = 26515774 and dashboard_run_id = 2237575 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`=26515774 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737083, 0.04594157915341626, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26515774_04-09-2025_06_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515791, '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 = 26516310 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': 3662807, 'mtr_portfolio_id': 26516310, 'created_at': datetime.datetime(2025, 9, 4, 6, 17, 59), 'result': '0.06671172116199682', 'result_long': None, 'result_double': None}] Qualite : 0.06671172116199682 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26516310 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26516310_04-09-2025_06_18_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26516310 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_P26516310_04-09-2025_06_18_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516320, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516331, 'pht': 3726}}" where mtr_portfolio_id = 26516310 and dashboard_run_id = 2237575 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`=26516310 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737084, 0.06671172116199682, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26516310_04-09-2025_06_18_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516320, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516331, '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 = 26516863 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': 3662808, 'mtr_portfolio_id': 26516863, 'created_at': datetime.datetime(2025, 9, 4, 6, 18, 29), 'result': '0.06624665214224501', 'result_long': None, 'result_double': None}] Qualite : 0.06624665214224501 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26516863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26516863_04-09-2025_06_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26516863 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_P26516863_04-09-2025_06_18_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516880, 'pht': 3726}}" where mtr_portfolio_id = 26516863 and dashboard_run_id = 2237575 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`=26516863 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737085, 0.06624665214224501, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26516863_04-09-2025_06_18_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516880, '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 = 26517331 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': 3662809, 'mtr_portfolio_id': 26517331, 'created_at': datetime.datetime(2025, 9, 4, 6, 19), 'result': '0.05536328619484043', 'result_long': None, 'result_double': None}] Qualite : 0.05536328619484043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26517331 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26517331_04-09-2025_06_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26517331 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_P26517331_04-09-2025_06_19_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517369, 'pht': 3726}}" where mtr_portfolio_id = 26517331 and dashboard_run_id = 2237575 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`=26517331 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737086, 0.05536328619484043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26517331_04-09-2025_06_19_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517369, '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 = 26517892 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': 3662810, 'mtr_portfolio_id': 26517892, 'created_at': datetime.datetime(2025, 9, 4, 6, 19, 27), 'result': '0.04303722426482572', 'result_long': None, 'result_double': None}] Qualite : 0.04303722426482572 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26517892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26517892_04-09-2025_06_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26517892 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_P26517892_04-09-2025_06_19_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517928, 'pht': 3726}}" where mtr_portfolio_id = 26517892 and dashboard_run_id = 2237575 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`=26517892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737087, 0.04303722426482572, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26517892_04-09-2025_06_19_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517928, '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 = 26518418 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': 3662811, 'mtr_portfolio_id': 26518418, 'created_at': datetime.datetime(2025, 9, 4, 6, 19, 59), 'result': '0.058210659713508646', 'result_long': None, 'result_double': None}] Qualite : 0.058210659713508646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26518418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26518418_04-09-2025_06_20_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26518418 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_P26518418_04-09-2025_06_20_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518452, 'pht': 3726}}" where mtr_portfolio_id = 26518418 and dashboard_run_id = 2237575 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`=26518418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737088, 0.058210659713508646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26518418_04-09-2025_06_20_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518452, '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 = 26518831 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': 3662812, 'mtr_portfolio_id': 26518831, 'created_at': datetime.datetime(2025, 9, 4, 6, 20, 30), 'result': '0.05648689825518858', 'result_long': None, 'result_double': None}] Qualite : 0.05648689825518858 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26518831 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26518831_04-09-2025_06_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26518831 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_P26518831_04-09-2025_06_20_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518849, 'pht': 3726}}" where mtr_portfolio_id = 26518831 and dashboard_run_id = 2237575 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`=26518831 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737089, 0.05648689825518858, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26518831_04-09-2025_06_20_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518849, '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 = 26519302 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': 3662813, 'mtr_portfolio_id': 26519302, 'created_at': datetime.datetime(2025, 9, 4, 6, 20, 37), 'result': '0.04651536629923985', 'result_long': None, 'result_double': None}] Qualite : 0.04651536629923985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26519302 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26519302_04-09-2025_06_20_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26519302 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_P26519302_04-09-2025_06_20_39.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26519324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26519325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26519326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26519327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26519328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26519329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26519330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26519331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26519332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26519333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26519334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26519335, 'pht': 3726}}" where mtr_portfolio_id = 26519302 and dashboard_run_id = 2237575 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`=26519302 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737090, 0.04651536629923985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26519302_04-09-2025_06_20_39.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26519324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26519325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26519326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26519327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26519328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26519329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26519330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26519331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26519332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26519333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26519334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26519335, '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 = 26521196 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': 3662920, 'mtr_portfolio_id': 26521196, 'created_at': datetime.datetime(2025, 9, 4, 6, 4), 'result': '0.03975237627567749', 'result_long': None, 'result_double': None}] Qualite : 0.03975237627567749 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26521196 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521196_04-09-2025_06_04_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26521196 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_P26521196_04-09-2025_06_04_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26521395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521397, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521406, 'pht': 3726}}" where mtr_portfolio_id = 26521196 and dashboard_run_id = 2237575 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`=26521196 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737091, 0.03975237627567749, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521196_04-09-2025_06_04_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26521395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521397, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521406, '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 = 26521198 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': 3662921, 'mtr_portfolio_id': 26521198, 'created_at': datetime.datetime(2025, 9, 4, 6, 1, 58), 'result': '0.08810981605952489', 'result_long': None, 'result_double': None}] Qualite : 0.08810981605952489 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26521198 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521198_04-09-2025_06_02_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26521198 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_P26521198_04-09-2025_06_02_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521269, 'pht': 3726}}" where mtr_portfolio_id = 26521198 and dashboard_run_id = 2237575 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`=26521198 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737092, 0.08810981605952489, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521198_04-09-2025_06_02_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521269, '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 = 26521200 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': 3662922, 'mtr_portfolio_id': 26521200, 'created_at': datetime.datetime(2025, 9, 4, 6, 1, 30), 'result': '0.05914308535975234', 'result_long': None, 'result_double': None}] Qualite : 0.05914308535975234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26521200 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521200_04-09-2025_06_01_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26521200 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_P26521200_04-09-2025_06_01_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521228, 'pht': 3726}}" where mtr_portfolio_id = 26521200 and dashboard_run_id = 2237575 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`=26521200 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737093, 0.05914308535975234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521200_04-09-2025_06_01_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521228, '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 = 26521203 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': 3662923, 'mtr_portfolio_id': 26521203, 'created_at': datetime.datetime(2025, 9, 4, 6, 3), 'result': '0.07337767426580319', 'result_long': None, 'result_double': None}] Qualite : 0.07337767426580319 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26521203 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521203_04-09-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26521203 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_P26521203_04-09-2025_06_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521216, 'pht': 3726}}" where mtr_portfolio_id = 26521203 and dashboard_run_id = 2237575 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`=26521203 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737094, 0.07337767426580319, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521203_04-09-2025_06_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521216, '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 = 26521292 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': 3662934, 'mtr_portfolio_id': 26521292, 'created_at': datetime.datetime(2025, 9, 4, 7, 1), 'result': '0.06731247452286676', 'result_long': None, 'result_double': None}] Qualite : 0.06731247452286676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26521292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521292_04-09-2025_07_01_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26521292 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_P26521292_04-09-2025_07_01_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521335, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521339, 'pht': 3726}}" where mtr_portfolio_id = 26521292 and dashboard_run_id = 2237575 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`=26521292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737095, 0.06731247452286676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521292_04-09-2025_07_01_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521335, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521339, '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 = 26523116 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': 3663280, 'mtr_portfolio_id': 26523116, 'created_at': datetime.datetime(2025, 9, 4, 7, 1, 33), 'result': '0.053622880557909126', 'result_long': None, 'result_double': None}] Qualite : 0.053622880557909126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26523116 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26523116_04-09-2025_07_01_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26523116 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_P26523116_04-09-2025_07_01_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523227, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523236, 'pht': 3726}}" where mtr_portfolio_id = 26523116 and dashboard_run_id = 2237575 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`=26523116 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737096, 0.053622880557909126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26523116_04-09-2025_07_01_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523227, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523236, '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 = 26523130 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': 3663281, 'mtr_portfolio_id': 26523130, 'created_at': datetime.datetime(2025, 9, 4, 7, 0), 'result': '0.048149229687541505', 'result_long': None, 'result_double': None}] Qualite : 0.048149229687541505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26523130 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26523130_04-09-2025_07_00_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26523130 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_P26523130_04-09-2025_07_00_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523156, 'pht': 3726}}" where mtr_portfolio_id = 26523130 and dashboard_run_id = 2237575 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`=26523130 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737097, 0.048149229687541505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26523130_04-09-2025_07_00_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523156, '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 = 26523144 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': 3663282, 'mtr_portfolio_id': 26523144, 'created_at': datetime.datetime(2025, 9, 4, 7, 16, 57), 'result': '0.04953402944280438', 'result_long': None, 'result_double': None}] Qualite : 0.04953402944280438 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26523144 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26523144_04-09-2025_07_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26523144 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_P26523144_04-09-2025_07_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523180, 'pht': 3726}}" where mtr_portfolio_id = 26523144 and dashboard_run_id = 2237575 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`=26523144 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737098, 0.04953402944280438, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26523144_04-09-2025_07_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523180, '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 = 26524019 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': 3663410, 'mtr_portfolio_id': 26524019, 'created_at': datetime.datetime(2025, 9, 4, 7, 17, 32), 'result': '0.04357979625475857', 'result_long': None, 'result_double': None}] Qualite : 0.04357979625475857 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26524019 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26524019_04-09-2025_07_17_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26524019 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_P26524019_04-09-2025_07_17_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26524054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26524055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26524056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26524057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26524058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26524059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26524060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26524061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26524062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26524063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26524064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26524065, 'pht': 3726}}" where mtr_portfolio_id = 26524019 and dashboard_run_id = 2237575 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`=26524019 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737099, 0.04357979625475857, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26524019_04-09-2025_07_17_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26524054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26524055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26524056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26524057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26524058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26524059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26524060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26524061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26524062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26524063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26524064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26524065, '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 = 26524022 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': 3663411, 'mtr_portfolio_id': 26524022, 'created_at': datetime.datetime(2025, 9, 4, 8, 0, 29), 'result': '0.05854257460013273', 'result_long': None, 'result_double': None}] Qualite : 0.05854257460013273 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26524022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26524022_04-09-2025_08_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26524022 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_P26524022_04-09-2025_08_00_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26524157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26524158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26524159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26524160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26524161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26524162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26524163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26524164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26524165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26524166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26524167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26524168, 'pht': 3726}}" where mtr_portfolio_id = 26524022 and dashboard_run_id = 2237575 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`=26524022 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737100, 0.05854257460013273, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26524022_04-09-2025_08_00_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26524157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26524158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26524159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26524160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26524161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26524162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26524163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26524164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26524165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26524166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26524167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26524168, '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 = 26526039 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': 3663642, 'mtr_portfolio_id': 26526039, 'created_at': datetime.datetime(2025, 9, 4, 8, 0, 58), 'result': '0.07393756064831652', 'result_long': None, 'result_double': None}] Qualite : 0.07393756064831652 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26526039 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526039_04-09-2025_08_01_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26526039 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_P26526039_04-09-2025_08_01_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526095, 'pht': 3726}}" where mtr_portfolio_id = 26526039 and dashboard_run_id = 2237575 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`=26526039 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737102, 0.07393756064831652, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526039_04-09-2025_08_01_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526095, '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 = 26526041 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': 3663643, 'mtr_portfolio_id': 26526041, 'created_at': datetime.datetime(2025, 9, 4, 8, 16, 58), 'result': '0.058204342503370886', 'result_long': None, 'result_double': None}] Qualite : 0.058204342503370886 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26526041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526041_04-09-2025_08_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26526041 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_P26526041_04-09-2025_08_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526055, 'pht': 3726}}" where mtr_portfolio_id = 26526041 and dashboard_run_id = 2237573 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`=26526041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737103, 0.058204342503370886, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526041_04-09-2025_08_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526055, '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 = 26526889 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': 3663742, 'mtr_portfolio_id': 26526889, 'created_at': datetime.datetime(2025, 9, 4, 8, 17, 36), 'result': '0.06085608171986234', 'result_long': None, 'result_double': None}] Qualite : 0.06085608171986234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26526889 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526889_04-09-2025_08_17_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26526889 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_P26526889_04-09-2025_08_17_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526912, 'pht': 3726}}" where mtr_portfolio_id = 26526889 and dashboard_run_id = 2237573 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`=26526889 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737104, 0.06085608171986234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526889_04-09-2025_08_17_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526912, '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 = 26526952 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': 3663758, 'mtr_portfolio_id': 26526952, 'created_at': datetime.datetime(2025, 9, 4, 8, 25), 'result': '0.03250358345591564', 'result_long': None, 'result_double': None}] Qualite : 0.03250358345591564 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26526952 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526952_04-09-2025_08_25_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26526952 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_P26526952_04-09-2025_08_25_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526973, 'pht': 3726}}" where mtr_portfolio_id = 26526952 and dashboard_run_id = 2237573 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`=26526952 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14737105, 0.03250358345591564, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526952_04-09-2025_08_25_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526973, '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 (26511239,26512008,26512746,26513045,26514289,26514642,26515182,26515774,26516310,26516863,26517331,26517892,26518418,26518831,26519302,26521196,26521198,26521200,26521203,26521292,26523116,26523130,26523144,26524019,26524022,26526039,26526041,26526889,26526952) result : ((1381310396,), (1381310399,), (1381311379,), (1381311381,), (1381311384,), (1381312220,), (1381312223,), (1381312226,), (1381312229,), (1381312232,), (1381312235,), (1381313264,), (1381313267,), (1381313270,), (1381313273,), (1381313276,), (1381313862,), (1381313864,), (1381313866,), (1381313868,), (1381314117,), (1381314118,), (1381314119,), (1381314120,), (1381314122,), (1381314348,), (1381314350,), (1381314353,), (1381314355,), (1381314357,), (1381314752,), (1381314827,), (1381314829,), (1381314831,), (1381314833,), (1381314835,), (1381315040,), (1381315041,), (1381315042,), (1381315043,), (1381315098,), (1381315099,), (1381315100,), (1381315102,), (1381315103,), (1381315104,), (1381315270,), (1381315271,), (1381315272,), (1381315273,), (1381315274,), (1381315580,), (1381315581,), (1381315583,), (1381315584,), (1381315585,), (1381315586,), (1381315682,), (1381315683,), (1381315684,), (1381315685,), (1381315729,), (1381315730,), (1381315731,), (1381315732,), (1381315826,), (1381315828,), (1381315830,), (1381315832,), (1381316466,), (1381316707,), (1381316463,), (1381316465,), (1381316658,), (1381316659,), (1381316661,), (1381316663,), (1381316665,), (1381316667,), (1381316706,), (1381316821,), (1381316823,), (1381316825,), (1381316827,), (1381316829,), (1381316831,), (1381317023,), (1381317025,), (1381317027,), (1381317796,), (1381317801,), (1381317806,), (1381319184,), (1381319187,), (1381319191,), (1381319195,), (1381319199,), (1381319652,), (1381319654,), (1381319656,), (1381319658,), (1381319660,), (1381319662,), (1381320119,), (1381320121,), (1381320123,), (1381320125,), (1381321423,), (1381321431,), (1381321439,), (1381321449,), (1381321456,), (1381322593,), (1381322596,), (1381322598,), (1381322600,), (1381322602,), (1381322604,), (1381323215,), (1381323216,), (1381323217,), (1381323218,), (1381323940,), (1381323941,), (1381323942,), (1381323943,), (1381324018,), (1381324019,), (1381324020,), (1381324021,), (1381324023,), (1381324200,), (1381324202,), (1381324204,), (1381324206,), (1381324610,), (1381324611,), (1381324613,), (1381324616,), (1381324878,), (1381324875,), (1381324876,), (1381324877,), (1381325084,), (1381325086,), (1381325088,), (1381325089,), (1381325320,), (1381325321,), (1381325322,), (1381325323,), (1381325324,), (1381325325,), (1381325518,), (1381325521,), (1381325523,), (1381325525,), (1381325907,), (1381325909,), (1381325911,), (1381325913,), (1381326296,), (1381326298,), (1381326300,), (1381326302,), (1381326585,), (1381329291,), (1381329294,), (1381329706,), (1381329708,), (1381329710,), (1381329712,), (1381329714,), (1381329716,), (1381330124,), (1381330127,), (1381330130,), (1381330133,), (1381330847,), (1381330853,), (1381330858,), (1381331946,), (1381331949,), (1381331952,), (1381331955,), (1381332414,), (1381332404,), (1381332406,), (1381332408,), (1381332410,), (1381332412,), (1381333367,), (1381333370,), (1381333373,), (1381333376,), (1381333379,), (1381333941,), (1381333943,), (1381333945,), (1381333947,), (1381333949,), (1381334631,), (1381334634,), (1381334637,), (1381335104,), (1381335106,), (1381335108,), (1381335110,), (1381335807,), (1381335809,), (1381335811,), (1381335814,), (1381335816,), (1381336258,), (1381336259,), (1381336260,), (1381336261,), (1381336262,), (1381336263,), (1381336801,), (1381336803,), (1381336805,), (1381336966,), (1381336967,), (1381336968,), (1381336969,), (1381336970,), (1381336971,), (1381337452,), (1381337455,), (1381337458,), (1381337461,), (1381337464,), (1381337467,), (1381337643,), (1381337644,), (1381337645,), (1381337646,), (1381337647,), (1381337686,), (1381337687,), (1381337688,), (1381337735,), (1381345142,), (1381345189,), (1381345190,), (1381345259,), (1381345260,), (1381345262,), (1381345263,), (1381345302,), (1381345304,), (1381345305,), (1381345347,), (1381345348,), (1381345349,), (1381345394,), (1381345395,), (1381345396,), (1381345397,), (1381345398,), (1381345399,), (1381345436,), (1381345437,), (1381345438,), (1381345439,), (1381345440,), (1381345486,), (1381345487,), (1381345488,), (1381345490,), (1381345528,), (1381345529,), (1381345530,), (1381345531,), (1381345577,), (1381345585,), (1381345586,), (1381345587,), (1381345589,), (1381345633,), (1381345634,), (1381345635,), (1381345636,), (1381345637,), (1381345638,), (1381345679,), (1381345680,), (1381345681,), (1381345682,), (1381345717,), (1381345718,), (1381345719,), (1381345915,), (1381345919,), (1381345923,), (1381345927,), (1381345930,), (1381345999,), (1381346000,), (1381346001,), (1381346002,), (1381346003,), (1381346049,), (1381346044,), (1381346045,), (1381346046,), (1381346048,), (1381346114,), (1381346115,), (1381346116,), (1381346117,), (1381346182,), (1381346183,), (1381346232,), (1381346254,), (1381346255,), (1381346256,), (1381346258,), (1381346318,), (1381346319,), (1381346320,), (1381346321,), (1381346322,), (1381346323,), (1381346370,), (1381346371,), (1381346372,), (1381346428,), (1381346430,), (1381346431,), (1381346432,), (1381346433,), (1381346500,), (1381346501,), (1381346502,), (1381346503,), (1381346504,), (1381346558,), (1381346559,), (1381346560,), (1381346561,), (1381346562,), (1381346598,), (1381346599,), (1381346600,), (1381346601,), (1381346602,), (1381346641,), (1381346642,), (1381346679,), (1381346680,), (1381346681,), (1381346682,), (1381346683,), (1381346735,), (1381346736,), (1381346737,), (1381346738,), (1381346739,), (1381346740,), (1381346942,), (1381346944,), (1381346946,), (1381346948,), (1381347376,), (1381347369,), (1381347370,), (1381347372,), (1381347374,), (1381347700,), (1381347702,), (1381347703,), (1381347704,), (1381347879,), (1381347880,), (1381347881,), (1381347882,), (1381347883,), (1381347884,), (1381347952,), (1381347953,), (1381347954,), (1381347955,), (1381347956,), (1381347994,), (1381347995,), (1381347996,), (1381347997,), (1381347998,), (1381347999,), (1381348046,), (1381348047,), (1381348048,), (1381348049,), (1381348518,), (1381348521,), (1381348524,), (1381349221,), (1381349223,), (1381349739,), (1381349741,), (1381349743,), (1381349745,), (1381349747,), (1381349959,), (1381350079,), (1381350357,), (1381350359,), (1381350361,), (1381350363,), (1381350365,), (1381350776,), (1381350778,), (1381350780,), (1381350782,), (1381350784,), (1381351159,), (1381351160,), (1381351161,), (1381351162,), (1381351210,), (1381351212,), (1381351214,), (1381351216,), (1381351218,), (1381351506,), (1381351498,), (1381351500,), (1381351502,), (1381351504,), (1381351621,), (1381351622,), (1381351624,), (1381351626,), (1381351629,), (1381351703,), (1381351704,), (1381351743,), (1381351744,), (1381351745,), (1381351746,), (1381351783,), (1381351784,), (1381351785,), (1381351786,), (1381351787,), (1381351830,), (1381351831,), (1381351832,), (1381351833,), (1381351889,), (1381351890,), (1381351891,), (1381351892,), (1381351929,), (1381351930,), (1381351931,), (1381351932,), (1381352023,), (1381352025,), (1381352027,), (1381352029,), (1381352031,), (1381352409,), (1381352411,), (1381352413,), (1381352728,), (1381352731,), (1381352734,), (1381352737,), (1381352740,), (1381352743,), (1381353097,), (1381353099,), (1381353101,), (1381353103,), (1381353105,), (1381353107,), (1381353494,), (1381353496,), (1381353498,), (1381353500,), (1381353811,), (1381353813,), (1381353814,), (1381353815,), (1381353816,), (1381353879,), (1381353880,), (1381353881,), (1381353882,), (1381353883,), (1381353931,), (1381353928,), (1381353929,), (1381353930,), (1381354265,), (1381354267,), (1381354269,), (1381354271,), (1381354670,), (1381354671,), (1381354672,), (1381354673,), (1381354853,), (1381354855,), (1381354857,), (1381354859,), (1381354861,), (1381354863,), (1381354941,), (1381354942,), (1381354943,), (1381354945,), (1381354946,), (1381355150,), (1381355152,), (1381355154,), (1381355156,), (1381355455,), (1381355456,), (1381355457,), (1381355458,), (1381355541,), (1381355542,), (1381355543,), (1381355544,), (1381355580,), (1381355581,), (1381355582,), (1381355626,), (1381355627,), (1381355629,), (1381355630,), (1381355631,), (1381355632,), (1381355666,), (1381355667,), (1381355668,), (1381355712,), (1381355713,), (1381355714,), (1381355751,), (1381355752,), (1381355753,), (1381355754,), (1381355802,), (1381355803,), (1381355804,), (1381355805,), (1381355806,), (1381355898,), (1381355899,), (1381355901,), (1381355943,), (1381355942,), (1381355987,), (1381355988,), (1381355989,), (1381356042,), (1381356043,), (1381356044,), (1381356045,), (1381356085,), (1381356086,), (1381356087,), (1381356088,), (1381356126,), (1381356127,), (1381356128,), (1381356129,), (1381356130,), (1381356220,), (1381356221,), (1381356278,), (1381356279,), (1381356280,), (1381356281,), (1381356282,), (1381356343,), (1381356344,), (1381356345,), (1381356346,), (1381356779,), (1381356781,), (1381356783,), (1381356785,), (1381356787,), (1381357239,), (1381357241,), (1381357243,), (1381357649,), (1381357651,), (1381357653,), (1381357655,), (1381358020,), (1381358021,), (1381358022,), (1381358023,), (1381358106,), (1381358107,), (1381358108,), (1381358579,), (1381358583,), (1381358587,), (1381358771,), (1381358775,), (1381358779,), (1381359839,), (1381359823,), (1381359827,), (1381359831,), (1381359835,), (1381361021,), (1381361026,), (1381361031,), (1381361719,), (1381361721,), (1381361723,), (1381362620,), (1381362623,), (1381362872,), (1381362873,), (1381362874,), (1381362917,), (1381362918,), (1381362919,), (1381362966,), (1381362967,), (1381363007,), (1381363008,), (1381363009,), (1381363010,), (1381363184,), (1381363186,), (1381363188,), (1381363190,), (1381363192,), (1381363576,), (1381363579,), (1381363581,), (1381363584,), (1381363976,), (1381363978,), (1381363980,), (1381363982,), (1381363984,), (1381364376,), (1381364378,), (1381364380,), (1381364382,), (1381364384,), (1381364386,), (1381364753,), (1381364754,), (1381364755,), (1381364805,), (1381364806,), (1381364807,), (1381364808,), (1381364845,), (1381364846,), (1381364847,), (1381364849,), (1381364850,), (1381365244,), (1381365237,), (1381365240,), (1381365242,), (1381365612,), (1381365614,), (1381365616,), (1381365784,), (1381365786,), (1381365788,), (1381365790,), (1381365964,), (1381365966,), (1381365968,), (1381365970,), (1381366429,), (1381366432,), (1381366435,), (1381366438,), (1381366842,), (1381366843,), (1381366844,), (1381366845,), (1381366846,), (1381366847,), (1381367136,), (1381367318,), (1381367400,), (1381367438,), (1381367439,), (1381367440,), (1381367525,), (1381367526,), (1381367527,), (1381367567,), (1381367568,), (1381367569,), (1381367570,), (1381367613,), (1381367614,), (1381367615,), (1381367616,), (1381367617,), (1381367658,), (1381367655,), (1381367656,), (1381367657,), (1381367701,), (1381367702,), (1381367703,), (1381367704,), (1381367705,), (1381367955,), (1381367956,), (1381367957,), (1381368174,), (1381368176,), (1381368177,), (1381368178,), (1381368179,), (1381368219,), (1381368220,), (1381368221,), (1381368222,), (1381368270,), (1381368271,), (1381368272,), (1381368273,), (1381368310,), (1381368311,), (1381368312,), (1381368314,), (1381368315,), (1381368393,), (1381368394,), (1381368395,), (1381368430,), (1381368431,), (1381368432,), (1381368434,), (1381368435,), (1381368479,), (1381368551,), (1381368552,), (1381368553,), (1381368583,), (1381368585,), (1381368586,), (1381368587,), (1381368639,), (1381368640,), (1381368641,), (1381368642,), (1381368682,), (1381368683,), (1381368729,), (1381368725,), (1381368726,), (1381368728,), (1381368861,), (1381368862,), (1381368863,), (1381368864,), (1381368865,), (1381368989,), (1381368990,), (1381368991,), (1381368992,), (1381368993,), (1381369029,), (1381369030,), (1381369031,), (1381369032,), (1381369074,), (1381369075,), (1381369076,), (1381369123,), (1381369124,), (1381369125,), (1381369126,), (1381369127,), (1381369170,), (1381369171,), (1381369172,), (1381369173,), (1381369174,), (1381369229,), (1381369230,), (1381369231,), (1381369232,), (1381369233,), (1381369273,), (1381369274,), (1381369275,), (1381369277,), (1381369310,), (1381369311,), (1381369312,), (1381369353,), (1381369354,), (1381369355,), (1381369388,), (1381369389,), (1381369390,), (1381369391,), (1381369392,), (1381369393,), (1381369751,), (1381369753,), (1381369755,), (1381370225,), (1381370229,), (1381370232,), (1381370921,), (1381370917,), (1381370919,), (1381371354,), (1381371356,), (1381371358,), (1381371360,), (1381371713,), (1381371715,), (1381371717,), (1381371719,), (1381371870,), (1381371871,), (1381371983,), (1381371984,), (1381371985,), (1381371986,), (1381372038,), (1381372078,), (1381372079,), (1381372080,), (1381372081,), (1381372124,), (1381372125,), (1381372126,), (1381372127,), (1381372173,), (1381372174,), (1381372175,), (1381377097,), (1381377745,), (1381377747,), (1381378419,), (1381378420,), (1381378421,), (1381378463,), (1381378464,), (1381378465,), (1381378506,), (1381378507,), (1381378554,), (1381378555,), (1381378627,), (1381378628,), (1381378629,), (1381378630,), (1381378631,), (1381378673,), (1381378674,), (1381378723,), (1381378724,), (1381378725,), (1381378726,), (1381378727,), (1381378775,), (1381378771,), (1381378772,), (1381378773,), (1381378774,), (1381378822,), (1381378823,), (1381378824,), (1381378825,), (1381378826,), (1381378909,), (1381378910,), (1381378911,), (1381378912,), (1381378953,), (1381378954,), (1381378955,), (1381378956,), (1381379022,), (1381379023,), (1381379024,), (1381379025,), (1381379026,), (1381379027,), (1381379077,), (1381379078,), (1381379079,), (1381379080,), (1381379081,), (1381379082,), (1381379164,), (1381379165,), (1381379166,), (1381379207,), (1381379208,), (1381379209,), (1381379210,), (1381379211,), (1381379212,), (1381379324,), (1381379325,), (1381379326,), (1381379327,), (1381379328,), (1381379380,), (1381379381,), (1381379382,), (1381379383,), (1381379453,), (1381379454,), (1381379455,), (1381379456,), (1381379457,), (1381379530,), (1381379531,), (1381379532,), (1381379533,), (1381379624,), (1381379625,), (1381379626,), (1381379627,), (1381379628,), (1381379629,), (1381379669,), (1381379670,), (1381379671,), (1381379672,), (1381379673,), (1381379674,), (1381379738,), (1381379739,), (1381379740,), (1381379741,), (1381379793,), (1381379788,), (1381379789,), (1381379790,), (1381379791,), (1381379792,), (1381379852,), (1381379853,), (1381379854,), (1381379855,), (1381379856,), (1381379857,), (1381379945,), (1381379946,), (1381379947,), (1381379948,), (1381379949,), (1381379995,), (1381379996,), (1381379997,), (1381379998,), (1381379999,), (1381380000,), (1381380037,), (1381380039,), (1381380219,), (1381380590,), (1381380586,), (1381380587,), (1381380588,), (1381380589,), (1381380682,), (1381380683,), (1381380684,), (1381380685,), (1381380686,), (1381380726,), (1381380727,), (1381380728,), (1381380729,), (1381380786,), (1381380787,), (1381380788,), (1381380789,), (1381380836,), (1381380837,), (1381380838,), (1381380839,), (1381380840,), (1381380841,), (1381380881,), (1381380882,), (1381380887,), (1381380889,), (1381380935,), (1381380936,), (1381380981,), (1381380982,), (1381380983,), (1381381013,), (1381381014,), (1381381015,), (1381381016,), (1381381017,), (1381381018,), (1381381057,), (1381381058,), (1381381059,), (1381381060,), (1381381061,), (1381381075,), (1381381076,), (1381381077,), (1381381078,), (1381381079,), (1381381080,), (1381381152,), (1381381153,), (1381381154,), (1381381155,), (1381381759,), (1381381762,), (1381381766,), (1381381769,), (1381381875,), (1381381878,), (1381381881,), (1381381885,), (1381381888,), (1381382490,), (1381382481,), (1381382483,), (1381382486,), (1381382488,), (1381383011,), (1381383013,), (1381383015,), (1381383017,), (1381383019,), (1381383021,), (1381383556,), (1381383559,), (1381383562,), (1381383565,), (1381383568,), (1381384064,), (1381384066,), (1381384068,), (1381384070,), (1381384290,), (1381384291,), (1381384292,), (1381384293,), (1381384294,), (1381384295,), (1381384497,), (1381384499,), (1381384501,), (1381384503,), (1381384505,), (1381384764,), (1381384765,), (1381384766,), (1381384767,), (1381384768,), (1381384769,), (1381384823,), (1381384825,), (1381384826,), (1381384827,), (1381384881,), (1381384882,), (1381384884,), (1381384885,), (1381384886,), (1381384887,), (1381384929,), (1381384930,), (1381384931,), (1381384932,), (1381384933,), (1381384965,), (1381384966,), (1381384967,), (1381384968,), (1381385023,), (1381385024,), (1381385025,), (1381385026,), (1381385059,), (1381385060,), (1381385061,), (1381385062,), (1381385063,), (1381385096,), (1381385097,), (1381385098,), (1381385099,), (1381385134,), (1381385135,), (1381385159,), (1381385156,), (1381385157,), (1381385158,), (1381385198,), (1381385199,), (1381385200,), (1381385201,), (1381385241,), (1381385242,), (1381385243,), (1381385244,), (1381385245,), (1381385284,), (1381385285,), (1381385286,), (1381385287,), (1381385288,), (1381385344,), (1381385345,), (1381385378,), (1381385379,), (1381385380,), (1381385428,), (1381385429,), (1381385430,), (1381385431,), (1381385432,), (1381385433,), (1381385468,), (1381385469,), (1381385470,), (1381385471,), (1381385472,), (1381385519,), (1381385520,), (1381385521,), (1381385522,), (1381385560,), (1381385561,), (1381385609,), (1381385611,), (1381385613,), (1381385614,), (1381385615,), (1381385655,), (1381385656,), (1381385723,), (1381385724,), (1381385725,), (1381385726,), (1381385765,), (1381385766,), (1381385827,), (1381385828,), (1381385830,), (1381385831,), (1381385881,), (1381385879,), (1381385880,), (1381385952,), (1381385955,), (1381385956,), (1381385957,), (1381386019,), (1381386020,), (1381386021,), (1381386022,), (1381386023,), (1381386063,), (1381386064,), (1381386236,), (1381386237,), (1381386238,), (1381386273,), (1381386274,), (1381386275,), (1381386276,), (1381386277,), (1381386278,), (1381386330,), (1381386331,), (1381386332,), (1381386333,), (1381386334,), (1381386335,), (1381386379,), (1381386380,), (1381386381,), (1381386382,), (1381386436,), (1381386437,), (1381386438,), (1381386439,), (1381386440,), (1381386441,), (1381386475,), (1381386476,), (1381386477,), (1381386478,), (1381386479,), (1381386480,), (1381386530,), (1381386531,), (1381386532,), (1381386570,), (1381386571,), (1381386572,), (1381386573,), (1381386574,), (1381386575,), (1381386626,), (1381386622,), (1381386623,), (1381386624,), (1381386625,), (1381386662,), (1381386663,), (1381386664,), (1381386665,), (1381386754,), (1381386756,), (1381386758,), (1381386759,), (1381386793,), (1381386794,), (1381386795,), (1381386796,), (1381386854,), (1381386855,), (1381386856,), (1381386857,), (1381386858,), (1381386859,), (1381386892,), (1381386893,), (1381386894,), (1381386895,), (1381386941,), (1381386942,), (1381386943,), (1381386944,), (1381386977,), (1381386978,), (1381386979,), (1381386980,), (1381386981,), (1381386982,), (1381387022,), (1381387023,), (1381387024,), (1381387025,), (1381387026,), (1381387027,), (1381387064,), (1381387065,), (1381387066,), (1381387067,), (1381387106,), (1381387107,), (1381387108,), (1381387109,), (1381387111,), (1381387146,), (1381387148,), (1381387149,), (1381387228,), (1381387229,), (1381387230,), (1381387231,), (1381387232,), (1381388256,), (1381388259,), (1381388262,), (1381388265,), (1381388268,), (1381388347,), (1381388348,), (1381388350,), (1381388352,), (1381388853,), (1381388844,), (1381388849,), (1381389552,), (1381389554,), (1381389556,), (1381389558,), (1381389560,), (1381389563,), (1381390016,), (1381390018,), (1381390020,), (1381390022,), (1381390024,), (1381390026,), (1381390179,), (1381390180,), (1381390436,), (1381390437,), (1381390438,), (1381390439,), (1381390440,), (1381390441,), (1381390500,), (1381390501,), (1381390502,), (1381390503,), (1381390570,), (1381390571,), (1381390572,), (1381390573,), (1381390653,), (1381390654,), (1381390655,), (1381390656,), (1381390657,), (1381390658,), (1381390730,), (1381390731,), (1381390732,), (1381390733,), (1381390734,), (1381390735,), (1381390736,), (1381390737,), (1381390738,), (1381390739,), (1381390740,), (1381390741,), (1381390742,), (1381390743,), (1381390744,), (1381390745,), (1381390746,), (1381390747,), (1381390811,), (1381390812,), (1381390813,), (1381391735,), (1381391729,), (1381391731,), (1381391733,), (1381391881,), (1381391884,), (1381391886,), (1381391888,), (1381391996,), (1381391998,), (1381391999,), (1381392000,), (1381392001,), (1381392002,), (1381392095,), (1381392096,), (1381392097,), (1381392098,), (1381392262,), (1381392263,), (1381392264,), (1381392398,), (1381392399,), (1381392400,), (1381392401,), (1381392402,), (1381392403,), (1381392452,), (1381392453,), (1381392454,), (1381392455,), (1381392456,), (1381392457,), (1381392538,), (1381392540,), (1381392542,), (1381392545,), (1381392547,), (1381392709,), (1381392712,), (1381392716,), (1381392719,), (1381392923,), (1381392924,), (1381392925,), (1381392926,), (1381392928,), (1381392929,), (1381393068,), (1381393069,), (1381393070,), (1381393071,), (1381393196,), (1381393197,), (1381393198,), (1381393199,), (1381393200,), (1381393201,), (1381393250,), (1381393251,), (1381393252,), (1381393253,), (1381393254,), (1381393291,), (1381393293,), (1381393295,), (1381393298,), (1381393300,), (1381393388,), (1381393389,), (1381393390,), (1381393391,), (1381393392,), (1381393393,), (1381393461,), (1381393458,), (1381393459,), (1381393460,), (1381393498,), (1381393499,), (1381393500,), (1381393501,), (1381393503,), (1381393505,), (1381393660,), (1381393662,), (1381393664,), (1381393666,), (1381393668,), (1381393670,), (1381394033,), (1381394035,), (1381394037,), (1381394085,), (1381394086,), (1381394087,), (1381394088,), (1381394089,), (1381394090,), (1381394143,), (1381394144,), (1381394145,), (1381394146,), (1381394148,), (1381394150,), (1381394196,), (1381394197,), (1381394198,), (1381394317,), (1381394319,), (1381394321,), (1381394323,), (1381394325,), (1381394401,), (1381394403,), (1381394405,), (1381394407,), (1381394409,), (1381394542,), (1381394543,), (1381394544,), (1381394545,), (1381394546,), (1381394591,), (1381394592,), (1381394593,), (1381394594,), (1381394595,), (1381394596,), (1381394678,), (1381394679,), (1381394680,), (1381394681,), (1381394683,), (1381394806,), (1381394808,), (1381394810,), (1381394812,), (1381394814,), (1381394816,), (1381395128,), (1381395129,), (1381395130,), (1381395131,), (1381395132,), (1381395133,), (1381395149,), (1381395256,), (1381395257,), (1381395258,), (1381395497,), (1381395476,), (1381395494,), (1381395495,), (1381395496,), (1381395556,), (1381395557,), (1381395558,), (1381395646,), (1381395647,), (1381395648,), (1381395649,), (1381395650,), (1381395781,), (1381395782,), (1381395783,), (1381395784,), (1381396167,), (1381396169,), (1381396171,), (1381396172,), (1381396233,), (1381396234,), (1381396235,), (1381396236,), (1381396237,), (1381396295,), (1381396296,), (1381396297,), (1381396298,), (1381396299,), (1381396349,), (1381396350,), (1381396351,), (1381396352,), (1381396393,), (1381396394,), (1381396456,), (1381396468,), (1381396469,), (1381396470,), (1381396648,), (1381396649,), (1381396650,), (1381396651,), (1381396710,), (1381396711,), (1381396712,), (1381396713,), (1381396714,), (1381396715,), (1381397865,), (1381397866,), (1381398187,), (1381398181,), (1381398185,), (1381398501,), (1381398503,), (1381398505,), (1381398507,), (1381399217,), (1381399221,), (1381399397,), (1381399399,), (1381399667,), (1381399670,), (1381399672,), (1381399673,), (1381399674,), (1381399779,), (1381399780,), (1381399781,), (1381399883,), (1381399884,), (1381399885,), (1381399886,), (1381399887,), (1381399929,), (1381399930,), (1381399931,), (1381399979,), (1381399980,), (1381399981,), (1381399982,), (1381399983,), (1381400039,), (1381400040,), (1381400041,), (1381400226,), (1381400227,), (1381400228,), (1381400301,), (1381400302,), (1381400345,), (1381400346,), (1381400347,), (1381400380,), (1381400381,), (1381400422,), (1381400459,), (1381400460,), (1381400504,), (1381400505,), (1381400506,), (1381400570,), (1381400571,), (1381400572,), (1381400573,), (1381400622,), (1381400623,), (1381400624,), (1381400625,), (1381400626,), (1381400627,), (1381400671,), (1381400672,), (1381400673,), (1381400711,), (1381400712,), (1381400713,), (1381400714,), (1381400771,), (1381400782,), (1381400783,), (1381400784,), (1381400785,), (1381400786,), (1381400834,), (1381400835,), (1381400836,), (1381400837,), (1381400839,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04092025': {'nb_upload': 33, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26526952]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1381400839, 1381400837, 1381400836, 1381400835, 1381400834, 1381400786, 1381400785, 1381400784, 1381400783, 1381400782, 1381400771] map_info['map_portfolio_photo'] : {26526952: [1381400839, 1381400837, 1381400836, 1381400835, 1381400834, 1381400786, 1381400785, 1381400784, 1381400783, 1381400782, 1381400771, 1381400714, 1381400713, 1381400712, 1381400711, 1381400673, 1381400672, 1381400671, 1381400627, 1381400626, 1381400625, 1381400624, 1381400623, 1381400622, 1381400573, 1381400572, 1381400571, 1381400570, 1381400506, 1381400505, 1381400504, 1381400460, 1381400459]} final : True mtd_id 4302 list_pids : [1381400839, 1381400837, 1381400836, 1381400835, 1381400834, 1381400786, 1381400785, 1381400784, 1381400783, 1381400782, 1381400771] Looping around the photos to save general results len do output : 1 /26526952Didn'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, '3663758') ('4302', '26526952', '1381400839', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400837', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400836', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400835', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400834', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400786', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400785', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400784', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400783', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400782', None, None, None, None, None, '3663758') ('4302', None, None, None, None, None, None, None, '3663758') ('4302', '26526952', '1381400771', None, None, None, None, None, '3663758') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '26526952', 'None', None, None, None, None, '3663758'), ('4302', '26526952', '1381400839', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400837', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400836', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400835', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400834', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400786', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400785', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400784', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400783', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400782', None, None, None, None, None, '3663758'), ('4302', '26526952', '1381400771', None, None, None, None, None, '3663758')] time used for this insertion : 0.11085152626037598 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.643977403640747 time spend to save output : 0.11105203628540039 total time spend for step 5 : 2.7550294399261475 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 (3663758) 2.15user 2.43system 0:11.19elapsed 41%CPU (0avgtext+0avgdata 158840maxresident)k 384inputs+7432outputs (5major+64301minor)pagefaults 0swaps