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 : 1717352 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 (4185346) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4185346) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29184178 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4185346'] with mtr_portfolio_ids : ['29184178'] and first list_photo_ids : [] new path : /proc/1717352/ Name: python3 Umask: 0002 State: R (running) Tgid: 1717352 Ngid: 0 Pid: 1717352 PPid: 1717351 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1717352 NSpid: 1717352 NSpgid: 1716138 NSsid: 1716138 VmPeak: 1113376 kB VmSize: 1113376 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105788 kB VmRSS: 105788 kB RssAnon: 66312 kB RssFile: 39476 kB RssShmem: 0 kB VmData: 872104 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 620 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: 60 nonvoluntary_ctxt_switches: 101 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1717352', 'Ngid': '0', 'Pid': '1717352', 'PPid': '1717351', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1717352', 'NSpid': '1717352', 'NSpgid': '1716138', 'NSsid': '1716138', 'VmPeak': '1113376 kB', 'VmSize': '1113376 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105788 kB', 'VmRSS': '105788 kB', 'RssAnon': '66312 kB', 'RssFile': '39476 kB', 'RssShmem': '0 kB', 'VmData': '872104 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '620 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': '60', 'nonvoluntary_ctxt_switches': '101'} ('datou_batch_current', '1717352', '1113376', '0', '1113376', '872104', '105788', b'', 'marlene', '4185346') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29184178) 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 (4185346 ) ) 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 (29184178) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1397850442, 'portfolio_id': 29184178}, {'photo_id': 1397850440, 'portfolio_id': 29184178}, {'photo_id': 1397850438, 'portfolio_id': 29184178}, {'photo_id': 1397850424, 'portfolio_id': 29184178}, {'photo_id': 1397850421, 'portfolio_id': 29184178}, {'photo_id': 1397850419, 'portfolio_id': 29184178}, {'photo_id': 1397850417, 'portfolio_id': 29184178}, {'photo_id': 1397850415, 'portfolio_id': 29184178}, {'photo_id': 1397850399, 'portfolio_id': 29184178}, {'photo_id': 1397850396, 'portfolio_id': 29184178}, {'photo_id': 1397850393, 'portfolio_id': 29184178}, {'photo_id': 1397850392, 'portfolio_id': 29184178}, {'photo_id': 1397850391, 'portfolio_id': 29184178}, {'photo_id': 1397850390, 'portfolio_id': 29184178}, {'photo_id': 1397850363, 'portfolio_id': 29184178}, {'photo_id': 1397850361, 'portfolio_id': 29184178}, {'photo_id': 1397850354, 'portfolio_id': 29184178}] map_portfolio_id_photo_id: {29184178: [1397850442, 1397850440, 1397850438, 1397850424, 1397850421, 1397850419, 1397850417, 1397850415, 1397850399, 1397850396, 1397850393, 1397850392, 1397850391, 1397850390, 1397850363, 1397850361, 1397850354]} ##### 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.0190885066986084 #### 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 Dec 4 14:34: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 (29184178) 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 : 29184178 get user id for portfolio 29184178 get sub ptf for main ptf 29184178, type 3726 and hashtags ['plastique', 'metal', 'mal_croppe', 'flou', 'cartonnette', 'Teint_Dans_La_Masse', 'kraft', 'environnement', 'papier', 'Carton_brun', 'Carton_gris', 'autre_refus'] 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`=29184178 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','metal','mal_croppe','flou','cartonnette','Teint_Dans_La_Masse','kraft','environnement','papier','Carton_brun','Carton_gris','autre_refus')) 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`=29184178 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','metal','mal_croppe','flou','cartonnette','Teint_Dans_La_Masse','kraft','environnement','papier','Carton_brun','Carton_gris','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 29184178, 'sub_port_id': 29184192, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841521, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 28)}, 'kraft': {'main_port_id': 29184178, 'sub_port_id': 29184193, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841522, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 28)}, 'Carton_brun': {'main_port_id': 29184178, 'sub_port_id': 29184194, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841523, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 28)}, 'environnement': {'main_port_id': 29184178, 'sub_port_id': 29184195, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841524, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 28)}, 'flou': {'main_port_id': 29184178, 'sub_port_id': 29184196, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841525, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 29184178, 'sub_port_id': 29184197, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841526, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 28)}, 'mal_croppe': {'main_port_id': 29184178, 'sub_port_id': 29184198, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841527, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 28)}, 'papier': {'main_port_id': 29184178, 'sub_port_id': 29184199, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841528, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 28)}, 'Carton_gris': {'main_port_id': 29184178, 'sub_port_id': 29184200, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841529, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 28)}, 'autre_refus': {'main_port_id': 29184178, 'sub_port_id': 29184201, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841530, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 28)}, 'cartonnette': {'main_port_id': 29184178, 'sub_port_id': 29184202, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841531, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 28)}, 'metal': {'main_port_id': 29184178, 'sub_port_id': 29184203, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841532, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29184192 , 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=29184178 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 (29184192) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29184178) result : ((1397850354,), (1397850361,), (1397850363,), (1397850390,), (1397850391,), (1397850392,), (1397850393,), (1397850396,), (1397850399,), (1397850415,), (1397850417,), (1397850419,), (1397850421,), (1397850424,), (1397850438,), (1397850440,), (1397850442,)) 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 29184193 , 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=29184178 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 (29184193) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29184178) result : ((1397850354,), (1397850361,), (1397850363,), (1397850390,), (1397850391,), (1397850392,), (1397850393,), (1397850396,), (1397850399,), (1397850415,), (1397850417,), (1397850419,), (1397850421,), (1397850424,), (1397850438,), (1397850440,), (1397850442,)) 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 29184194 , 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=29184178 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 (29184194) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29184178) result : ((1397850354,), (1397850361,), (1397850363,), (1397850390,), (1397850391,), (1397850392,), (1397850393,), (1397850396,), (1397850399,), (1397850415,), (1397850417,), (1397850419,), (1397850421,), (1397850424,), (1397850438,), (1397850440,), (1397850442,)) 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 29184195 , 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=29184178 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 (29184195) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29184178) result : ((1397850354,), (1397850361,), (1397850363,), (1397850390,), (1397850391,), (1397850392,), (1397850393,), (1397850396,), (1397850399,), (1397850415,), (1397850417,), (1397850419,), (1397850421,), (1397850424,), (1397850438,), (1397850440,), (1397850442,)) 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 29184196 , 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=29184178 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 (29184196) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29184178) result : ((1397850354,), (1397850361,), (1397850363,), (1397850390,), (1397850391,), (1397850392,), (1397850393,), (1397850396,), (1397850399,), (1397850415,), (1397850417,), (1397850419,), (1397850421,), (1397850424,), (1397850438,), (1397850440,), (1397850442,)) 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 29184197 , 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=29184178 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 (29184197) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29184178) result : ((1397850354,), (1397850361,), (1397850363,), (1397850390,), (1397850391,), (1397850392,), (1397850393,), (1397850396,), (1397850399,), (1397850415,), (1397850417,), (1397850419,), (1397850421,), (1397850424,), (1397850438,), (1397850440,), (1397850442,)) 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 29184198 , 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=29184178 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 (29184198) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29184178) result : ((1397850354,), (1397850361,), (1397850363,), (1397850390,), (1397850391,), (1397850392,), (1397850393,), (1397850396,), (1397850399,), (1397850415,), (1397850417,), (1397850419,), (1397850421,), (1397850424,), (1397850438,), (1397850440,), (1397850442,)) 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 29184199 , 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=29184178 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 (29184199) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29184178) result : ((1397850354,), (1397850361,), (1397850363,), (1397850390,), (1397850391,), (1397850392,), (1397850393,), (1397850396,), (1397850399,), (1397850415,), (1397850417,), (1397850419,), (1397850421,), (1397850424,), (1397850438,), (1397850440,), (1397850442,)) 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 29184200 , 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=29184178 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 (29184200) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29184178) result : ((1397850354,), (1397850361,), (1397850363,), (1397850390,), (1397850391,), (1397850392,), (1397850393,), (1397850396,), (1397850399,), (1397850415,), (1397850417,), (1397850419,), (1397850421,), (1397850424,), (1397850438,), (1397850440,), (1397850442,)) 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 29184201 , 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=29184178 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 (29184201) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29184178) result : ((1397850354,), (1397850361,), (1397850363,), (1397850390,), (1397850391,), (1397850392,), (1397850393,), (1397850396,), (1397850399,), (1397850415,), (1397850417,), (1397850419,), (1397850421,), (1397850424,), (1397850438,), (1397850440,), (1397850442,)) 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 29184202 , 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=29184178 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 (29184202) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29184178) result : ((1397850354,), (1397850361,), (1397850363,), (1397850390,), (1397850391,), (1397850392,), (1397850393,), (1397850396,), (1397850399,), (1397850415,), (1397850417,), (1397850419,), (1397850421,), (1397850424,), (1397850438,), (1397850440,), (1397850442,)) 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 29184203 , 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=29184178 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 (29184203) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29184178) result : ((1397850354,), (1397850361,), (1397850363,), (1397850390,), (1397850391,), (1397850392,), (1397850393,), (1397850396,), (1397850399,), (1397850415,), (1397850417,), (1397850419,), (1397850421,), (1397850424,), (1397850438,), (1397850440,), (1397850442,)) 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`=29184178 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','metal','mal_croppe','flou','cartonnette','Teint_Dans_La_Masse','kraft','environnement','papier','Carton_brun','Carton_gris','autre_refus')) 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`=29184178 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','metal','mal_croppe','flou','cartonnette','Teint_Dans_La_Masse','kraft','environnement','papier','Carton_brun','Carton_gris','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 29184178, 'sub_port_id': 29184204, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841533, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 30)}, 'kraft': {'main_port_id': 29184178, 'sub_port_id': 29184205, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841534, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 30)}, 'Carton_brun': {'main_port_id': 29184178, 'sub_port_id': 29184206, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841535, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 30)}, 'environnement': {'main_port_id': 29184178, 'sub_port_id': 29184207, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841536, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 30)}, 'flou': {'main_port_id': 29184178, 'sub_port_id': 29184208, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841537, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 29184178, 'sub_port_id': 29184209, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841538, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 30)}, 'mal_croppe': {'main_port_id': 29184178, 'sub_port_id': 29184210, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841539, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 30)}, 'papier': {'main_port_id': 29184178, 'sub_port_id': 29184211, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841540, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 30)}, 'Carton_gris': {'main_port_id': 29184178, 'sub_port_id': 29184212, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841541, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 30)}, 'autre_refus': {'main_port_id': 29184178, 'sub_port_id': 29184213, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841542, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 30)}, 'cartonnette': {'main_port_id': 29184178, 'sub_port_id': 29184214, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841543, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 30)}, 'metal': {'main_port_id': 29184178, 'sub_port_id': 29184215, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19841544, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 33, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29184204,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29184192 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29184205,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29184193 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29184206,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29184194 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29184207,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29184195 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29184208,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29184196 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29184209,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29184197 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29184210,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29184198 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29184211,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29184199 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29184212,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29184200 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29184213,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29184201 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29184214,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29184202 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29184215,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29184203 lien utilise dans velours : https://marlene.fotonower.com/velours/29184204,29184205,29184206,29184207,29184208,29184209,29184210,29184211,29184212,29184213,29184214,29184215?tags=plastique,kraft,Carton_brun,environnement,flou,Teint_Dans_La_Masse,mal_croppe,papier,Carton_gris,autre_refus,cartonnette,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29184178]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1397850442, 1397850440, 1397850438, 1397850424, 1397850421, 1397850419, 1397850417, 1397850415, 1397850399, 1397850396, 1397850393, 1397850392, 1397850391, 1397850390] map_info['map_portfolio_photo'] : {29184178: [1397850442, 1397850440, 1397850438, 1397850424, 1397850421, 1397850419, 1397850417, 1397850415, 1397850399, 1397850396, 1397850393, 1397850392, 1397850391, 1397850390, 1397850363, 1397850361, 1397850354]} final : False mtd_id 4302 list_pids : [1397850442, 1397850440, 1397850438, 1397850424, 1397850421, 1397850419, 1397850417, 1397850415, 1397850399, 1397850396, 1397850393, 1397850392, 1397850391, 1397850390] Looping around the photos to save general results len do output : 1 /29184178. 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, '4185346') ('4302', '29184178', '1397850442', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850440', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850438', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850424', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850421', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850419', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850417', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850415', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850399', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850396', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850393', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850392', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850391', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850390', None, None, None, None, None, '4185346') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '29184178', "{'plastique': 29184192, 'kraft': 29184193, 'Carton_brun': 29184194, 'environnement': 29184195, 'flou': 29184196, 'Teint_Dans_La_Masse': 29184197, 'mal_croppe': 29184198, 'papier': 29184199, 'Carton_gris': 29184200, 'autre_refus': 29184201, 'cartonnette': 29184202, 'metal': 29184203}", None, None, None, None, '4185346'), ('4302', '29184178', '1397850442', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850440', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850438', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850424', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850421', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850419', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850417', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850415', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850399', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850396', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850393', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850392', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850391', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850390', None, None, None, None, None, '4185346')] time used for this insertion : 0.016863584518432617 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8500611782073975 time spend to save output : 0.017212629318237305 total time spend for step 1 : 1.8672738075256348 step2:final Thu Dec 4 14:35: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 (29184178) 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 29184178 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1397850363,1397850354,1397850361,1397850399,1397850396,1397850393,1397850392,1397850391,1397850390,1397850424,1397850421,1397850419,1397850417,1397850415,1397850442,1397850440,1397850438); 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([29184178]) Inside saveOutput : final : False verbose : True original output for save of step final : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ('0.0016477494192573125',), 1397850391: ('0.0016477494192573125',), 1397850390: ('0.0016477494192573125',)} new output for save of step final : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ('0.0016477494192573125',), 1397850391: ('0.0016477494192573125',), 1397850390: ('0.0016477494192573125',)} [1397850442, 1397850440, 1397850438, 1397850424, 1397850421, 1397850419, 1397850417, 1397850415, 1397850399, 1397850396, 1397850393, 1397850392, 1397850391, 1397850390] map_info['map_portfolio_photo'] : {29184178: [1397850442, 1397850440, 1397850438, 1397850424, 1397850421, 1397850419, 1397850417, 1397850415, 1397850399, 1397850396, 1397850393, 1397850392, 1397850391, 1397850390, 1397850363, 1397850361, 1397850354]} final : False mtd_id 4302 list_pids : [1397850442, 1397850440, 1397850438, 1397850424, 1397850421, 1397850419, 1397850417, 1397850415, 1397850399, 1397850396, 1397850393, 1397850392, 1397850391, 1397850390] Looping around the photos to save general results len do output : 14 /1397850442.Didn't retrieve data . /1397850440.Didn't retrieve data . /1397850438.Didn't retrieve data . /1397850424.Didn't retrieve data . /1397850421.Didn't retrieve data . /1397850419.Didn't retrieve data . /1397850417.Didn't retrieve data . /1397850415.Didn't retrieve data . /1397850399.Didn't retrieve data . /1397850396.Didn't retrieve data . /1397850393.Didn't retrieve data . /1397850392.Didn't retrieve data . /1397850391.Didn't retrieve data . /1397850390.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, '4185346') ('4302', '29184178', '1397850442', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850440', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850438', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850424', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850421', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850419', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850417', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850415', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850399', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850396', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850393', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850392', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850391', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850390', None, None, None, None, None, '4185346') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '29184178', '1397850442', '0.0016477494192573125', None, None, None, None, '4185346'), ('4302', '29184178', '1397850440', '0.0016477494192573125', None, None, None, None, '4185346'), ('4302', '29184178', '1397850438', '0.0016477494192573125', None, None, None, None, '4185346'), ('4302', '29184178', '1397850424', '0.0016477494192573125', None, None, None, None, '4185346'), ('4302', '29184178', '1397850421', '0.0016477494192573125', None, None, None, None, '4185346'), ('4302', '29184178', '1397850419', '0.0016477494192573125', None, None, None, None, '4185346'), ('4302', '29184178', '1397850417', '0.0016477494192573125', None, None, None, None, '4185346'), ('4302', '29184178', '1397850415', '0.0016477494192573125', None, None, None, None, '4185346'), ('4302', '29184178', '1397850399', '0.0016477494192573125', None, None, None, None, '4185346'), ('4302', '29184178', '1397850396', '0.0016477494192573125', None, None, None, None, '4185346'), ('4302', '29184178', '1397850393', '0.0016477494192573125', None, None, None, None, '4185346'), ('4302', '29184178', '1397850392', '0.0016477494192573125', None, None, None, None, '4185346'), ('4302', '29184178', '1397850391', '0.0016477494192573125', None, None, None, None, '4185346'), ('4302', '29184178', '1397850390', '0.0016477494192573125', None, None, None, None, '4185346')] time used for this insertion : 0.015491008758544922 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0768880844116211 time spend to save output : 0.01621246337890625 total time spend for step 2 : 0.09310054779052734 step3:velours_tree Thu Dec 4 14:35: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 : {29184178: [{'plastique': 29184192, 'kraft': 29184193, 'Carton_brun': 29184194, 'environnement': 29184195, 'flou': 29184196, 'Teint_Dans_La_Masse': 29184197, 'mal_croppe': 29184198, 'papier': 29184199, 'Carton_gris': 29184200, 'autre_refus': 29184201, 'cartonnette': 29184202, 'metal': 29184203}]} input_args_next_step : {29184178: ()} output_args : {29184178: [{'plastique': 29184192, 'kraft': 29184193, 'Carton_brun': 29184194, 'environnement': 29184195, 'flou': 29184196, 'Teint_Dans_La_Masse': 29184197, 'mal_croppe': 29184198, 'papier': 29184199, 'Carton_gris': 29184200, 'autre_refus': 29184201, 'cartonnette': 29184202, 'metal': 29184203}]} args : 29184178 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'plastique': 29184192, 'kraft': 29184193, 'Carton_brun': 29184194, 'environnement': 29184195, 'flou': 29184196, 'Teint_Dans_La_Masse': 29184197, 'mal_croppe': 29184198, 'papier': 29184199, 'Carton_gris': 29184200, 'autre_refus': 29184201, 'cartonnette': 29184202, 'metal': 29184203},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29184178) 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([29184178]) 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.2755703926086426 time spend to save output : 4.863739013671875e-05 total time spend for step 3 : 0.2756190299987793 step4:send_mail_cod Thu Dec 4 14:35: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 : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ('0.0016477494192573125',), 1397850391: ('0.0016477494192573125',), 1397850390: ('0.0016477494192573125',)} input_args_next_step : {1397850442: ()} output_args : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ('0.0016477494192573125',), 1397850391: ('0.0016477494192573125',), 1397850390: ('0.0016477494192573125',)} args : 1397850442 depend.output_id : 0 input_args_next_step : {1397850442: ('0.0016477494192573125',), 1397850440: ()} output_args : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ('0.0016477494192573125',), 1397850391: ('0.0016477494192573125',), 1397850390: ('0.0016477494192573125',)} args : 1397850440 depend.output_id : 0 input_args_next_step : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ()} output_args : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ('0.0016477494192573125',), 1397850391: ('0.0016477494192573125',), 1397850390: ('0.0016477494192573125',)} args : 1397850438 depend.output_id : 0 input_args_next_step : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ()} output_args : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ('0.0016477494192573125',), 1397850391: ('0.0016477494192573125',), 1397850390: ('0.0016477494192573125',)} args : 1397850424 depend.output_id : 0 input_args_next_step : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ()} output_args : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ('0.0016477494192573125',), 1397850391: ('0.0016477494192573125',), 1397850390: ('0.0016477494192573125',)} args : 1397850421 depend.output_id : 0 input_args_next_step : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ()} output_args : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ('0.0016477494192573125',), 1397850391: ('0.0016477494192573125',), 1397850390: ('0.0016477494192573125',)} args : 1397850419 depend.output_id : 0 input_args_next_step : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ()} output_args : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ('0.0016477494192573125',), 1397850391: ('0.0016477494192573125',), 1397850390: ('0.0016477494192573125',)} args : 1397850417 depend.output_id : 0 input_args_next_step : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ()} output_args : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ('0.0016477494192573125',), 1397850391: ('0.0016477494192573125',), 1397850390: ('0.0016477494192573125',)} args : 1397850415 depend.output_id : 0 input_args_next_step : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ()} output_args : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ('0.0016477494192573125',), 1397850391: ('0.0016477494192573125',), 1397850390: ('0.0016477494192573125',)} args : 1397850399 depend.output_id : 0 input_args_next_step : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ()} output_args : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ('0.0016477494192573125',), 1397850391: ('0.0016477494192573125',), 1397850390: ('0.0016477494192573125',)} args : 1397850396 depend.output_id : 0 input_args_next_step : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ()} output_args : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ('0.0016477494192573125',), 1397850391: ('0.0016477494192573125',), 1397850390: ('0.0016477494192573125',)} args : 1397850393 depend.output_id : 0 input_args_next_step : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ()} output_args : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ('0.0016477494192573125',), 1397850391: ('0.0016477494192573125',), 1397850390: ('0.0016477494192573125',)} args : 1397850392 depend.output_id : 0 input_args_next_step : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ('0.0016477494192573125',), 1397850391: ()} output_args : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ('0.0016477494192573125',), 1397850391: ('0.0016477494192573125',), 1397850390: ('0.0016477494192573125',)} args : 1397850391 depend.output_id : 0 input_args_next_step : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ('0.0016477494192573125',), 1397850391: ('0.0016477494192573125',), 1397850390: ()} output_args : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ('0.0016477494192573125',), 1397850391: ('0.0016477494192573125',), 1397850390: ('0.0016477494192573125',)} args : 1397850390 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 : {29184178: [{'plastique': 29184192, 'kraft': 29184193, 'Carton_brun': 29184194, 'environnement': 29184195, 'flou': 29184196, 'Teint_Dans_La_Masse': 29184197, 'mal_croppe': 29184198, 'papier': 29184199, 'Carton_gris': 29184200, 'autre_refus': 29184201, 'cartonnette': 29184202, 'metal': 29184203}]} input_args_next_step : {1397850442: ('0.0016477494192573125',), 1397850440: ('0.0016477494192573125',), 1397850438: ('0.0016477494192573125',), 1397850424: ('0.0016477494192573125',), 1397850421: ('0.0016477494192573125',), 1397850419: ('0.0016477494192573125',), 1397850417: ('0.0016477494192573125',), 1397850415: ('0.0016477494192573125',), 1397850399: ('0.0016477494192573125',), 1397850396: ('0.0016477494192573125',), 1397850393: ('0.0016477494192573125',), 1397850392: ('0.0016477494192573125',), 1397850391: ('0.0016477494192573125',), 1397850390: ('0.0016477494192573125',), 29184178: ()} output_args : {29184178: [{'plastique': 29184192, 'kraft': 29184193, 'Carton_brun': 29184194, 'environnement': 29184195, 'flou': 29184196, 'Teint_Dans_La_Masse': 29184197, 'mal_croppe': 29184198, 'papier': 29184199, 'Carton_gris': 29184200, 'autre_refus': 29184201, 'cartonnette': 29184202, 'metal': 29184203}]} args : 29184178 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 :15, first value : ('0.0016477494192573125',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29184178) 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_view ph WHERE photo_id IN (1397850442,1397850440,1397850438,1397850424,1397850421,1397850419,1397850417,1397850415,1397850399,1397850396,1397850393,1397850392,1397850391,1397850390) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1397850390 begin to download photo : 1397850393 begin to download photo : 1397850415 begin to download photo : 1397850421 begin to download photo : 1397850440 download finish for photo 1397850440 begin to download photo : 1397850442 download finish for photo 1397850415 begin to download photo : 1397850417 download finish for photo 1397850421 begin to download photo : 1397850424 download finish for photo 1397850390 begin to download photo : 1397850391 download finish for photo 1397850393 begin to download photo : 1397850396 download finish for photo 1397850417 begin to download photo : 1397850419 download finish for photo 1397850391 begin to download photo : 1397850392 download finish for photo 1397850442 download finish for photo 1397850424 begin to download photo : 1397850438 download finish for photo 1397850396 begin to download photo : 1397850399 download finish for photo 1397850419 download finish for photo 1397850392 download finish for photo 1397850399 download finish for photo 1397850438 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette291841921764855300/ imagette291841931764855300/ imagette291841961764855300/ imagette291841981764855300/ imagette291842011764855300/ imagette291842021764855300/ imagette291842031764855300/ imagette291841941764855301/ imagette291841971764855301/ imagette291842001764855301/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P29184178_04-12-2025_14_35_00.pdf 29184192 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29184192 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291841921764855300 29184193 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29184193 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291841931764855300 29184196 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29184196 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291841961764855300 29184198 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29184198 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291841981764855300 29184201 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29184201 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291842011764855300 29184202 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29184202 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291842021764855300 29184203 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29184203 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291842031764855300 29184194 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29184194 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291841941764855301 29184197 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29184197 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291841971764855301 29184200 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29184200 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291842001764855301 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29184178 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29184204,29184205,29184206,29184207,29184208,29184209,29184210,29184211,29184212,29184213,29184214,29184215?tags=plastique,kraft,Carton_brun,environnement,flou,Teint_Dans_La_Masse,mal_croppe,papier,Carton_gris,autre_refus,cartonnette,metal your option no_mail is active, we will not send the real mail to your client args[1397850442] : ('0.0016477494192573125',) no score found for photo 1397850442 We are sending mail with results at report@fotonower.com args[1397850440] : ('0.0016477494192573125',) no score found for photo 1397850440 We are sending mail with results at report@fotonower.com args[1397850438] : ('0.0016477494192573125',) no score found for photo 1397850438 We are sending mail with results at report@fotonower.com args[1397850424] : ('0.0016477494192573125',) no score found for photo 1397850424 We are sending mail with results at report@fotonower.com args[1397850421] : ('0.0016477494192573125',) no score found for photo 1397850421 We are sending mail with results at report@fotonower.com args[1397850419] : ('0.0016477494192573125',) no score found for photo 1397850419 We are sending mail with results at report@fotonower.com args[1397850417] : ('0.0016477494192573125',) no score found for photo 1397850417 We are sending mail with results at report@fotonower.com args[1397850415] : ('0.0016477494192573125',) no score found for photo 1397850415 We are sending mail with results at report@fotonower.com args[1397850399] : ('0.0016477494192573125',) no score found for photo 1397850399 We are sending mail with results at report@fotonower.com args[1397850396] : ('0.0016477494192573125',) no score found for photo 1397850396 We are sending mail with results at report@fotonower.com args[1397850393] : ('0.0016477494192573125',) no score found for photo 1397850393 We are sending mail with results at report@fotonower.com args[1397850392] : ('0.0016477494192573125',) no score found for photo 1397850392 We are sending mail with results at report@fotonower.com args[1397850391] : ('0.0016477494192573125',) no score found for photo 1397850391 We are sending mail with results at report@fotonower.com args[1397850390] : ('0.0016477494192573125',) no score found for photo 1397850390 We are sending mail with results at report@fotonower.com refus_total : 0.0016477494192573125 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29184178 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_P29184178_04-12-2025_14_35_00.pdf results_Auto_P29184178_04-12-2025_14_35_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29184178_04-12-2025_14_35_00.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','29184178','results_Auto_P29184178_04-12-2025_14_35_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29184178_04-12-2025_14_35_00.pdf','pdf','','0.13','0.0016477494192573125') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29184178]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1397850442, 1397850440, 1397850438, 1397850424, 1397850421, 1397850419, 1397850417, 1397850415, 1397850399, 1397850396, 1397850393, 1397850392, 1397850391, 1397850390] map_info['map_portfolio_photo'] : {29184178: [1397850442, 1397850440, 1397850438, 1397850424, 1397850421, 1397850419, 1397850417, 1397850415, 1397850399, 1397850396, 1397850393, 1397850392, 1397850391, 1397850390, 1397850363, 1397850361, 1397850354]} final : False mtd_id 4302 list_pids : [1397850442, 1397850440, 1397850438, 1397850424, 1397850421, 1397850419, 1397850417, 1397850415, 1397850399, 1397850396, 1397850393, 1397850392, 1397850391, 1397850390] 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, '4185346') ('4302', '29184178', '1397850442', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850440', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850438', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850424', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850421', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850419', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850417', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850415', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850399', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850396', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850393', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850392', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850391', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850390', None, None, None, None, None, '4185346') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29184178', '1397850442', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850440', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850438', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850424', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850421', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850419', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850417', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850415', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850399', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850396', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850393', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850392', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850391', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850390', None, None, None, None, None, '4185346')] time used for this insertion : 0.016933917999267578 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.093465566635132 time spend to save output : 0.017264842987060547 total time spend for step 4 : 2.1107304096221924 step5:split_time_score Thu Dec 4 14:35:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29184178'] 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 : [('29184178',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29184178) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1397850440: {'path': 'temp/1764855300_1717352_1397850440_25f27a1303d9ce68565bf91c83b2705f.jpg', 'extension': 'jpg'}, 1397850442: {'path': 'temp/1764855300_1717352_1397850442_5e37030ef6c23f8af1cdc3b2815fcf57.jpg', 'extension': 'jpg'}, 1397850415: {'path': 'temp/1764855300_1717352_1397850415_3813989d37bfda3839ebf1b5d33a96e3.jpg', 'extension': 'jpg'}, 1397850417: {'path': 'temp/1764855300_1717352_1397850417_b4d558c795264c12114d515cab0b4ee9.jpg', 'extension': 'jpg'}, 1397850419: {'path': 'temp/1764855300_1717352_1397850419_7432375b2d8e0fb65b3bd49f2d6cdf02.jpg', 'extension': 'jpg'}, 1397850390: {'path': 'temp/1764855300_1717352_1397850390_559e09fb777f1875cc38fe7d99079bc3.jpg', 'extension': 'jpg'}, 1397850391: {'path': 'temp/1764855300_1717352_1397850391_33c8dc2ea30cb9b58c9aa5cd18dacd65.jpg', 'extension': 'jpg'}, 1397850392: {'path': 'temp/1764855300_1717352_1397850392_ed7963d75bf9459c471f938a7af2154b.jpg', 'extension': 'jpg'}, 1397850393: {'path': 'temp/1764855300_1717352_1397850393_60cd1210e907cb7478965a279c6c78f4.jpg', 'extension': 'jpg'}, 1397850396: {'path': 'temp/1764855300_1717352_1397850396_5c8c338a209fce34774f024f37ae9932.jpg', 'extension': 'jpg'}, 1397850399: {'path': 'temp/1764855300_1717352_1397850399_eaddf0b61ea8e4f411009d241f9fb8e5.jpg', 'extension': 'jpg'}, 1397850421: {'path': 'temp/1764855300_1717352_1397850421_c8bd37fc5cb42327c364709cb6dbaf6e.jpg', 'extension': 'jpg'}, 1397850424: {'path': 'temp/1764855300_1717352_1397850424_962ca8ad78d689d08b3b00198a7ad453.jpg', 'extension': 'jpg'}, 1397850438: {'path': 'temp/1764855300_1717352_1397850438_fcc499a4b37fc13c5650395bf56c6160.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 = 29184178; (('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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29184178 group by h (('14', 17),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29184178 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 (29184178) 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 (29184178) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04122025 29184178 Nombre de photos uploadées : 17 / 23040 (0%) 04122025 29184178 Nombre de photos taguées (types de déchets): 0 / 17 (0%) 04122025 29184178 Nombre de photos taguées (volume) : 0 / 17 (0%) [{'photo_id': 1397850363, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/2a201d360c399aeb4030b753a89dc261.jpg', 'username': None, 'uploaded_at': 1764855077, 'text': 'image_04122025_14_30_24_10135.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1397850354, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/f39b99580a557e1c2dd6edb8e273b269.jpg', 'username': None, 'uploaded_at': 1764855063, 'text': 'image_04122025_14_30_34_10134.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1397850361, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/eb15aafc10192b6e6b841ac1eb812099.jpg', 'username': None, 'uploaded_at': 1764855077, 'text': 'image_04122025_14_30_45_10136.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1397850399, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/eaddf0b61ea8e4f411009d241f9fb8e5.jpg', 'username': None, 'uploaded_at': 1764855128, 'text': 'image_04122025_14_30_55_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 9.059906005859375e-06 ????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0006582736968994141 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29184178, '2025-12-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-12-04' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2690577,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24647760391235352 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= 2690577 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29164250, 'dashboard_result_id': 18064803, '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_P29164250_04-12-2025_06_18_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164264, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164269, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29164732, 'dashboard_result_id': 18064804, '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_P29164732_04-12-2025_06_19_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164759, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29165106, 'dashboard_result_id': 18064805, '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_P29165106_04-12-2025_06_20_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165145, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29165583, 'dashboard_result_id': 18064806, '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_P29165583_04-12-2025_06_20_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165601, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29166634, 'dashboard_result_id': 18064807, '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_P29166634_04-12-2025_06_20_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29166646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166647, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29166944, 'dashboard_result_id': 18064808, '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_P29166944_04-12-2025_06_21_15.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29166950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166961, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29167317, 'dashboard_result_id': 18064809, '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_P29167317_04-12-2025_06_21_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29167348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167357, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29167848, 'dashboard_result_id': 18064810, '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_P29167848_04-12-2025_06_22_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29167849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167860, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29168406, 'dashboard_result_id': 18064811, '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_P29168406_04-12-2025_06_22_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29168450, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29168945, 'dashboard_result_id': 18064812, '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_P29168945_04-12-2025_06_23_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29168970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168975, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168981, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29169363, 'dashboard_result_id': 18064813, '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_P29169363_04-12-2025_06_24_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169386, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29169812, 'dashboard_result_id': 18064814, '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_P29169812_04-12-2025_06_24_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169856, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29170360, 'dashboard_result_id': 18064815, '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_P29170360_04-12-2025_06_25_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170397, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29170831, 'dashboard_result_id': 18064816, '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_P29170831_04-12-2025_06_25_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170842, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170850, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29171165, 'dashboard_result_id': 18064817, '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_P29171165_04-12-2025_06_25_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29171193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29171194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29171195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29171196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29171197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29171198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29171199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29171200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29171201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29171202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29171203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29171204, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29172002, 'dashboard_result_id': 18064818, '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_P29172002_04-12-2025_06_26_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172016, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172019, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29172388, 'dashboard_result_id': 18064819, '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_P29172388_04-12-2025_06_26_14.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172403, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29172801, 'dashboard_result_id': 18064820, '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_P29172801_04-12-2025_05_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172815, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172817, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29173230, 'dashboard_result_id': 18064821, '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_P29173230_04-12-2025_06_03_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29173247, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29173539, 'dashboard_result_id': 18064822, '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_P29173539_04-12-2025_06_19_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29173543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173554, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29174089, 'dashboard_result_id': 18064823, '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_P29174089_04-12-2025_06_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29174102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29174103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29174104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29174105, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29174106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29174107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29174108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29174109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29174110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29174111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29174112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29174113, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29174520, 'dashboard_result_id': 18064824, '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_P29174520_04-12-2025_06_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29174552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29174553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29174554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29174555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29174556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29174557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29174558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29174559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29174560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29174561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29174562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29174563, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29175025, 'dashboard_result_id': 18064825, '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_P29175025_04-12-2025_07_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29175050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29175051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29175052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29175053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29175054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29175055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29175056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29175057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29175058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29175059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29175060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29175061, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29175420, 'dashboard_result_id': 18064826, '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_P29175420_04-12-2025_07_25_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29175433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29175434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29175435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29175436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29175437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29175438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29175439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29175440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29175441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29175442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29175443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29175444, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29176081, 'dashboard_result_id': 18064827, '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_P29176081_04-12-2025_07_35_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29176094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176105, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29176341, 'dashboard_result_id': 18064828, '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_P29176341_04-12-2025_07_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29176342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29176349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176353, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29176418, 'dashboard_result_id': 18064829, '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_P29176418_04-12-2025_09_31_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29176421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176432, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29176753, 'dashboard_result_id': 18064830, '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_P29176753_04-12-2025_08_19_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29176760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176766, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29177339, 'dashboard_result_id': 18064831, '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_P29177339_04-12-2025_08_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29177364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29177365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29177366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29177367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29177368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29177369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29177370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29177371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29177372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29177373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29177374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29177375, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29177792, 'dashboard_result_id': 18064832, '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_P29177792_04-12-2025_08_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29177805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29177806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29177807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29177808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29177809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29177810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29177811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29177812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29177813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29177814, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29177815, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29177816, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29178343, 'dashboard_result_id': 18064833, '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_P29178343_04-12-2025_09_32_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29178349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29178350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29178351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29178352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29178353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29178354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29178355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29178356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29178357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29178358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29178359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29178360, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29179002, 'dashboard_result_id': 18064834, '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_P29179002_04-12-2025_09_48_56.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179017, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29179437, 'dashboard_result_id': 18064835, '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_P29179437_04-12-2025_10_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179455, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29179810, 'dashboard_result_id': 18064836, '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_P29179810_04-12-2025_10_16_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179833, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29180409, 'dashboard_result_id': 18064837, '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_P29180409_04-12-2025_10_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29180418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29180419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29180420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29180421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29180422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29180423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29180424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29180425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29180426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29180427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29180428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29180429, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29181139, 'dashboard_result_id': 18064838, '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_P29181139_04-12-2025_14_00_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29181147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29181148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29181149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29181150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29181151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29181152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29181154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29181155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29181157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29181158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29181159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29181161, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29183299, 'dashboard_result_id': 18064839, '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_P29183299_04-12-2025_14_07_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29183300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29183301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29183302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29183303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29183304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29183305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29183306, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29183307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29183308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29183309, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29183310, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29183311, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29183382, 'dashboard_result_id': 18064840, '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_P29183382_04-12-2025_14_16_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29183385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29183386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29183387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29183388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29183389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29183390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29183391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29183392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29183393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29183394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29183395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29183396, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29183842, 'dashboard_result_id': 18064841, '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_P29183842_04-12-2025_14_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29183849, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29183850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29183851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29183852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29183853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29183854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29183855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29183856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29183857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29183858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29183859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29183860, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701238, 'mtr_portfolio_id': 29184178, 'dashboard_result_id': 18064842, '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_P29184178_04-12-2025_14_33_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29184192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29184193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29184194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29184195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29184196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29184197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29184198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29184199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29184200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29184201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29184202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29184203, '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 = 29164250 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': 4183584, 'mtr_portfolio_id': 29164250, 'created_at': datetime.datetime(2025, 12, 4, 6, 18, 29), 'result': '0.039691814632383166', 'result_long': None, 'result_double': None}] Qualite : 0.039691814632383166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29164250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29164250_04-12-2025_06_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29164250 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_P29164250_04-12-2025_06_18_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164264, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164269, 'pht': 3726}}" where mtr_portfolio_id = 29164250 and dashboard_run_id = 2701238 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`=29164250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064803, 0.039691814632383166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29164250_04-12-2025_06_18_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164264, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164269, '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 = 29164732 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': 4183585, 'mtr_portfolio_id': 29164732, 'created_at': datetime.datetime(2025, 12, 4, 6, 19, 30), 'result': '0.04191147181602513', 'result_long': None, 'result_double': None}] Qualite : 0.04191147181602513 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29164732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29164732_04-12-2025_06_19_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29164732 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_P29164732_04-12-2025_06_19_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164759, 'pht': 3726}}" where mtr_portfolio_id = 29164732 and dashboard_run_id = 2701238 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`=29164732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064804, 0.04191147181602513, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29164732_04-12-2025_06_19_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164759, '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 = 29165106 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': 4183586, 'mtr_portfolio_id': 29165106, 'created_at': datetime.datetime(2025, 12, 4, 6, 19, 57), 'result': '0.03563083105827624', 'result_long': None, 'result_double': None}] Qualite : 0.03563083105827624 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29165106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29165106_04-12-2025_06_20_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29165106 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_P29165106_04-12-2025_06_20_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165145, 'pht': 3726}}" where mtr_portfolio_id = 29165106 and dashboard_run_id = 2701238 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`=29165106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064805, 0.03563083105827624, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29165106_04-12-2025_06_20_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165145, '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 = 29165583 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': 4183587, 'mtr_portfolio_id': 29165583, 'created_at': datetime.datetime(2025, 12, 4, 6, 20, 29), 'result': '0.04070277561029388', 'result_long': None, 'result_double': None}] Qualite : 0.04070277561029388 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29165583 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29165583_04-12-2025_06_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29165583 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_P29165583_04-12-2025_06_20_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165601, 'pht': 3726}}" where mtr_portfolio_id = 29165583 and dashboard_run_id = 2701238 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`=29165583 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064806, 0.04070277561029388, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29165583_04-12-2025_06_20_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165601, '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 = 29166634 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': 4183588, 'mtr_portfolio_id': 29166634, 'created_at': datetime.datetime(2025, 12, 4, 6, 20, 39), 'result': '0.021804988093340173', 'result_long': None, 'result_double': None}] Qualite : 0.021804988093340173 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29166634 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29166634_04-12-2025_06_20_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29166634 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_P29166634_04-12-2025_06_20_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29166646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166647, 'pht': 3726}}" where mtr_portfolio_id = 29166634 and dashboard_run_id = 2701238 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`=29166634 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064807, 0.021804988093340173, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29166634_04-12-2025_06_20_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29166646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166647, '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 = 29166944 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': 4183589, 'mtr_portfolio_id': 29166944, 'created_at': datetime.datetime(2025, 12, 4, 6, 21, 13), 'result': '0.04765577064209144', 'result_long': None, 'result_double': None}] Qualite : 0.04765577064209144 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29166944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29166944_04-12-2025_06_21_15.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29166944 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_P29166944_04-12-2025_06_21_15.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29166950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166961, 'pht': 3726}}" where mtr_portfolio_id = 29166944 and dashboard_run_id = 2701238 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`=29166944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064808, 0.04765577064209144, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29166944_04-12-2025_06_21_15.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29166950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166961, '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 = 29167317 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': 4183590, 'mtr_portfolio_id': 29167317, 'created_at': datetime.datetime(2025, 12, 4, 6, 21, 29), 'result': '0.0533162779279352', 'result_long': None, 'result_double': None}] Qualite : 0.0533162779279352 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29167317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29167317_04-12-2025_06_21_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29167317 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_P29167317_04-12-2025_06_21_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29167348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167357, 'pht': 3726}}" where mtr_portfolio_id = 29167317 and dashboard_run_id = 2701238 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`=29167317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064809, 0.0533162779279352, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29167317_04-12-2025_06_21_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29167348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167357, '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 = 29167848 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': 4183591, 'mtr_portfolio_id': 29167848, 'created_at': datetime.datetime(2025, 12, 4, 6, 21, 59), 'result': '0.05454299083044137', 'result_long': None, 'result_double': None}] Qualite : 0.05454299083044137 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29167848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29167848_04-12-2025_06_22_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29167848 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_P29167848_04-12-2025_06_22_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29167849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167860, 'pht': 3726}}" where mtr_portfolio_id = 29167848 and dashboard_run_id = 2701238 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`=29167848 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064810, 0.05454299083044137, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29167848_04-12-2025_06_22_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29167849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167860, '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 = 29168406 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': 4183592, 'mtr_portfolio_id': 29168406, 'created_at': datetime.datetime(2025, 12, 4, 6, 22, 27), 'result': '0.04351345317316067', 'result_long': None, 'result_double': None}] Qualite : 0.04351345317316067 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29168406 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29168406_04-12-2025_06_22_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29168406 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_P29168406_04-12-2025_06_22_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29168450, 'pht': 3726}}" where mtr_portfolio_id = 29168406 and dashboard_run_id = 2701238 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`=29168406 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064811, 0.04351345317316067, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29168406_04-12-2025_06_22_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29168450, '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 = 29168945 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': 4183593, 'mtr_portfolio_id': 29168945, 'created_at': datetime.datetime(2025, 12, 4, 6, 23, 28), 'result': '0.058779092602812714', 'result_long': None, 'result_double': None}] Qualite : 0.058779092602812714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29168945 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29168945_04-12-2025_06_23_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29168945 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_P29168945_04-12-2025_06_23_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29168970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168975, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168981, 'pht': 3726}}" where mtr_portfolio_id = 29168945 and dashboard_run_id = 2701238 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`=29168945 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064812, 0.058779092602812714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29168945_04-12-2025_06_23_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29168970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168975, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168981, '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 = 29169363 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': 4183594, 'mtr_portfolio_id': 29169363, 'created_at': datetime.datetime(2025, 12, 4, 6, 23, 58), 'result': '0.05984584230622193', 'result_long': None, 'result_double': None}] Qualite : 0.05984584230622193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29169363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29169363_04-12-2025_06_24_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29169363 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_P29169363_04-12-2025_06_24_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169386, 'pht': 3726}}" where mtr_portfolio_id = 29169363 and dashboard_run_id = 2701238 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`=29169363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064813, 0.05984584230622193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29169363_04-12-2025_06_24_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169386, '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 = 29169812 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': 4183595, 'mtr_portfolio_id': 29169812, 'created_at': datetime.datetime(2025, 12, 4, 6, 24, 30), 'result': '0.03764803485049883', 'result_long': None, 'result_double': None}] Qualite : 0.03764803485049883 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29169812 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29169812_04-12-2025_06_24_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29169812 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_P29169812_04-12-2025_06_24_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169856, 'pht': 3726}}" where mtr_portfolio_id = 29169812 and dashboard_run_id = 2701238 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`=29169812 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064814, 0.03764803485049883, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29169812_04-12-2025_06_24_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169856, '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 = 29170360 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': 4183596, 'mtr_portfolio_id': 29170360, 'created_at': datetime.datetime(2025, 12, 4, 6, 25), 'result': '0.044726143932483295', 'result_long': None, 'result_double': None}] Qualite : 0.044726143932483295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29170360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29170360_04-12-2025_06_25_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29170360 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_P29170360_04-12-2025_06_25_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170397, 'pht': 3726}}" where mtr_portfolio_id = 29170360 and dashboard_run_id = 2701238 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`=29170360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064815, 0.044726143932483295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29170360_04-12-2025_06_25_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170397, '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 = 29170831 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': 4183597, 'mtr_portfolio_id': 29170831, 'created_at': datetime.datetime(2025, 12, 4, 6, 25, 32), 'result': '0.043621951418468405', 'result_long': None, 'result_double': None}] Qualite : 0.043621951418468405 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29170831 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29170831_04-12-2025_06_25_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29170831 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_P29170831_04-12-2025_06_25_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170842, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170850, 'pht': 3726}}" where mtr_portfolio_id = 29170831 and dashboard_run_id = 2701238 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`=29170831 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064816, 0.043621951418468405, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29170831_04-12-2025_06_25_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170842, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170850, '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 = 29171165 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': 4183598, 'mtr_portfolio_id': 29171165, 'created_at': datetime.datetime(2025, 12, 4, 6, 25, 38), 'result': '0.05725304174549657', 'result_long': None, 'result_double': None}] Qualite : 0.05725304174549657 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29171165 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29171165_04-12-2025_06_25_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29171165 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_P29171165_04-12-2025_06_25_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29171193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29171194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29171195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29171196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29171197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29171198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29171199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29171200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29171201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29171202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29171203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29171204, 'pht': 3726}}" where mtr_portfolio_id = 29171165 and dashboard_run_id = 2701238 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`=29171165 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064817, 0.05725304174549657, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29171165_04-12-2025_06_25_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29171193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29171194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29171195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29171196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29171197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29171198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29171199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29171200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29171201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29171202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29171203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29171204, '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 = 29172002 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': 4183600, 'mtr_portfolio_id': 29172002, 'created_at': datetime.datetime(2025, 12, 4, 6, 26, 1), 'result': '0.04546848021720859', 'result_long': None, 'result_double': None}] Qualite : 0.04546848021720859 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29172002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172002_04-12-2025_06_26_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29172002 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_P29172002_04-12-2025_06_26_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172016, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172019, 'pht': 3726}}" where mtr_portfolio_id = 29172002 and dashboard_run_id = 2701238 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`=29172002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064818, 0.04546848021720859, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172002_04-12-2025_06_26_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172016, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172019, '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 = 29172388 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': 4183601, 'mtr_portfolio_id': 29172388, 'created_at': datetime.datetime(2025, 12, 4, 6, 26, 9), 'result': '0.04045687581541578', 'result_long': None, 'result_double': None}] Qualite : 0.04045687581541578 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29172388 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172388_04-12-2025_06_26_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29172388 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_P29172388_04-12-2025_06_26_14.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172403, 'pht': 3726}}" where mtr_portfolio_id = 29172388 and dashboard_run_id = 2701238 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`=29172388 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064819, 0.04045687581541578, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172388_04-12-2025_06_26_14.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172403, '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 = 29172801 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': 4183500, 'mtr_portfolio_id': 29172801, 'created_at': datetime.datetime(2025, 12, 4, 5, 49), 'result': '0.041410680116186045', 'result_long': None, 'result_double': None}] Qualite : 0.041410680116186045 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29172801 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172801_04-12-2025_05_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29172801 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_P29172801_04-12-2025_05_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172815, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172817, 'pht': 3726}}" where mtr_portfolio_id = 29172801 and dashboard_run_id = 2701238 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`=29172801 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064820, 0.041410680116186045, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172801_04-12-2025_05_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172815, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172817, '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 = 29173230 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': 4183692, 'mtr_portfolio_id': 29173230, 'created_at': datetime.datetime(2025, 12, 4, 6, 3, 31), 'result': '0.044687640590459966', 'result_long': None, 'result_double': None}] Qualite : 0.044687640590459966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29173230 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173230_04-12-2025_06_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29173230 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_P29173230_04-12-2025_06_03_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29173247, 'pht': 3726}}" where mtr_portfolio_id = 29173230 and dashboard_run_id = 2701238 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`=29173230 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064821, 0.044687640590459966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173230_04-12-2025_06_03_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29173247, '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 = 29173539 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': 4183763, 'mtr_portfolio_id': 29173539, 'created_at': datetime.datetime(2025, 12, 4, 6, 19, 32), 'result': '0.036736345683720854', 'result_long': None, 'result_double': None}] Qualite : 0.036736345683720854 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29173539 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173539_04-12-2025_06_19_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29173539 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_P29173539_04-12-2025_06_19_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29173543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173554, 'pht': 3726}}" where mtr_portfolio_id = 29173539 and dashboard_run_id = 2701238 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`=29173539 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064822, 0.036736345683720854, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173539_04-12-2025_06_19_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29173543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173554, '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 = 29174089 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': 4183828, 'mtr_portfolio_id': 29174089, 'created_at': datetime.datetime(2025, 12, 4, 6, 32, 57), 'result': '0.03499223475861187', 'result_long': None, 'result_double': None}] Qualite : 0.03499223475861187 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29174089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29174089_04-12-2025_06_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29174089 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_P29174089_04-12-2025_06_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29174102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29174103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29174104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29174105, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29174106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29174107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29174108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29174109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29174110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29174111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29174112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29174113, 'pht': 3726}}" where mtr_portfolio_id = 29174089 and dashboard_run_id = 2701238 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`=29174089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064823, 0.03499223475861187, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29174089_04-12-2025_06_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29174102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29174103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29174104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29174105, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29174106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29174107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29174108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29174109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29174110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29174111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29174112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29174113, '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 = 29174520 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': 4183886, 'mtr_portfolio_id': 29174520, 'created_at': datetime.datetime(2025, 12, 4, 6, 48, 59), 'result': '0.04063444148832028', 'result_long': None, 'result_double': None}] Qualite : 0.04063444148832028 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29174520 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29174520_04-12-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29174520 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_P29174520_04-12-2025_06_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29174552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29174553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29174554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29174555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29174556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29174557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29174558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29174559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29174560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29174561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29174562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29174563, 'pht': 3726}}" where mtr_portfolio_id = 29174520 and dashboard_run_id = 2701238 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`=29174520 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064824, 0.04063444148832028, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29174520_04-12-2025_06_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29174552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29174553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29174554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29174555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29174556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29174557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29174558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29174559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29174560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29174561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29174562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29174563, '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 = 29175025 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': 4183949, 'mtr_portfolio_id': 29175025, 'created_at': datetime.datetime(2025, 12, 4, 7, 2, 30), 'result': '0.06460510968595502', 'result_long': None, 'result_double': None}] Qualite : 0.06460510968595502 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29175025 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29175025_04-12-2025_07_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29175025 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_P29175025_04-12-2025_07_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29175050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29175051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29175052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29175053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29175054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29175055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29175056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29175057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29175058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29175059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29175060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29175061, 'pht': 3726}}" where mtr_portfolio_id = 29175025 and dashboard_run_id = 2701238 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`=29175025 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064825, 0.06460510968595502, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29175025_04-12-2025_07_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29175050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29175051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29175052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29175053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29175054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29175055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29175056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29175057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29175058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29175059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29175060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29175061, '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 = 29175420 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': 4184015, 'mtr_portfolio_id': 29175420, 'created_at': datetime.datetime(2025, 12, 4, 7, 25, 59), 'result': '0.05051586573513665', 'result_long': None, 'result_double': None}] Qualite : 0.05051586573513665 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29175420 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29175420_04-12-2025_07_25_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29175420 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_P29175420_04-12-2025_07_25_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29175433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29175434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29175435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29175436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29175437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29175438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29175439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29175440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29175441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29175442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29175443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29175444, 'pht': 3726}}" where mtr_portfolio_id = 29175420 and dashboard_run_id = 2701238 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`=29175420 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064826, 0.05051586573513665, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29175420_04-12-2025_07_25_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29175433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29175434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29175435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29175436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29175437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29175438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29175439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29175440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29175441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29175442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29175443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29175444, '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 = 29176081 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': 4184095, 'mtr_portfolio_id': 29176081, 'created_at': datetime.datetime(2025, 12, 4, 7, 35, 30), 'result': '0.04537591886046993', 'result_long': None, 'result_double': None}] Qualite : 0.04537591886046993 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29176081 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176081_04-12-2025_07_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29176081 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_P29176081_04-12-2025_07_35_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29176094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176105, 'pht': 3726}}" where mtr_portfolio_id = 29176081 and dashboard_run_id = 2701238 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`=29176081 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064827, 0.04537591886046993, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176081_04-12-2025_07_35_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29176094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176105, '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 = 29176341 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': 4184129, 'mtr_portfolio_id': 29176341, 'created_at': datetime.datetime(2025, 12, 4, 7, 49), 'result': '0.016339218376193666', 'result_long': None, 'result_double': None}] Qualite : 0.016339218376193666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29176341 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176341_04-12-2025_07_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29176341 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_P29176341_04-12-2025_07_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29176342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29176349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176353, 'pht': 3726}}" where mtr_portfolio_id = 29176341 and dashboard_run_id = 2701238 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`=29176341 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064828, 0.016339218376193666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176341_04-12-2025_07_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29176342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29176349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176353, '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 = 29176418 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': 4184146, 'mtr_portfolio_id': 29176418, 'created_at': datetime.datetime(2025, 12, 4, 9, 30, 58), 'result': '0.07982821617861312', 'result_long': None, 'result_double': None}] Qualite : 0.07982821617861312 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29176418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176418_04-12-2025_09_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29176418 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_P29176418_04-12-2025_09_31_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29176421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176432, 'pht': 3726}}" where mtr_portfolio_id = 29176418 and dashboard_run_id = 2701238 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`=29176418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064829, 0.07982821617861312, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176418_04-12-2025_09_31_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29176421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176432, '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 = 29176753 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': 4184204, 'mtr_portfolio_id': 29176753, 'created_at': datetime.datetime(2025, 12, 4, 8, 19, 29), 'result': '0.052545314512877625', 'result_long': None, 'result_double': None}] Qualite : 0.052545314512877625 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29176753 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176753_04-12-2025_08_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29176753 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_P29176753_04-12-2025_08_19_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29176760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176766, 'pht': 3726}}" where mtr_portfolio_id = 29176753 and dashboard_run_id = 2701238 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`=29176753 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064830, 0.052545314512877625, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176753_04-12-2025_08_19_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29176760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176766, '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 = 29177339 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': 4184269, 'mtr_portfolio_id': 29177339, 'created_at': datetime.datetime(2025, 12, 4, 8, 32, 58), 'result': '0.0420912092155339', 'result_long': None, 'result_double': None}] Qualite : 0.0420912092155339 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29177339 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29177339_04-12-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29177339 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_P29177339_04-12-2025_08_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29177364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29177365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29177366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29177367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29177368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29177369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29177370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29177371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29177372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29177373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29177374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29177375, 'pht': 3726}}" where mtr_portfolio_id = 29177339 and dashboard_run_id = 2701238 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`=29177339 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064831, 0.0420912092155339, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29177339_04-12-2025_08_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29177364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29177365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29177366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29177367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29177368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29177369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29177370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29177371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29177372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29177373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29177374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29177375, '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 = 29177792 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': 4184328, 'mtr_portfolio_id': 29177792, 'created_at': datetime.datetime(2025, 12, 4, 8, 48, 59), 'result': '0.04753595531864046', 'result_long': None, 'result_double': None}] Qualite : 0.04753595531864046 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29177792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29177792_04-12-2025_08_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29177792 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_P29177792_04-12-2025_08_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29177805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29177806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29177807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29177808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29177809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29177810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29177811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29177812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29177813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29177814, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29177815, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29177816, 'pht': 3726}}" where mtr_portfolio_id = 29177792 and dashboard_run_id = 2701238 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`=29177792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064832, 0.04753595531864046, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29177792_04-12-2025_08_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29177805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29177806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29177807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29177808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29177809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29177810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29177811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29177812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29177813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29177814, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29177815, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29177816, '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 = 29178343 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': 4184395, 'mtr_portfolio_id': 29178343, 'created_at': datetime.datetime(2025, 12, 4, 9, 32, 29), 'result': '0.05307360697439451', 'result_long': None, 'result_double': None}] Qualite : 0.05307360697439451 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29178343 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29178343_04-12-2025_09_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29178343 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_P29178343_04-12-2025_09_32_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29178349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29178350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29178351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29178352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29178353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29178354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29178355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29178356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29178357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29178358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29178359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29178360, 'pht': 3726}}" where mtr_portfolio_id = 29178343 and dashboard_run_id = 2701238 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`=29178343 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064833, 0.05307360697439451, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29178343_04-12-2025_09_32_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29178349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29178350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29178351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29178352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29178353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29178354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29178355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29178356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29178357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29178358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29178359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29178360, '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 = 29179002 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': 4184538, 'mtr_portfolio_id': 29179002, 'created_at': datetime.datetime(2025, 12, 4, 9, 48, 56), 'result': '0.06274148051775401', 'result_long': None, 'result_double': None}] Qualite : 0.06274148051775401 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29179002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179002_04-12-2025_09_48_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29179002 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_P29179002_04-12-2025_09_48_56.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179017, 'pht': 3726}}" where mtr_portfolio_id = 29179002 and dashboard_run_id = 2701238 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`=29179002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064834, 0.06274148051775401, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179002_04-12-2025_09_48_56.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179017, '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 = 29179437 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': 4184584, 'mtr_portfolio_id': 29179437, 'created_at': datetime.datetime(2025, 12, 4, 10, 3), 'result': '0.04924474664599317', 'result_long': None, 'result_double': None}] Qualite : 0.04924474664599317 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29179437 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179437_04-12-2025_10_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29179437 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_P29179437_04-12-2025_10_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179455, 'pht': 3726}}" where mtr_portfolio_id = 29179437 and dashboard_run_id = 2701238 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`=29179437 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064835, 0.04924474664599317, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179437_04-12-2025_10_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179455, '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 = 29179810 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': 4184659, 'mtr_portfolio_id': 29179810, 'created_at': datetime.datetime(2025, 12, 4, 10, 16, 57), 'result': '0.05443569296976892', 'result_long': None, 'result_double': None}] Qualite : 0.05443569296976892 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29179810 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179810_04-12-2025_10_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29179810 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_P29179810_04-12-2025_10_16_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179833, 'pht': 3726}}" where mtr_portfolio_id = 29179810 and dashboard_run_id = 2701238 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`=29179810 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064836, 0.05443569296976892, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179810_04-12-2025_10_16_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179833, '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 = 29180409 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': 4184734, 'mtr_portfolio_id': 29180409, 'created_at': datetime.datetime(2025, 12, 4, 10, 32, 59), 'result': '0.04300339363385803', 'result_long': None, 'result_double': None}] Qualite : 0.04300339363385803 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29180409 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29180409_04-12-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29180409 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_P29180409_04-12-2025_10_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29180418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29180419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29180420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29180421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29180422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29180423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29180424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29180425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29180426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29180427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29180428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29180429, 'pht': 3726}}" where mtr_portfolio_id = 29180409 and dashboard_run_id = 2701238 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`=29180409 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064837, 0.04300339363385803, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29180409_04-12-2025_10_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29180418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29180419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29180420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29180421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29180422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29180423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29180424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29180425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29180426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29180427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29180428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29180429, '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 = 29181139 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': 4184822, 'mtr_portfolio_id': 29181139, 'created_at': datetime.datetime(2025, 12, 4, 14, 0, 2), 'result': '0.04122219974552667', 'result_long': None, 'result_double': None}] Qualite : 0.04122219974552667 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29181139 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29181139_04-12-2025_14_00_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29181139 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_P29181139_04-12-2025_14_00_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29181147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29181148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29181149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29181150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29181151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29181152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29181154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29181155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29181157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29181158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29181159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29181161, 'pht': 3726}}" where mtr_portfolio_id = 29181139 and dashboard_run_id = 2701238 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`=29181139 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064838, 0.04122219974552667, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29181139_04-12-2025_14_00_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29181147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29181148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29181149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29181150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29181151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29181152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29181154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29181155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29181157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29181158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29181159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29181161, '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 = 29183299 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29183299 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 29183299 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29183299 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29183299 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29183299 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29183299_04-12-2025_14_07_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29183299 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_P29183299_04-12-2025_14_07_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29183300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29183301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29183302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29183303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29183304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29183305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29183306, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29183307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29183308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29183309, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29183310, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29183311, 'pht': 3726}}" where mtr_portfolio_id = 29183299 and dashboard_run_id = 2701238 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 = 29183382 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': 4185259, 'mtr_portfolio_id': 29183382, 'created_at': datetime.datetime(2025, 12, 4, 14, 16, 56), 'result': '0.04391911476135046', 'result_long': None, 'result_double': None}] Qualite : 0.04391911476135046 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29183382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29183382_04-12-2025_14_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29183382 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_P29183382_04-12-2025_14_16_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29183385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29183386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29183387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29183388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29183389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29183390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29183391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29183392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29183393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29183394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29183395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29183396, 'pht': 3726}}" where mtr_portfolio_id = 29183382 and dashboard_run_id = 2701238 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`=29183382 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064840, 0.04391911476135046, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29183382_04-12-2025_14_16_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29183385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29183386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29183387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29183388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29183389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29183390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29183391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29183392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29183393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29183394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29183395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29183396, '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 = 29183842 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': 4185295, 'mtr_portfolio_id': 29183842, 'created_at': datetime.datetime(2025, 12, 4, 14, 32, 59), 'result': '0.04830291602633908', 'result_long': None, 'result_double': None}] Qualite : 0.04830291602633908 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29183842 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29183842_04-12-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29183842 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_P29183842_04-12-2025_14_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29183849, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29183850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29183851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29183852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29183853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29183854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29183855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29183856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29183857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29183858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29183859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29183860, 'pht': 3726}}" where mtr_portfolio_id = 29183842 and dashboard_run_id = 2701238 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`=29183842 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064841, 0.04830291602633908, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29183842_04-12-2025_14_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29183849, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29183850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29183851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29183852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29183853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29183854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29183855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29183856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29183857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29183858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29183859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29183860, '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 = 29184178 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': 4185346, 'mtr_portfolio_id': 29184178, 'created_at': datetime.datetime(2025, 12, 4, 14, 35), 'result': '0.0016477494192573125', 'result_long': None, 'result_double': None}] Qualite : 0.0016477494192573125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29184178 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29184178_04-12-2025_14_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29184178 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_P29184178_04-12-2025_14_35_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29184192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29184193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29184194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29184195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29184196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29184197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29184198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29184199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29184200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29184201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29184202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29184203, 'pht': 3726}}" where mtr_portfolio_id = 29184178 and dashboard_run_id = 2701238 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`=29184178 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064842, 0.0016477494192573125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29184178_04-12-2025_14_35_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29184192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29184193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29184194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29184195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29184196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29184197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29184198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29184199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29184200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29184201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29184202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29184203, '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 (29164250,29164732,29165106,29165583,29166634,29166944,29167317,29167848,29168406,29168945,29169363,29169812,29170360,29170831,29171165,29172002,29172388,29172801,29173230,29173539,29174089,29174520,29175025,29175420,29176081,29176341,29176418,29176753,29177339,29177792,29178343,29179002,29179437,29179810,29180409,29181139,29183299,29183382,29183842,29184178) result : ((1397754704,), (1397754746,), (1397754775,), (1397754811,), (1397755183,), (1397755250,), (1397755317,), (1397755363,), (1397755398,), (1397755783,), (1397755857,), (1397755927,), (1397755994,), (1397757030,), (1397757127,), (1397757226,), (1397757284,), (1397757320,), (1397757805,), (1397757841,), (1397757873,), (1397757921,), (1397757943,), (1397758207,), (1397758258,), (1397758323,), (1397758383,), (1397758780,), (1397758800,), (1397758802,), (1397758803,), (1397758805,), (1397758807,), (1397758825,), (1397758826,), (1397759084,), (1397759085,), (1397759086,), (1397759241,), (1397759256,), (1397759259,), (1397759260,), (1397759276,), (1397759277,), (1397759278,), (1397759279,), (1397759281,), (1397759282,), (1397759291,), (1397759294,), (1397759296,), (1397759299,), (1397759302,), (1397759324,), (1397759322,), (1397759323,), (1397759331,), (1397759332,), (1397759336,), (1397759337,), (1397759339,), (1397759341,), (1397759388,), (1397759395,), (1397759406,), (1397759412,), (1397759437,), (1397759612,), (1397759618,), (1397759625,), (1397759626,), (1397759652,), (1397759653,), (1397759654,), (1397759655,), (1397759657,), (1397759671,), (1397759672,), (1397759673,), (1397759674,), (1397759705,), (1397759987,), (1397759988,), (1397759989,), (1397759990,), (1397759992,), (1397760018,), (1397760020,), (1397760021,), (1397760028,), (1397760030,), (1397760032,), (1397760035,), (1397760038,), (1397760052,), (1397760053,), (1397760054,), (1397760055,), (1397760056,), (1397760058,), (1397760069,), (1397760070,), (1397760071,), (1397760073,), (1397760075,), (1397760077,), (1397760103,), (1397760106,), (1397760107,), (1397760135,), (1397760136,), (1397760137,), (1397760140,), (1397760143,), (1397760162,), (1397760165,), (1397760166,), (1397760167,), (1397760168,), (1397760169,), (1397760152,), (1397760153,), (1397760155,), (1397760157,), (1397760160,), (1397760170,), (1397760172,), (1397760180,), (1397760190,), (1397760192,), (1397760195,), (1397760197,), (1397760199,), (1397760213,), (1397760220,), (1397760224,), (1397760225,), (1397760227,), (1397760229,), (1397760308,), (1397760342,), (1397760374,), (1397760405,), (1397760832,), (1397760866,), (1397760900,), (1397760935,), (1397760948,), (1397760950,), (1397760954,), (1397760955,), (1397760985,), (1397761023,), (1397761058,), (1397761091,), (1397761219,), (1397761258,), (1397761268,), (1397761276,), (1397761304,), (1397761306,), (1397761388,), (1397761389,), (1397761391,), (1397761415,), (1397761448,), (1397761449,), (1397761458,), (1397761459,), (1397761460,), (1397761461,), (1397761464,), (1397761465,), (1397761468,), (1397761469,), (1397761472,), (1397761473,), (1397761477,), (1397761478,), (1397761479,), (1397761481,), (1397761483,), (1397761484,), (1397761489,), (1397761490,), (1397761491,), (1397761492,), (1397761493,), (1397761517,), (1397761518,), (1397761519,), (1397761522,), (1397761529,), (1397761535,), (1397761536,), (1397761537,), (1397761538,), (1397761558,), (1397761559,), (1397761560,), (1397761582,), (1397761583,), (1397761593,), (1397761602,), (1397761607,), (1397761610,), (1397761633,), (1397761626,), (1397761627,), (1397761628,), (1397761629,), (1397761631,), (1397761638,), (1397761639,), (1397761640,), (1397761641,), (1397761658,), (1397761659,), (1397761660,), (1397761661,), (1397761668,), (1397761669,), (1397761670,), (1397761671,), (1397761673,), (1397761675,), (1397761697,), (1397761698,), (1397761699,), (1397761700,), (1397761702,), (1397761708,), (1397761709,), (1397761710,), (1397761711,), (1397761724,), (1397761725,), (1397761726,), (1397761727,), (1397761729,), (1397761731,), (1397761748,), (1397761768,), (1397761773,), (1397761774,), (1397761776,), (1397761793,), (1397761794,), (1397761795,), (1397761802,), (1397761804,), (1397761806,), (1397761809,), (1397761812,), (1397761815,), (1397761827,), (1397761828,), (1397761829,), (1397761830,), (1397761869,), (1397761870,), (1397761871,), (1397761872,), (1397761885,), (1397761886,), (1397761894,), (1397761904,), (1397761906,), (1397768205,), (1397768742,), (1397768743,), (1397768744,), (1397768746,), (1397768748,), (1397768753,), (1397768773,), (1397768780,), (1397768781,), (1397768782,), (1397768783,), (1397768794,), (1397768795,), (1397768796,), (1397768797,), (1397768814,), (1397768815,), (1397768816,), (1397768818,), (1397768820,), (1397768831,), (1397768842,), (1397768857,), (1397768872,), (1397768873,), (1397768877,), (1397768894,), (1397768896,), (1397768899,), (1397768903,), (1397768906,), (1397768954,), (1397768967,), (1397768978,), (1397768979,), (1397768982,), (1397768985,), (1397768997,), (1397768998,), (1397768999,), (1397769000,), (1397769002,), (1397769024,), (1397769025,), (1397769026,), (1397769027,), (1397769049,), (1397769050,), (1397769051,), (1397769052,), (1397769054,), (1397769061,), (1397769062,), (1397769064,), (1397769065,), (1397769096,), (1397769089,), (1397769090,), (1397769091,), (1397769092,), (1397769094,), (1397769101,), (1397769102,), (1397769103,), (1397769104,), (1397769106,), (1397769145,), (1397769147,), (1397769148,), (1397769162,), (1397769186,), (1397769217,), (1397769255,), (1397769292,), (1397769328,), (1397769562,), (1397769677,), (1397769709,), (1397769747,), (1397769790,), (1397769823,), (1397769830,), (1397769853,), (1397769885,), (1397770066,), (1397770096,), (1397770097,), (1397770098,), (1397770120,), (1397770161,), (1397770164,), (1397770166,), (1397770180,), (1397770184,), (1397770245,), (1397770250,), (1397770251,), (1397770297,), (1397770299,), (1397770301,), (1397770303,), (1397770305,), (1397770307,), (1397770324,), (1397770325,), (1397770331,), (1397770332,), (1397770365,), (1397770366,), (1397770381,), (1397770411,), (1397770419,), (1397770421,), (1397770426,), (1397770876,), (1397770867,), (1397770869,), (1397770871,), (1397770873,), (1397771055,), (1397771061,), (1397771063,), (1397771087,), (1397771088,), (1397771089,), (1397771090,), (1397771104,), (1397771105,), (1397771106,), (1397771107,), (1397771137,), (1397771147,), (1397771148,), (1397771149,), (1397771151,), (1397771161,), (1397771162,), (1397771163,), (1397771171,), (1397771172,), (1397771173,), (1397771174,), (1397771193,), (1397771194,), (1397771195,), (1397771196,), (1397771199,), (1397771203,), (1397771404,), (1397771440,), (1397771474,), (1397771511,), (1397771547,), (1397771586,), (1397771738,), (1397771780,), (1397771823,), (1397771858,), (1397771890,), (1397771928,), (1397772042,), (1397772043,), (1397772076,), (1397772077,), (1397772215,), (1397772216,), (1397772217,), (1397772407,), (1397772438,), (1397772499,), (1397773283,), (1397773323,), (1397773358,), (1397773400,), (1397773463,), (1397773797,), (1397773798,), (1397773824,), (1397773854,), (1397774486,), (1397774536,), (1397774598,), (1397774632,), (1397774669,), (1397775021,), (1397775018,), (1397775019,), (1397775020,), (1397775207,), (1397775209,), (1397775211,), (1397775246,), (1397775299,), (1397775300,), (1397775301,), (1397775303,), (1397775305,), (1397775307,), (1397775311,), (1397775312,), (1397775314,), (1397775316,), (1397775323,), (1397775325,), (1397775328,), (1397775329,), (1397775330,), (1397775331,), (1397775332,), (1397775333,), (1397775335,), (1397775337,), (1397775339,), (1397775353,), (1397775355,), (1397775357,), (1397775362,), (1397775415,), (1397775422,), (1397775423,), (1397775424,), (1397775436,), (1397775437,), (1397775438,), (1397775439,), (1397775441,), (1397775447,), (1397775448,), (1397775449,), (1397775450,), (1397775452,), (1397775463,), (1397775464,), (1397775478,), (1397775479,), (1397775483,), (1397775484,), (1397775486,), (1397775488,), (1397775544,), (1397775546,), (1397775547,), (1397775549,), (1397775551,), (1397775553,), (1397775588,), (1397775593,), (1397775594,), (1397775596,), (1397775598,), (1397775600,), (1397775609,), (1397775614,), (1397775617,), (1397775619,), (1397775621,), (1397775622,), (1397775625,), (1397775627,), (1397775629,), (1397775631,), (1397775633,), (1397775653,), (1397775654,), (1397775655,), (1397775656,), (1397775664,), (1397775665,), (1397775666,), (1397775667,), (1397775683,), (1397775684,), (1397775685,), (1397775686,), (1397775688,), (1397775690,), (1397775702,), (1397775703,), (1397775709,), (1397775710,), (1397775711,), (1397775713,), (1397775732,), (1397775737,), (1397775738,), (1397775739,), (1397775755,), (1397775781,), (1397775782,), (1397775783,), (1397775785,), (1397775787,), (1397775788,), (1397775792,), (1397775793,), (1397775794,), (1397775796,), (1397775798,), (1397775800,), (1397775810,), (1397775811,), (1397775812,), (1397775818,), (1397775821,), (1397775822,), (1397775826,), (1397775827,), (1397775829,), (1397775831,), (1397775833,), (1397775835,), (1397775837,), (1397775838,), (1397775841,), (1397775842,), (1397775844,), (1397775845,), (1397775846,), (1397775847,), (1397775848,), (1397775850,), (1397775852,), (1397775854,), (1397775874,), (1397775875,), (1397775876,), (1397775877,), (1397775884,), (1397775885,), (1397775886,), (1397775887,), (1397775889,), (1397775891,), (1397775933,), (1397775934,), (1397775935,), (1397775942,), (1397775952,), (1397775956,), (1397775983,), (1397776009,), (1397776011,), (1397776044,), (1397776039,), (1397776040,), (1397776041,), (1397776042,), (1397776050,), (1397776051,), (1397776052,), (1397776053,), (1397776073,), (1397776074,), (1397776075,), (1397776077,), (1397776079,), (1397776081,), (1397776086,), (1397776087,), (1397776089,), (1397776091,), (1397776093,), (1397776095,), (1397776109,), (1397776110,), (1397776111,), (1397776115,), (1397776126,), (1397776129,), (1397776130,), (1397776132,), (1397776134,), (1397776136,), (1397776138,), (1397776139,), (1397776140,), (1397776141,), (1397776157,), (1397776162,), (1397776163,), (1397776164,), (1397776166,), (1397776168,), (1397776185,), (1397776193,), (1397776195,), (1397776260,), (1397776268,), (1397776270,), (1397776273,), (1397776276,), (1397776279,), (1397776283,), (1397776284,), (1397776285,), (1397776286,), (1397776310,), (1397776320,), (1397776324,), (1397776325,), (1397776327,), (1397776332,), (1397776333,), (1397776334,), (1397776335,), (1397776337,), (1397776339,), (1397776357,), (1397776358,), (1397776359,), (1397776361,), (1397776363,), (1397776365,), (1397776381,), (1397776383,), (1397776393,), (1397776399,), (1397776401,), (1397776403,), (1397776412,), (1397776435,), (1397776437,), (1397776439,), (1397776441,), (1397776443,), (1397776686,), (1397776724,), (1397776761,), (1397776878,), (1397776913,), (1397776571,), (1397776605,), (1397776649,), (1397777044,), (1397777077,), (1397777118,), (1397777149,), (1397777184,), (1397777221,), (1397777489,), (1397777521,), (1397777554,), (1397777938,), (1397777969,), (1397778001,), (1397778032,), (1397778714,), (1397778777,), (1397778847,), (1397778900,), (1397779081,), (1397779116,), (1397779179,), (1397779219,), (1397779260,), (1397779294,), (1397779467,), (1397779470,), (1397779471,), (1397779472,), (1397779474,), (1397779506,), (1397779507,), (1397779508,), (1397779510,), (1397779512,), (1397779514,), (1397779522,), (1397779525,), (1397779528,), (1397779531,), (1397779538,), (1397779547,), (1397779554,), (1397779555,), (1397779556,), (1397779557,), (1397779558,), (1397779559,), (1397779563,), (1397779564,), (1397779566,), (1397779568,), (1397779569,), (1397779570,), (1397779571,), (1397779572,), (1397779573,), (1397779574,), (1397779588,), (1397779589,), (1397779590,), (1397779591,), (1397779593,), (1397779606,), (1397779607,), (1397779608,), (1397779609,), (1397779611,), (1397779613,), (1397779622,), (1397779623,), (1397779624,), (1397779627,), (1397779641,), (1397779652,), (1397779653,), (1397779655,), (1397779682,), (1397779679,), (1397779680,), (1397779681,), (1397779702,), (1397779710,), (1397779712,), (1397779715,), (1397779718,), (1397779727,), (1397779729,), (1397779731,), (1397779734,), (1397779737,), (1397779740,), (1397779745,), (1397779747,), (1397779750,), (1397779756,), (1397779759,), (1397779761,), (1397779762,), (1397779763,), (1397779764,), (1397779765,), (1397779766,), (1397779768,), (1397779770,), (1397779771,), (1397779784,), (1397779785,), (1397779786,), (1397779787,), (1397779789,), (1397779790,), (1397779800,), (1397779810,), (1397779811,), (1397779813,), (1397779819,), (1397779820,), (1397779821,), (1397779822,), (1397779824,), (1397779846,), (1397779847,), (1397779860,), (1397779861,), (1397779864,), (1397779915,), (1397779920,), (1397779921,), (1397779929,), (1397779930,), (1397779931,), (1397779932,), (1397779934,), (1397779947,), (1397779948,), (1397779961,), (1397779962,), (1397779963,), (1397779979,), (1397779980,), (1397779981,), (1397779982,), (1397780041,), (1397780042,), (1397780043,), (1397780044,), (1397780047,), (1397780049,), (1397780057,), (1397780055,), (1397780056,), (1397780064,), (1397780065,), (1397780066,), (1397780067,), (1397780080,), (1397780082,), (1397780084,), (1397780087,), (1397780090,), (1397780100,), (1397780101,), (1397780102,), (1397780103,), (1397780105,), (1397780111,), (1397780112,), (1397780113,), (1397780142,), (1397780143,), (1397780144,), (1397780145,), (1397780152,), (1397780162,), (1397780164,), (1397780166,), (1397780173,), (1397780214,), (1397780215,), (1397780216,), (1397780218,), (1397780220,), (1397780222,), (1397780229,), (1397780230,), (1397780232,), (1397780234,), (1397780237,), (1397780239,), (1397780242,), (1397780243,), (1397780249,), (1397780253,), (1397780254,), (1397780256,), (1397780258,), (1397780260,), (1397780262,), (1397780278,), (1397780279,), (1397780280,), (1397780315,), (1397780316,), (1397780317,), (1397780323,), (1397780324,), (1397780325,), (1397780389,), (1397780396,), (1397780397,), (1397780398,), (1397780400,), (1397780407,), (1397780408,), (1397780409,), (1397780410,), (1397780425,), (1397780418,), (1397780419,), (1397780420,), (1397780421,), (1397780423,), (1397780448,), (1397780449,), (1397780450,), (1397780507,), (1397780508,), (1397780509,), (1397780510,), (1397780517,), (1397780518,), (1397780519,), (1397780529,), (1397780530,), (1397780531,), (1397780532,), (1397780534,), (1397780541,), (1397780542,), (1397780543,), (1397780544,), (1397780546,), (1397780558,), (1397780559,), (1397780566,), (1397780568,), (1397780570,), (1397780573,), (1397780576,), (1397780680,), (1397780681,), (1397780682,), (1397780683,), (1397780690,), (1397780691,), (1397780692,), (1397780693,), (1397780695,), (1397780704,), (1397780707,), (1397780709,), (1397780711,), (1397780713,), (1397780715,), (1397781060,), (1397781093,), (1397781106,), (1397781109,), (1397781111,), (1397781113,), (1397781174,), (1397781212,), (1397781244,), (1397781250,), (1397781251,), (1397781281,), (1397781347,), (1397781382,), (1397781415,), (1397781561,), (1397781598,), (1397781651,), (1397781321,), (1397781322,), (1397781323,), (1397781767,), (1397781800,), (1397781830,), (1397782180,), (1397782205,), (1397782207,), (1397782210,), (1397782213,), (1397782275,), (1397782339,), (1397783075,), (1397783113,), (1397783172,), (1397783226,), (1397783264,), (1397783611,), (1397783654,), (1397783686,), (1397783695,), (1397783697,), (1397783734,), (1397783772,), (1397783807,), (1397783839,), (1397784013,), (1397784014,), (1397784015,), (1397784017,), (1397784030,), (1397784054,), (1397784060,), (1397784061,), (1397784063,), (1397784065,), (1397784067,), (1397784069,), (1397784075,), (1397784076,), (1397784091,), (1397784092,), (1397785806,), (1397785773,), (1397786282,), (1397786316,), (1397786742,), (1397786906,), (1397786941,), (1397786964,), (1397787055,), (1397787061,), (1397787062,), (1397787063,), (1397787064,), (1397787078,), (1397787079,), (1397787080,), (1397787082,), (1397787084,), (1397787086,), (1397787091,), (1397787093,), (1397787094,), (1397787096,), (1397787099,), (1397787101,), (1397787104,), (1397787105,), (1397787106,), (1397787107,), (1397787108,), (1397787109,), (1397787113,), (1397787115,), (1397787117,), (1397787119,), (1397787120,), (1397787121,), (1397787122,), (1397787123,), (1397787125,), (1397787127,), (1397787129,), (1397787135,), (1397787143,), (1397787144,), (1397787146,), (1397787148,), (1397787154,), (1397787155,), (1397787156,), (1397787157,), (1397787158,), (1397787185,), (1397787186,), (1397787187,), (1397787188,), (1397787190,), (1397787196,), (1397787197,), (1397787198,), (1397787199,), (1397787201,), (1397787222,), (1397787215,), (1397787216,), (1397787217,), (1397787218,), (1397787220,), (1397787227,), (1397787228,), (1397787229,), (1397787230,), (1397787250,), (1397787251,), (1397787252,), (1397787254,), (1397787256,), (1397787258,), (1397787263,), (1397787265,), (1397787268,), (1397787273,), (1397787276,), (1397787279,), (1397787282,), (1397787283,), (1397787284,), (1397787285,), (1397787286,), (1397787287,), (1397787291,), (1397787292,), (1397787294,), (1397787296,), (1397787298,), (1397787299,), (1397787300,), (1397787301,), (1397787302,), (1397787303,), (1397787305,), (1397787307,), (1397787332,), (1397787333,), (1397787334,), (1397787335,), (1397787337,), (1397787338,), (1397787347,), (1397787349,), (1397787354,), (1397787355,), (1397787421,), (1397787427,), (1397787430,), (1397787433,), (1397787437,), (1397787439,), (1397787446,), (1397787447,), (1397787448,), (1397787449,), (1397787467,), (1397787468,), (1397787469,), (1397787470,), (1397787472,), (1397787474,), (1397787478,), (1397787479,), (1397787480,), (1397787481,), (1397787511,), (1397787512,), (1397787513,), (1397787515,), (1397787517,), (1397787519,), (1397787523,), (1397787524,), (1397787526,), (1397787528,), (1397787530,), (1397787532,), (1397787543,), (1397787546,), (1397787547,), (1397787548,), (1397787550,), (1397787551,), (1397787555,), (1397787556,), (1397787558,), (1397787560,), (1397787562,), (1397787569,), (1397787600,), (1397787602,), (1397787604,), (1397787594,), (1397787595,), (1397787626,), (1397787627,), (1397787628,), (1397787629,), (1397787631,), (1397787637,), (1397787638,), (1397787639,), (1397787640,), (1397787642,), (1397787644,), (1397787662,), (1397787670,), (1397787681,), (1397787682,), (1397787689,), (1397787691,), (1397787693,), (1397787696,), (1397787699,), (1397787702,), (1397787709,), (1397787717,), (1397787718,), (1397787719,), (1397787726,), (1397787727,), (1397787728,), (1397787729,), (1397787731,), (1397787733,), (1397787747,), (1397787748,), (1397787749,), (1397787750,), (1397787752,), (1397787758,), (1397787759,), (1397787760,), (1397787761,), (1397787782,), (1397787786,), (1397787787,), (1397787788,), (1397787790,), (1397787792,), (1397787797,), (1397787798,), (1397787799,), (1397787800,), (1397787824,), (1397787832,), (1397787835,), (1397787836,), (1397787838,), (1397787840,), (1397787844,), (1397787845,), (1397787846,), (1397787847,), (1397787849,), (1397787873,), (1397787874,), (1397787875,), (1397787876,), (1397787878,), (1397787880,), (1397787885,), (1397787887,), (1397787888,), (1397787889,), (1397787914,), (1397787909,), (1397787910,), (1397787911,), (1397787912,), (1397787920,), (1397787921,), (1397787922,), (1397787923,), (1397787947,), (1397787954,), (1397787955,), (1397787963,), (1397787964,), (1397787965,), (1397787966,), (1397787968,), (1397787974,), (1397787975,), (1397787976,), (1397787977,), (1397787997,), (1397788003,), (1397788004,), (1397788005,), (1397788007,), (1397788012,), (1397788014,), (1397788017,), (1397788019,), (1397788022,), (1397788033,), (1397788034,), (1397788035,), (1397788036,), (1397788038,), (1397788040,), (1397788044,), (1397788045,), (1397788046,), (1397788047,), (1397788058,), (1397788059,), (1397788060,), (1397788061,), (1397788063,), (1397788069,), (1397788070,), (1397788071,), (1397788072,), (1397788090,), (1397788091,), (1397788092,), (1397788093,), (1397788095,), (1397788318,), (1397788354,), (1397788387,), (1397788422,), (1397788457,), (1397788491,), (1397788639,), (1397788671,), (1397788705,), (1397788731,), (1397788747,), (1397788734,), (1397788736,), (1397788738,), (1397788740,), (1397789081,), (1397789158,), (1397789193,), (1397789226,), (1397789278,), (1397789329,), (1397789669,), (1397789703,), (1397789737,), (1397789870,), (1397789902,), (1397789924,), (1397789928,), (1397789930,), (1397789954,), (1397790002,), (1397790003,), (1397790004,), (1397790022,), (1397790023,), (1397790024,), (1397790025,), (1397790027,), (1397790029,), (1397790035,), (1397790036,), (1397790037,), (1397790038,), (1397790040,), (1397790042,), (1397790057,), (1397790058,), (1397790059,), (1397790060,), (1397790067,), (1397790068,), (1397790069,), (1397790070,), (1397790072,), (1397790074,), (1397790087,), (1397790096,), (1397790101,), (1397790102,), (1397790108,), (1397790109,), (1397790110,), (1397790112,), (1397790114,), (1397790116,), (1397790130,), (1397790131,), (1397790132,), (1397790133,), (1397790135,), (1397790137,), (1397790142,), (1397790143,), (1397790144,), (1397790145,), (1397790153,), (1397790154,), (1397790155,), (1397790156,), (1397790158,), (1397790160,), (1397790172,), (1397790174,), (1397790175,), (1397790176,), (1397790210,), (1397790194,), (1397790203,), (1397790205,), (1397790206,), (1397790208,), (1397790215,), (1397790216,), (1397790217,), (1397790218,), (1397790219,), (1397790236,), (1397790237,), (1397790238,), (1397790239,), (1397790241,), (1397790243,), (1397790251,), (1397790253,), (1397790256,), (1397790259,), (1397790262,), (1397790265,), (1397790277,), (1397790278,), (1397790279,), (1397790280,), (1397790283,), (1397790285,), (1397790288,), (1397790291,), (1397790294,), (1397790297,), (1397790298,), (1397790299,), (1397790337,), (1397790339,), (1397790346,), (1397790355,), (1397790357,), (1397790359,), (1397790371,), (1397790374,), (1397790375,), (1397790376,), (1397790402,), (1397790403,), (1397790404,), (1397790405,), (1397790407,), (1397790413,), (1397790414,), (1397790415,), (1397790416,), (1397790418,), (1397790420,), (1397790436,), (1397790440,), (1397790441,), (1397790442,), (1397790456,), (1397790457,), (1397790458,), (1397790459,), (1397790460,), (1397790461,), (1397790479,), (1397790484,), (1397790485,), (1397790486,), (1397790500,), (1397790494,), (1397790495,), (1397790496,), (1397790497,), (1397790499,), (1397790523,), (1397790524,), (1397790525,), (1397790526,), (1397790536,), (1397790542,), (1397790543,), (1397790544,), (1397790546,), (1397790548,), (1397790561,), (1397790564,), (1397790565,), (1397790566,), (1397790575,), (1397790576,), (1397790577,), (1397790578,), (1397790580,), (1397790594,), (1397790595,), (1397790596,), (1397790597,), (1397790599,), (1397790601,), (1397790612,), (1397790614,), (1397790616,), (1397790619,), (1397790641,), (1397790646,), (1397790647,), (1397790648,), (1397790650,), (1397790652,), (1397790657,), (1397790658,), (1397790659,), (1397790661,), (1397790663,), (1397790665,), (1397790677,), (1397790678,), (1397790679,), (1397790682,), (1397790689,), (1397790690,), (1397790691,), (1397790693,), (1397790695,), (1397790697,), (1397790706,), (1397790707,), (1397790708,), (1397790709,), (1397790711,), (1397790744,), (1397790745,), (1397790746,), (1397790747,), (1397790749,), (1397790751,), (1397790758,), (1397790759,), (1397790760,), (1397790761,), (1397790763,), (1397790765,), (1397790770,), (1397790771,), (1397790772,), (1397790787,), (1397790788,), (1397790790,), (1397790791,), (1397790793,), (1397790821,), (1397790816,), (1397790817,), (1397790818,), (1397790819,), (1397790827,), (1397790829,), (1397790831,), (1397790834,), (1397790841,), (1397790844,), (1397790848,), (1397790850,), (1397790858,), (1397790883,), (1397790884,), (1397790885,), (1397790886,), (1397790887,), (1397790889,), (1397790905,), (1397790907,), (1397790909,), (1397790911,), (1397790913,), (1397790916,), (1397790917,), (1397790919,), (1397790921,), (1397790923,), (1397790927,), (1397790928,), (1397790929,), (1397790930,), (1397790931,), (1397790932,), (1397790933,), (1397790934,), (1397790935,), (1397790936,), (1397790937,), (1397790938,), (1397790942,), (1397790943,), (1397790945,), (1397790981,), (1397790982,), (1397790983,), (1397790984,), (1397790986,), (1397790988,), (1397791000,), (1397791001,), (1397791002,), (1397791003,), (1397791005,), (1397791026,), (1397791027,), (1397791028,), (1397791029,), (1397791031,), (1397791037,), (1397791038,), (1397791039,), (1397791040,), (1397791047,), (1397791048,), (1397791049,), (1397791050,), (1397791282,), (1397791316,), (1397791483,), (1397791478,), (1397791927,), (1397791959,), (1397791992,), (1397792408,), (1397792441,), (1397792552,), (1397792585,), (1397792617,), (1397792650,), (1397792856,), (1397792857,), (1397792858,), (1397792859,), (1397792861,), (1397792862,), (1397792868,), (1397792869,), (1397792870,), (1397792871,), (1397792873,), (1397792882,), (1397792883,), (1397792884,), (1397792885,), (1397792944,), (1397792945,), (1397792946,), (1397793314,), (1397793315,), (1397793480,), (1397793479,), (1397793502,), (1397793509,), (1397793533,), (1397793534,), (1397793535,), (1397793536,), (1397793538,), (1397793540,), (1397793545,), (1397793546,), (1397793547,), (1397793548,), (1397793550,), (1397793564,), (1397793565,), (1397793572,), (1397793574,), (1397793659,), (1397793658,), (1397793666,), (1397793667,), (1397793668,), (1397793669,), (1397793686,), (1397793711,), (1397793776,), (1397793774,), (1397793775,), (1397793783,), (1397793784,), (1397793785,), (1397793786,), (1397793793,), (1397793794,), (1397793795,), (1397793796,), (1397793810,), (1397793811,), (1397793812,), (1397793813,), (1397793815,), (1397793817,), (1397793822,), (1397793823,), (1397793824,), (1397793845,), (1397793846,), (1397793847,), (1397793848,), (1397793850,), (1397793851,), (1397793857,), (1397793858,), (1397793859,), (1397793860,), (1397793861,), (1397793863,), (1397793882,), (1397793890,), (1397793891,), (1397793892,), (1397793899,), (1397793900,), (1397793901,), (1397793902,), (1397793904,), (1397793919,), (1397793920,), (1397793921,), (1397793922,), (1397793924,), (1397793930,), (1397793931,), (1397793932,), (1397793934,), (1397793955,), (1397793956,), (1397793957,), (1397793958,), (1397793960,), (1397793962,), (1397793976,), (1397793979,), (1397793981,), (1397793983,), (1397793985,), (1397793987,), (1397793991,), (1397793992,), (1397793993,), (1397793994,), (1397793995,), (1397794006,), (1397794007,), (1397794009,), (1397794011,), (1397794013,), (1397794015,), (1397793998,), (1397794000,), (1397794002,), (1397794004,), (1397794029,), (1397794030,), (1397794032,), (1397794034,), (1397794164,), (1397794194,), (1397794231,), (1397794260,), (1397794291,), (1397794329,), (1397794756,), (1397794825,), (1397794884,), (1397794946,), (1397795008,), (1397795501,), (1397795502,), (1397795503,), (1397795504,), (1397795778,), (1397795809,), (1397795861,), (1397795905,), (1397795938,), (1397796126,), (1397796157,), (1397796189,), (1397796228,), (1397796544,), (1397796577,), (1397796607,), (1397796642,), (1397796675,), (1397796987,), (1397796988,), (1397797009,), (1397797010,), (1397797011,), (1397797012,), (1397797072,), (1397797105,), (1397797140,), (1397797225,), (1397797280,), (1397797330,), (1397797363,), (1397797424,), (1397797460,), (1397797466,), (1397797468,), (1397797470,), (1397797597,), (1397797631,), (1397797662,), (1397797697,), (1397797729,), (1397797762,), (1397798077,), (1397798111,), (1397798150,), (1397798179,), (1397798547,), (1397798548,), (1397798549,), (1397798559,), (1397798569,), (1397798576,), (1397798748,), (1397798749,), (1397798777,), (1397798799,), (1397798802,), (1397798870,), (1397798865,), (1397798866,), (1397798867,), (1397798868,), (1397798876,), (1397798877,), (1397798878,), (1397798879,), (1397798881,), (1397798925,), (1397798926,), (1397798927,), (1397798928,), (1397798936,), (1397798940,), (1397798973,), (1397799005,), (1397799040,), (1397799075,), (1397799216,), (1397799217,), (1397799228,), (1397799252,), (1397799329,), (1397799331,), (1397799333,), (1397799336,), (1397799339,), (1397799342,), (1397799350,), (1397799351,), (1397799352,), (1397799353,), (1397799355,), (1397799361,), (1397799362,), (1397799363,), (1397799364,), (1397799378,), (1397799379,), (1397799380,), (1397799381,), (1397799383,), (1397799385,), (1397799390,), (1397799391,), (1397799392,), (1397799394,), (1397799396,), (1397799408,), (1397799409,), (1397799410,), (1397799411,), (1397799413,), (1397799415,), (1397799431,), (1397799437,), (1397799438,), (1397799453,), (1397799454,), (1397799455,), (1397799456,), (1397799458,), (1397799459,), (1397799465,), (1397799466,), (1397799467,), (1397799469,), (1397799471,), (1397799473,), (1397799479,), (1397799480,), (1397799481,), (1397799489,), (1397799491,), (1397799493,), (1397799495,), (1397799497,), (1397799499,), (1397799501,), (1397799504,), (1397799522,), (1397799515,), (1397799516,), (1397799517,), (1397799518,), (1397799520,), (1397799554,), (1397799555,), (1397799556,), (1397799557,), (1397799564,), (1397799565,), (1397799566,), (1397799567,), (1397799569,), (1397799589,), (1397799590,), (1397799591,), (1397799592,), (1397799594,), (1397799596,), (1397799619,), (1397799620,), (1397799623,), (1397799628,), (1397800762,), (1397800843,), (1397800845,), (1397801109,), (1397801078,), (1397801084,), (1397801085,), (1397801086,), (1397801089,), (1397801252,), (1397801258,), (1397801287,), (1397801288,), (1397801332,), (1397801341,), (1397801342,), (1397801364,), (1397801396,), (1397801680,), (1397801713,), (1397801743,), (1397801778,), (1397801795,), (1397801798,), (1397801814,), (1397801815,), (1397801816,), (1397801817,), (1397801824,), (1397801828,), (1397801829,), (1397801831,), (1397801833,), (1397801836,), (1397801837,), (1397801838,), (1397801839,), (1397801841,), (1397801843,), (1397801865,), (1397801878,), (1397801882,), (1397801886,), (1397801890,), (1397801894,), (1397801898,), (1397801902,), (1397801906,), (1397802030,), (1397802044,), (1397802052,), (1397802058,), (1397802067,), (1397802078,), (1397802104,), (1397802105,), (1397802106,), (1397802107,), (1397802138,), (1397802139,), (1397802140,), (1397802141,), (1397802144,), (1397802145,), (1397802162,), (1397802163,), (1397802165,), (1397802167,), (1397802191,), (1397802194,), (1397802197,), (1397802200,), (1397802344,), (1397802356,), (1397802360,), (1397802381,), (1397803372,), (1397803389,), (1397803390,), (1397803392,), (1397803394,), (1397803396,), (1397803413,), (1397803415,), (1397803417,), (1397803439,), (1397803440,), (1397803441,), (1397803442,), (1397803469,), (1397803470,), (1397803472,), (1397803474,), (1397803477,), (1397803480,), (1397803519,), (1397803520,), (1397803521,), (1397803522,), (1397803542,), (1397803544,), (1397803546,), (1397803548,), (1397803551,), (1397803554,), (1397803583,), (1397803591,), (1397803596,), (1397803602,), (1397803661,), (1397803689,), (1397803691,), (1397803693,), (1397803695,), (1397803728,), (1397803735,), (1397803766,), (1397803767,), (1397803768,), (1397803769,), (1397803874,), (1397803875,), (1397803877,), (1397803899,), (1397803900,), (1397803941,), (1397803943,), (1397803945,), (1397803947,), (1397803998,), (1397804000,), (1397804002,), (1397804003,), (1397804005,), (1397804232,), (1397804195,), (1397804226,), (1397804228,), (1397804229,), (1397804329,), (1397804339,), (1397804370,), (1397804393,), (1397804396,), (1397804417,), (1397804419,), (1397804421,), (1397804423,), (1397804545,), (1397804578,), (1397804610,), (1397804641,), (1397804674,), (1397804711,), (1397804781,), (1397804782,), (1397804783,), (1397804784,), (1397804786,), (1397804788,), (1397804805,), (1397804806,), (1397804808,), (1397804846,), (1397804848,), (1397804850,), (1397804852,), (1397804854,), (1397804878,), (1397804880,), (1397804881,), (1397804918,), (1397804919,), (1397804920,), (1397804921,), (1397804923,), (1397804926,), (1397804943,), (1397804945,), (1397804947,), (1397804949,), (1397804952,), (1397804974,), (1397804977,), (1397804981,), (1397804982,), (1397804984,), (1397805051,), (1397805053,), (1397805055,), (1397805057,), (1397805060,), (1397805083,), (1397805084,), (1397805085,), (1397805086,), (1397805089,), (1397805114,), (1397805115,), (1397805119,), (1397805124,), (1397805128,), (1397805131,), (1397805265,), (1397805296,), (1397805327,), (1397805361,), (1397805649,), (1397805500,), (1397805542,), (1397805576,), (1397805613,), (1397805766,), (1397805769,), (1397805796,), (1397805860,), (1397806447,), (1397806480,), (1397806515,), (1397806550,), (1397806859,), (1397806860,), (1397806875,), (1397806907,), (1397806940,), (1397806972,), (1397807401,), (1397807464,), (1397807525,), (1397807592,), (1397807838,), (1397807861,), (1397807896,), (1397807939,), (1397807984,), (1397808037,), (1397808239,), (1397808246,), (1397808269,), (1397808276,), (1397808434,), (1397808466,), (1397808503,), (1397808539,), (1397808571,), (1397808620,), (1397809294,), (1397809330,), (1397809363,), (1397809378,), (1397809382,), (1397809387,), (1397809400,), (1397809402,), (1397809404,), (1397809405,), (1397809472,), (1397809529,), (1397809567,), (1397809601,), (1397809638,), (1397809928,), (1397810032,), (1397810131,), (1397810224,), (1397810300,), (1397810731,), (1397810733,), (1397810736,), (1397810739,), (1397810968,), (1397810972,), (1397811010,), (1397811018,), (1397811022,), (1397811244,), (1397811277,), (1397811321,), (1397811366,), (1397811406,), (1397811812,), (1397811846,), (1397811875,), (1397811878,), (1397811884,), (1397812085,), (1397812026,), (1397812059,), (1397812080,), (1397812082,), (1397812249,), (1397812252,), (1397812255,), (1397812259,), (1397812264,), (1397812371,), (1397812373,), (1397812377,), (1397812382,), (1397812386,), (1397812412,), (1397812413,), (1397812416,), (1397812420,), (1397812425,), (1397812430,), (1397812453,), (1397812460,), (1397812471,), (1397812474,), (1397812507,), (1397812847,), (1397812848,), (1397812851,), (1397812854,), (1397812858,), (1397812881,), (1397812888,), (1397812894,), (1397812897,), (1397812901,), (1397812927,), (1397812934,), (1397812958,), (1397812960,), (1397813879,), (1397813881,), (1397813884,), (1397813909,), (1397813911,), (1397813912,), (1397813913,), (1397814196,), (1397814198,), (1397814215,), (1397814232,), (1397814250,), (1397814286,), (1397814282,), (1397814284,), (1397814315,), (1397814317,), (1397814318,), (1397814342,), (1397814369,), (1397814371,), (1397815955,), (1397843501,), (1397842995,), (1397843499,), (1397845207,), (1397845876,), (1397846719,), (1397846757,), (1397846771,), (1397846960,), (1397846998,), (1397847034,), (1397847069,), (1397847265,), (1397847272,), (1397847361,), (1397847363,), (1397847365,), (1397847367,), (1397848016,), (1397848105,), (1397848106,), (1397848149,), (1397848205,), (1397848303,), (1397848621,), (1397848624,), (1397848627,), (1397848629,), (1397848660,), (1397848663,), (1397848666,), (1397848668,), (1397848671,), (1397848673,), (1397848698,), (1397848700,), (1397848701,), (1397848707,), (1397848739,), (1397848843,), (1397848859,), (1397848862,), (1397848893,), (1397848955,), (1397849201,), (1397849203,), (1397849205,), (1397849207,), (1397849210,), (1397849213,), (1397849230,), (1397849232,), (1397849233,), (1397849234,), (1397849237,), (1397849264,), (1397849261,), (1397849262,), (1397849289,), (1397849297,), (1397849381,), (1397849417,), (1397849577,), (1397849609,), (1397849642,), (1397849675,), (1397849813,), (1397850273,), (1397850274,), (1397850276,), (1397850295,), (1397850297,), (1397850299,), (1397850330,), (1397850332,), (1397850335,), (1397850337,), (1397850367,), (1397850354,), (1397850361,), (1397850363,), (1397850390,), (1397850391,), (1397850392,), (1397850393,), (1397850396,), (1397850399,), (1397850415,), (1397850417,), (1397850419,), (1397850421,), (1397850424,), (1397850438,), (1397850440,), (1397850442,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04122025': {'nb_upload': 17, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29184178]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1397850442, 1397850440, 1397850438, 1397850424, 1397850421, 1397850419, 1397850417, 1397850415, 1397850399, 1397850396, 1397850393, 1397850392, 1397850391, 1397850390] map_info['map_portfolio_photo'] : {29184178: [1397850442, 1397850440, 1397850438, 1397850424, 1397850421, 1397850419, 1397850417, 1397850415, 1397850399, 1397850396, 1397850393, 1397850392, 1397850391, 1397850390, 1397850363, 1397850361, 1397850354]} final : True mtd_id 4302 list_pids : [1397850442, 1397850440, 1397850438, 1397850424, 1397850421, 1397850419, 1397850417, 1397850415, 1397850399, 1397850396, 1397850393, 1397850392, 1397850391, 1397850390] Looping around the photos to save general results len do output : 1 /29184178Didn'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, '4185346') ('4302', '29184178', '1397850442', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850440', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850438', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850424', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850421', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850419', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850417', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850415', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850399', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850396', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850393', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850392', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850391', None, None, None, None, None, '4185346') ('4302', None, None, None, None, None, None, None, '4185346') ('4302', '29184178', '1397850390', None, None, None, None, None, '4185346') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '29184178', 'None', None, None, None, None, '4185346'), ('4302', '29184178', '1397850442', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850440', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850438', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850424', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850421', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850419', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850417', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850415', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850399', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850396', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850393', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850392', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850391', None, None, None, None, None, '4185346'), ('4302', '29184178', '1397850390', None, None, None, None, None, '4185346')] time used for this insertion : 0.019593000411987305 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.045058488845825 time spend to save output : 0.019860267639160156 total time spend for step 5 : 3.0649187564849854 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 (4185346) 2.22user 2.31system 0:10.56elapsed 42%CPU (0avgtext+0avgdata 168740maxresident)k 312inputs+9232outputs (13major+79662minor)pagefaults 0swaps