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 : 1924049 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 (2720899) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2720899) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22024908 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2720899'] with mtr_portfolio_ids : ['22024908'] and first list_photo_ids : [] new path : /proc/1924049/ Name: python3 Umask: 0002 State: R (running) Tgid: 1924049 Ngid: 0 Pid: 1924049 PPid: 1924048 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1924049 NSpid: 1924049 NSpgid: 1921481 NSsid: 1921481 VmPeak: 1106828 kB VmSize: 1106828 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98044 kB VmRSS: 98044 kB RssAnon: 59800 kB RssFile: 38244 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 52 nonvoluntary_ctxt_switches: 82 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1924049', 'Ngid': '0', 'Pid': '1924049', 'PPid': '1924048', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1924049', 'NSpid': '1924049', 'NSpgid': '1921481', 'NSsid': '1921481', 'VmPeak': '1106828 kB', 'VmSize': '1106828 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98044 kB', 'VmRSS': '98044 kB', 'RssAnon': '59800 kB', 'RssFile': '38244 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '52', 'nonvoluntary_ctxt_switches': '82'} ('datou_batch_current', '1924049', '1106828', '0', '1106828', '865576', '98044', b'', 'marlene', '2720899') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (22024908) 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 (2720899 ) ) 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 (22024908) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349887121, 'portfolio_id': 22024908}, {'photo_id': 1349822966, 'portfolio_id': 22024908}, {'photo_id': 1349822949, 'portfolio_id': 22024908}, {'photo_id': 1349822944, 'portfolio_id': 22024908}, {'photo_id': 1349822940, 'portfolio_id': 22024908}, {'photo_id': 1349822935, 'portfolio_id': 22024908}, {'photo_id': 1349822929, 'portfolio_id': 22024908}, {'photo_id': 1349822925, 'portfolio_id': 22024908}, {'photo_id': 1349822918, 'portfolio_id': 22024908}, {'photo_id': 1349822915, 'portfolio_id': 22024908}, {'photo_id': 1349822909, 'portfolio_id': 22024908}, {'photo_id': 1349822906, 'portfolio_id': 22024908}, {'photo_id': 1349822900, 'portfolio_id': 22024908}, {'photo_id': 1349822898, 'portfolio_id': 22024908}, {'photo_id': 1349822884, 'portfolio_id': 22024908}, {'photo_id': 1349822879, 'portfolio_id': 22024908}, {'photo_id': 1349822874, 'portfolio_id': 22024908}, {'photo_id': 1349822868, 'portfolio_id': 22024908}, {'photo_id': 1349822863, 'portfolio_id': 22024908}, {'photo_id': 1349822858, 'portfolio_id': 22024908}, {'photo_id': 1349822846, 'portfolio_id': 22024908}, {'photo_id': 1349822841, 'portfolio_id': 22024908}, {'photo_id': 1349822837, 'portfolio_id': 22024908}, {'photo_id': 1349822833, 'portfolio_id': 22024908}, {'photo_id': 1349822829, 'portfolio_id': 22024908}] map_portfolio_id_photo_id: {22024908: [1349887121, 1349822966, 1349822949, 1349822944, 1349822940, 1349822935, 1349822929, 1349822925, 1349822918, 1349822915, 1349822909, 1349822906, 1349822900, 1349822898, 1349822884, 1349822879, 1349822874, 1349822868, 1349822863, 1349822858, 1349822846, 1349822841, 1349822837, 1349822833, 1349822829]} ##### 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.013148784637451172 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Apr 16 00:02: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 (22024908) 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 : 22024908 get user id for portfolio 22024908 get sub ptf for main ptf 22024908, type 3726 and hashtags ['mal_croppe', 'environnement', 'Carton_gris', 'papier', 'flou', 'Teint_Dans_La_Masse', 'Carton_brun', 'autre_refus', 'metal', 'kraft', 'plastique', 'cartonnette'] 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`=22024908 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','Carton_gris','papier','flou','Teint_Dans_La_Masse','Carton_brun','autre_refus','metal','kraft','plastique','cartonnette')) 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`=22024908 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','Carton_gris','papier','flou','Teint_Dans_La_Masse','Carton_brun','autre_refus','metal','kraft','plastique','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22024908, 'sub_port_id': 22024941, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518481, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 27)}, 'flou': {'main_port_id': 22024908, 'sub_port_id': 22024942, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518482, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 27)}, 'metal': {'main_port_id': 22024908, 'sub_port_id': 22024943, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518483, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 27)}, 'Carton_brun': {'main_port_id': 22024908, 'sub_port_id': 22024944, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518484, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 27)}, 'plastique': {'main_port_id': 22024908, 'sub_port_id': 22024945, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518485, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 22024908, 'sub_port_id': 22024946, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518486, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 27)}, 'mal_croppe': {'main_port_id': 22024908, 'sub_port_id': 22024947, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518487, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 27)}, 'papier': {'main_port_id': 22024908, 'sub_port_id': 22024948, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518488, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 27)}, 'autre_refus': {'main_port_id': 22024908, 'sub_port_id': 22024949, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518489, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 27)}, 'cartonnette': {'main_port_id': 22024908, 'sub_port_id': 22024950, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518490, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 27)}, 'Carton_gris': {'main_port_id': 22024908, 'sub_port_id': 22024951, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518491, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 27)}, 'environnement': {'main_port_id': 22024908, 'sub_port_id': 22024952, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518492, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22024941 , 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=22024908 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 (22024941) result : ((1349823522,), (1349823974,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22024908) result : ((1349822829,), (1349822833,), (1349822837,), (1349822841,), (1349822846,), (1349822858,), (1349822863,), (1349822868,), (1349822874,), (1349822879,), (1349822884,), (1349822898,), (1349822900,), (1349822906,), (1349822909,), (1349822915,), (1349822918,), (1349822925,), (1349822929,), (1349822935,), (1349822940,), (1349822944,), (1349822949,), (1349822966,), (1349887121,)) 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 (1349822900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22024942 , 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=22024908 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 (22024942) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22024908) result : ((1349822829,), (1349822833,), (1349822837,), (1349822841,), (1349822846,), (1349822858,), (1349822863,), (1349822868,), (1349822874,), (1349822879,), (1349822884,), (1349822898,), (1349822900,), (1349822906,), (1349822909,), (1349822915,), (1349822918,), (1349822925,), (1349822929,), (1349822935,), (1349822940,), (1349822944,), (1349822949,), (1349822966,), (1349887121,)) 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 (1349822900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22024943 , 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=22024908 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 (22024943) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22024908) result : ((1349822829,), (1349822833,), (1349822837,), (1349822841,), (1349822846,), (1349822858,), (1349822863,), (1349822868,), (1349822874,), (1349822879,), (1349822884,), (1349822898,), (1349822900,), (1349822906,), (1349822909,), (1349822915,), (1349822918,), (1349822925,), (1349822929,), (1349822935,), (1349822940,), (1349822944,), (1349822949,), (1349822966,), (1349887121,)) 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 (1349822900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22024944 , 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=22024908 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 (22024944) result : ((1349823517,), (1349823692,), (1349823693,), (1349823717,), (1349823718,), (1349823966,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22024908) result : ((1349822829,), (1349822833,), (1349822837,), (1349822841,), (1349822846,), (1349822858,), (1349822863,), (1349822868,), (1349822874,), (1349822879,), (1349822884,), (1349822898,), (1349822900,), (1349822906,), (1349822909,), (1349822915,), (1349822918,), (1349822925,), (1349822929,), (1349822935,), (1349822940,), (1349822944,), (1349822949,), (1349822966,), (1349887121,)) 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 (1349822900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22024945 , 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=22024908 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 (22024945) result : ((1349823520,), (1349823697,), (1349823698,), (1349823722,), (1349823724,), (1349823725,), (1349823727,), (1349823969,), (1349823970,), (1349823971,), (1349823972,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22024908) result : ((1349822829,), (1349822833,), (1349822837,), (1349822841,), (1349822846,), (1349822858,), (1349822863,), (1349822868,), (1349822874,), (1349822879,), (1349822884,), (1349822898,), (1349822900,), (1349822906,), (1349822909,), (1349822915,), (1349822918,), (1349822925,), (1349822929,), (1349822935,), (1349822940,), (1349822944,), (1349822949,), (1349822966,), (1349887121,)) 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 (1349822900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22024946 , 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=22024908 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 (22024946) result : ((1349823706,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22024908) result : ((1349822829,), (1349822833,), (1349822837,), (1349822841,), (1349822846,), (1349822858,), (1349822863,), (1349822868,), (1349822874,), (1349822879,), (1349822884,), (1349822898,), (1349822900,), (1349822906,), (1349822909,), (1349822915,), (1349822918,), (1349822925,), (1349822929,), (1349822935,), (1349822940,), (1349822944,), (1349822949,), (1349822966,), (1349887121,)) 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 (1349822900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22024947 , 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=22024908 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 (22024947) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22024908) result : ((1349822829,), (1349822833,), (1349822837,), (1349822841,), (1349822846,), (1349822858,), (1349822863,), (1349822868,), (1349822874,), (1349822879,), (1349822884,), (1349822898,), (1349822900,), (1349822906,), (1349822909,), (1349822915,), (1349822918,), (1349822925,), (1349822929,), (1349822935,), (1349822940,), (1349822944,), (1349822949,), (1349822966,), (1349887121,)) 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 (1349822900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22024948 , 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=22024908 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 (22024948) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22024908) result : ((1349822829,), (1349822833,), (1349822837,), (1349822841,), (1349822846,), (1349822858,), (1349822863,), (1349822868,), (1349822874,), (1349822879,), (1349822884,), (1349822898,), (1349822900,), (1349822906,), (1349822909,), (1349822915,), (1349822918,), (1349822925,), (1349822929,), (1349822935,), (1349822940,), (1349822944,), (1349822949,), (1349822966,), (1349887121,)) 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 (1349822900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22024949 , 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=22024908 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 (22024949) result : ((1349823708,), (1349823948,), (1349823949,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22024908) result : ((1349822829,), (1349822833,), (1349822837,), (1349822841,), (1349822846,), (1349822858,), (1349822863,), (1349822868,), (1349822874,), (1349822879,), (1349822884,), (1349822898,), (1349822900,), (1349822906,), (1349822909,), (1349822915,), (1349822918,), (1349822925,), (1349822929,), (1349822935,), (1349822940,), (1349822944,), (1349822949,), (1349822966,), (1349887121,)) 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 (1349822900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22024950 , 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=22024908 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 (22024950) result : ((1349823514,), (1349823515,), (1349823714,), (1349823716,), (1349823956,), (1349823957,), (1349823958,), (1349823959,), (1349823960,), (1349823961,), (1349823963,), (1349823964,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22024908) result : ((1349822829,), (1349822833,), (1349822837,), (1349822841,), (1349822846,), (1349822858,), (1349822863,), (1349822868,), (1349822874,), (1349822879,), (1349822884,), (1349822898,), (1349822900,), (1349822906,), (1349822909,), (1349822915,), (1349822918,), (1349822925,), (1349822929,), (1349822935,), (1349822940,), (1349822944,), (1349822949,), (1349822966,), (1349887121,)) 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 (1349822900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22024951 , 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=22024908 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 (22024951) result : ((1349823512,), (1349823709,), (1349823953,), (1349823954,), (1349823955,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22024908) result : ((1349822829,), (1349822833,), (1349822837,), (1349822841,), (1349822846,), (1349822858,), (1349822863,), (1349822868,), (1349822874,), (1349822879,), (1349822884,), (1349822898,), (1349822900,), (1349822906,), (1349822909,), (1349822915,), (1349822918,), (1349822925,), (1349822929,), (1349822935,), (1349822940,), (1349822944,), (1349822949,), (1349822966,), (1349887121,)) 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 (1349822900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22024952 , 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=22024908 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 (22024952) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22024908) result : ((1349822829,), (1349822833,), (1349822837,), (1349822841,), (1349822846,), (1349822858,), (1349822863,), (1349822868,), (1349822874,), (1349822879,), (1349822884,), (1349822898,), (1349822900,), (1349822906,), (1349822909,), (1349822915,), (1349822918,), (1349822925,), (1349822929,), (1349822935,), (1349822940,), (1349822944,), (1349822949,), (1349822966,), (1349887121,)) 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 (1349822900) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22024908 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','Carton_gris','papier','flou','Teint_Dans_La_Masse','Carton_brun','autre_refus','metal','kraft','plastique','cartonnette')) 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`=22024908 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','Carton_gris','papier','flou','Teint_Dans_La_Masse','Carton_brun','autre_refus','metal','kraft','plastique','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22024908, 'sub_port_id': 22024953, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518493, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 28)}, 'flou': {'main_port_id': 22024908, 'sub_port_id': 22024954, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518494, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 28)}, 'metal': {'main_port_id': 22024908, 'sub_port_id': 22024955, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518495, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 28)}, 'Carton_brun': {'main_port_id': 22024908, 'sub_port_id': 22024956, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518496, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 28)}, 'plastique': {'main_port_id': 22024908, 'sub_port_id': 22024957, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518497, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 22024908, 'sub_port_id': 22024958, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518498, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 28)}, 'mal_croppe': {'main_port_id': 22024908, 'sub_port_id': 22024959, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518499, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 28)}, 'papier': {'main_port_id': 22024908, 'sub_port_id': 22024960, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518500, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 28)}, 'autre_refus': {'main_port_id': 22024908, 'sub_port_id': 22024961, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518501, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 28)}, 'cartonnette': {'main_port_id': 22024908, 'sub_port_id': 22024962, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518502, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 28)}, 'Carton_gris': {'main_port_id': 22024908, 'sub_port_id': 22024963, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518503, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 28)}, 'environnement': {'main_port_id': 22024908, 'sub_port_id': 22024964, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14518504, 'last_updated_at': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 9, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 9, 35, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22024953,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22024941 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22024954,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22024942 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22024955,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22024943 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22024956,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22024944 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22024957,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22024945 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22024958,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22024946 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22024959,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22024947 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22024960,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22024948 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22024961,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22024949 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22024962,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22024950 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22024963,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22024951 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22024964,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22024952 lien utilise dans velours : https://www.fotonower.com/velours/22024953,22024954,22024955,22024956,22024957,22024958,22024959,22024960,22024961,22024962,22024963,22024964?tags=kraft,flou,metal,Carton_brun,plastique,Teint_Dans_La_Masse,mal_croppe,papier,autre_refus,cartonnette,Carton_gris,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22024908]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349887121] map_info['map_portfolio_photo'] : {22024908: [1349887121, 1349822966, 1349822949, 1349822944, 1349822940, 1349822935, 1349822929, 1349822925, 1349822918, 1349822915, 1349822909, 1349822906, 1349822900, 1349822898, 1349822884, 1349822879, 1349822874, 1349822868, 1349822863, 1349822858, 1349822846, 1349822841, 1349822837, 1349822833, 1349822829]} final : False mtd_id 4302 list_pids : [1349887121] Looping around the photos to save general results len do output : 1 /22024908. 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, '2720899') ('4302', '22024908', '1349887121', None, None, None, None, None, '2720899') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '22024908', "{'kraft': 22024941, 'flou': 22024942, 'metal': 22024943, 'Carton_brun': 22024944, 'plastique': 22024945, 'Teint_Dans_La_Masse': 22024946, 'mal_croppe': 22024947, 'papier': 22024948, 'autre_refus': 22024949, 'cartonnette': 22024950, 'Carton_gris': 22024951, 'environnement': 22024952}", None, None, None, None, '2720899'), ('4302', '22024908', '1349887121', None, None, None, None, None, '2720899')] time used for this insertion : 0.013929128646850586 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4566361904144287 time spend to save output : 0.014130830764770508 total time spend for step 1 : 0.4707670211791992 step2:final Wed Apr 16 00:02:59 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 (22024908) 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 22024908 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349822966,1349822949,1349822944,1349822940,1349822935,1349822925,1349822929,1349822915,1349822918,1349822906,1349822909,1349822898,1349822900,1349822884,1349822879,1349822874,1349822868,1349822863,1349822858,1349822846,1349822841,1349822837,1349822833,1349822829,1349887121); 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([22024908]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349887121: ('0.046187537021588614',)} new output for save of step final : {1349887121: ('0.046187537021588614',)} [1349887121] map_info['map_portfolio_photo'] : {22024908: [1349887121, 1349822966, 1349822949, 1349822944, 1349822940, 1349822935, 1349822929, 1349822925, 1349822918, 1349822915, 1349822909, 1349822906, 1349822900, 1349822898, 1349822884, 1349822879, 1349822874, 1349822868, 1349822863, 1349822858, 1349822846, 1349822841, 1349822837, 1349822833, 1349822829]} final : False mtd_id 4302 list_pids : [1349887121] Looping around the photos to save general results len do output : 1 /1349887121.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, '2720899') ('4302', '22024908', '1349887121', None, None, None, None, None, '2720899') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '22024908', '1349887121', '0.046187537021588614', None, None, None, None, '2720899')] time used for this insertion : 0.013814687728881836 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06284451484680176 time spend to save output : 0.01401066780090332 total time spend for step 2 : 0.07685518264770508 step3:velours_tree Wed Apr 16 00:02:59 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 : {22024908: [{'kraft': 22024941, 'flou': 22024942, 'metal': 22024943, 'Carton_brun': 22024944, 'plastique': 22024945, 'Teint_Dans_La_Masse': 22024946, 'mal_croppe': 22024947, 'papier': 22024948, 'autre_refus': 22024949, 'cartonnette': 22024950, 'Carton_gris': 22024951, 'environnement': 22024952}]} input_args_next_step : {22024908: ()} output_args : {22024908: [{'kraft': 22024941, 'flou': 22024942, 'metal': 22024943, 'Carton_brun': 22024944, 'plastique': 22024945, 'Teint_Dans_La_Masse': 22024946, 'mal_croppe': 22024947, 'papier': 22024948, 'autre_refus': 22024949, 'cartonnette': 22024950, 'Carton_gris': 22024951, 'environnement': 22024952}]} args : 22024908 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 : ({'kraft': 22024941, 'flou': 22024942, 'metal': 22024943, 'Carton_brun': 22024944, 'plastique': 22024945, 'Teint_Dans_La_Masse': 22024946, 'mal_croppe': 22024947, 'papier': 22024948, 'autre_refus': 22024949, 'cartonnette': 22024950, 'Carton_gris': 22024951, 'environnement': 22024952},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22024908) 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([22024908]) 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.2816121578216553 time spend to save output : 5.1021575927734375e-05 total time spend for step 3 : 0.281663179397583 step4:send_mail_cod Wed Apr 16 00:02:59 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 : {1349887121: ('0.046187537021588614',)} input_args_next_step : {1349887121: ()} output_args : {1349887121: ('0.046187537021588614',)} args : 1349887121 depend.output_id : 0 complete output_args for input 3 : {22024908: [{'kraft': 22024941, 'flou': 22024942, 'metal': 22024943, 'Carton_brun': 22024944, 'plastique': 22024945, 'Teint_Dans_La_Masse': 22024946, 'mal_croppe': 22024947, 'papier': 22024948, 'autre_refus': 22024949, 'cartonnette': 22024950, 'Carton_gris': 22024951, 'environnement': 22024952}]} input_args_next_step : {1349887121: ('0.046187537021588614',), 22024908: ()} output_args : {22024908: [{'kraft': 22024941, 'flou': 22024942, 'metal': 22024943, 'Carton_brun': 22024944, 'plastique': 22024945, 'Teint_Dans_La_Masse': 22024946, 'mal_croppe': 22024947, 'papier': 22024948, 'autre_refus': 22024949, 'cartonnette': 22024950, 'Carton_gris': 22024951, 'environnement': 22024952}]} args : 22024908 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 :2, first value : ('0.046187537021588614',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22024908) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1349887121) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349887121 download finish for photo 1349887121 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P22024908_16-04-2025_00_02_59.pdf 22024941 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22024941 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349823522: '1744702573_589880_1349822837_97413cae549cbbda129508b243d88a05_rle_crop_3746271192_0.png', 1349823974: '1744702692_591100_1349822884_1520575b7b0d4b9247c2af5e6799f962_rle_crop_3746272759_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/5b6730230f26057778bfd6202cc40d3f_95522946.png change filename to text .imagette220249411744754579/ imagette220249411744754579/1744702573_589880_1349822837_97413cae549cbbda129508b243d88a05_rle_crop_3746271192_0.png.png imagette220249411744754579/1744702692_591100_1349822884_1520575b7b0d4b9247c2af5e6799f962_rle_crop_3746272759_0.png.png imagette220249421744754579/ imagette220249431744754579/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/f282c648118ad4d6eda427dd49bf3d64_49746227.png imagette220249411744754579 22024942 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22024942 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220249421744754579 22024943 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22024943 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220249431744754579 22024945 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22024945 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349823520: '1744702573_589880_1349822837_97413cae549cbbda129508b243d88a05_rle_crop_3746271189_0.png', 1349823697: '1744702631_590563_1349822929_bf6a9eb8dc6554aad3979325e73bd0f5_rle_crop_3746271633_0.png', 1349823698: '1744702631_590563_1349822925_05026c153873e4587f60655427880901_rle_crop_3746271650_0.png', 1349823722: '1744702647_1618618_1349822846_313e463c77d3a378c2248e1aea4f6116_rle_crop_3746271668_0.png', 1349823724: '1744702647_1618618_1349822846_313e463c77d3a378c2248e1aea4f6116_rle_crop_3746271669_0.png', 1349823725: '1744702647_1618618_1349822841_057fc1eef9c689dad6d8a88fb0898ea4_rle_crop_3746271701_0.png', 1349823727: '1744702647_1618618_1349822841_057fc1eef9c689dad6d8a88fb0898ea4_rle_crop_3746271698_0.png', 1349823969: '1744702692_591100_1349822900_c873d6025347e814fc217097c94e8648_rle_crop_3746272732_0.png', 1349823970: '1744702692_591100_1349822898_f2b285dfe60089080e0c0ad7bef52b87_rle_crop_3746272749_0.png', 1349823971: '1744702692_591100_1349822884_1520575b7b0d4b9247c2af5e6799f962_rle_crop_3746272763_0.png', 1349823972: '1744702692_591100_1349822879_e36630b2a6dd3ac829394f4c426a3a09_rle_crop_3746272780_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/5d704e0a4f86a86bfcc3773bcaf7e88b_13873735.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/9de2fdcc1eec73c2d93b4eb4e0d6671f_29857665.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/9de2fdcc1eec73c2d93b4eb4e0d6671f_21836685.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/5b3c36afb01c8c5d39c8c2914d583263_54467546.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/2389cdbae6e9fb9726800ed09a4f5872_69351515.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/ead0ad037e91a44271d97a3ed7ac9537_99441885.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/5cc26c3d19f2c61bf76f83704440e091_58801439.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/30b88ecbd2e690d404ab1c4cbc7e12b9_83409112.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/30b88ecbd2e690d404ab1c4cbc7e12b9_40519808.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/855e7630ebeaa4089c787bc817e4d208_72516427.png change filename to text .imagette220249451744754579/ imagette220249451744754579/1744702631_590563_1349822925_05026c153873e4587f60655427880901_rle_crop_3746271650_0.png.png imagette220249451744754579/1744702647_1618618_1349822846_313e463c77d3a378c2248e1aea4f6116_rle_crop_3746271669_0.png.png imagette220249451744754579/1744702631_590563_1349822929_bf6a9eb8dc6554aad3979325e73bd0f5_rle_crop_3746271633_0.png.png imagette220249451744754579/1744702647_1618618_1349822841_057fc1eef9c689dad6d8a88fb0898ea4_rle_crop_3746271701_0.png.png imagette220249451744754579/1744702692_591100_1349822879_e36630b2a6dd3ac829394f4c426a3a09_rle_crop_3746272780_0.png.png imagette220249451744754579/1744702692_591100_1349822884_1520575b7b0d4b9247c2af5e6799f962_rle_crop_3746272763_0.png.png imagette220249451744754579/1744702647_1618618_1349822841_057fc1eef9c689dad6d8a88fb0898ea4_rle_crop_3746271698_0.png.png imagette220249451744754579/1744702647_1618618_1349822846_313e463c77d3a378c2248e1aea4f6116_rle_crop_3746271668_0.png.png imagette220249451744754579/1744702692_591100_1349822898_f2b285dfe60089080e0c0ad7bef52b87_rle_crop_3746272749_0.png.png imagette220249451744754579/1744702573_589880_1349822837_97413cae549cbbda129508b243d88a05_rle_crop_3746271189_0.png.png imagette220249451744754579/1744702692_591100_1349822900_c873d6025347e814fc217097c94e8648_rle_crop_3746272732_0.png.png imagette220249471744754581/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/c80b17662eed4600d21fa6fc0dfec0df_41952792.png imagette220249451744754579 22024947 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22024947 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220249471744754581 22024949 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22024949 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349823708: '1744702647_1618618_1349822863_a2cab073d977b9ff7159077ec6a28550_rle_crop_3746271640_0.png', 1349823948: '1744702692_591100_1349822918_fdc7165b30e54429c87ebe090828c59b_rle_crop_3746272674_0.png', 1349823949: '1744702692_591100_1349822915_0219d71fc5607755ef9258c40b7b369e_rle_crop_3746272686_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/0af3a59c39dba21425a8367639d89b1a_84106211.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/324d0b346529ab6de7a8997fe037098e_32240574.png change filename to text .imagette220249491744754581/ imagette220249491744754581/1744702647_1618618_1349822863_a2cab073d977b9ff7159077ec6a28550_rle_crop_3746271640_0.png.png imagette220249491744754581/1744702692_591100_1349822918_fdc7165b30e54429c87ebe090828c59b_rle_crop_3746272674_0.png.png imagette220249491744754581/1744702692_591100_1349822915_0219d71fc5607755ef9258c40b7b369e_rle_crop_3746272686_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/324d0b346529ab6de7a8997fe037098e_74768976.png imagette220249491744754581 22024950 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22024950 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349823514: '1744702573_589880_1349822837_97413cae549cbbda129508b243d88a05_rle_crop_3746271184_0.png', 1349823515: '1744702573_589880_1349822833_5e04b5c3bf9fabfbc3abf453d8da4751_rle_crop_3746271409_0.png', 1349823714: '1744702647_1618618_1349822846_313e463c77d3a378c2248e1aea4f6116_rle_crop_3746271672_0.png', 1349823716: '1744702647_1618618_1349822841_057fc1eef9c689dad6d8a88fb0898ea4_rle_crop_3746271693_0.png', 1349823956: '1744702692_591100_1349822918_fdc7165b30e54429c87ebe090828c59b_rle_crop_3746272675_0.png', 1349823957: '1744702692_591100_1349822915_0219d71fc5607755ef9258c40b7b369e_rle_crop_3746272687_0.png', 1349823958: '1744702692_591100_1349822909_a41767f0694632b5490597d1e1ecfd48_rle_crop_3746272696_0.png', 1349823959: '1744702692_591100_1349822906_79959485ee356adc197b048e346b2316_rle_crop_3746272711_0.png', 1349823960: '1744702692_591100_1349822900_c873d6025347e814fc217097c94e8648_rle_crop_3746272730_0.png', 1349823961: '1744702692_591100_1349822900_c873d6025347e814fc217097c94e8648_rle_crop_3746272728_0.png', 1349823963: '1744702692_591100_1349822898_f2b285dfe60089080e0c0ad7bef52b87_rle_crop_3746272747_0.png', 1349823964: '1744702692_591100_1349822898_f2b285dfe60089080e0c0ad7bef52b87_rle_crop_3746272745_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/511a903c10715d3d1c7a6b3774e093f0_55138911.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/7e9dc1580f9969df42f186eb07602922_82577132.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/45cebf5c154c5038887021c61e1df672_5003009.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/05941f6b6ac205dc77ed65934c0b2bf1_19180870.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/cf2f9e7f209baeadebaa21d7ecad094b_58006067.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/cf2f9e7f209baeadebaa21d7ecad094b_89416701.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/17f048c574fed8c59ae8e0c1d7e485bb_87855586.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/17f048c574fed8c59ae8e0c1d7e485bb_88258615.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/8cb50b4199c099b238c4e1c7b5b3fb01_19574453.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/87a373708b88a977466939f5f82946f6_68943310.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/8cb50b4199c099b238c4e1c7b5b3fb01_21313607.png change filename to text .imagette220249501744754581/ imagette220249501744754581/1744702647_1618618_1349822841_057fc1eef9c689dad6d8a88fb0898ea4_rle_crop_3746271693_0.png.png imagette220249501744754581/1744702692_591100_1349822898_f2b285dfe60089080e0c0ad7bef52b87_rle_crop_3746272747_0.png.png imagette220249501744754581/1744702692_591100_1349822915_0219d71fc5607755ef9258c40b7b369e_rle_crop_3746272687_0.png.png imagette220249501744754581/1744702692_591100_1349822918_fdc7165b30e54429c87ebe090828c59b_rle_crop_3746272675_0.png.png imagette220249501744754581/1744702692_591100_1349822906_79959485ee356adc197b048e346b2316_rle_crop_3746272711_0.png.png imagette220249501744754581/1744702647_1618618_1349822846_313e463c77d3a378c2248e1aea4f6116_rle_crop_3746271672_0.png.png imagette220249501744754581/1744702692_591100_1349822898_f2b285dfe60089080e0c0ad7bef52b87_rle_crop_3746272745_0.png.png imagette220249501744754581/1744702692_591100_1349822900_c873d6025347e814fc217097c94e8648_rle_crop_3746272728_0.png.png imagette220249501744754581/1744702573_589880_1349822837_97413cae549cbbda129508b243d88a05_rle_crop_3746271184_0.png.png imagette220249501744754581/1744702692_591100_1349822909_a41767f0694632b5490597d1e1ecfd48_rle_crop_3746272696_0.png.png imagette220249501744754581/1744702573_589880_1349822833_5e04b5c3bf9fabfbc3abf453d8da4751_rle_crop_3746271409_0.png.png imagette220249501744754581/1744702692_591100_1349822900_c873d6025347e814fc217097c94e8648_rle_crop_3746272730_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/87a373708b88a977466939f5f82946f6_34445166.png imagette220249501744754581 22024944 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22024944 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349823517: '1744702573_589880_1349822833_5e04b5c3bf9fabfbc3abf453d8da4751_rle_crop_3746271410_0.png', 1349823692: '1744702631_590563_1349822929_bf6a9eb8dc6554aad3979325e73bd0f5_rle_crop_3746271629_0.png', 1349823693: '1744702631_590563_1349822925_05026c153873e4587f60655427880901_rle_crop_3746271646_0.png', 1349823717: '1744702647_1618618_1349822846_313e463c77d3a378c2248e1aea4f6116_rle_crop_3746271674_0.png', 1349823718: '1744702647_1618618_1349822841_057fc1eef9c689dad6d8a88fb0898ea4_rle_crop_3746271695_0.png', 1349823966: '1744702692_591100_1349822874_4bac2eda27908cf8a1f3dd62b2f5f94e_rle_crop_3746272789_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/e797ba91a03daf59dd75d0cd6c0eb81e_70556222.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/11422d0f7565d689ac8cd78d4f71602c_86312755.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/11422d0f7565d689ac8cd78d4f71602c_62592459.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/4e7c76b6b3e9d426cc9fdc0e63fc1f99_57729357.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/a8768a064eb457a8e06966468b21dea6_95731755.png change filename to text .imagette220249441744754582/ imagette220249441744754582/1744702573_589880_1349822833_5e04b5c3bf9fabfbc3abf453d8da4751_rle_crop_3746271410_0.png.png imagette220249441744754582/1744702631_590563_1349822929_bf6a9eb8dc6554aad3979325e73bd0f5_rle_crop_3746271629_0.png.png imagette220249441744754582/1744702647_1618618_1349822841_057fc1eef9c689dad6d8a88fb0898ea4_rle_crop_3746271695_0.png.png imagette220249441744754582/1744702631_590563_1349822925_05026c153873e4587f60655427880901_rle_crop_3746271646_0.png.png imagette220249441744754582/1744702692_591100_1349822874_4bac2eda27908cf8a1f3dd62b2f5f94e_rle_crop_3746272789_0.png.png imagette220249441744754582/1744702647_1618618_1349822846_313e463c77d3a378c2248e1aea4f6116_rle_crop_3746271674_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/225d11d2fdc5ecd30a4398bc3475ad37_21362084.png imagette220249441744754582 22024946 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22024946 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349823706: '1744702647_1618618_1349822858_9dece0d197c0384052e647a94b90174b_rle_crop_3746271663_0.png'} change filename to text .imagette220249461744754583/ imagette220249461744754583/1744702647_1618618_1349822858_9dece0d197c0384052e647a94b90174b_rle_crop_3746271663_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/a196e0b450261037dfc120a2cbe0d013_91683924.png imagette220249461744754583 22024951 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22024951 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349823512: '1744702573_589880_1349822829_cef02f7e300ad0996338becc44da1d36_rle_crop_3746271427_0.png', 1349823709: '1744702647_1618618_1349822846_313e463c77d3a378c2248e1aea4f6116_rle_crop_3746271673_0.png', 1349823953: '1744702692_591100_1349822918_fdc7165b30e54429c87ebe090828c59b_rle_crop_3746272677_0.png', 1349823954: '1744702692_591100_1349822915_0219d71fc5607755ef9258c40b7b369e_rle_crop_3746272689_0.png', 1349823955: '1744702692_591100_1349822874_4bac2eda27908cf8a1f3dd62b2f5f94e_rle_crop_3746272786_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/ea869e7835fa10971c2906fcbe312428_28042357.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/442ddf4fe79518a50f560e924d5ed96a_72404233.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/d9913b47388b70d29c237d69fd37a186_4736745.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/d9913b47388b70d29c237d69fd37a186_69781932.png change filename to text .imagette220249511744754583/ imagette220249511744754583/1744702692_591100_1349822874_4bac2eda27908cf8a1f3dd62b2f5f94e_rle_crop_3746272786_0.png.png imagette220249511744754583/1744702692_591100_1349822918_fdc7165b30e54429c87ebe090828c59b_rle_crop_3746272677_0.png.png imagette220249511744754583/1744702573_589880_1349822829_cef02f7e300ad0996338becc44da1d36_rle_crop_3746271427_0.png.png imagette220249511744754583/1744702692_591100_1349822915_0219d71fc5607755ef9258c40b7b369e_rle_crop_3746272689_0.png.png imagette220249511744754583/1744702647_1618618_1349822846_313e463c77d3a378c2248e1aea4f6116_rle_crop_3746271673_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/b7b01b4ce41f99b98949493334d7e312_49724767.png imagette220249511744754583 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22024908 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22024953,22024954,22024955,22024956,22024957,22024958,22024959,22024960,22024961,22024962,22024963,22024964?tags=kraft,flou,metal,Carton_brun,plastique,Teint_Dans_La_Masse,mal_croppe,papier,autre_refus,cartonnette,Carton_gris,environnement your option no_mail is active, we will not send the real mail to your client args[1349887121] : ('0.046187537021588614',) no score found for photo 1349887121 We are sending mail with results at report@fotonower.com refus_total : 0.046187537021588614 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22024908 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_P22024908_16-04-2025_00_02_59.pdf results_Auto_P22024908_16-04-2025_00_02_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22024908_16-04-2025_00_02_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22024908','results_Auto_P22024908_16-04-2025_00_02_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22024908_16-04-2025_00_02_59.pdf','pdf','','0.14','0.046187537021588614') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22024908]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349887121] map_info['map_portfolio_photo'] : {22024908: [1349887121, 1349822966, 1349822949, 1349822944, 1349822940, 1349822935, 1349822929, 1349822925, 1349822918, 1349822915, 1349822909, 1349822906, 1349822900, 1349822898, 1349822884, 1349822879, 1349822874, 1349822868, 1349822863, 1349822858, 1349822846, 1349822841, 1349822837, 1349822833, 1349822829]} final : False mtd_id 4302 list_pids : [1349887121] 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, '2720899') ('4302', '22024908', '1349887121', None, None, None, None, None, '2720899') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '22024908', '1349887121', None, None, None, None, None, '2720899')] time used for this insertion : 0.010738372802734375 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.951105833053589 time spend to save output : 0.01094818115234375 total time spend for step 4 : 4.962054014205933 step5:split_time_score Wed Apr 16 00:03:04 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 : ['22024908'] 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 : [('22024908',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22024908) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349887121: {'path': 'temp/1744754579_1924049_1349887121_e0707127c050120d7fd5afd8352a64f7.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 = 22024908; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22024908 group by h (('09', 25),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22024908 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 (22024908) 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 (22024908) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 15042025 22024908 Nombre de photos uploadées : 25 / 23040 (0%) 15042025 22024908 Nombre de photos taguées (types de déchets): 0 / 25 (0%) 15042025 22024908 Nombre de photos taguées (volume) : 0 / 25 (0%) [{'photo_id': 1349822966, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/ec2014ab612f5eb05b7585e9d8eec9e4.jpg', 'username': None, 'uploaded_at': 1744702327, 'text': 'image_15042025_09_00_14_010212m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349822949, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/b22046070c5769226ffa132a060db144.jpg', 'username': None, 'uploaded_at': 1744702292, 'text': 'image_15042025_09_00_24_010139m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349822944, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/629a5aa7e6245aa9c780db2ea93414c0.jpg', 'username': None, 'uploaded_at': 1744702292, 'text': 'image_15042025_09_00_24_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349822940, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/e0e8931116244e2fb54f664b0a06ffb4.jpg', 'username': None, 'uploaded_at': 1744702292, 'text': 'image_15042025_09_00_45_010135m0.jpg 5e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017819404602050781 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22024908, '2025-04-15' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1714503,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02240133285522461 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= 1714503 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22054280, 'dashboard_result_id': 9867778, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22054281, 'dashboard_result_id': 9867779, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22054282, 'dashboard_result_id': 9867780, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22054283, 'dashboard_result_id': 9867781, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22054284, 'dashboard_result_id': 9867782, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22054285, 'dashboard_result_id': 9867783, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22054287, 'dashboard_result_id': 9867784, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22054288, 'dashboard_result_id': 9867785, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22054290, 'dashboard_result_id': 9867786, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22054310, 'dashboard_result_id': 9867787, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22054330, 'dashboard_result_id': 9867788, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22054332, 'dashboard_result_id': 9867789, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22054348, 'dashboard_result_id': 9867790, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22054352, 'dashboard_result_id': 9867791, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22025134, 'dashboard_result_id': 9867792, '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_P22025134_15-04-2025_09_41_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22025183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22025184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22025185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22025186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22025187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22025188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22025189, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22025190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22025191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22025192, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22025193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22025194, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22024905, 'dashboard_result_id': 9867793, '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_P22024905_15-04-2025_09_41_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22024911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22024912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22024913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22024914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22024915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22024916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22024917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22024918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22024919, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22024920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22024921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22024922, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22024908, 'dashboard_result_id': 9867794, '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_P22024908_15-04-2025_09_35_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22024941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22024942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22024943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22024944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22024945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22024946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22024947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22024948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22024949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22024950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22024951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22024952, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22029285, 'dashboard_result_id': 9867795, '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_P22029285_15-04-2025_13_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22029302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22029303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22029304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22029305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22029306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22029307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22029308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22029309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22029310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22029311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22029312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22029313, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22029609, 'dashboard_result_id': 9867796, '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_P22029609_15-04-2025_14_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22029612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22029613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22029614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22029615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22029616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22029617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22029618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22029619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22029620, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22029621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22029622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22029623, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22030089, 'dashboard_result_id': 9867797, '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_P22030089_15-04-2025_14_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22030094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030103, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22030731, 'dashboard_result_id': 9867798, '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_P22030731_15-04-2025_14_33_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22030789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030800, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22031305, 'dashboard_result_id': 9867799, '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_P22031305_15-04-2025_14_50_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031376, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22032110, 'dashboard_result_id': 9867800, '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_P22032110_15-04-2025_15_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032162, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22032679, 'dashboard_result_id': 9867801, '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_P22032679_15-04-2025_15_18_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032686, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032697, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22033468, 'dashboard_result_id': 9867802, '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_P22033468_15-04-2025_15_33_51.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22033484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22033485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22033486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22033487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22033488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22033489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22033490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22033491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22033492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22033493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22033494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22033495, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22034056, 'dashboard_result_id': 9867803, '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_P22034056_15-04-2025_15_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22034081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22034082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22034083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22034084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22034085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22034086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22034087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22034088, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22034089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22034090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22034091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22034092, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22034536, 'dashboard_result_id': 9867804, '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_P22034536_15-04-2025_16_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22034544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22034545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22034546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22034547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22034548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22034549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22034550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22034551, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22034552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22034553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22034554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22034555, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22035147, 'dashboard_result_id': 9867805, '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_P22035147_15-04-2025_16_19_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22035238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22035239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22035240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22035241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22035242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22035243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22035244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22035245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22035246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22035247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22035248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22035249, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22036374, 'dashboard_result_id': 9867806, '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_P22036374_15-04-2025_16_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22036379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22036380, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22036381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22036382, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22036383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22036384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22036385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22036386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22036387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22036388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22036389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22036390, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22037077, 'dashboard_result_id': 9867807, '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_P22037077_15-04-2025_16_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037090, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22037809, 'dashboard_result_id': 9867808, '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_P22037809_15-04-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037817, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037828, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22038581, 'dashboard_result_id': 9867809, '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_P22038581_15-04-2025_17_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22038588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22038589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22038590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22038591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22038592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22038593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22038594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22038595, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22038596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22038597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22038598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22038599, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22039603, 'dashboard_result_id': 9867810, '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_P22039603_15-04-2025_17_32_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22039610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22039611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22039612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22039613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22039614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22039615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22039616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22039617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22039618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22039619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22039620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22039621, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22040963, 'dashboard_result_id': 9867811, '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_P22040963_15-04-2025_18_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22041024, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22041025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22041026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22041027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22041028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22041029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22041030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22041031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22041032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22041033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22041034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22041035, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22041608, 'dashboard_result_id': 9867812, '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_P22041608_15-04-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22041636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22041637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22041638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22041639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22041640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22041641, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22041642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22041643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22041644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22041645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22041646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22041647, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22042194, 'dashboard_result_id': 9867813, '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_P22042194_15-04-2025_18_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22042215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22042216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22042217, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22042218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22042219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22042220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22042221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22042222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22042223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22042224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22042225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22042226, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22042817, 'dashboard_result_id': 9867814, '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_P22042817_15-04-2025_19_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22042818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22042819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22042820, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22042821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22042822, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22042823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22042824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22042825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22042826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22042827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22042828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22042829, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22043288, 'dashboard_result_id': 9867815, '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_P22043288_15-04-2025_19_21_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22043297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22043298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22043299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22043300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22043301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22043302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22043303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22043304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22043305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22043306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22043307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22043308, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22044203, 'dashboard_result_id': 9867816, '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_P22044203_15-04-2025_19_32_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22044243, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22044244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22044245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22044246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22044247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22044248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22044249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22044250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22044251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22044252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22044253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22044254, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22045139, 'dashboard_result_id': 9867817, '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_P22045139_15-04-2025_19_46_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22045173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22045174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22045175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22045176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22045177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22045178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22045179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22045180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22045181, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22045182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22045183, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22045184, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22045959, 'dashboard_result_id': 9867818, '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_P22045959_15-04-2025_20_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22045966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22045967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22045968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22045969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22045970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22045971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22045972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22045973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22045974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22045975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22045976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22045977, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22046570, 'dashboard_result_id': 9867819, '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_P22046570_15-04-2025_20_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22046577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22046578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22046579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22046580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22046581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22046582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22046583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22046584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22046585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22046586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22046587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22046588, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22047356, 'dashboard_result_id': 9867820, '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_P22047356_15-04-2025_20_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22047384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22047385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22047386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22047387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22047388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22047389, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22047390, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22047391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22047392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22047393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22047394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22047395, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22048513, 'dashboard_result_id': 9867821, '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_P22048513_15-04-2025_21_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22048535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22048536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22048537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22048538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22048539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22048540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22048541, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22048542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22048543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22048544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22048545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22048546, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1724732, 'mtr_portfolio_id': 22050083, 'dashboard_result_id': 9867822, '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_P22050083_15-04-2025_21_26_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22050087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22050088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22050089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22050090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22050091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22050092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22050093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22050094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22050095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22050096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22050097, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22050098, '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 = 22054280 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 = 22054280 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 = 22054280 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22054280 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 = 22054280 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 = 22054280 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22054280_16-04-2025_00_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22054280 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_P22054280_16-04-2025_00_02_31.pdf'}" where mtr_portfolio_id = 22054280 and dashboard_run_id = 1724732 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 = 22054281 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 = 22054281 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22054281 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%22054281%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22054281 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 22054281 and dashboard_run_id = 1724732 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 = 22054282 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 = 22054282 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22054282 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%22054282%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22054282 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 22054282 and dashboard_run_id = 1724732 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 = 22054283 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 = 22054283 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22054283 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%22054283%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22054283 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 22054283 and dashboard_run_id = 1724732 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 = 22054284 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 = 22054284 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22054284 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%22054284%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22054284 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 22054284 and dashboard_run_id = 1724732 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 = 22054285 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 = 22054285 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22054285 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%22054285%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22054285 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 22054285 and dashboard_run_id = 1724732 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 = 22054287 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 = 22054287 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22054287 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%22054287%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22054287 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 22054287 and dashboard_run_id = 1724732 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 = 22054288 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 = 22054288 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22054288 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%22054288%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22054288 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 22054288 and dashboard_run_id = 1724732 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 = 22054290 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 = 22054290 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22054290 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%22054290%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22054290 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 22054290 and dashboard_run_id = 1724732 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 = 22054310 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 = 22054310 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22054310 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%22054310%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22054310 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 22054310 and dashboard_run_id = 1724732 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 = 22054330 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 = 22054330 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22054330 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%22054330%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22054330 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 22054330 and dashboard_run_id = 1724732 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 = 22054332 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 = 22054332 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22054332 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%22054332%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22054332 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 22054332 and dashboard_run_id = 1724732 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 = 22054348 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 = 22054348 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22054348 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%22054348%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22054348 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 22054348 and dashboard_run_id = 1724732 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 = 22054352 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 = 22054352 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22054352 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%22054352%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22054352 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 22054352 and dashboard_run_id = 1724732 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 = 22025134 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 = 22025134 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 = 22025134 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22025134 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 = 22025134 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 = 22025134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22025134_15-04-2025_09_41_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22025134 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_P22025134_15-04-2025_09_41_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22025183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22025184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22025185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22025186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22025187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22025188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22025189, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22025190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22025191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22025192, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22025193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22025194, 'pht': 3726}}" where mtr_portfolio_id = 22025134 and dashboard_run_id = 1724732 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 = 22024905 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': 2720898, 'mtr_portfolio_id': 22024905, 'created_at': datetime.datetime(2025, 4, 15, 9, 41), 'result': '0.03518095055450186', 'result_long': None, 'result_double': None}] Qualite : 0.03518095055450186 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22024905 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22024905_15-04-2025_09_41_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22024905 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_P22024905_15-04-2025_09_41_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22024911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22024912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22024913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22024914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22024915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22024916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22024917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22024918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22024919, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22024920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22024921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22024922, 'pht': 3726}}" where mtr_portfolio_id = 22024905 and dashboard_run_id = 1724732 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`=22024905 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867793, 0.03518095055450186, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22024905_15-04-2025_09_41_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22024911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22024912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22024913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22024914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22024915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22024916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22024917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22024918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22024919, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22024920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22024921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22024922, '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 = 22024908 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': 2720899, 'mtr_portfolio_id': 22024908, 'created_at': datetime.datetime(2025, 4, 16, 0, 2, 59), 'result': '0.046187537021588614', 'result_long': None, 'result_double': None}] Qualite : 0.046187537021588614 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22024908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22024908_16-04-2025_00_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22024908 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_P22024908_16-04-2025_00_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22024941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22024942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22024943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22024944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22024945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22024946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22024947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22024948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22024949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22024950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22024951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22024952, 'pht': 3726}}" where mtr_portfolio_id = 22024908 and dashboard_run_id = 1724732 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`=22024908 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867794, 0.046187537021588614, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22024908_16-04-2025_00_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22024941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22024942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22024943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22024944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22024945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22024946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22024947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22024948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22024949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22024950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22024951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22024952, '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 = 22029285 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': 2721609, 'mtr_portfolio_id': 22029285, 'created_at': datetime.datetime(2025, 4, 15, 13, 48, 57), 'result': '0.057169697585810884', 'result_long': None, 'result_double': None}] Qualite : 0.057169697585810884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22029285 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22029285_15-04-2025_13_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22029285 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_P22029285_15-04-2025_13_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22029302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22029303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22029304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22029305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22029306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22029307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22029308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22029309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22029310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22029311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22029312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22029313, 'pht': 3726}}" where mtr_portfolio_id = 22029285 and dashboard_run_id = 1724732 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`=22029285 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867795, 0.057169697585810884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22029285_15-04-2025_13_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22029302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22029303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22029304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22029305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22029306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22029307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22029308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22029309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22029310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22029311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22029312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22029313, '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 = 22029609 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': 2721633, 'mtr_portfolio_id': 22029609, 'created_at': datetime.datetime(2025, 4, 15, 14, 2, 58), 'result': '0.04788420888087013', 'result_long': None, 'result_double': None}] Qualite : 0.04788420888087013 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22029609 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22029609_15-04-2025_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22029609 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_P22029609_15-04-2025_14_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22029612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22029613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22029614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22029615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22029616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22029617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22029618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22029619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22029620, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22029621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22029622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22029623, 'pht': 3726}}" where mtr_portfolio_id = 22029609 and dashboard_run_id = 1724732 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`=22029609 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867796, 0.04788420888087013, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22029609_15-04-2025_14_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22029612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22029613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22029614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22029615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22029616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22029617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22029618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22029619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22029620, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22029621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22029622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22029623, '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 = 22030089 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': 2721688, 'mtr_portfolio_id': 22030089, 'created_at': datetime.datetime(2025, 4, 15, 14, 18, 59), 'result': '0.037908939042679515', 'result_long': None, 'result_double': None}] Qualite : 0.037908939042679515 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22030089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22030089_15-04-2025_14_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22030089 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_P22030089_15-04-2025_14_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22030094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030103, 'pht': 3726}}" where mtr_portfolio_id = 22030089 and dashboard_run_id = 1724732 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`=22030089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867797, 0.037908939042679515, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22030089_15-04-2025_14_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22030094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030103, '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 = 22030731 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': 2721734, 'mtr_portfolio_id': 22030731, 'created_at': datetime.datetime(2025, 4, 15, 14, 32, 58), 'result': '0.03468246754841509', 'result_long': None, 'result_double': None}] Qualite : 0.03468246754841509 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22030731 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22030731_15-04-2025_14_33_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22030731 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_P22030731_15-04-2025_14_33_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22030789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030800, 'pht': 3726}}" where mtr_portfolio_id = 22030731 and dashboard_run_id = 1724732 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`=22030731 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867798, 0.03468246754841509, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22030731_15-04-2025_14_33_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22030789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030800, '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 = 22031305 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': 2721809, 'mtr_portfolio_id': 22031305, 'created_at': datetime.datetime(2025, 4, 15, 14, 50, 58), 'result': '0.07490852493073792', 'result_long': None, 'result_double': None}] Qualite : 0.07490852493073792 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22031305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031305_15-04-2025_14_50_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22031305 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_P22031305_15-04-2025_14_50_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031376, 'pht': 3726}}" where mtr_portfolio_id = 22031305 and dashboard_run_id = 1724732 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`=22031305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867799, 0.07490852493073792, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031305_15-04-2025_14_50_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031376, '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 = 22032110 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': 2721869, 'mtr_portfolio_id': 22032110, 'created_at': datetime.datetime(2025, 4, 15, 15, 2, 59), 'result': '0.0673990057763429', 'result_long': None, 'result_double': None}] Qualite : 0.0673990057763429 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22032110 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032110_15-04-2025_15_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22032110 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_P22032110_15-04-2025_15_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032162, 'pht': 3726}}" where mtr_portfolio_id = 22032110 and dashboard_run_id = 1724732 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`=22032110 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867800, 0.0673990057763429, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032110_15-04-2025_15_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032162, '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 = 22032679 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': 2721938, 'mtr_portfolio_id': 22032679, 'created_at': datetime.datetime(2025, 4, 15, 15, 18, 56), 'result': '0.04123487982642538', 'result_long': None, 'result_double': None}] Qualite : 0.04123487982642538 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22032679 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032679_15-04-2025_15_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22032679 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_P22032679_15-04-2025_15_18_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032686, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032697, 'pht': 3726}}" where mtr_portfolio_id = 22032679 and dashboard_run_id = 1724732 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`=22032679 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867801, 0.04123487982642538, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032679_15-04-2025_15_18_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032686, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032697, '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 = 22033468 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': 2722001, 'mtr_portfolio_id': 22033468, 'created_at': datetime.datetime(2025, 4, 15, 15, 33, 50), 'result': '0.02778178732415547', 'result_long': None, 'result_double': None}] Qualite : 0.02778178732415547 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22033468 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22033468_15-04-2025_15_33_51.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22033468 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_P22033468_15-04-2025_15_33_51.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22033484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22033485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22033486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22033487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22033488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22033489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22033490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22033491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22033492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22033493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22033494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22033495, 'pht': 3726}}" where mtr_portfolio_id = 22033468 and dashboard_run_id = 1724732 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`=22033468 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867802, 0.02778178732415547, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22033468_15-04-2025_15_33_51.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22033484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22033485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22033486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22033487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22033488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22033489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22033490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22033491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22033492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22033493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22033494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22033495, '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 = 22034056 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': 2722061, 'mtr_portfolio_id': 22034056, 'created_at': datetime.datetime(2025, 4, 15, 15, 48, 58), 'result': '0.04930555373816961', 'result_long': None, 'result_double': None}] Qualite : 0.04930555373816961 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22034056 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22034056_15-04-2025_15_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22034056 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_P22034056_15-04-2025_15_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22034081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22034082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22034083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22034084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22034085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22034086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22034087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22034088, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22034089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22034090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22034091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22034092, 'pht': 3726}}" where mtr_portfolio_id = 22034056 and dashboard_run_id = 1724732 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`=22034056 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867803, 0.04930555373816961, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22034056_15-04-2025_15_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22034081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22034082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22034083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22034084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22034085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22034086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22034087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22034088, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22034089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22034090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22034091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22034092, '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 = 22034536 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': 2722109, 'mtr_portfolio_id': 22034536, 'created_at': datetime.datetime(2025, 4, 15, 16, 2, 59), 'result': '0.05907251060276478', 'result_long': None, 'result_double': None}] Qualite : 0.05907251060276478 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22034536 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22034536_15-04-2025_16_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22034536 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_P22034536_15-04-2025_16_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22034544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22034545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22034546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22034547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22034548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22034549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22034550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22034551, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22034552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22034553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22034554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22034555, 'pht': 3726}}" where mtr_portfolio_id = 22034536 and dashboard_run_id = 1724732 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`=22034536 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867804, 0.05907251060276478, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22034536_15-04-2025_16_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22034544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22034545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22034546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22034547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22034548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22034549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22034550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22034551, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22034552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22034553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22034554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22034555, '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 = 22035147 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': 2722198, 'mtr_portfolio_id': 22035147, 'created_at': datetime.datetime(2025, 4, 15, 16, 19), 'result': '0.04788280528537338', 'result_long': None, 'result_double': None}] Qualite : 0.04788280528537338 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22035147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22035147_15-04-2025_16_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22035147 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_P22035147_15-04-2025_16_19_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22035238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22035239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22035240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22035241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22035242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22035243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22035244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22035245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22035246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22035247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22035248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22035249, 'pht': 3726}}" where mtr_portfolio_id = 22035147 and dashboard_run_id = 1724732 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`=22035147 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867805, 0.04788280528537338, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22035147_15-04-2025_16_19_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22035238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22035239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22035240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22035241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22035242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22035243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22035244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22035245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22035246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22035247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22035248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22035249, '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 = 22036374 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': 2722261, 'mtr_portfolio_id': 22036374, 'created_at': datetime.datetime(2025, 4, 15, 16, 32, 59), 'result': '0.050489303939343734', 'result_long': None, 'result_double': None}] Qualite : 0.050489303939343734 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22036374 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22036374_15-04-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22036374 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_P22036374_15-04-2025_16_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22036379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22036380, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22036381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22036382, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22036383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22036384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22036385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22036386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22036387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22036388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22036389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22036390, 'pht': 3726}}" where mtr_portfolio_id = 22036374 and dashboard_run_id = 1724732 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`=22036374 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867806, 0.050489303939343734, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22036374_15-04-2025_16_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22036379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22036380, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22036381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22036382, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22036383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22036384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22036385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22036386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22036387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22036388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22036389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22036390, '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 = 22037077 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': 2722323, 'mtr_portfolio_id': 22037077, 'created_at': datetime.datetime(2025, 4, 15, 16, 49), 'result': '0.047122326309306566', 'result_long': None, 'result_double': None}] Qualite : 0.047122326309306566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22037077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037077_15-04-2025_16_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22037077 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_P22037077_15-04-2025_16_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037090, 'pht': 3726}}" where mtr_portfolio_id = 22037077 and dashboard_run_id = 1724732 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`=22037077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867807, 0.047122326309306566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037077_15-04-2025_16_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037090, '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 = 22037809 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': 2722381, 'mtr_portfolio_id': 22037809, 'created_at': datetime.datetime(2025, 4, 15, 17, 2, 59), 'result': '0.036453943759106364', 'result_long': None, 'result_double': None}] Qualite : 0.036453943759106364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22037809 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037809_15-04-2025_17_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22037809 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_P22037809_15-04-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037817, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037828, 'pht': 3726}}" where mtr_portfolio_id = 22037809 and dashboard_run_id = 1724732 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`=22037809 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867808, 0.036453943759106364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037809_15-04-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037817, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037828, '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 = 22038581 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': 2722468, 'mtr_portfolio_id': 22038581, 'created_at': datetime.datetime(2025, 4, 15, 17, 19), 'result': '0.044604429920275336', 'result_long': None, 'result_double': None}] Qualite : 0.044604429920275336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22038581 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22038581_15-04-2025_17_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22038581 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_P22038581_15-04-2025_17_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22038588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22038589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22038590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22038591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22038592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22038593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22038594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22038595, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22038596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22038597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22038598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22038599, 'pht': 3726}}" where mtr_portfolio_id = 22038581 and dashboard_run_id = 1724732 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`=22038581 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867809, 0.044604429920275336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22038581_15-04-2025_17_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22038588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22038589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22038590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22038591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22038592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22038593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22038594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22038595, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22038596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22038597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22038598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22038599, '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 = 22039603 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': 2722521, 'mtr_portfolio_id': 22039603, 'created_at': datetime.datetime(2025, 4, 15, 17, 32, 30), 'result': '0.034572633588802304', 'result_long': None, 'result_double': None}] Qualite : 0.034572633588802304 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22039603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22039603_15-04-2025_17_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22039603 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_P22039603_15-04-2025_17_32_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22039610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22039611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22039612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22039613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22039614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22039615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22039616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22039617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22039618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22039619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22039620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22039621, 'pht': 3726}}" where mtr_portfolio_id = 22039603 and dashboard_run_id = 1724732 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`=22039603 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867810, 0.034572633588802304, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22039603_15-04-2025_17_32_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22039610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22039611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22039612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22039613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22039614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22039615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22039616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22039617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22039618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22039619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22039620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22039621, '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 = 22040963 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': 2722678, 'mtr_portfolio_id': 22040963, 'created_at': datetime.datetime(2025, 4, 15, 18, 18, 59), 'result': '0.07020489044195923', 'result_long': None, 'result_double': None}] Qualite : 0.07020489044195923 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22040963 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22040963_15-04-2025_18_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22040963 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_P22040963_15-04-2025_18_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22041024, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22041025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22041026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22041027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22041028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22041029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22041030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22041031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22041032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22041033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22041034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22041035, 'pht': 3726}}" where mtr_portfolio_id = 22040963 and dashboard_run_id = 1724732 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`=22040963 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867811, 0.07020489044195923, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22040963_15-04-2025_18_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22041024, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22041025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22041026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22041027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22041028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22041029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22041030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22041031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22041032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22041033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22041034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22041035, '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 = 22041608 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': 2722721, 'mtr_portfolio_id': 22041608, 'created_at': datetime.datetime(2025, 4, 15, 18, 32, 59), 'result': '0.039576403964266316', 'result_long': None, 'result_double': None}] Qualite : 0.039576403964266316 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22041608 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22041608_15-04-2025_18_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22041608 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_P22041608_15-04-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22041636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22041637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22041638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22041639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22041640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22041641, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22041642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22041643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22041644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22041645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22041646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22041647, 'pht': 3726}}" where mtr_portfolio_id = 22041608 and dashboard_run_id = 1724732 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`=22041608 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867812, 0.039576403964266316, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22041608_15-04-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22041636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22041637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22041638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22041639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22041640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22041641, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22041642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22041643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22041644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22041645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22041646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22041647, '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 = 22042194 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': 2722788, 'mtr_portfolio_id': 22042194, 'created_at': datetime.datetime(2025, 4, 15, 18, 48, 58), 'result': '0.06618043090690692', 'result_long': None, 'result_double': None}] Qualite : 0.06618043090690692 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22042194 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22042194_15-04-2025_18_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22042194 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_P22042194_15-04-2025_18_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22042215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22042216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22042217, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22042218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22042219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22042220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22042221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22042222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22042223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22042224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22042225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22042226, 'pht': 3726}}" where mtr_portfolio_id = 22042194 and dashboard_run_id = 1724732 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`=22042194 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867813, 0.06618043090690692, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22042194_15-04-2025_18_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22042215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22042216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22042217, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22042218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22042219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22042220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22042221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22042222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22042223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22042224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22042225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22042226, '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 = 22042817 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': 2722848, 'mtr_portfolio_id': 22042817, 'created_at': datetime.datetime(2025, 4, 15, 19, 2, 59), 'result': '0.06642539548332362', 'result_long': None, 'result_double': None}] Qualite : 0.06642539548332362 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22042817 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22042817_15-04-2025_19_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22042817 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_P22042817_15-04-2025_19_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22042818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22042819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22042820, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22042821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22042822, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22042823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22042824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22042825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22042826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22042827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22042828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22042829, 'pht': 3726}}" where mtr_portfolio_id = 22042817 and dashboard_run_id = 1724732 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`=22042817 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867814, 0.06642539548332362, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22042817_15-04-2025_19_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22042818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22042819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22042820, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22042821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22042822, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22042823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22042824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22042825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22042826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22042827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22042828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22042829, '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 = 22043288 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': 2722921, 'mtr_portfolio_id': 22043288, 'created_at': datetime.datetime(2025, 4, 15, 19, 21), 'result': '0.06438580553548003', 'result_long': None, 'result_double': None}] Qualite : 0.06438580553548003 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22043288 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22043288_15-04-2025_19_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22043288 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_P22043288_15-04-2025_19_21_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22043297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22043298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22043299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22043300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22043301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22043302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22043303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22043304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22043305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22043306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22043307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22043308, 'pht': 3726}}" where mtr_portfolio_id = 22043288 and dashboard_run_id = 1724732 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`=22043288 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867815, 0.06438580553548003, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22043288_15-04-2025_19_21_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22043297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22043298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22043299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22043300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22043301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22043302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22043303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22043304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22043305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22043306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22043307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22043308, '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 = 22044203 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': 2722983, 'mtr_portfolio_id': 22044203, 'created_at': datetime.datetime(2025, 4, 15, 19, 32, 32), 'result': '0.05957913412106855', 'result_long': None, 'result_double': None}] Qualite : 0.05957913412106855 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22044203 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22044203_15-04-2025_19_32_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22044203 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_P22044203_15-04-2025_19_32_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22044243, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22044244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22044245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22044246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22044247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22044248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22044249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22044250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22044251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22044252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22044253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22044254, 'pht': 3726}}" where mtr_portfolio_id = 22044203 and dashboard_run_id = 1724732 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`=22044203 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867816, 0.05957913412106855, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22044203_15-04-2025_19_32_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22044243, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22044244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22044245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22044246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22044247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22044248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22044249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22044250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22044251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22044252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22044253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22044254, '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 = 22045139 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': 2723051, 'mtr_portfolio_id': 22045139, 'created_at': datetime.datetime(2025, 4, 15, 19, 46, 28), 'result': '0.04829116470693819', 'result_long': None, 'result_double': None}] Qualite : 0.04829116470693819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22045139 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22045139_15-04-2025_19_46_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22045139 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_P22045139_15-04-2025_19_46_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22045173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22045174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22045175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22045176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22045177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22045178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22045179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22045180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22045181, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22045182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22045183, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22045184, 'pht': 3726}}" where mtr_portfolio_id = 22045139 and dashboard_run_id = 1724732 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`=22045139 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867817, 0.04829116470693819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22045139_15-04-2025_19_46_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22045173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22045174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22045175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22045176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22045177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22045178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22045179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22045180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22045181, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22045182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22045183, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22045184, '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 = 22045959 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': 2723100, 'mtr_portfolio_id': 22045959, 'created_at': datetime.datetime(2025, 4, 15, 20, 3), 'result': '0.062077369974911846', 'result_long': None, 'result_double': None}] Qualite : 0.062077369974911846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22045959 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22045959_15-04-2025_20_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22045959 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_P22045959_15-04-2025_20_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22045966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22045967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22045968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22045969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22045970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22045971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22045972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22045973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22045974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22045975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22045976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22045977, 'pht': 3726}}" where mtr_portfolio_id = 22045959 and dashboard_run_id = 1724732 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`=22045959 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867818, 0.062077369974911846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22045959_15-04-2025_20_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22045966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22045967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22045968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22045969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22045970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22045971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22045972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22045973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22045974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22045975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22045976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22045977, '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 = 22046570 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': 2723174, 'mtr_portfolio_id': 22046570, 'created_at': datetime.datetime(2025, 4, 15, 20, 16, 58), 'result': '0.037476186552652176', 'result_long': None, 'result_double': None}] Qualite : 0.037476186552652176 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22046570 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22046570_15-04-2025_20_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22046570 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_P22046570_15-04-2025_20_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22046577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22046578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22046579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22046580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22046581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22046582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22046583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22046584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22046585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22046586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22046587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22046588, 'pht': 3726}}" where mtr_portfolio_id = 22046570 and dashboard_run_id = 1724732 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`=22046570 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867819, 0.037476186552652176, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22046570_15-04-2025_20_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22046577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22046578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22046579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22046580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22046581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22046582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22046583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22046584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22046585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22046586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22046587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22046588, '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 = 22047356 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': 2723251, 'mtr_portfolio_id': 22047356, 'created_at': datetime.datetime(2025, 4, 15, 20, 32, 57), 'result': '0.0547531238160535', 'result_long': None, 'result_double': None}] Qualite : 0.0547531238160535 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22047356 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22047356_15-04-2025_20_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22047356 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_P22047356_15-04-2025_20_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22047384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22047385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22047386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22047387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22047388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22047389, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22047390, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22047391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22047392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22047393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22047394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22047395, 'pht': 3726}}" where mtr_portfolio_id = 22047356 and dashboard_run_id = 1724732 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`=22047356 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867820, 0.0547531238160535, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22047356_15-04-2025_20_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22047384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22047385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22047386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22047387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22047388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22047389, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22047390, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22047391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22047392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22047393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22047394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22047395, '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 = 22048513 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': 2723319, 'mtr_portfolio_id': 22048513, 'created_at': datetime.datetime(2025, 4, 15, 21, 4, 58), 'result': '0.04541288339791289', 'result_long': None, 'result_double': None}] Qualite : 0.04541288339791289 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22048513 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22048513_15-04-2025_21_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22048513 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_P22048513_15-04-2025_21_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22048535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22048536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22048537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22048538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22048539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22048540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22048541, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22048542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22048543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22048544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22048545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22048546, 'pht': 3726}}" where mtr_portfolio_id = 22048513 and dashboard_run_id = 1724732 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`=22048513 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867821, 0.04541288339791289, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22048513_15-04-2025_21_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22048535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22048536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22048537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22048538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22048539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22048540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22048541, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22048542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22048543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22048544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22048545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22048546, '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 = 22050083 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': 2723458, 'mtr_portfolio_id': 22050083, 'created_at': datetime.datetime(2025, 4, 15, 21, 26, 58), 'result': '0.05482438530567423', 'result_long': None, 'result_double': None}] Qualite : 0.05482438530567423 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22050083 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22050083_15-04-2025_21_26_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22050083 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_P22050083_15-04-2025_21_26_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22050087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22050088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22050089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22050090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22050091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22050092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22050093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22050094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22050095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22050096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22050097, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22050098, 'pht': 3726}}" where mtr_portfolio_id = 22050083 and dashboard_run_id = 1724732 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`=22050083 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867822, 0.05482438530567423, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22050083_15-04-2025_21_26_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22050087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22050088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22050089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22050090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22050091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22050092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22050093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22050094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22050095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22050096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22050097, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22050098, '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 (22054280,22054281,22054282,22054283,22054284,22054285,22054287,22054288,22054290,22054310,22054330,22054332,22054348,22054352,22025134,22024905,22024908,22029285,22029609,22030089,22030731,22031305,22032110,22032679,22033468,22034056,22034536,22035147,22036374,22037077,22037809,22038581,22039603,22040963,22041608,22042194,22042817,22043288,22044203,22045139,22045959,22046570,22047356,22048513,22050083) result : ((1349822971,), (1349822973,), (1349822976,), (1349822980,), (1349823005,), (1349823016,), (1349823027,), (1349823039,), (1349823044,), (1349823050,), (1349823058,), (1349823060,), (1349823065,), (1349823069,), (1349823076,), (1349823086,), (1349823120,), (1349823129,), (1349823132,), (1349823138,), (1349823141,), (1349823144,), (1349823162,), (1349823167,), (1349823176,), (1349823183,), (1349823192,), (1349823202,), (1349823224,), (1349823229,), (1349823234,), (1349823238,), (1349823242,), (1349823250,), (1349823280,), (1349823291,), (1349823301,), (1349823311,), (1349823321,), (1349823329,), (1349823347,), (1349823353,), (1349823360,), (1349823398,), (1349823430,), (1349823464,), (1349823508,), (1349823523,), (1349823530,), (1349823540,), (1349823547,), (1349823552,), (1349823580,), (1349823603,), (1349823609,), (1349823615,), (1349823624,), (1349823632,), (1349823699,), (1349823713,), (1349823723,), (1349823792,), (1349823801,), (1349823808,), (1349823851,), (1349823881,), (1349823888,), (1349823896,), (1349823908,), (1349823918,), (1349823940,), (1349822829,), (1349822833,), (1349822837,), (1349822841,), (1349822846,), (1349822858,), (1349822863,), (1349822868,), (1349822874,), (1349822879,), (1349822884,), (1349822898,), (1349822900,), (1349822906,), (1349822909,), (1349822915,), (1349822918,), (1349822925,), (1349822929,), (1349822935,), (1349822940,), (1349822944,), (1349822949,), (1349822966,), (1349887121,), (1349823945,), (1349823951,), (1349823965,), (1349823975,), (1349823979,), (1349823992,), (1349823998,), (1349824009,), (1349824022,), (1349824030,), (1349824043,), (1349824064,), (1349824082,), (1349824093,), (1349824109,), (1349824134,), (1349824145,), (1349824210,), (1349824221,), (1349824226,), (1349824235,), (1349824247,), (1349824253,), (1349824274,), (1349824278,), (1349824283,), (1349824288,), (1349824292,), (1349824325,), (1349824329,), (1349824356,), (1349824362,), (1349824380,), (1349824394,), (1349824437,), (1349824438,), (1349824444,), (1349824448,), (1349824455,), (1349824468,), (1349824470,), (1349824475,), (1349824476,), (1349824484,), (1349824489,), (1349824498,), (1349824519,), (1349824524,), (1349824530,), (1349824537,), (1349824542,), (1349824563,), (1349824663,), (1349824686,), (1349824699,), (1349824708,), (1349824715,), (1349824721,), (1349824727,), (1349824732,), (1349824739,), (1349824750,), (1349824759,), (1349824767,), (1349824792,), (1349824794,), (1349824798,), (1349824803,), (1349824812,), (1349824817,), (1349824835,), (1349824841,), (1349824850,), (1349824860,), (1349824876,), (1349824884,), (1349824908,), (1349824914,), (1349824922,), (1349887104,), (1349887235,), (1349887239,), (1349887245,), (1349887250,), (1349887258,), (1349887379,), (1349887390,), (1349887439,), (1349887440,), (1349887829,), (1349887891,), (1349887940,), (1349889448,), (1349889415,), (1349889432,), (1349889651,), (1349889655,), (1349889674,), (1349889682,), (1349889699,), (1349889708,), (1349890109,), (1349890138,), (1349890164,), (1349890384,), (1349890385,), (1349890389,), (1349890392,), (1349890400,), (1349890402,), (1349890409,), (1349890417,), (1349890506,), (1349890508,), (1349890514,), (1349890520,), (1349890564,), (1349890568,), (1349890628,), (1349890633,), (1349890637,), (1349890640,), (1349890645,), (1349890716,), (1349890721,), (1349890744,), (1349890764,), (1349890881,), (1349890884,), (1349890888,), (1349890891,), (1349890899,), (1349891044,), (1349891060,), (1349891346,), (1349891348,), (1349891394,), (1349891397,), (1349891398,), (1349891400,), (1349891409,), (1349891410,), (1349891422,), (1349891423,), (1349891429,), (1349891430,), (1349891891,), (1349891925,), (1349891959,), (1349892001,), (1349892037,), (1349892617,), (1349892466,), (1349892545,), (1349892585,), (1349893318,), (1349893388,), (1349893459,), (1349893549,), (1349893656,), (1349893749,), (1349894500,), (1349894543,), (1349894578,), (1349895031,), (1349895061,), (1349895090,), (1349895118,), (1349895143,), (1349895169,), (1349895587,), (1349895617,), (1349895644,), (1349895680,), (1349895711,), (1349895741,), (1349895860,), (1349895908,), (1349895996,), (1349896512,), (1349896666,), (1349896813,), (1349896920,), (1349896966,), (1349896992,), (1349897135,), (1349897138,), (1349897142,), (1349897146,), (1349897152,), (1349897197,), (1349897202,), (1349897204,), (1349897209,), (1349897261,), (1349897266,), (1349897268,), (1349897271,), (1349897274,), (1349897378,), (1349897380,), (1349897395,), (1349897400,), (1349897404,), (1349897409,), (1349897412,), (1349897415,), (1349897555,), (1349897584,), (1349897612,), (1349897671,), (1349897672,), (1349897679,), (1349897680,), (1349897685,), (1349897686,), (1349897748,), (1349897749,), (1349897753,), (1349897754,), (1349897757,), (1349897758,), (1349897764,), (1349897765,), (1349897822,), (1349897824,), (1349897829,), (1349897831,), (1349897836,), (1349897837,), (1349897842,), (1349897843,), (1349897926,), (1349897929,), (1349897908,), (1349897910,), (1349897911,), (1349897914,), (1349897915,), (1349897917,), (1349897921,), (1349897922,), (1349897969,), (1349897973,), (1349897977,), (1349898125,), (1349898135,), (1349898149,), (1349898155,), (1349898171,), (1349898308,), (1349898312,), (1349898316,), (1349898320,), (1349898365,), (1349898368,), (1349898372,), (1349898377,), (1349898433,), (1349898436,), (1349898439,), (1349898521,), (1349898527,), (1349898532,), (1349898537,), (1349898541,), (1349898667,), (1349898673,), (1349898678,), (1349898682,), (1349898687,), (1349898691,), (1349898774,), (1349898777,), (1349898779,), (1349898782,), (1349898801,), (1349898947,), (1349898951,), (1349898957,), (1349898959,), (1349898963,), (1349898982,), (1349898985,), (1349898996,), (1349899326,), (1349899422,), (1349899520,), (1349899568,), (1349899580,), (1349899601,), (1349899646,), (1349899669,), (1349899712,), (1349899724,), (1349899861,), (1349899865,), (1349899871,), (1349899874,), (1349899878,), (1349899882,), (1349900004,), (1349900048,), (1349900222,), (1349900228,), (1349900236,), (1349900239,), (1349900246,), (1349900251,), (1349900329,), (1349900307,), (1349900313,), (1349900319,), (1349900324,), (1349900426,), (1349900427,), (1349900432,), (1349900434,), (1349900436,), (1349900437,), (1349900451,), (1349900454,), (1349900783,), (1349900796,), (1349900806,), (1349900819,), (1349900866,), (1349900876,), (1349900891,), (1349900898,), (1349900913,), (1349900981,), (1349901012,), (1349901018,), (1349901023,), (1349901068,), (1349901101,), (1349901198,), (1349901224,), (1349901229,), (1349901234,), (1349901279,), (1349901284,), (1349901293,), (1349901347,), (1349901351,), (1349901355,), (1349901377,), (1349901383,), (1349901388,), (1349901399,), (1349901403,), (1349901406,), (1349901485,), (1349901487,), (1349901492,), (1349901884,), (1349902184,), (1349902209,), (1349902235,), (1349902240,), (1349902244,), (1349902383,), (1349902406,), (1349902409,), (1349902599,), (1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,), (1349903177,), (1349903180,), (1349903337,), (1349903339,), (1349903349,), (1349903350,), (1349903363,), (1349903365,), (1349903378,), (1349903380,), (1349903385,), (1349903388,), (1349903390,), (1349903391,), (1349903435,), (1349903441,), (1349903446,), (1349903471,), (1349903602,), (1349903606,), (1349903620,), (1349903625,), (1349903699,), (1349903702,), (1349903706,), (1349903710,), (1349903714,), (1349903725,), (1349903955,), (1349903960,), (1349904043,), (1349904121,), (1349904187,), (1349904191,), (1349904195,), (1349904199,), (1349904205,), (1349904340,), (1349904345,), (1349904361,), (1349904371,), (1349904376,), (1349904379,), (1349904497,), (1349904498,), (1349904508,), (1349904511,), (1349904518,), (1349904520,), (1349904531,), (1349904533,), (1349904538,), (1349904539,), (1349904795,), (1349904843,), (1349904897,), (1349904934,), (1349904962,), (1349904994,), (1349905111,), (1349905137,), (1349905161,), (1349905189,), (1349905214,), (1349905502,), (1349905290,), (1349905361,), (1349905443,), (1349906150,), (1349906217,), (1349906296,), (1349906360,), (1349906423,), (1349906492,), (1349907320,), (1349907356,), (1349907382,), (1349907405,), (1349907444,), (1349907811,), (1349907837,), (1349907862,), (1349907890,), (1349908309,), (1349908343,), (1349908378,), (1349908602,), (1349908631,), (1349908727,), (1349908732,), (1349908735,), (1349908739,), (1349908744,), (1349908797,), (1349908809,), (1349908817,), (1349908827,), (1349908967,), (1349909026,), (1349909032,), (1349909037,), (1349909327,), (1349909332,), (1349909452,), (1349909456,), (1349909460,), (1349909464,), (1349909473,), (1349909885,), (1349909931,), (1349909961,), (1349909991,), (1349910013,), (1349910361,), (1349910390,), (1349910395,), (1349910415,), (1349910574,), (1349910600,), (1349910626,), (1349910655,), (1349910956,), (1349911010,), (1349911022,), (1349911026,), (1349911045,), (1349911072,), (1349911170,), (1349911158,), (1349911163,), (1349911285,), (1349911291,), (1349911363,), (1349911366,), (1349911369,), (1349911683,), (1349911707,), (1349911787,), (1349911870,), (1349911881,), (1349911891,), (1349911912,), (1349912030,), (1349912032,), (1349912035,), (1349912038,), (1349912039,), (1349912044,), (1349912555,), (1349912558,), (1349912561,), (1349912611,), (1349912615,), (1349912639,), (1349912654,), (1349912749,), (1349912751,), (1349912753,), (1349912787,), (1349912793,), (1349912834,), (1349912838,), (1349912842,), (1349912846,), (1349912851,), (1349912855,), (1349913218,), (1349913246,), (1349913252,), (1349913408,), (1349913346,), (1349913351,), (1349913370,), (1349913400,), (1349913404,), (1349913427,), (1349913434,), (1349913437,), (1349913471,), (1349913476,), (1349913481,), (1349913486,), (1349913487,), (1349913490,), (1349913746,), (1349913756,), (1349913851,), (1349913855,), (1349913858,), (1349913860,), (1349913904,), (1349913906,), (1349913910,), (1349913914,), (1349913920,), (1349913926,), (1349913976,), (1349913978,), (1349913980,), (1349913983,), (1349913984,), (1349913988,), (1349913989,), (1349913994,), (1349913996,), (1349914000,), (1349914016,), (1349914021,), (1349914024,), (1349914124,), (1349914129,), (1349914133,), (1349914138,), (1349914142,), (1349914146,), (1349914183,), (1349914185,), (1349914188,), (1349914191,), (1349914197,), (1349914248,), (1349914252,), (1349914254,), (1349914258,), (1349914263,), (1349914349,), (1349914352,), (1349914363,), (1349914374,), (1349914462,), (1349914475,), (1349914482,), (1349914488,), (1349914613,), (1349914618,), (1349914623,), (1349914629,), (1349914637,), (1349914642,), (1349914684,), (1349914688,), (1349914693,), (1349914767,), (1349914745,), (1349914749,), (1349914754,), (1349914760,), (1349914801,), (1349914806,), (1349914812,), (1349914820,), (1349914832,), (1349914866,), (1349914870,), (1349914872,), (1349914874,), (1349914959,), (1349914962,), (1349914970,), (1349915073,), (1349915075,), (1349915079,), (1349915085,), (1349915087,), (1349915090,), (1349915207,), (1349915208,), (1349915211,), (1349915212,), (1349915219,), (1349915222,), (1349915230,), (1349915231,), (1349915236,), (1349915238,), (1349915240,), (1349915254,), (1349915332,), (1349915334,), (1349915338,), (1349915550,), (1349915556,), (1349915561,), (1349915566,), (1349915571,), (1349915574,), (1349915587,), (1349915591,), (1349915596,), (1349915675,), (1349915679,), (1349915682,), (1349915765,), (1349915769,), (1349915830,), (1349915835,), (1349915860,), (1349915891,), (1349915941,), (1349915990,), (1349916841,), (1349916850,), (1349916858,), (1349916867,), (1349916946,), (1349916948,), (1349916969,), (1349916976,), (1349916987,), (1349916988,), (1349916994,), (1349916999,), (1349917465,), (1349917480,), (1349917326,), (1349917327,), (1349917334,), (1349917335,), (1349917340,), (1349917342,), (1349917380,), (1349917391,), (1349917972,), (1349918031,), (1349918060,), (1349918213,), (1349918215,), (1349918239,), (1349918242,), (1349918268,), (1349918279,), (1349918297,), (1349918306,), (1349918323,), (1349918334,), (1349918353,), (1349918359,), (1349918437,), (1349918466,), (1349918478,), (1349918485,), (1349918650,), (1349918667,), (1349918696,), (1349918725,), (1349918754,), (1349918812,), (1349918816,), (1349918824,), (1349918832,), (1349918916,), (1349918921,), (1349918937,), (1349918951,), (1349918980,), (1349918998,), (1349919005,), (1349919010,), (1349919012,), (1349919016,), (1349919238,), (1349919247,), (1349919251,), (1349919270,), (1349919559,), (1349920040,), (1349920066,), (1349920089,), (1349920239,), (1349920249,), (1349920275,), (1349920478,), (1349920483,), (1349920486,), (1349920510,), (1349920687,), (1349920694,), (1349920697,), (1349920704,), (1349920710,), (1349920906,), (1349920892,), (1349920896,), (1349920902,), (1349921401,), (1349921425,), (1349921591,), (1349921596,), (1349921623,), (1349921649,), (1349921680,), (1349921932,), (1349921934,), (1349921940,), (1349921967,), (1349921995,), (1349922069,), (1349922072,), (1349922092,), (1349922116,), (1349922469,), (1349922488,), (1349922503,), (1349922557,), (1349922558,), (1349922560,), (1349922567,), (1349922636,), (1349922639,), (1349922642,), (1349922645,), (1349922662,), (1349922667,), (1349922717,), (1349922720,), (1349922724,), (1349922768,), (1349922770,), (1349922773,), (1349922776,), (1349922782,), (1349922789,), (1349922877,), (1349922880,), (1349922899,), (1349922918,), (1349922985,), (1349922987,), (1349922990,), (1349922994,), (1349923000,), (1349923012,), (1349923065,), (1349923071,), (1349923078,), (1349923084,), (1349923090,), (1349923097,), (1349923099,), (1349923102,), (1349923105,), (1349923177,), (1349923181,), (1349923191,), (1349923203,), (1349923215,), (1349923294,), (1349923275,), (1349923278,), (1349923281,), (1349923285,), (1349923487,), (1349923499,), (1349923516,), (1349923521,), (1349923546,), (1349923725,), (1349923751,), (1349923782,), (1349923804,), (1349924170,), (1349924174,), (1349924185,), (1349924187,), (1349924195,), (1349924200,), (1349924243,), (1349924248,), (1349924269,), (1349924271,), (1349924276,), (1349924277,), (1349924288,), (1349924290,), (1349924293,), (1349924295,), (1349924512,), (1349924531,), (1349924534,), (1349924541,), (1349924567,), (1349924783,), (1349924802,), (1349924804,), (1349924816,), (1349924826,), (1349924927,), (1349924952,), (1349924975,), (1349925013,), (1349925045,), (1349925073,), (1349925100,), (1349925123,), (1349925140,), (1349925240,), (1349925245,), (1349925253,), (1349925262,), (1349925270,), (1349925276,), (1349925309,), (1349925313,), (1349925315,), (1349925340,), (1349925344,), (1349925347,), (1349925421,), (1349925423,), (1349925427,), (1349925434,), (1349925441,), (1349925520,), (1349925524,), (1349925529,), (1349925535,), (1349925541,), (1349925619,), (1349925621,), (1349925623,), (1349925625,), (1349925627,), (1349925629,), (1349925634,), (1349925636,), (1349925639,), (1349925643,), (1349925646,), (1349925648,), (1349925669,), (1349925673,), (1349925675,), (1349925816,), (1349925796,), (1349925799,), (1349925804,), (1349925810,), (1349925830,), (1349925833,), (1349925836,), (1349925838,), (1349925896,), (1349925899,), (1349925902,), (1349925905,), (1349925908,), (1349925911,), (1349925965,), (1349925973,), (1349925986,), (1349926111,), (1349926130,), (1349926133,), (1349926136,), (1349926138,), (1349926199,), (1349926202,), (1349926206,), (1349926212,), (1349926344,), (1349926348,), (1349926352,), (1349926357,), (1349926441,), (1349926541,), (1349926547,), (1349926554,), (1349926608,), (1349926614,), (1349926620,), (1349926630,), (1349926636,), (1349926642,), (1349926653,), (1349926667,), (1349926670,), (1349926673,), (1349926733,), (1349926753,), (1349926758,), (1349926761,), (1349926765,), (1349926844,), (1349926854,), (1349926866,), (1349926883,), (1349927302,), (1349927329,), (1349927359,), (1349927374,), (1349927385,), (1349927418,), (1349927445,), (1349927466,), (1349927492,), (1349928105,), (1349928109,), (1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,), (1349930516,), (1349930518,), (1349930523,), (1349930534,), (1349930562,), (1349931098,), (1349931164,), (1349931338,), (1349931339,), (1349931342,), (1349931343,), (1349931346,), (1349931347,), (1349931352,), (1349931353,), (1349931437,), (1349931440,), (1349931446,), (1349931454,), (1349931472,), (1349931496,), (1349931505,), (1349931507,), (1349931520,), (1349931550,), (1349931685,), (1349931689,), (1349931943,), (1349931998,), (1349932037,), (1349932513,), (1349932542,), (1349932597,), (1349932694,), (1349932763,), (1349932928,), (1349932999,), (1349933057,), (1349933706,), (1349933781,), (1349933826,), (1349933858,), (1349933918,), (1349934296,), (1349934271,), (1349934275,), (1349934771,), (1349934796,), (1349934823,), (1349934904,), (1349935314,), (1349935341,), (1349935368,), (1349935593,), (1349935597,), (1349935601,), (1349936426,), (1349936550,), (1349936556,), (1349936606,), (1349936609,), (1349936696,), (1349936703,), (1349936705,), (1349936746,), (1349936749,), (1349936753,), (1349936759,), (1349936805,), (1349936809,), (1349936812,), (1349936815,), (1349936818,), (1349936860,), (1349936863,), (1349936909,), (1349936914,), (1349936922,), (1349936924,), (1349936998,), (1349943621,), (1349943656,), (1349943686,), (1349943731,), (1349944178,), (1349944206,), (1349944247,), (1349944283,), (1349944308,), (1349944338,), (1349945005,), (1349945206,), (1349945233,), (1349945467,), (1349945477,), (1349945483,), (1349945488,), (1349945491,), (1349945555,), (1349945557,), (1349945667,), (1349945672,), (1349945678,), (1349945684,), (1349945747,), (1349945753,), (1349945756,), (1349945761,), (1349945843,), (1349945859,), (1349945862,), (1349945866,), (1349945909,), (1349945914,), (1349945919,), (1349945923,), (1349945981,), (1349945986,), (1349945991,), (1349945994,), (1349945998,), (1349946078,), (1349946082,), (1349946085,), (1349946088,), (1349946206,), (1349946217,), (1349946221,), (1349946225,), (1349946309,), (1349946294,), (1349946307,), (1349946694,), (1349946727,), (1349946754,), (1349947111,), (1349947138,), (1349947149,), (1349947172,), (1349947680,), (1349947683,), (1349947691,), (1349947717,), (1349947745,), (1349947996,), (1349948025,), (1349948056,), (1349948080,), (1349948113,), (1349948366,), (1349948369,), (1349948377,), (1349948388,), (1349948393,), (1349948407,), (1349948411,), (1349948414,), (1349948417,), (1349948421,), (1349948490,), (1349948495,), (1349948502,), (1349948506,), (1349948562,), (1349948577,), (1349948585,), (1349948589,), (1349948594,), (1349948599,), (1349948754,), (1349948758,), (1349948761,), (1349948766,), (1349948792,), (1349948801,), (1349948829,), (1349948839,), (1349948868,), (1349948877,), (1349949003,), (1349949010,), (1349949015,), (1349949017,), (1349949037,), (1349949122,), (1349949125,), (1349949129,), (1349949132,), (1349949135,), (1349949200,), (1349949216,), (1349949220,), (1349949270,), (1349949274,), (1349949278,), (1349949283,), (1349949620,), (1349949506,), (1349949531,), (1349949557,), (1349949585,), (1349949609,), (1349949723,), (1349949726,), (1349949730,), (1349949734,), (1349949891,), (1349949895,), (1349949899,), (1349949903,), (1349949907,), (1349950334,), (1349950335,), (1349950339,), (1349950340,), (1349950351,), (1349950354,), (1349950359,), (1349950361,), (1349950390,), (1349950392,), (1349950478,), (1349950481,), (1349950486,), (1349950492,), (1349950969,), (1349950975,), (1349950992,), (1349951001,), (1349951010,), (1349951061,), (1349951066,), (1349951069,), (1349951073,), (1349951226,), (1349951231,), (1349951250,), (1349951256,), (1349951264,), (1349951322,), (1349951327,), (1349951331,), (1349951337,), (1349951345,), (1349951402,), (1349951405,), (1349951410,), (1349951415,), (1349951419,), (1349951508,), (1349951512,), (1349951515,), (1349951531,), (1349951535,), (1349951550,), (1349951576,), (1349951580,), (1349951608,), (1349952158,), (1349952300,), (1349952301,), (1349952303,), (1349952305,), (1349952370,), (1349952376,), (1349952379,), (1349952904,), (1349953004,), (1349953013,), (1349953089,), (1349953111,), (1349953139,), (1349953311,), (1349953329,), (1349953338,), (1349953403,), (1349953407,), (1349953413,), (1349953527,), (1349953529,), (1349953533,), (1349953581,), (1349953588,), (1349953591,), (1349953603,), (1349953605,), (1349953612,), (1349953827,), (1349953831,), (1349953876,), (1349953881,), (1349953887,), (1349953891,), (1349953896,), (1349953899,), (1349953954,), (1349953957,), (1349953961,), (1349953962,), (1349953968,), (1349953972,), (1349953977,), (1349953979,), (1349953982,), (1349953984,), (1349953989,), (1349953990,), (1349954421,), (1349954473,), (1349954538,), (1349955965,), (1349955759,), (1349955829,), (1349955896,), (1349956684,), (1349956719,), (1349956754,), (1349956786,), (1349956821,), (1349956861,), (1349956869,), (1349956872,), (1349956875,), (1349956877,), (1349957440,), (1349957539,), (1349957613,), (1349957669,), (1349957722,), (1349957788,), (1349958092,), (1349958137,), (1349958165,), (1349958189,), (1349958321,), (1349958326,), (1349958332,), (1349958928,), (1349958979,), (1349959039,), (1349959101,), (1349959134,), (1349959157,), (1349959618,), (1349959655,), (1349959698,), (1349959730,), (1349959755,), (1349960241,), (1349960306,), (1349960356,), (1349960404,), (1349960629,), (1349960650,), (1349960676,), (1349960701,), (1349961105,), (1349961172,), (1349961221,), (1349961273,), (1349961304,), (1349961333,), (1349961398,), (1349961401,), (1349961404,), (1349961416,), (1349961423,), (1349961619,), (1349961623,), (1349961626,), (1349961630,), (1349961718,), (1349961745,), (1349961781,), (1349961809,), (1349961854,), (1349961902,), (1349962502,), (1349962529,), (1349962557,), (1349962583,), (1349963151,), (1349962853,), (1349962882,), (1349962973,), (1349963097,), (1349963797,), (1349963832,), (1349963898,), (1349963948,), (1349964663,), (1349964711,), (1349964760,), (1349964817,), (1349964850,), (1349964887,), (1349965218,), (1349965243,), (1349965268,), (1349965305,), (1349965338,), (1349965426,), (1349965453,), (1349965478,), (1349965518,), (1349965570,), (1349965851,), (1349965871,), (1349965894,), (1349965918,), (1349965944,), (1349965969,), (1349966585,), (1349966642,), (1349966692,), (1349967597,), (1349967653,), (1349967685,), (1349967713,), (1349967737,), (1349967780,), (1349968021,), (1349968027,), (1349968033,), (1349968038,), (1349968065,), (1349968193,), (1349968242,), (1349968309,), (1349968355,), (1349968906,), (1349968933,), (1349968958,), (1349969002,), (1349969055,), (1349969105,), (1349969546,), (1349969593,), (1349969636,), (1349970145,), (1349970195,), (1349970268,), (1349970339,), (1349970418,), (1349971110,), (1349971232,), (1349971303,), (1349971354,), (1349971411,), (1349971507,), (1349972110,), (1349972133,), (1349972567,), (1349972419,), (1349972502,), (1349972533,), (1349972876,), (1349972886,), (1349972891,), (1349972895,), (1349973571,), (1349973617,), (1349973630,), (1349973650,), (1349973652,), (1349973778,), (1349973806,), (1349973833,), (1349974657,), (1349974661,), (1349974668,), (1349974672,), (1349974678,), (1349974682,), (1349975119,), (1349975127,), (1349975144,), (1349975221,), (1349975267,), (1349975486,), (1349975491,), (1349975495,), (1349975499,), (1349975505,), (1349975508,), (1349975557,), (1349975562,), (1349975566,), (1349975579,), (1349975582,), (1349975586,), (1349975681,), (1349975688,), (1349975700,), (1349975712,), (1349975779,), (1349975786,), (1349975796,), (1349975802,), (1349975807,), (1349975811,), (1349975974,), (1349976017,), (1349976065,), (1349976316,), (1349976320,), (1349976323,), (1349976328,), (1349976345,), (1349976371,), (1349976493,), (1349976498,), (1349976501,), (1349977136,), (1349977188,), (1349977220,), (1349977417,), (1349977471,), (1349977527,), (1349977573,), (1349977619,), (1349978101,), (1349978070,), (1349978725,), (1349978729,), (1349978741,), (1349978744,), (1349978822,), (1349978860,), (1349978893,), (1349979144,), (1349979147,), (1349979151,), (1349979155,), (1349979342,), (1349979357,), (1349979363,), (1349979377,), (1349979755,), (1349979777,), (1349979783,), (1349979787,), (1349979794,), (1349979799,), (1349979825,), (1349979831,), (1349979856,), (1349979890,), (1349980227,), (1349980255,), (1349980281,), (1349980385,), (1349980389,), (1349980397,), (1349980408,), (1349980417,), (1349980453,), (1349980462,), (1349980468,), (1349980472,), (1349980477,), (1349980781,), (1349980787,), (1349980791,), (1349981152,), (1349981158,), (1349981161,), (1349981173,), (1349981179,), (1349981184,), (1349981224,), (1349981509,), (1349981560,), (1349981612,), (1349981679,), (1349982489,), (1349982310,), (1349982344,), (1349982412,), (1349983004,), (1349983069,), (1349983097,), (1349983124,), (1349983414,), (1349983439,), (1349983445,), (1349983472,), (1349983498,), (1349983876,), (1349983922,), (1349983970,), (1349984021,), (1349984070,), (1349984255,), (1349984363,), (1349984371,), (1349984422,), (1349984437,), (1349984442,), (1349984446,), (1349984450,), (1349984454,), (1349984538,), (1349984552,), (1349984570,), (1349984576,), (1349984627,), (1349984634,), (1349984640,), (1349984647,), (1349984652,), (1349984831,), (1349984857,), (1349984886,), (1349984913,), (1349984940,), (1349984970,), (1349985156,), (1349985177,), (1349985192,), (1349985198,), (1349985204,), (1349985364,), (1349985382,), (1349985405,), (1349985419,), (1349985423,), (1349985516,), (1349985520,), (1349985529,), (1349985534,), (1349985857,), (1349985871,), (1349985881,), (1349985888,), (1349985895,), (1349986077,), (1349986085,), (1349986092,), (1349986119,), (1349986173,), (1349986660,), (1349986507,), (1349986560,), (1349986613,), (1349987268,), (1349987295,), (1349988155,), (1349988193,), (1349988219,), (1349988246,), (1349988310,), (1349988379,), (1349988699,), (1349988719,), (1349988744,), (1349988776,), (1349988823,), (1349988876,), (1349989178,), (1349989229,), (1349989297,), (1349989652,), (1349989703,), (1349989748,), (1349989797,), (1349989829,), (1349989858,), (1349990091,), (1349990144,), (1349990188,), (1349990215,), (1349990253,), (1349990399,), (1349990404,), (1349990410,), (1349990415,), (1349990727,), (1349990756,), (1349990784,), (1349990813,), (1349990848,), (1349990882,), (1349991132,), (1349991137,), (1349991139,), (1349991142,), (1349991147,), (1349991311,), (1349991316,), (1349991320,), (1349991341,), (1349991591,), (1349991642,), (1349991683,), (1349991716,), (1349991753,), (1349991759,), (1349991958,), (1349991987,), (1349992015,), (1349992042,), (1349992070,), (1349992272,), (1349992299,), (1349992325,), (1349992332,), (1349992446,), (1349992457,), (1349992484,), (1349992532,), (1349992561,), (1349992599,), (1349992991,), (1349992898,), (1349992935,), (1349992967,), (1349992983,), (1349992985,), (1349994044,), (1349994728,), (1349994750,), (1349995104,), (1349995156,), (1349995666,), (1349995712,), (1349995736,), (1349995743,), (1349995746,), (1349996109,), (1349996164,), (1349996192,), (1349996205,), (1349996217,), (1349996419,), (1349996431,), (1349996456,), (1349996698,), (1349996724,), (1349996750,), (1349996774,), (1349996799,), (1349997024,), (1349997055,), (1349997080,), (1349997091,), (1349997096,), (1349997106,), (1350003563,), (1350004945,), (1350005012,), (1350005197,), (1350005486,), (1350005515,), (1350005542,), (1350005733,), (1350005741,), (1350005765,), (1350005961,), (1350006230,), (1350007123,), (1350007152,), (1350007488,), (1350011248,), (1349853786,), (1349853787,), (1349853794,), (1349853795,), (1349853803,), (1349853804,), (1349853811,), (1349853812,), (1349853832,), (1349853841,), (1349853849,), (1349853860,), (1349853863,), (1349853866,), (1349853900,), (1349853907,), (1349853928,), (1349853950,), (1349853954,), (1349853958,), (1349853977,), (1349854000,), (1349854011,), (1349854024,), (1349854029,), (1349854034,), (1349854050,), (1349854056,), (1349854062,), (1349854071,), (1349854078,), (1349854083,), (1349854100,), (1349854107,), (1349852879,), (1349852881,), (1349852885,), (1349852886,), (1349852912,), (1349852917,), (1349852925,), (1349852933,), (1349852939,), (1349852963,), (1349852969,), (1349852975,), (1349852980,), (1349852984,), (1349852988,), (1349853025,), (1349853030,), (1349853039,), (1349853045,), (1349853065,), (1349853074,), (1349853135,), (1349853141,), (1349853160,), (1349853166,), (1349853173,), (1349853176,), (1349853237,), (1349853243,), (1349853255,), (1349853259,), (1349853265,), (1349853273,), (1349853290,), (1349853296,), (1349853302,), (1349853305,), (1349853309,), (1349853314,), (1349853332,), (1349853340,), (1349853346,), (1349853353,), (1349853357,), (1349853362,), (1349853380,), (1349853386,), (1349853392,), (1349853396,), (1349853398,), (1349853401,), (1349853433,), (1349853444,), (1349853458,), (1349853476,), (1349853488,), (1349853496,), (1349853530,), (1349853552,), (1349853561,), (1349853569,), (1349853575,), (1349853579,), (1349853600,), (1349853604,), (1349853615,), (1349853621,), (1349853636,), (1349853663,), (1349853767,), (1349853769,), (1349853783,), (1349853784,), (1349850759,), (1349850884,), (1349850923,), (1349850942,), (1349850985,), (1349850993,), (1349851079,), (1349851117,), (1349851127,), (1349851199,), (1349851201,), (1349851205,), (1349851216,), (1349851224,), (1349851231,), (1349851259,), (1349851266,), (1349851285,), (1349851429,), (1349851439,), (1349851446,), (1349851453,), (1349851458,), (1349851464,), (1349851558,), (1349851607,), (1349851643,), (1349851678,), (1349851712,), (1349851747,), (1349851929,), (1349851967,), (1349852015,), (1349852057,), (1349852092,), (1349852129,), (1349852295,), (1349852325,), (1349852366,), (1349852380,), (1349852383,), (1349852390,), (1349852589,), (1349852620,), (1349852649,), (1349852661,), (1349852666,), (1349852672,), (1349852738,), (1349852772,), (1349852792,), (1349852805,), (1349852816,), (1349852827,), (1349852846,), (1349852850,), (1349852853,), (1349852857,), (1349852862,), (1349852863,), (1349852869,), (1349852872,), (1349846963,), (1349846968,), (1349847026,), (1349847083,), (1349847306,), (1349847339,), (1349847378,), (1349847461,), (1349847541,), (1349847625,), (1349847835,), (1349847894,), (1349847948,), (1349848005,), (1349848073,), (1349848128,), (1349848283,), (1349848314,), (1349848345,), (1349848384,), (1349848424,), (1349848455,), (1349848606,), (1349848636,), (1349848688,), (1349848724,), (1349848779,), (1349848821,), (1349848991,), (1349849047,), (1349849106,), (1349849143,), (1349849152,), (1349849203,), (1349849337,), (1349849420,), (1349849425,), (1349849436,), (1349849477,), (1349849515,), (1349849589,), (1349849618,), (1349849663,), (1349849702,), (1349849735,), (1349849740,), (1349849825,), (1349849859,), (1349849899,), (1349849932,), (1349849945,), (1349849987,), (1349849992,), (1349849998,), (1349850005,), (1349850013,), (1349850020,), (1349850034,), (1349850052,), (1349850078,), (1349850089,), (1349850095,), (1349850101,), (1349850132,), (1349850137,), (1349850142,), (1349850147,), (1349850151,), (1349850159,), (1349850355,), (1349850381,), (1349850406,), (1349850510,), (1349850583,), (1349850630,), (1349845018,), (1349845022,), (1349845025,), (1349845028,), (1349845035,), (1349845060,), (1349845076,), (1349845083,), (1349845090,), (1349845102,), (1349845114,), (1349845133,), (1349845139,), (1349845143,), (1349845148,), (1349845153,), (1349845160,), (1349845247,), (1349845278,), (1349845291,), (1349845302,), (1349845311,), (1349845316,), (1349845331,), (1349845336,), (1349845340,), (1349845348,), (1349845360,), (1349845428,), (1349845446,), (1349845458,), (1349845462,), (1349845466,), (1349845471,), (1349845477,), (1349845498,), (1349845504,), (1349845513,), (1349845519,), (1349845533,), (1349845540,), (1349845558,), (1349845566,), (1349845571,), (1349845577,), (1349845580,), (1349845590,), (1349845604,), (1349845610,), (1349845616,), (1349845622,), (1349845629,), (1349845635,), (1349845649,), (1349845655,), (1349845657,), (1349845661,), (1349845667,), (1349845672,), (1349845709,), (1349845740,), (1349845771,), (1349845799,), (1349845836,), (1349845867,), (1349845974,), (1349846013,), (1349846047,), (1349846090,), (1349846165,), (1349846256,), (1349846486,), (1349846545,), (1349846604,), (1349846659,), (1349846716,), (1349846798,), (1349846946,), (1349846960,), (1349843114,), (1349843128,), (1349843144,), (1349843232,), (1349843245,), (1349843249,), (1349843254,), (1349843264,), (1349843271,), (1349843428,), (1349843435,), (1349843441,), (1349843448,), (1349843452,), (1349843469,), (1349843474,), (1349843481,), (1349843486,), (1349843493,), (1349843527,), (1349843696,), (1349843714,), (1349843736,), (1349843759,), (1349843845,), (1349843895,), (1349843956,), (1349843962,), (1349843970,), (1349843999,), (1349844007,), (1349844018,), (1349844033,), (1349844038,), (1349844078,), (1349844110,), (1349844116,), (1349844121,), (1349844146,), (1349844166,), (1349844169,), (1349844193,), (1349844215,), (1349844259,), (1349844473,), (1349844495,), (1349844518,), (1349844534,), (1349844539,), (1349844566,), (1349844606,), (1349844611,), (1349844618,), (1349844622,), (1349844638,), (1349844672,), (1349844716,), (1349844725,), (1349844738,), (1349844750,), (1349844762,), (1349844765,), (1349844855,), (1349844877,), (1349844893,), (1349844911,), (1349844915,), (1349844922,), (1349844940,), (1349844945,), (1349844959,), (1349844976,), (1349844991,), (1349844994,), (1349845014,), (1349840908,), (1349840980,), (1349841000,), (1349841011,), (1349841016,), (1349841020,), (1349841025,), (1349841095,), (1349841100,), (1349841118,), (1349841122,), (1349841127,), (1349841133,), (1349841285,), (1349841315,), (1349841361,), (1349841371,), (1349841378,), (1349841397,), (1349841457,), (1349841470,), (1349841502,), (1349841547,), (1349841592,), (1349841634,), (1349841705,), (1349841715,), (1349841722,), (1349841726,), (1349841731,), (1349841745,), (1349841772,), (1349841778,), (1349841806,), (1349841813,), (1349841816,), (1349841822,), (1349841841,), (1349841871,), (1349841902,), (1349841931,), (1349841939,), (1349841976,), (1349842047,), (1349842068,), (1349842079,), (1349842083,), (1349842104,), (1349842112,), (1349842170,), (1349842190,), (1349842196,), (1349842200,), (1349842207,), (1349842234,), (1349842288,), (1349842292,), (1349842325,), (1349842358,), (1349842433,), (1349842488,), (1349842591,), (1349842640,), (1349842735,), (1349842767,), (1349842770,), (1349842777,), (1349842808,), (1349842822,), (1349842856,), (1349842887,), (1349842964,), (1349842999,), (1349843078,), (1349843094,), (1349843105,), (1349839134,), (1349839182,), (1349839214,), (1349839224,), (1349839243,), (1349839248,), (1349839254,), (1349839315,), (1349839323,), (1349839328,), (1349839334,), (1349839343,), (1349839348,), (1349839432,), (1349839437,), (1349839443,), (1349839448,), (1349839479,), (1349839485,), (1349839526,), (1349839559,), (1349839615,), (1349839649,), (1349839680,), (1349839735,), (1349839764,), (1349839769,), (1349839775,), (1349839780,), (1349839783,), (1349839820,), (1349839886,), (1349839905,), (1349839923,), (1349840024,), (1349840108,), (1349840112,), (1349840149,), (1349840155,), (1349840160,), (1349840165,), (1349840172,), (1349840177,), (1349840252,), (1349840258,), (1349840263,), (1349840274,), (1349840286,), (1349840297,), (1349840362,), (1349840367,), (1349840372,), (1349840378,), (1349840384,), (1349840389,), (1349840493,), (1349840526,), (1349840564,), (1349840596,), (1349840647,), (1349840679,), (1349840849,), (1349840891,), (1349840896,), (1349840903,), (1349837159,), (1349837163,), (1349837188,), (1349837214,), (1349837219,), (1349837225,), (1349837229,), (1349837252,), (1349837350,), (1349837356,), (1349837360,), (1349837368,), (1349837374,), (1349837379,), (1349837431,), (1349837521,), (1349837605,), (1349837690,), (1349837767,), (1349837779,), (1349837879,), (1349838025,), (1349838065,), (1349838075,), (1349838088,), (1349838094,), (1349838198,), (1349838231,), (1349838241,), (1349838252,), (1349838258,), (1349838274,), (1349838375,), (1349838406,), (1349838411,), (1349838435,), (1349838468,), (1349838501,), (1349838578,), (1349838583,), (1349838589,), (1349838638,), (1349838673,), (1349838703,), (1349838792,), (1349838799,), (1349838810,), (1349838816,), (1349838824,), (1349838828,), (1349838872,), (1349838886,), (1349838890,), (1349838921,), (1349838929,), (1349838948,), (1349838956,), (1349838962,), (1349838969,), (1349838975,), (1349838981,), (1349838989,), (1349838994,), (1349839000,), (1349839005,), (1349839017,), (1349839027,), (1349839048,), (1349839052,), (1349839055,), (1349839057,), (1349839061,), (1349839064,), (1349839091,), (1349839109,), (1349839118,), (1349839125,), (1349839130,), (1349835100,), (1349835113,), (1349835140,), (1349835206,), (1349835236,), (1349835254,), (1349835311,), (1349835339,), (1349835355,), (1349835405,), (1349835441,), (1349835485,), (1349835510,), (1349835514,), (1349835518,), (1349835522,), (1349835536,), (1349835552,), (1349835598,), (1349835632,), (1349835659,), (1349835686,), (1349835699,), (1349835705,), (1349835839,), (1349835888,), (1349835927,), (1349835937,), (1349835941,), (1349835945,), (1349836043,), (1349836078,), (1349836116,), (1349836169,), (1349836230,), (1349836257,), (1349836337,), (1349836341,), (1349836349,), (1349836353,), (1349836359,), (1349836386,), (1349836475,), (1349836479,), (1349836485,), (1349836559,), (1349836565,), (1349836639,), (1349836644,), (1349836656,), (1349836666,), (1349836670,), (1349836709,), (1349836764,), (1349836769,), (1349836777,), (1349836782,), (1349836786,), (1349836819,), (1349836887,), (1349836901,), (1349836925,), (1349836936,), (1349836944,), (1349836957,), (1349836991,), (1349836995,), (1349837016,), (1349837054,), (1349837084,), (1349837104,), (1349837120,), (1349837123,), (1349837129,), (1349837133,), (1349837134,), (1349837140,), (1349837143,), (1349837149,), (1349837152,), (1349837155,), (1349832374,), (1349832393,), (1349832428,), (1349832462,), (1349832579,), (1349832598,), (1349832621,), (1349832677,), (1349832730,), (1349832742,), (1349832844,), (1349832893,), (1349832952,), (1349833023,), (1349833094,), (1349833152,), (1349833362,), (1349833402,), (1349833459,), (1349833610,), (1349833653,), (1349833688,), (1349833862,), (1349833867,), (1349833892,), (1349833896,), (1349833900,), (1349833966,), (1349834004,), (1349834051,), (1349834074,), (1349834105,), (1349834161,), (1349834272,), (1349834303,), (1349834331,), (1349834366,), (1349834386,), (1349834390,), (1349834423,), (1349834426,), (1349834432,), (1349834446,), (1349834484,), (1349834514,), (1349834560,), (1349834567,), (1349834572,), (1349834577,), (1349834584,), (1349834591,), (1349834604,), (1349834607,), (1349834613,), (1349834619,), (1349834626,), (1349834636,), (1349834659,), (1349834664,), (1349834668,), (1349834674,), (1349834680,), (1349834687,), (1349834691,), (1349834697,), (1349834702,), (1349834713,), (1349834745,), (1349834750,), (1349834762,), (1349834764,), (1349834768,), (1349834933,), (1349834967,), (1349835011,), (1349830645,), (1349830757,), (1349830786,), (1349830816,), (1349830844,), (1349830871,), (1349830907,), (1349831012,), (1349831064,), (1349831094,), (1349831112,), (1349831157,), (1349831166,), (1349831271,), (1349831280,), (1349831320,), (1349831342,), (1349831370,), (1349831400,), (1349831418,), (1349831423,), (1349831427,), (1349831450,), (1349831453,), (1349831475,), (1349831485,), (1349831508,), (1349831520,), (1349831546,), (1349831566,), (1349831606,), (1349831746,), (1349831799,), (1349831849,), (1349831886,), (1349831930,), (1349831962,), (1349832034,), (1349832066,), (1349832102,), (1349832243,), (1349832249,), (1349832271,), (1349832342,), (1349832360,), (1349826811,), (1349826816,), (1349826839,), (1349826953,), (1349826981,), (1349827017,), (1349827133,), (1349827169,), (1349827204,), (1349827220,), (1349827224,), (1349827229,), (1349827414,), (1349827418,), (1349827422,), (1349827426,), (1349827431,), (1349827436,), (1349827530,), (1349827564,), (1349827576,), (1349827581,), (1349827587,), (1349827615,), (1349827728,), (1349827758,), (1349827790,), (1349827823,), (1349827856,), (1349827890,), (1349828006,), (1349828036,), (1349828069,), (1349828100,), (1349828127,), (1349828161,), (1349828262,), (1349828275,), (1349828291,), (1349828305,), (1349828339,), (1349828342,), (1349828394,), (1349828457,), (1349828468,), (1349828515,), (1349828569,), (1349828570,), (1349828714,), (1349828783,), (1349828854,), (1349829173,), (1349829239,), (1349829278,), (1349829367,), (1349829397,), (1349829434,), (1349829456,), (1349829486,), (1349829525,), (1349829734,), (1349829764,), (1349829801,), (1349829897,), (1349829931,), (1349830020,), (1349830069,), (1349830111,), (1349830154,), (1349830202,), (1349830216,), (1349830236,), (1349830247,), (1349830268,), (1349830298,), (1349830348,), (1349830358,), (1349830462,), (1349830499,), (1349830541,), (1349830582,), (1349830616,), (1349824927,), (1349824935,), (1349824941,), (1349824986,), (1349824995,), (1349825000,), (1349825006,), (1349825068,), (1349825072,), (1349825095,), (1349825099,), (1349825105,), (1349825110,), (1349825116,), (1349825122,), (1349825148,), (1349825156,), (1349825163,), (1349825169,), (1349825175,), (1349825182,), (1349825197,), (1349825204,), (1349825212,), (1349825221,), (1349825228,), (1349825289,), (1349825324,), (1349825327,), (1349825334,), (1349825342,), (1349825400,), (1349825411,), (1349825470,), (1349825482,), (1349825518,), (1349825536,), (1349825542,), (1349825546,), (1349825762,), (1349825777,), (1349825792,), (1349825811,), (1349825831,), (1349825945,), (1349825982,), (1349826011,), (1349826040,), (1349826068,), (1349826099,), (1349826206,), (1349826236,), (1349826266,), (1349826295,), (1349826328,), (1349826408,), (1349826520,), (1349826553,), (1349826588,), (1349826621,), (1349826656,), (1349826688,), (1349826718,), (1349826726,), (1349826731,), (1349826738,), (1349826744,), (1349826748,), (1349826767,), (1349826771,), (1349826774,), (1349826780,), (1349826785,), (1349826791,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'15042025': {'nb_upload': 25, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22024908]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349887121] map_info['map_portfolio_photo'] : {22024908: [1349887121, 1349822966, 1349822949, 1349822944, 1349822940, 1349822935, 1349822929, 1349822925, 1349822918, 1349822915, 1349822909, 1349822906, 1349822900, 1349822898, 1349822884, 1349822879, 1349822874, 1349822868, 1349822863, 1349822858, 1349822846, 1349822841, 1349822837, 1349822833, 1349822829]} final : True mtd_id 4302 list_pids : [1349887121] Looping around the photos to save general results len do output : 1 /22024908Didn'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, '2720899') ('4302', '22024908', '1349887121', None, None, None, None, None, '2720899') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '22024908', 'None', None, None, None, None, '2720899'), ('4302', '22024908', '1349887121', None, None, None, None, None, '2720899')] time used for this insertion : 0.012348651885986328 save_final save missing photos in datou_result : time spend for datou_step_exec : 12.87369680404663 time spend to save output : 0.012455463409423828 total time spend for step 5 : 12.886152267456055 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 (2720899) 2.08user 2.24system 0:21.43elapsed 20%CPU (0avgtext+0avgdata 155952maxresident)k 232inputs+8488outputs (16major+61862minor)pagefaults 0swaps