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 : 684101 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 (3732864) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3732864) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26926538 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3732864'] with mtr_portfolio_ids : ['26926538'] and first list_photo_ids : [] new path : /proc/684101/ Name: python3 Umask: 0002 State: R (running) Tgid: 684101 Ngid: 0 Pid: 684101 PPid: 684100 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 684101 NSpid: 684101 NSpgid: 682740 NSsid: 682740 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98832 kB VmRSS: 98832 kB RssAnon: 60156 kB RssFile: 38676 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 54 nonvoluntary_ctxt_switches: 86 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '684101', 'Ngid': '0', 'Pid': '684101', 'PPid': '684100', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '684101', 'NSpid': '684101', 'NSpgid': '682740', 'NSsid': '682740', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98832 kB', 'VmRSS': '98832 kB', 'RssAnon': '60156 kB', 'RssFile': '38676 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '54', 'nonvoluntary_ctxt_switches': '86'} ('datou_batch_current', '684101', '1107252', '0', '1107252', '866004', '98832', b'', 'marlene', '3732864') 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 (26926538) 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 (3732864 ) ) 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 (26926538) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1384057482, 'portfolio_id': 26926538}, {'photo_id': 1384057470, 'portfolio_id': 26926538}, {'photo_id': 1384057466, 'portfolio_id': 26926538}, {'photo_id': 1384057455, 'portfolio_id': 26926538}, {'photo_id': 1384057454, 'portfolio_id': 26926538}, {'photo_id': 1384057452, 'portfolio_id': 26926538}, {'photo_id': 1384057450, 'portfolio_id': 26926538}, {'photo_id': 1384057448, 'portfolio_id': 26926538}, {'photo_id': 1384057447, 'portfolio_id': 26926538}, {'photo_id': 1384057434, 'portfolio_id': 26926538}, {'photo_id': 1384057432, 'portfolio_id': 26926538}, {'photo_id': 1384057430, 'portfolio_id': 26926538}, {'photo_id': 1384057428, 'portfolio_id': 26926538}, {'photo_id': 1384057406, 'portfolio_id': 26926538}, {'photo_id': 1384057404, 'portfolio_id': 26926538}, {'photo_id': 1384057401, 'portfolio_id': 26926538}, {'photo_id': 1384057398, 'portfolio_id': 26926538}, {'photo_id': 1384057396, 'portfolio_id': 26926538}, {'photo_id': 1384057390, 'portfolio_id': 26926538}, {'photo_id': 1384057380, 'portfolio_id': 26926538}, {'photo_id': 1384057379, 'portfolio_id': 26926538}, {'photo_id': 1384057375, 'portfolio_id': 26926538}, {'photo_id': 1384057373, 'portfolio_id': 26926538}, {'photo_id': 1384057371, 'portfolio_id': 26926538}, {'photo_id': 1384057369, 'portfolio_id': 26926538}, {'photo_id': 1384057367, 'portfolio_id': 26926538}, {'photo_id': 1384057366, 'portfolio_id': 26926538}, {'photo_id': 1384057339, 'portfolio_id': 26926538}, {'photo_id': 1384057338, 'portfolio_id': 26926538}, {'photo_id': 1384057337, 'portfolio_id': 26926538}, {'photo_id': 1384057321, 'portfolio_id': 26926538}, {'photo_id': 1384057319, 'portfolio_id': 26926538}, {'photo_id': 1384057318, 'portfolio_id': 26926538}, {'photo_id': 1384057316, 'portfolio_id': 26926538}, {'photo_id': 1384057315, 'portfolio_id': 26926538}, {'photo_id': 1384057313, 'portfolio_id': 26926538}, {'photo_id': 1384057299, 'portfolio_id': 26926538}, {'photo_id': 1384057297, 'portfolio_id': 26926538}, {'photo_id': 1384057295, 'portfolio_id': 26926538}, {'photo_id': 1384057294, 'portfolio_id': 26926538}, {'photo_id': 1384057293, 'portfolio_id': 26926538}, {'photo_id': 1384057292, 'portfolio_id': 26926538}, {'photo_id': 1384057276, 'portfolio_id': 26926538}, {'photo_id': 1384057274, 'portfolio_id': 26926538}, {'photo_id': 1384057273, 'portfolio_id': 26926538}, {'photo_id': 1384057271, 'portfolio_id': 26926538}, {'photo_id': 1384057216, 'portfolio_id': 26926538}, {'photo_id': 1384057211, 'portfolio_id': 26926538}, {'photo_id': 1384057207, 'portfolio_id': 26926538}, {'photo_id': 1384057206, 'portfolio_id': 26926538}, {'photo_id': 1384057195, 'portfolio_id': 26926538}, {'photo_id': 1384057193, 'portfolio_id': 26926538}, {'photo_id': 1384057188, 'portfolio_id': 26926538}, {'photo_id': 1384057185, 'portfolio_id': 26926538}, {'photo_id': 1384057184, 'portfolio_id': 26926538}, {'photo_id': 1384057182, 'portfolio_id': 26926538}, {'photo_id': 1384057163, 'portfolio_id': 26926538}, {'photo_id': 1384057158, 'portfolio_id': 26926538}, {'photo_id': 1384057154, 'portfolio_id': 26926538}, {'photo_id': 1384057152, 'portfolio_id': 26926538}, {'photo_id': 1384057150, 'portfolio_id': 26926538}, {'photo_id': 1384057133, 'portfolio_id': 26926538}, {'photo_id': 1384057132, 'portfolio_id': 26926538}, {'photo_id': 1384057130, 'portfolio_id': 26926538}, {'photo_id': 1384057116, 'portfolio_id': 26926538}, {'photo_id': 1384057114, 'portfolio_id': 26926538}, {'photo_id': 1384057112, 'portfolio_id': 26926538}, {'photo_id': 1384057111, 'portfolio_id': 26926538}, {'photo_id': 1384057110, 'portfolio_id': 26926538}, {'photo_id': 1384057109, 'portfolio_id': 26926538}, {'photo_id': 1384057099, 'portfolio_id': 26926538}, {'photo_id': 1384057097, 'portfolio_id': 26926538}, {'photo_id': 1384057096, 'portfolio_id': 26926538}, {'photo_id': 1384057095, 'portfolio_id': 26926538}, {'photo_id': 1384057074, 'portfolio_id': 26926538}, {'photo_id': 1384057073, 'portfolio_id': 26926538}, {'photo_id': 1384057072, 'portfolio_id': 26926538}] map_portfolio_id_photo_id: {26926538: [1384057482, 1384057470, 1384057466, 1384057455, 1384057454, 1384057452, 1384057450, 1384057448, 1384057447, 1384057434, 1384057432, 1384057430, 1384057428, 1384057406, 1384057404, 1384057401, 1384057398, 1384057396, 1384057390, 1384057380, 1384057379, 1384057375, 1384057373, 1384057371, 1384057369, 1384057367, 1384057366, 1384057339, 1384057338, 1384057337, 1384057321, 1384057319, 1384057318, 1384057316, 1384057315, 1384057313, 1384057299, 1384057297, 1384057295, 1384057294, 1384057293, 1384057292, 1384057276, 1384057274, 1384057273, 1384057271, 1384057216, 1384057211, 1384057207, 1384057206, 1384057195, 1384057193, 1384057188, 1384057185, 1384057184, 1384057182, 1384057163, 1384057158, 1384057154, 1384057152, 1384057150, 1384057133, 1384057132, 1384057130, 1384057116, 1384057114, 1384057112, 1384057111, 1384057110, 1384057109, 1384057099, 1384057097, 1384057096, 1384057095, 1384057074, 1384057073, 1384057072]} ##### 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.01585984230041504 #### 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 Sep 17 06:48: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 (26926538) 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 : 26926538 get user id for portfolio 26926538 get sub ptf for main ptf 26926538, type 3726 and hashtags ['Teint_Dans_La_Masse', 'environnement', 'kraft', 'cartonnette', 'Carton_brun', 'metal', 'flou', 'mal_croppe', 'Carton_gris', 'plastique', 'autre_refus', 'papier'] 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`=26926538 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','kraft','cartonnette','Carton_brun','metal','flou','mal_croppe','Carton_gris','plastique','autre_refus','papier')) 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`=26926538 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','kraft','cartonnette','Carton_brun','metal','flou','mal_croppe','Carton_gris','plastique','autre_refus','papier')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 26926538, 'sub_port_id': 26926548, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18158992, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 28)}, 'plastique': {'main_port_id': 26926538, 'sub_port_id': 26926549, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18158993, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 28)}, 'flou': {'main_port_id': 26926538, 'sub_port_id': 26926550, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18158994, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 28)}, 'Carton_gris': {'main_port_id': 26926538, 'sub_port_id': 26926551, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18158995, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 28)}, 'Carton_brun': {'main_port_id': 26926538, 'sub_port_id': 26926552, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18158996, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 26926538, 'sub_port_id': 26926553, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18158997, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 28)}, 'cartonnette': {'main_port_id': 26926538, 'sub_port_id': 26926554, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18158998, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 28)}, 'environnement': {'main_port_id': 26926538, 'sub_port_id': 26926555, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18158999, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 28)}, 'kraft': {'main_port_id': 26926538, 'sub_port_id': 26926556, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18159000, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 28)}, 'mal_croppe': {'main_port_id': 26926538, 'sub_port_id': 26926557, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18159001, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 28)}, 'autre_refus': {'main_port_id': 26926538, 'sub_port_id': 26926558, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18159002, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 28)}, 'metal': {'main_port_id': 26926538, 'sub_port_id': 26926559, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18159003, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26926548 , 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=26926538 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 (26926548) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26926538) result : ((1384057072,), (1384057073,), (1384057074,), (1384057095,), (1384057096,), (1384057097,), (1384057099,), (1384057109,), (1384057110,), (1384057111,), (1384057112,), (1384057114,), (1384057116,), (1384057130,), (1384057132,), (1384057133,), (1384057150,), (1384057152,), (1384057154,), (1384057158,), (1384057163,), (1384057182,), (1384057184,), (1384057185,), (1384057188,), (1384057193,), (1384057195,), (1384057206,), (1384057207,), (1384057211,), (1384057216,), (1384057271,), (1384057273,), (1384057274,), (1384057276,), (1384057292,), (1384057293,), (1384057294,), (1384057295,), (1384057297,), (1384057299,), (1384057313,), (1384057315,), (1384057316,), (1384057318,), (1384057319,), (1384057321,), (1384057337,), (1384057338,), (1384057339,), (1384057366,), (1384057367,), (1384057369,), (1384057371,), (1384057373,), (1384057375,), (1384057379,), (1384057380,), (1384057390,), (1384057396,), (1384057398,), (1384057401,), (1384057404,), (1384057406,), (1384057428,), (1384057430,), (1384057432,), (1384057434,), (1384057447,), (1384057448,), (1384057450,), (1384057452,), (1384057454,), (1384057455,), (1384057466,), (1384057470,), (1384057482,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26926549 , 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=26926538 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 (26926549) result : ((1384057172,), (1384057232,), (1384057270,), (1384057308,), (1384057394,), (1384057395,), (1384057410,), (1384057426,), (1384057468,), (1384057469,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26926538) result : ((1384057072,), (1384057073,), (1384057074,), (1384057095,), (1384057096,), (1384057097,), (1384057099,), (1384057109,), (1384057110,), (1384057111,), (1384057112,), (1384057114,), (1384057116,), (1384057130,), (1384057132,), (1384057133,), (1384057150,), (1384057152,), (1384057154,), (1384057158,), (1384057163,), (1384057182,), (1384057184,), (1384057185,), (1384057188,), (1384057193,), (1384057195,), (1384057206,), (1384057207,), (1384057211,), (1384057216,), (1384057271,), (1384057273,), (1384057274,), (1384057276,), (1384057292,), (1384057293,), (1384057294,), (1384057295,), (1384057297,), (1384057299,), (1384057313,), (1384057315,), (1384057316,), (1384057318,), (1384057319,), (1384057321,), (1384057337,), (1384057338,), (1384057339,), (1384057366,), (1384057367,), (1384057369,), (1384057371,), (1384057373,), (1384057375,), (1384057379,), (1384057380,), (1384057390,), (1384057396,), (1384057398,), (1384057401,), (1384057404,), (1384057406,), (1384057428,), (1384057430,), (1384057432,), (1384057434,), (1384057447,), (1384057448,), (1384057450,), (1384057452,), (1384057454,), (1384057455,), (1384057466,), (1384057470,), (1384057482,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26926550 , 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=26926538 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 (26926550) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26926538) result : ((1384057072,), (1384057073,), (1384057074,), (1384057095,), (1384057096,), (1384057097,), (1384057099,), (1384057109,), (1384057110,), (1384057111,), (1384057112,), (1384057114,), (1384057116,), (1384057130,), (1384057132,), (1384057133,), (1384057150,), (1384057152,), (1384057154,), (1384057158,), (1384057163,), (1384057182,), (1384057184,), (1384057185,), (1384057188,), (1384057193,), (1384057195,), (1384057206,), (1384057207,), (1384057211,), (1384057216,), (1384057271,), (1384057273,), (1384057274,), (1384057276,), (1384057292,), (1384057293,), (1384057294,), (1384057295,), (1384057297,), (1384057299,), (1384057313,), (1384057315,), (1384057316,), (1384057318,), (1384057319,), (1384057321,), (1384057337,), (1384057338,), (1384057339,), (1384057366,), (1384057367,), (1384057369,), (1384057371,), (1384057373,), (1384057375,), (1384057379,), (1384057380,), (1384057390,), (1384057396,), (1384057398,), (1384057401,), (1384057404,), (1384057406,), (1384057428,), (1384057430,), (1384057432,), (1384057434,), (1384057447,), (1384057448,), (1384057450,), (1384057452,), (1384057454,), (1384057455,), (1384057466,), (1384057470,), (1384057482,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26926551 , 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=26926538 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 (26926551) result : ((1384057177,), (1384057228,), (1384057286,), (1384057287,), (1384057304,), (1384057420,), (1384057464,), (1384057467,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26926538) result : ((1384057072,), (1384057073,), (1384057074,), (1384057095,), (1384057096,), (1384057097,), (1384057099,), (1384057109,), (1384057110,), (1384057111,), (1384057112,), (1384057114,), (1384057116,), (1384057130,), (1384057132,), (1384057133,), (1384057150,), (1384057152,), (1384057154,), (1384057158,), (1384057163,), (1384057182,), (1384057184,), (1384057185,), (1384057188,), (1384057193,), (1384057195,), (1384057206,), (1384057207,), (1384057211,), (1384057216,), (1384057271,), (1384057273,), (1384057274,), (1384057276,), (1384057292,), (1384057293,), (1384057294,), (1384057295,), (1384057297,), (1384057299,), (1384057313,), (1384057315,), (1384057316,), (1384057318,), (1384057319,), (1384057321,), (1384057337,), (1384057338,), (1384057339,), (1384057366,), (1384057367,), (1384057369,), (1384057371,), (1384057373,), (1384057375,), (1384057379,), (1384057380,), (1384057390,), (1384057396,), (1384057398,), (1384057401,), (1384057404,), (1384057406,), (1384057428,), (1384057430,), (1384057432,), (1384057434,), (1384057447,), (1384057448,), (1384057450,), (1384057452,), (1384057454,), (1384057455,), (1384057466,), (1384057470,), (1384057482,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26926552 , 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=26926538 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 (26926552) result : ((1384057171,), (1384057178,), (1384057179,), (1384057180,), (1384057229,), (1384057230,), (1384057266,), (1384057267,), (1384057268,), (1384057306,), (1384057307,), (1384057391,), (1384057392,), (1384057423,), (1384057424,), (1384057465,), (1384057561,), (1384057563,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26926538) result : ((1384057072,), (1384057073,), (1384057074,), (1384057095,), (1384057096,), (1384057097,), (1384057099,), (1384057109,), (1384057110,), (1384057111,), (1384057112,), (1384057114,), (1384057116,), (1384057130,), (1384057132,), (1384057133,), (1384057150,), (1384057152,), (1384057154,), (1384057158,), (1384057163,), (1384057182,), (1384057184,), (1384057185,), (1384057188,), (1384057193,), (1384057195,), (1384057206,), (1384057207,), (1384057211,), (1384057216,), (1384057271,), (1384057273,), (1384057274,), (1384057276,), (1384057292,), (1384057293,), (1384057294,), (1384057295,), (1384057297,), (1384057299,), (1384057313,), (1384057315,), (1384057316,), (1384057318,), (1384057319,), (1384057321,), (1384057337,), (1384057338,), (1384057339,), (1384057366,), (1384057367,), (1384057369,), (1384057371,), (1384057373,), (1384057375,), (1384057379,), (1384057380,), (1384057390,), (1384057396,), (1384057398,), (1384057401,), (1384057404,), (1384057406,), (1384057428,), (1384057430,), (1384057432,), (1384057434,), (1384057447,), (1384057448,), (1384057450,), (1384057452,), (1384057454,), (1384057455,), (1384057466,), (1384057470,), (1384057482,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26926553 , 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=26926538 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 (26926553) result : ((1384057175,), (1384057176,), (1384057264,), (1384057265,), (1384057348,), (1384057382,), (1384057383,), (1384057385,), (1384057459,), (1384057460,), (1384057461,), (1384057462,), (1384057550,), (1384057551,), (1384057552,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26926538) result : ((1384057072,), (1384057073,), (1384057074,), (1384057095,), (1384057096,), (1384057097,), (1384057099,), (1384057109,), (1384057110,), (1384057111,), (1384057112,), (1384057114,), (1384057116,), (1384057130,), (1384057132,), (1384057133,), (1384057150,), (1384057152,), (1384057154,), (1384057158,), (1384057163,), (1384057182,), (1384057184,), (1384057185,), (1384057188,), (1384057193,), (1384057195,), (1384057206,), (1384057207,), (1384057211,), (1384057216,), (1384057271,), (1384057273,), (1384057274,), (1384057276,), (1384057292,), (1384057293,), (1384057294,), (1384057295,), (1384057297,), (1384057299,), (1384057313,), (1384057315,), (1384057316,), (1384057318,), (1384057319,), (1384057321,), (1384057337,), (1384057338,), (1384057339,), (1384057366,), (1384057367,), (1384057369,), (1384057371,), (1384057373,), (1384057375,), (1384057379,), (1384057380,), (1384057390,), (1384057396,), (1384057398,), (1384057401,), (1384057404,), (1384057406,), (1384057428,), (1384057430,), (1384057432,), (1384057434,), (1384057447,), (1384057448,), (1384057450,), (1384057452,), (1384057454,), (1384057455,), (1384057466,), (1384057470,), (1384057482,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26926554 , 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=26926538 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 (26926554) result : ((1384057388,), (1384057389,), (1384057409,), (1384057421,), (1384057422,), (1384057557,), (1384057558,), (1384057559,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26926538) result : ((1384057072,), (1384057073,), (1384057074,), (1384057095,), (1384057096,), (1384057097,), (1384057099,), (1384057109,), (1384057110,), (1384057111,), (1384057112,), (1384057114,), (1384057116,), (1384057130,), (1384057132,), (1384057133,), (1384057150,), (1384057152,), (1384057154,), (1384057158,), (1384057163,), (1384057182,), (1384057184,), (1384057185,), (1384057188,), (1384057193,), (1384057195,), (1384057206,), (1384057207,), (1384057211,), (1384057216,), (1384057271,), (1384057273,), (1384057274,), (1384057276,), (1384057292,), (1384057293,), (1384057294,), (1384057295,), (1384057297,), (1384057299,), (1384057313,), (1384057315,), (1384057316,), (1384057318,), (1384057319,), (1384057321,), (1384057337,), (1384057338,), (1384057339,), (1384057366,), (1384057367,), (1384057369,), (1384057371,), (1384057373,), (1384057375,), (1384057379,), (1384057380,), (1384057390,), (1384057396,), (1384057398,), (1384057401,), (1384057404,), (1384057406,), (1384057428,), (1384057430,), (1384057432,), (1384057434,), (1384057447,), (1384057448,), (1384057450,), (1384057452,), (1384057454,), (1384057455,), (1384057466,), (1384057470,), (1384057482,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26926555 , 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=26926538 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 (26926555) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26926538) result : ((1384057072,), (1384057073,), (1384057074,), (1384057095,), (1384057096,), (1384057097,), (1384057099,), (1384057109,), (1384057110,), (1384057111,), (1384057112,), (1384057114,), (1384057116,), (1384057130,), (1384057132,), (1384057133,), (1384057150,), (1384057152,), (1384057154,), (1384057158,), (1384057163,), (1384057182,), (1384057184,), (1384057185,), (1384057188,), (1384057193,), (1384057195,), (1384057206,), (1384057207,), (1384057211,), (1384057216,), (1384057271,), (1384057273,), (1384057274,), (1384057276,), (1384057292,), (1384057293,), (1384057294,), (1384057295,), (1384057297,), (1384057299,), (1384057313,), (1384057315,), (1384057316,), (1384057318,), (1384057319,), (1384057321,), (1384057337,), (1384057338,), (1384057339,), (1384057366,), (1384057367,), (1384057369,), (1384057371,), (1384057373,), (1384057375,), (1384057379,), (1384057380,), (1384057390,), (1384057396,), (1384057398,), (1384057401,), (1384057404,), (1384057406,), (1384057428,), (1384057430,), (1384057432,), (1384057434,), (1384057447,), (1384057448,), (1384057450,), (1384057452,), (1384057454,), (1384057455,), (1384057466,), (1384057470,), (1384057482,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26926556 , 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=26926538 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 (26926556) result : ((1384057288,), (1384057289,), (1384057309,), (1384057564,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26926538) result : ((1384057072,), (1384057073,), (1384057074,), (1384057095,), (1384057096,), (1384057097,), (1384057099,), (1384057109,), (1384057110,), (1384057111,), (1384057112,), (1384057114,), (1384057116,), (1384057130,), (1384057132,), (1384057133,), (1384057150,), (1384057152,), (1384057154,), (1384057158,), (1384057163,), (1384057182,), (1384057184,), (1384057185,), (1384057188,), (1384057193,), (1384057195,), (1384057206,), (1384057207,), (1384057211,), (1384057216,), (1384057271,), (1384057273,), (1384057274,), (1384057276,), (1384057292,), (1384057293,), (1384057294,), (1384057295,), (1384057297,), (1384057299,), (1384057313,), (1384057315,), (1384057316,), (1384057318,), (1384057319,), (1384057321,), (1384057337,), (1384057338,), (1384057339,), (1384057366,), (1384057367,), (1384057369,), (1384057371,), (1384057373,), (1384057375,), (1384057379,), (1384057380,), (1384057390,), (1384057396,), (1384057398,), (1384057401,), (1384057404,), (1384057406,), (1384057428,), (1384057430,), (1384057432,), (1384057434,), (1384057447,), (1384057448,), (1384057450,), (1384057452,), (1384057454,), (1384057455,), (1384057466,), (1384057470,), (1384057482,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26926557 , 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=26926538 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 (26926557) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26926538) result : ((1384057072,), (1384057073,), (1384057074,), (1384057095,), (1384057096,), (1384057097,), (1384057099,), (1384057109,), (1384057110,), (1384057111,), (1384057112,), (1384057114,), (1384057116,), (1384057130,), (1384057132,), (1384057133,), (1384057150,), (1384057152,), (1384057154,), (1384057158,), (1384057163,), (1384057182,), (1384057184,), (1384057185,), (1384057188,), (1384057193,), (1384057195,), (1384057206,), (1384057207,), (1384057211,), (1384057216,), (1384057271,), (1384057273,), (1384057274,), (1384057276,), (1384057292,), (1384057293,), (1384057294,), (1384057295,), (1384057297,), (1384057299,), (1384057313,), (1384057315,), (1384057316,), (1384057318,), (1384057319,), (1384057321,), (1384057337,), (1384057338,), (1384057339,), (1384057366,), (1384057367,), (1384057369,), (1384057371,), (1384057373,), (1384057375,), (1384057379,), (1384057380,), (1384057390,), (1384057396,), (1384057398,), (1384057401,), (1384057404,), (1384057406,), (1384057428,), (1384057430,), (1384057432,), (1384057434,), (1384057447,), (1384057448,), (1384057450,), (1384057452,), (1384057454,), (1384057455,), (1384057466,), (1384057470,), (1384057482,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26926558 , 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=26926538 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 (26926558) result : ((1384057386,), (1384057387,), (1384057555,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26926538) result : ((1384057072,), (1384057073,), (1384057074,), (1384057095,), (1384057096,), (1384057097,), (1384057099,), (1384057109,), (1384057110,), (1384057111,), (1384057112,), (1384057114,), (1384057116,), (1384057130,), (1384057132,), (1384057133,), (1384057150,), (1384057152,), (1384057154,), (1384057158,), (1384057163,), (1384057182,), (1384057184,), (1384057185,), (1384057188,), (1384057193,), (1384057195,), (1384057206,), (1384057207,), (1384057211,), (1384057216,), (1384057271,), (1384057273,), (1384057274,), (1384057276,), (1384057292,), (1384057293,), (1384057294,), (1384057295,), (1384057297,), (1384057299,), (1384057313,), (1384057315,), (1384057316,), (1384057318,), (1384057319,), (1384057321,), (1384057337,), (1384057338,), (1384057339,), (1384057366,), (1384057367,), (1384057369,), (1384057371,), (1384057373,), (1384057375,), (1384057379,), (1384057380,), (1384057390,), (1384057396,), (1384057398,), (1384057401,), (1384057404,), (1384057406,), (1384057428,), (1384057430,), (1384057432,), (1384057434,), (1384057447,), (1384057448,), (1384057450,), (1384057452,), (1384057454,), (1384057455,), (1384057466,), (1384057470,), (1384057482,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26926559 , 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=26926538 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 (26926559) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26926538) result : ((1384057072,), (1384057073,), (1384057074,), (1384057095,), (1384057096,), (1384057097,), (1384057099,), (1384057109,), (1384057110,), (1384057111,), (1384057112,), (1384057114,), (1384057116,), (1384057130,), (1384057132,), (1384057133,), (1384057150,), (1384057152,), (1384057154,), (1384057158,), (1384057163,), (1384057182,), (1384057184,), (1384057185,), (1384057188,), (1384057193,), (1384057195,), (1384057206,), (1384057207,), (1384057211,), (1384057216,), (1384057271,), (1384057273,), (1384057274,), (1384057276,), (1384057292,), (1384057293,), (1384057294,), (1384057295,), (1384057297,), (1384057299,), (1384057313,), (1384057315,), (1384057316,), (1384057318,), (1384057319,), (1384057321,), (1384057337,), (1384057338,), (1384057339,), (1384057366,), (1384057367,), (1384057369,), (1384057371,), (1384057373,), (1384057375,), (1384057379,), (1384057380,), (1384057390,), (1384057396,), (1384057398,), (1384057401,), (1384057404,), (1384057406,), (1384057428,), (1384057430,), (1384057432,), (1384057434,), (1384057447,), (1384057448,), (1384057450,), (1384057452,), (1384057454,), (1384057455,), (1384057466,), (1384057470,), (1384057482,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26926538 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','kraft','cartonnette','Carton_brun','metal','flou','mal_croppe','Carton_gris','plastique','autre_refus','papier')) 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`=26926538 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','kraft','cartonnette','Carton_brun','metal','flou','mal_croppe','Carton_gris','plastique','autre_refus','papier')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 26926538, 'sub_port_id': 26926560, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18159004, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 34)}, 'plastique': {'main_port_id': 26926538, 'sub_port_id': 26926561, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18159005, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 34)}, 'flou': {'main_port_id': 26926538, 'sub_port_id': 26926562, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18159006, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 34)}, 'Carton_gris': {'main_port_id': 26926538, 'sub_port_id': 26926563, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18159007, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 34)}, 'Carton_brun': {'main_port_id': 26926538, 'sub_port_id': 26926564, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18159008, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 26926538, 'sub_port_id': 26926566, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18159009, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 34)}, 'cartonnette': {'main_port_id': 26926538, 'sub_port_id': 26926568, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18159010, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 34)}, 'environnement': {'main_port_id': 26926538, 'sub_port_id': 26926570, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18159011, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 34)}, 'kraft': {'main_port_id': 26926538, 'sub_port_id': 26926572, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18159012, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 34)}, 'mal_croppe': {'main_port_id': 26926538, 'sub_port_id': 26926574, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18159013, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 34)}, 'autre_refus': {'main_port_id': 26926538, 'sub_port_id': 26926576, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18159014, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 34)}, 'metal': {'main_port_id': 26926538, 'sub_port_id': 26926578, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18159015, 'last_updated_at': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 6, 46, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 6, 33, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26926560,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26926548 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26926561,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26926549 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26926562,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26926550 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26926563,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26926551 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26926564,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26926552 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26926566,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26926553 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26926568,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26926554 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26926570,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26926555 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26926572,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26926556 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26926574,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26926557 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26926576,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26926558 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26926578,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26926559 lien utilise dans velours : https://marlene.fotonower.com/velours/26926560,26926561,26926562,26926563,26926564,26926566,26926568,26926570,26926572,26926574,26926576,26926578?tags=papier,plastique,flou,Carton_gris,Carton_brun,Teint_Dans_La_Masse,cartonnette,environnement,kraft,mal_croppe,autre_refus,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26926538]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1384057482] map_info['map_portfolio_photo'] : {26926538: [1384057482, 1384057470, 1384057466, 1384057455, 1384057454, 1384057452, 1384057450, 1384057448, 1384057447, 1384057434, 1384057432, 1384057430, 1384057428, 1384057406, 1384057404, 1384057401, 1384057398, 1384057396, 1384057390, 1384057380, 1384057379, 1384057375, 1384057373, 1384057371, 1384057369, 1384057367, 1384057366, 1384057339, 1384057338, 1384057337, 1384057321, 1384057319, 1384057318, 1384057316, 1384057315, 1384057313, 1384057299, 1384057297, 1384057295, 1384057294, 1384057293, 1384057292, 1384057276, 1384057274, 1384057273, 1384057271, 1384057216, 1384057211, 1384057207, 1384057206, 1384057195, 1384057193, 1384057188, 1384057185, 1384057184, 1384057182, 1384057163, 1384057158, 1384057154, 1384057152, 1384057150, 1384057133, 1384057132, 1384057130, 1384057116, 1384057114, 1384057112, 1384057111, 1384057110, 1384057109, 1384057099, 1384057097, 1384057096, 1384057095, 1384057074, 1384057073, 1384057072]} final : False mtd_id 4302 list_pids : [1384057482] Looping around the photos to save general results len do output : 1 /26926538. 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, '3732864') ('4302', '26926538', '1384057482', None, None, None, None, None, '3732864') 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, '26926538', "{'papier': 26926548, 'plastique': 26926549, 'flou': 26926550, 'Carton_gris': 26926551, 'Carton_brun': 26926552, 'Teint_Dans_La_Masse': 26926553, 'cartonnette': 26926554, 'environnement': 26926555, 'kraft': 26926556, 'mal_croppe': 26926557, 'autre_refus': 26926558, 'metal': 26926559}", None, None, None, None, '3732864'), ('4302', '26926538', '1384057482', None, None, None, None, None, '3732864')] time used for this insertion : 0.01972031593322754 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7021427154541016 time spend to save output : 0.019947528839111328 total time spend for step 1 : 1.722090244293213 step2:final Wed Sep 17 06:48: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 (26926538) 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 26926538 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1384057074,1384057073,1384057072,1384057099,1384057097,1384057096,1384057095,1384057116,1384057114,1384057112,1384057111,1384057110,1384057109,1384057133,1384057132,1384057130,1384057163,1384057158,1384057154,1384057152,1384057150,1384057195,1384057193,1384057188,1384057185,1384057184,1384057182,1384057216,1384057211,1384057207,1384057206,1384057276,1384057274,1384057273,1384057271,1384057299,1384057297,1384057295,1384057294,1384057293,1384057292,1384057321,1384057319,1384057318,1384057316,1384057315,1384057313,1384057380,1384057339,1384057338,1384057379,1384057375,1384057337,1384057373,1384057371,1384057369,1384057367,1384057406,1384057366,1384057404,1384057401,1384057398,1384057396,1384057390,1384057470,1384057434,1384057432,1384057466,1384057430,1384057455,1384057428,1384057454,1384057452,1384057450,1384057448,1384057447,1384057482); 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([26926538]) Inside saveOutput : final : False verbose : True original output for save of step final : {1384057482: ('0.058544981737487484',)} new output for save of step final : {1384057482: ('0.058544981737487484',)} [1384057482] map_info['map_portfolio_photo'] : {26926538: [1384057482, 1384057470, 1384057466, 1384057455, 1384057454, 1384057452, 1384057450, 1384057448, 1384057447, 1384057434, 1384057432, 1384057430, 1384057428, 1384057406, 1384057404, 1384057401, 1384057398, 1384057396, 1384057390, 1384057380, 1384057379, 1384057375, 1384057373, 1384057371, 1384057369, 1384057367, 1384057366, 1384057339, 1384057338, 1384057337, 1384057321, 1384057319, 1384057318, 1384057316, 1384057315, 1384057313, 1384057299, 1384057297, 1384057295, 1384057294, 1384057293, 1384057292, 1384057276, 1384057274, 1384057273, 1384057271, 1384057216, 1384057211, 1384057207, 1384057206, 1384057195, 1384057193, 1384057188, 1384057185, 1384057184, 1384057182, 1384057163, 1384057158, 1384057154, 1384057152, 1384057150, 1384057133, 1384057132, 1384057130, 1384057116, 1384057114, 1384057112, 1384057111, 1384057110, 1384057109, 1384057099, 1384057097, 1384057096, 1384057095, 1384057074, 1384057073, 1384057072]} final : False mtd_id 4302 list_pids : [1384057482] Looping around the photos to save general results len do output : 1 /1384057482.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, '3732864') ('4302', '26926538', '1384057482', None, None, None, None, None, '3732864') 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', '26926538', '1384057482', '0.058544981737487484', None, None, None, None, '3732864')] time used for this insertion : 0.016371965408325195 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.10781598091125488 time spend to save output : 0.016573190689086914 total time spend for step 2 : 0.1243891716003418 step3:velours_tree Wed Sep 17 06:49:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {26926538: [{'papier': 26926548, 'plastique': 26926549, 'flou': 26926550, 'Carton_gris': 26926551, 'Carton_brun': 26926552, 'Teint_Dans_La_Masse': 26926553, 'cartonnette': 26926554, 'environnement': 26926555, 'kraft': 26926556, 'mal_croppe': 26926557, 'autre_refus': 26926558, 'metal': 26926559}]} input_args_next_step : {26926538: ()} output_args : {26926538: [{'papier': 26926548, 'plastique': 26926549, 'flou': 26926550, 'Carton_gris': 26926551, 'Carton_brun': 26926552, 'Teint_Dans_La_Masse': 26926553, 'cartonnette': 26926554, 'environnement': 26926555, 'kraft': 26926556, 'mal_croppe': 26926557, 'autre_refus': 26926558, 'metal': 26926559}]} args : 26926538 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 : ({'papier': 26926548, 'plastique': 26926549, 'flou': 26926550, 'Carton_gris': 26926551, 'Carton_brun': 26926552, 'Teint_Dans_La_Masse': 26926553, 'cartonnette': 26926554, 'environnement': 26926555, 'kraft': 26926556, 'mal_croppe': 26926557, 'autre_refus': 26926558, 'metal': 26926559},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26926538) 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([26926538]) 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.27777862548828125 time spend to save output : 4.029273986816406e-05 total time spend for step 3 : 0.2778189182281494 step4:send_mail_cod Wed Sep 17 06:49:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1384057482: ('0.058544981737487484',)} input_args_next_step : {1384057482: ()} output_args : {1384057482: ('0.058544981737487484',)} args : 1384057482 depend.output_id : 0 complete output_args for input 3 : {26926538: [{'papier': 26926548, 'plastique': 26926549, 'flou': 26926550, 'Carton_gris': 26926551, 'Carton_brun': 26926552, 'Teint_Dans_La_Masse': 26926553, 'cartonnette': 26926554, 'environnement': 26926555, 'kraft': 26926556, 'mal_croppe': 26926557, 'autre_refus': 26926558, 'metal': 26926559}]} input_args_next_step : {1384057482: ('0.058544981737487484',), 26926538: ()} output_args : {26926538: [{'papier': 26926548, 'plastique': 26926549, 'flou': 26926550, 'Carton_gris': 26926551, 'Carton_brun': 26926552, 'Teint_Dans_La_Masse': 26926553, 'cartonnette': 26926554, 'environnement': 26926555, 'kraft': 26926556, 'mal_croppe': 26926557, 'autre_refus': 26926558, 'metal': 26926559}]} args : 26926538 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.058544981737487484',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26926538) 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 (1384057482) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1384057482 download finish for photo 1384057482 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_P26926538_17-09-2025_06_49_00.pdf 26926549 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=26926549 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384057172: '1758083705_3152026_1384057072_e2d44fd311b51290e912db9c0dfa4644_rle_crop_3960480717_0.png', 1384057232: '1758083825_3159671_1384057132_22ba89f9d0c6c79c59f36993e1d9dcb8_rle_crop_3960481128_0.png', 1384057270: '1758083847_3160107_1384057110_5f863ab1e8f670b8345a1a277676b21a_rle_crop_3960481276_0.png', 1384057308: '1758083947_3165251_1384057132_22ba89f9d0c6c79c59f36993e1d9dcb8_rle_crop_3960481128_0.png', 1384057394: '1758084146_3178059_1384057295_b42df4148129cb52fc76d6d183f9fe9f_rle_crop_3960482152_0.png', 1384057395: '1758084146_3178059_1384057292_d13d9cb94a006ba0c2a22e34fc981e49_rle_crop_3960482191_0.png', 1384057410: '1758084187_3179341_1384057211_8c9a28f36e9bb0d53287274643315c88_rle_crop_3960482275_0.png', 1384057426: '1758084206_3179840_1384057273_9030a0de0de7603cfee301bdce0f9dd6_rle_crop_3960482416_0.png', 1384057468: '1758084306_3186582_1384057216_573c1c857a12da55cecd61b01e6b4585_rle_crop_3960482613_0.png', 1384057469: '1758084306_3186582_1384057182_5581e0a097fab2819066aafce3381575_rle_crop_3960482703_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/53e8f6ac370cba7d04eb13b0a79c002b_82942459.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/44a6174aa61f4d342096653689a0b5ea_82525068.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/217367269d29075bac0f0bcd4de9ad2e_5148143.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/44a6174aa61f4d342096653689a0b5ea_88901619.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/446444df7f3ef71a1fc3f42c0cab40f8_61251066.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/edae2bed7a27d0d93eb71e0c7f89189e_57138892.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/7360f2d868f98b6e54230c2206611f4a_28326165.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/3aeec93fca2d6409855ba30809325d03_69792103.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/d74bbebb5cbf713a1742de468a71bd93_23790252.png change filename to text .imagette269265491758084540/ imagette269265491758084540/1758083847_3160107_1384057110_5f863ab1e8f670b8345a1a277676b21a_rle_crop_3960481276_0.png.png imagette269265491758084540/1758083705_3152026_1384057072_e2d44fd311b51290e912db9c0dfa4644_rle_crop_3960480717_0.png.png imagette269265491758084540/1758084187_3179341_1384057211_8c9a28f36e9bb0d53287274643315c88_rle_crop_3960482275_0.png.png imagette269265491758084540/1758083825_3159671_1384057132_22ba89f9d0c6c79c59f36993e1d9dcb8_rle_crop_3960481128_0.png.png imagette269265491758084540/1758084306_3186582_1384057182_5581e0a097fab2819066aafce3381575_rle_crop_3960482703_0.png.png imagette269265491758084540/1758083947_3165251_1384057132_22ba89f9d0c6c79c59f36993e1d9dcb8_rle_crop_3960481128_0.png.png imagette269265491758084540/1758084146_3178059_1384057292_d13d9cb94a006ba0c2a22e34fc981e49_rle_crop_3960482191_0.png.png imagette269265491758084540/1758084306_3186582_1384057216_573c1c857a12da55cecd61b01e6b4585_rle_crop_3960482613_0.png.png imagette269265491758084540/1758084146_3178059_1384057295_b42df4148129cb52fc76d6d183f9fe9f_rle_crop_3960482152_0.png.png imagette269265491758084540/1758084206_3179840_1384057273_9030a0de0de7603cfee301bdce0f9dd6_rle_crop_3960482416_0.png.png imagette269265501758084541/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/8f7f3fe692559a691dbd240a8d6acb87_9733123.png imagette269265491758084540 26926550 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=26926550 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette269265501758084541 26926554 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=26926554 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384057388: '1758084146_3178059_1384057297_a441bbe70e02d0a64329379e330f45ba_rle_crop_3960482133_0.png', 1384057389: '1758084146_3178059_1384057293_abfb2e915327dd54caf7497eb0e479ec_rle_crop_3960482177_0.png', 1384057409: '1758084187_3179341_1384057211_8c9a28f36e9bb0d53287274643315c88_rle_crop_3960482266_0.png', 1384057421: '1758084206_3179840_1384057299_f0fb50998db8f6b733bb7d85a05d9842_rle_crop_3960482392_0.png', 1384057422: '1758084206_3179840_1384057274_d7da9c243d2abbc322445adc4a153ab8_rle_crop_3960482405_0.png', 1384057557: '1758084445_3193191_1384057434_2166c9d6e6fb7c04158251fb73e9caed_rle_crop_3960483242_0.png', 1384057558: '1758084445_3193191_1384057396_41fc167e51448622b7b1772d060d3dfb_rle_crop_3960483295_0.png', 1384057559: '1758084445_3193191_1384057396_41fc167e51448622b7b1772d060d3dfb_rle_crop_3960483290_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/655a5f89bd6a52e6d2ce7b625841b3d6_38689209.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/05a24dcd98c07adb2174530af85a4fb0_79183237.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/755c4fa68d01089de874d8e4a6a7684b_19809251.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/89d99b8f896f195ceafb9ce6a5395757_66513523.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/014cd69df4d23c9b8848a73bda097487_10798374.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/670d4df527ee87c07c2a8e667932d5e1_52138570.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/a2c0b4aab7e7d3c8fb3b0039e14865c5_36517466.png change filename to text .imagette269265541758084541/ imagette269265541758084541/1758084445_3193191_1384057396_41fc167e51448622b7b1772d060d3dfb_rle_crop_3960483295_0.png.png imagette269265541758084541/1758084445_3193191_1384057434_2166c9d6e6fb7c04158251fb73e9caed_rle_crop_3960483242_0.png.png imagette269265541758084541/1758084146_3178059_1384057297_a441bbe70e02d0a64329379e330f45ba_rle_crop_3960482133_0.png.png imagette269265541758084541/1758084445_3193191_1384057396_41fc167e51448622b7b1772d060d3dfb_rle_crop_3960483290_0.png.png imagette269265541758084541/1758084187_3179341_1384057211_8c9a28f36e9bb0d53287274643315c88_rle_crop_3960482266_0.png.png imagette269265541758084541/1758084146_3178059_1384057293_abfb2e915327dd54caf7497eb0e479ec_rle_crop_3960482177_0.png.png imagette269265541758084541/1758084206_3179840_1384057274_d7da9c243d2abbc322445adc4a153ab8_rle_crop_3960482405_0.png.png imagette269265541758084541/1758084206_3179840_1384057299_f0fb50998db8f6b733bb7d85a05d9842_rle_crop_3960482392_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/76ab4c03d8b51a3d26c502ae1527b0f3_71822166.png imagette269265541758084541 26926556 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=26926556 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384057288: '1758083906_3163398_1384057158_a124e3e1f7ea0961076792747a25c11f_rle_crop_3960481426_0.png', 1384057289: '1758083906_3163398_1384057154_3bf06ca6eab89274716a403ea61ee574_rle_crop_3960481442_0.png', 1384057309: '1758083947_3165251_1384057163_c885a404e596b8c768099ffde9d00211_rle_crop_3960481571_0.png', 1384057564: '1758084445_3193191_1384057396_41fc167e51448622b7b1772d060d3dfb_rle_crop_3960483292_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/0a37b047f0e5cab8e298d49f65291d24_80936384.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/2c33ed935b575b13e5c38c9bd80403dc_80867472.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/1a722bb74c304a357da96b83a9586312_13895283.png change filename to text .imagette269265561758084541/ imagette269265561758084541/1758083947_3165251_1384057163_c885a404e596b8c768099ffde9d00211_rle_crop_3960481571_0.png.png imagette269265561758084541/1758084445_3193191_1384057396_41fc167e51448622b7b1772d060d3dfb_rle_crop_3960483292_0.png.png imagette269265561758084541/1758083906_3163398_1384057158_a124e3e1f7ea0961076792747a25c11f_rle_crop_3960481426_0.png.png imagette269265561758084541/1758083906_3163398_1384057154_3bf06ca6eab89274716a403ea61ee574_rle_crop_3960481442_0.png.png imagette269265571758084542/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/050a1b408ea529fa5c891168f5eccec0_78728545.png imagette269265561758084541 26926557 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=26926557 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette269265571758084542 26926558 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=26926558 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384057386: '1758084146_3178059_1384057297_a441bbe70e02d0a64329379e330f45ba_rle_crop_3960482127_0.png', 1384057387: '1758084146_3178059_1384057295_b42df4148129cb52fc76d6d183f9fe9f_rle_crop_3960482146_0.png', 1384057555: '1758084445_3193191_1384057404_91bc78af33a9ad2b79fcebb0b231f906_rle_crop_3960483253_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/c7dadd08b2186ca6e5d82e3caca39a55_11903700.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/7f36971b36993d81fde9bbe3816c38e1_63480443.png change filename to text .imagette269265581758084542/ imagette269265581758084542/1758084146_3178059_1384057295_b42df4148129cb52fc76d6d183f9fe9f_rle_crop_3960482146_0.png.png imagette269265581758084542/1758084445_3193191_1384057404_91bc78af33a9ad2b79fcebb0b231f906_rle_crop_3960483253_0.png.png imagette269265581758084542/1758084146_3178059_1384057297_a441bbe70e02d0a64329379e330f45ba_rle_crop_3960482127_0.png.png imagette269265591758084542/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/09044e35f31956719b6fd03d586ce147_4780298.png imagette269265581758084542 26926559 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=26926559 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette269265591758084542 26926551 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=26926551 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384057177: '1758083725_3152378_1384057095_1d55589ae3869701ee58827a416b7ff2_rle_crop_3960480809_0.png', 1384057228: '1758083825_3159671_1384057130_343d0bf6c8edaf8b53d688bc2f0f0ef9_rle_crop_3960481134_0.png', 1384057286: '1758083906_3163398_1384057154_3bf06ca6eab89274716a403ea61ee574_rle_crop_3960481435_0.png', 1384057287: '1758083906_3163398_1384057154_3bf06ca6eab89274716a403ea61ee574_rle_crop_3960481438_0.png', 1384057304: '1758083947_3165251_1384057130_343d0bf6c8edaf8b53d688bc2f0f0ef9_rle_crop_3960481134_0.png', 1384057420: '1758084206_3179840_1384057274_d7da9c243d2abbc322445adc4a153ab8_rle_crop_3960482408_0.png', 1384057464: '1758084306_3186582_1384057193_41048895cbe578b33be3080fffa2dd34_rle_crop_3960482618_0.png', 1384057467: '1758084326_3186924_1384057195_1d2b3fc51f72a7e97968295352bb5cfe_rle_crop_3960482717_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/f9d9f71f30df9692693b637b59df4100_25629462.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/d42c95d0e65e511bd6581f71743281a1_6989393.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/93e786068872ffe8921c429eed8bd240_49782196.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/3d4f8fd5b26568acc42e485433742821_83379526.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/d42c95d0e65e511bd6581f71743281a1_79739634.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/4bc086666303250aaf7faac12f76cb75_21350303.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/5046b3a6ea048f8a7eed4c72fad36766_4101153.png change filename to text .imagette269265511758084542/ imagette269265511758084542/1758083947_3165251_1384057130_343d0bf6c8edaf8b53d688bc2f0f0ef9_rle_crop_3960481134_0.png.png imagette269265511758084542/1758084306_3186582_1384057193_41048895cbe578b33be3080fffa2dd34_rle_crop_3960482618_0.png.png imagette269265511758084542/1758083725_3152378_1384057095_1d55589ae3869701ee58827a416b7ff2_rle_crop_3960480809_0.png.png imagette269265511758084542/1758084326_3186924_1384057195_1d2b3fc51f72a7e97968295352bb5cfe_rle_crop_3960482717_0.png.png imagette269265511758084542/1758083906_3163398_1384057154_3bf06ca6eab89274716a403ea61ee574_rle_crop_3960481435_0.png.png imagette269265511758084542/1758084206_3179840_1384057274_d7da9c243d2abbc322445adc4a153ab8_rle_crop_3960482408_0.png.png imagette269265511758084542/1758083906_3163398_1384057154_3bf06ca6eab89274716a403ea61ee574_rle_crop_3960481438_0.png.png imagette269265511758084542/1758083825_3159671_1384057130_343d0bf6c8edaf8b53d688bc2f0f0ef9_rle_crop_3960481134_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/5a84ccbc84d6cbc8cf9dd112b60cb735_62401832.png imagette269265511758084542 26926552 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=26926552 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384057306: '1758083947_3165251_1384057132_22ba89f9d0c6c79c59f36993e1d9dcb8_rle_crop_3960481126_0.png', 1384057563: '1758084445_3193191_1384057398_10821f95b5744de8252f3343b7f580c7_rle_crop_3960483282_0.png', 1384057561: '1758084445_3193191_1384057434_2166c9d6e6fb7c04158251fb73e9caed_rle_crop_3960483243_0.png', 1384057465: '1758084306_3186582_1384057185_86544b8bc24f4e135f734b01d00525e8_rle_crop_3960482675_0.png', 1384057424: '1758084206_3179840_1384057271_828aa59221773fa82f5fecddd960a7c8_rle_crop_3960482433_0.png', 1384057423: '1758084206_3179840_1384057271_828aa59221773fa82f5fecddd960a7c8_rle_crop_3960482428_0.png', 1384057392: '1758084146_3178059_1384057293_abfb2e915327dd54caf7497eb0e479ec_rle_crop_3960482185_0.png', 1384057391: '1758084146_3178059_1384057294_27801dee875327e72076cf3580339eff_rle_crop_3960482169_0.png', 1384057307: '1758083947_3165251_1384057132_22ba89f9d0c6c79c59f36993e1d9dcb8_rle_crop_3960481124_0.png', 1384057171: '1758083705_3152026_1384057074_157a41d86c55eef480309325da6cbf7d_rle_crop_3960480683_0.png', 1384057268: '1758083847_3160107_1384057112_d8eaec529112aa31ded007dc8dcd693a_rle_crop_3960481256_0.png', 1384057267: '1758083847_3160107_1384057112_d8eaec529112aa31ded007dc8dcd693a_rle_crop_3960481255_0.png', 1384057266: '1758083847_3160107_1384057114_7fba76078796199594b88814d35d0f79_rle_crop_3960481248_0.png', 1384057230: '1758083825_3159671_1384057132_22ba89f9d0c6c79c59f36993e1d9dcb8_rle_crop_3960481124_0.png', 1384057229: '1758083825_3159671_1384057132_22ba89f9d0c6c79c59f36993e1d9dcb8_rle_crop_3960481126_0.png', 1384057180: '1758083725_3152378_1384057097_310969a0fedf30b73bcb33e3821d5588_rle_crop_3960480786_0.png', 1384057179: '1758083725_3152378_1384057097_310969a0fedf30b73bcb33e3821d5588_rle_crop_3960480794_0.png', 1384057178: '1758083725_3152378_1384057097_310969a0fedf30b73bcb33e3821d5588_rle_crop_3960480791_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/55f460cc369bb6579c2145c580bd31bd_61380783.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/2379f0bc329f13dfa6161d7bd3105dc4_58942187.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/f738920e613d518192a0c0639da356cc_56960753.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/a596b21bc556ec692bf776121b624231_92128148.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/c7535ce748e1a7c2695bb1d9dd993dd4_56093014.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/b209aea2058b7ad62854a7d3bc833f33_58673026.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/99989be4b315765e888696e1ceb1fe82_91523197.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/58ec05275166d81493bc876359d96859_69815621.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/5daaafb9a604641db4f229e02f40888e_20858960.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/a8c6e8c907db834a4e33d66f6ed0f4c4_64076353.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/5cf8a6fc3673f3a5cff35d5002f737eb_46704053.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/1897100bea7691bf8ad7e06fcff2de32_63148295.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/c3a33a306b63d6303b69d47fbaad8dc1_65604517.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/5daaafb9a604641db4f229e02f40888e_23084081.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/55f460cc369bb6579c2145c580bd31bd_30734174.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/c4ec0386c334cba93c3b8fdfcc53097a_99512110.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/41e4a24855f92687bf6e71c9e4083be6_93146129.png change filename to text .imagette269265521758084542/ imagette269265521758084542/1758084206_3179840_1384057271_828aa59221773fa82f5fecddd960a7c8_rle_crop_3960482433_0.png.png imagette269265521758084542/1758083725_3152378_1384057097_310969a0fedf30b73bcb33e3821d5588_rle_crop_3960480786_0.png.png imagette269265521758084542/1758083947_3165251_1384057132_22ba89f9d0c6c79c59f36993e1d9dcb8_rle_crop_3960481126_0.png.png imagette269265521758084542/1758084146_3178059_1384057294_27801dee875327e72076cf3580339eff_rle_crop_3960482169_0.png.png imagette269265521758084542/1758083825_3159671_1384057132_22ba89f9d0c6c79c59f36993e1d9dcb8_rle_crop_3960481124_0.png.png imagette269265521758084542/1758083725_3152378_1384057097_310969a0fedf30b73bcb33e3821d5588_rle_crop_3960480794_0.png.png imagette269265521758084542/1758083847_3160107_1384057112_d8eaec529112aa31ded007dc8dcd693a_rle_crop_3960481256_0.png.png imagette269265521758084542/1758084445_3193191_1384057434_2166c9d6e6fb7c04158251fb73e9caed_rle_crop_3960483243_0.png.png imagette269265521758084542/1758084306_3186582_1384057185_86544b8bc24f4e135f734b01d00525e8_rle_crop_3960482675_0.png.png imagette269265521758084542/1758084146_3178059_1384057293_abfb2e915327dd54caf7497eb0e479ec_rle_crop_3960482185_0.png.png imagette269265521758084542/1758083825_3159671_1384057132_22ba89f9d0c6c79c59f36993e1d9dcb8_rle_crop_3960481126_0.png.png imagette269265521758084542/1758083725_3152378_1384057097_310969a0fedf30b73bcb33e3821d5588_rle_crop_3960480791_0.png.png imagette269265521758084542/1758083947_3165251_1384057132_22ba89f9d0c6c79c59f36993e1d9dcb8_rle_crop_3960481124_0.png.png imagette269265521758084542/1758084445_3193191_1384057398_10821f95b5744de8252f3343b7f580c7_rle_crop_3960483282_0.png.png imagette269265521758084542/1758083705_3152026_1384057074_157a41d86c55eef480309325da6cbf7d_rle_crop_3960480683_0.png.png imagette269265521758084542/1758084206_3179840_1384057271_828aa59221773fa82f5fecddd960a7c8_rle_crop_3960482428_0.png.png imagette269265521758084542/1758083847_3160107_1384057112_d8eaec529112aa31ded007dc8dcd693a_rle_crop_3960481255_0.png.png imagette269265521758084542/1758083847_3160107_1384057114_7fba76078796199594b88814d35d0f79_rle_crop_3960481248_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/4c1fecec86051a6a4eb2a921a72b550b_67109612.png imagette269265521758084542 26926553 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=26926553 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384057175: '1758083725_3152378_1384057097_310969a0fedf30b73bcb33e3821d5588_rle_crop_3960480790_0.png', 1384057176: '1758083725_3152378_1384057096_dccb8f3bf75aa06fcabb54e9b0c61962_rle_crop_3960480801_0.png', 1384057264: '1758083847_3160107_1384057114_7fba76078796199594b88814d35d0f79_rle_crop_3960481249_0.png', 1384057265: '1758083847_3160107_1384057111_f2a6f928befd1fe9f8583c1b1f636bd2_rle_crop_3960481265_0.png', 1384057348: '1758084067_3172799_1384057116_ad067ff2d86c21754079c9130ceb81f8_rle_crop_3960481769_0.png', 1384057382: '1758084146_3178059_1384057294_27801dee875327e72076cf3580339eff_rle_crop_3960482165_0.png', 1384057383: '1758084146_3178059_1384057293_abfb2e915327dd54caf7497eb0e479ec_rle_crop_3960482182_0.png', 1384057385: '1758084146_3178059_1384057292_d13d9cb94a006ba0c2a22e34fc981e49_rle_crop_3960482201_0.png', 1384057459: '1758084306_3186582_1384057216_573c1c857a12da55cecd61b01e6b4585_rle_crop_3960482611_0.png', 1384057460: '1758084306_3186582_1384057216_573c1c857a12da55cecd61b01e6b4585_rle_crop_3960482604_0.png', 1384057461: '1758084306_3186582_1384057185_86544b8bc24f4e135f734b01d00525e8_rle_crop_3960482678_0.png', 1384057462: '1758084306_3186582_1384057184_15ec248ce53d66995bd3ec35a46d06df_rle_crop_3960482692_0.png', 1384057550: '1758084445_3193191_1384057401_eec7fc0eea58b2d1b8952445094e5e02_rle_crop_3960483268_0.png', 1384057551: '1758084445_3193191_1384057398_10821f95b5744de8252f3343b7f580c7_rle_crop_3960483278_0.png', 1384057552: '1758084445_3193191_1384057390_77a51c8e4b5bb9861f94ed46619d5f9a_rle_crop_3960483313_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/480b758f1c61b9cfc2a40e6dfdfe2494_82258578.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/7d5fc580515f5d5681131f2d5988091e_88075827.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/363d278110daa1c0aba35be3cd4c3021_62764186.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/fc1d6262e32b40f5e75f8e54511fa30a_89537217.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/8befab339d1843250f0b4892c255a31e_63546586.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/b2e77a7760a07f352744eb4b7941676b_73792937.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/68ad70d592b3a28a6715f632a9accc6d_71112177.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/4e5ff05aa704c9eafa73623f2a555c54_6956754.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/3c2398b1f708a9186b63d279c810d90e_25307013.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/f9f257c08a6f5586bf51120b792da248_2129469.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/95e6375a38046cb2f8f52abba0511a6f_6743536.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/fd6e69d812afd6b98d2e584f32fdbda7_98514705.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/686beccb6ef9267de03ccbe924e93bae_96427850.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/b50cb7a19222d468c122d34a4624f469_9577291.png change filename to text .imagette269265531758084543/ imagette269265531758084543/1758083847_3160107_1384057114_7fba76078796199594b88814d35d0f79_rle_crop_3960481249_0.png.png imagette269265531758084543/1758083725_3152378_1384057096_dccb8f3bf75aa06fcabb54e9b0c61962_rle_crop_3960480801_0.png.png imagette269265531758084543/1758084306_3186582_1384057185_86544b8bc24f4e135f734b01d00525e8_rle_crop_3960482678_0.png.png imagette269265531758084543/1758084306_3186582_1384057184_15ec248ce53d66995bd3ec35a46d06df_rle_crop_3960482692_0.png.png imagette269265531758084543/1758084146_3178059_1384057292_d13d9cb94a006ba0c2a22e34fc981e49_rle_crop_3960482201_0.png.png imagette269265531758084543/1758084445_3193191_1384057398_10821f95b5744de8252f3343b7f580c7_rle_crop_3960483278_0.png.png imagette269265531758084543/1758084445_3193191_1384057401_eec7fc0eea58b2d1b8952445094e5e02_rle_crop_3960483268_0.png.png imagette269265531758084543/1758084067_3172799_1384057116_ad067ff2d86c21754079c9130ceb81f8_rle_crop_3960481769_0.png.png imagette269265531758084543/1758084306_3186582_1384057216_573c1c857a12da55cecd61b01e6b4585_rle_crop_3960482611_0.png.png imagette269265531758084543/1758084146_3178059_1384057293_abfb2e915327dd54caf7497eb0e479ec_rle_crop_3960482182_0.png.png imagette269265531758084543/1758083847_3160107_1384057111_f2a6f928befd1fe9f8583c1b1f636bd2_rle_crop_3960481265_0.png.png imagette269265531758084543/1758083725_3152378_1384057097_310969a0fedf30b73bcb33e3821d5588_rle_crop_3960480790_0.png.png imagette269265531758084543/1758084146_3178059_1384057294_27801dee875327e72076cf3580339eff_rle_crop_3960482165_0.png.png imagette269265531758084543/1758084306_3186582_1384057216_573c1c857a12da55cecd61b01e6b4585_rle_crop_3960482604_0.png.png imagette269265531758084543/1758084445_3193191_1384057390_77a51c8e4b5bb9861f94ed46619d5f9a_rle_crop_3960483313_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/291f371ba5381695960b332aed7948f5_64458437.png imagette269265531758084543 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26926538 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26926560,26926561,26926562,26926563,26926564,26926566,26926568,26926570,26926572,26926574,26926576,26926578?tags=papier,plastique,flou,Carton_gris,Carton_brun,Teint_Dans_La_Masse,cartonnette,environnement,kraft,mal_croppe,autre_refus,metal your option no_mail is active, we will not send the real mail to your client args[1384057482] : ('0.058544981737487484',) no score found for photo 1384057482 We are sending mail with results at report@fotonower.com refus_total : 0.058544981737487484 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=26926538 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_P26926538_17-09-2025_06_49_00.pdf results_Auto_P26926538_17-09-2025_06_49_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26926538_17-09-2025_06_49_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','26926538','results_Auto_P26926538_17-09-2025_06_49_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26926538_17-09-2025_06_49_00.pdf','pdf','','0.21','0.058544981737487484') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26926538]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1384057482] map_info['map_portfolio_photo'] : {26926538: [1384057482, 1384057470, 1384057466, 1384057455, 1384057454, 1384057452, 1384057450, 1384057448, 1384057447, 1384057434, 1384057432, 1384057430, 1384057428, 1384057406, 1384057404, 1384057401, 1384057398, 1384057396, 1384057390, 1384057380, 1384057379, 1384057375, 1384057373, 1384057371, 1384057369, 1384057367, 1384057366, 1384057339, 1384057338, 1384057337, 1384057321, 1384057319, 1384057318, 1384057316, 1384057315, 1384057313, 1384057299, 1384057297, 1384057295, 1384057294, 1384057293, 1384057292, 1384057276, 1384057274, 1384057273, 1384057271, 1384057216, 1384057211, 1384057207, 1384057206, 1384057195, 1384057193, 1384057188, 1384057185, 1384057184, 1384057182, 1384057163, 1384057158, 1384057154, 1384057152, 1384057150, 1384057133, 1384057132, 1384057130, 1384057116, 1384057114, 1384057112, 1384057111, 1384057110, 1384057109, 1384057099, 1384057097, 1384057096, 1384057095, 1384057074, 1384057073, 1384057072]} final : False mtd_id 4302 list_pids : [1384057482] 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, '3732864') ('4302', '26926538', '1384057482', None, None, None, None, None, '3732864') 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', '26926538', '1384057482', None, None, None, None, None, '3732864')] time used for this insertion : 0.012840986251831055 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.23248291015625 time spend to save output : 0.012997865676879883 total time spend for step 4 : 5.24548077583313 step5:split_time_score Wed Sep 17 06:49:05 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 : ['26926538'] 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 : [('26926538',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26926538) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1384057482: {'path': 'temp/1758084540_684101_1384057482_a0d501f99bbac1f63e1135659bd85a08.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 = 26926538; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26926538 group by h (('06', 77),) 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=26926538 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 (26926538) 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 (26926538) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17092025 26926538 Nombre de photos uploadées : 77 / 23040 (0%) 17092025 26926538 Nombre de photos taguées (types de déchets): 0 / 77 (0%) 17092025 26926538 Nombre de photos taguées (volume) : 0 / 77 (0%) [{'photo_id': 1384057074, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/157a41d86c55eef480309325da6cbf7d.jpg', 'username': None, 'uploaded_at': 1758083468, 'text': 'image_17092025_06_30_05_010147m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1384057073, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/81cf5fa7cb8393e6e1827574298851bb.jpg', 'username': None, 'uploaded_at': 1758083468, 'text': 'image_17092025_06_30_15_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1384057072, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/e2d44fd311b51290e912db9c0dfa4644.jpg', 'username': None, 'uploaded_at': 1758083468, 'text': 'image_17092025_06_30_44_009125m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1384057099, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/d79323a47f6194b8fe8ed5f76206495b.jpg', 'username': None, 'uploaded_at': 1758083528, 'text': 'image_17092025_06_30_54_010137m0.jpg 4e-05 for time 1, id_amount 3 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 6.9141387939453125e-06 ????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003917217254638672 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26926538, '2025-09-17' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-09-17' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2300667,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21362638473510742 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= 2300667 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2300667, 'dashboard_run_id': 2309859, 'mtr_portfolio_id': 26918428, 'dashboard_result_id': 15288052, '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_P26918428_17-09-2025_00_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26918438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26918439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26918440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26918441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26918442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26918443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26918444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26918445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26918446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26918447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26918448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26918449, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2309859, 'mtr_portfolio_id': 26918876, 'dashboard_result_id': 15288053, '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_P26918876_17-09-2025_00_32_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26918880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26918881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26918882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26918883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26918884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26918885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26918886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26918887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26918888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26918889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26918890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26918891, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2309859, 'mtr_portfolio_id': 26919228, 'dashboard_result_id': 15288054, '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_P26919228_17-09-2025_00_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26919234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26919235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26919236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26919237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26919238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26919239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26919240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26919241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26919242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26919243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26919244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26919245, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2309859, 'mtr_portfolio_id': 26919628, 'dashboard_result_id': 15288055, '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_P26919628_17-09-2025_01_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26919633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26919634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26919635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26919636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26919637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26919638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26919639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26919640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26919641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26919642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26919643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26919644, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2309859, 'mtr_portfolio_id': 26920486, 'dashboard_result_id': 15288056, '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_P26920486_17-09-2025_01_47_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26920488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26920489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26920490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26920491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26920492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26920493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26920494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26920495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26920496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26920497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26920498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26920499, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2309859, 'mtr_portfolio_id': 26920775, 'dashboard_result_id': 15288057, '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_P26920775_17-09-2025_02_03_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26920781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26920782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26920783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26920784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26920785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26920786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26920787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26920788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26920789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26920790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26920791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26920792, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2309859, 'mtr_portfolio_id': 26921240, 'dashboard_result_id': 15288058, '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_P26921240_17-09-2025_02_16_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26921249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26921250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26921251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26921252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26921253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26921254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26921255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26921256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26921257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26921258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26921259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26921260, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2309859, 'mtr_portfolio_id': 26921882, 'dashboard_result_id': 15288059, '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_P26921882_17-09-2025_02_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26921893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26921894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26921895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26921896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26921897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26921898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26921899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26921900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26921901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26921902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26921903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26921904, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2309859, 'mtr_portfolio_id': 26922389, 'dashboard_result_id': 15288060, '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_P26922389_17-09-2025_02_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26922398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26922399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26922400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26922401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26922402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26922403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26922404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26922405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26922406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26922407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26922408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26922409, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2309859, 'mtr_portfolio_id': 26922797, 'dashboard_result_id': 15288061, '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_P26922797_17-09-2025_03_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26922823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26922824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26922825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26922826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26922827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26922828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26922829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26922830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26922831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26922832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26922833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26922834, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2309859, 'mtr_portfolio_id': 26923194, 'dashboard_result_id': 15288062, '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_P26923194_17-09-2025_06_01_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26923221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26923222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26923223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26923224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26923225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26923226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26923227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26923228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26923229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26923230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26923231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26923232, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2309859, 'mtr_portfolio_id': 26924102, 'dashboard_result_id': 15288063, '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_P26924102_17-09-2025_05_19_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924115, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2309859, 'mtr_portfolio_id': 26924391, 'dashboard_result_id': 15288064, '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_P26924391_17-09-2025_05_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924400, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924407, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2309859, 'mtr_portfolio_id': 26924797, 'dashboard_result_id': 15288065, '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_P26924797_17-09-2025_05_47_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924811, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2309859, 'mtr_portfolio_id': 26925081, 'dashboard_result_id': 15288066, '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_P26925081_17-09-2025_06_01_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26925086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26925087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26925088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26925089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26925090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26925091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26925092, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26925093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26925094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26925095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26925096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26925097, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2309859, 'mtr_portfolio_id': 26925514, 'dashboard_result_id': 15288067, '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_P26925514_17-09-2025_06_19_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26925525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26925526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26925527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26925528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26925529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26925530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26925531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26925532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26925533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26925534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26925536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26925537, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2309859, 'mtr_portfolio_id': 26926119, 'dashboard_result_id': 15288068, '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_P26926119_17-09-2025_06_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26926125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26926126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926129, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26926131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26926134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926136, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2309859, 'mtr_portfolio_id': 26926538, 'dashboard_result_id': 15288069, '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_P26926538_17-09-2025_06_44_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26926548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26926549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26926550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26926558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926559, '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 = 26918428 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': 3732548, 'mtr_portfolio_id': 26918428, 'created_at': datetime.datetime(2025, 9, 17, 6, 17, 28), 'result': '0.034418347298541714', 'result_long': None, 'result_double': None}] Qualite : 0.034418347298541714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26918428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26918428_17-09-2025_06_17_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26918428 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_P26918428_17-09-2025_06_17_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26918438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26918439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26918440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26918441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26918442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26918443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26918444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26918445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26918446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26918447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26918448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26918449, 'pht': 3726}}" where mtr_portfolio_id = 26918428 and dashboard_run_id = 2309859 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`=26918428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15288052, 0.034418347298541714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26918428_17-09-2025_06_17_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26918438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26918439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26918440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26918441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26918442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26918443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26918444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26918445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26918446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26918447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26918448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26918449, '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 = 26918876 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': 3732549, 'mtr_portfolio_id': 26918876, 'created_at': datetime.datetime(2025, 9, 17, 6, 18, 2), 'result': '0.043610718126215635', 'result_long': None, 'result_double': None}] Qualite : 0.043610718126215635 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26918876 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26918876_17-09-2025_06_18_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26918876 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_P26918876_17-09-2025_06_18_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26918880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26918881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26918882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26918883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26918884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26918885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26918886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26918887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26918888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26918889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26918890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26918891, 'pht': 3726}}" where mtr_portfolio_id = 26918876 and dashboard_run_id = 2309859 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`=26918876 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15288053, 0.043610718126215635, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26918876_17-09-2025_06_18_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26918880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26918881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26918882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26918883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26918884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26918885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26918886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26918887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26918888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26918889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26918890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26918891, '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 = 26919228 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': 3732550, 'mtr_portfolio_id': 26919228, 'created_at': datetime.datetime(2025, 9, 17, 6, 18, 32), 'result': '0.054799998150664726', 'result_long': None, 'result_double': None}] Qualite : 0.054799998150664726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26919228 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26919228_17-09-2025_06_18_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26919228 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_P26919228_17-09-2025_06_18_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26919234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26919235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26919236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26919237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26919238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26919239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26919240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26919241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26919242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26919243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26919244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26919245, 'pht': 3726}}" where mtr_portfolio_id = 26919228 and dashboard_run_id = 2309859 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`=26919228 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15288054, 0.054799998150664726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26919228_17-09-2025_06_18_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26919234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26919235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26919236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26919237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26919238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26919239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26919240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26919241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26919242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26919243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26919244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26919245, '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 = 26919628 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': 3732551, 'mtr_portfolio_id': 26919628, 'created_at': datetime.datetime(2025, 9, 17, 6, 19, 30), 'result': '0.06563328552521043', 'result_long': None, 'result_double': None}] Qualite : 0.06563328552521043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26919628 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26919628_17-09-2025_06_19_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26919628 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_P26919628_17-09-2025_06_19_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26919633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26919634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26919635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26919636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26919637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26919638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26919639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26919640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26919641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26919642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26919643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26919644, 'pht': 3726}}" where mtr_portfolio_id = 26919628 and dashboard_run_id = 2309859 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`=26919628 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15288055, 0.06563328552521043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26919628_17-09-2025_06_19_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26919633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26919634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26919635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26919636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26919637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26919638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26919639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26919640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26919641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26919642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26919643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26919644, '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 = 26920486 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': 3732552, 'mtr_portfolio_id': 26920486, 'created_at': datetime.datetime(2025, 9, 17, 6, 20), 'result': '0.03136853702815561', 'result_long': None, 'result_double': None}] Qualite : 0.03136853702815561 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26920486 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26920486_17-09-2025_06_20_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26920486 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_P26920486_17-09-2025_06_20_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26920488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26920489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26920490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26920491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26920492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26920493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26920494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26920495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26920496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26920497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26920498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26920499, 'pht': 3726}}" where mtr_portfolio_id = 26920486 and dashboard_run_id = 2309859 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`=26920486 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15288056, 0.03136853702815561, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26920486_17-09-2025_06_20_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26920488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26920489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26920490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26920491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26920492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26920493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26920494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26920495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26920496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26920497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26920498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26920499, '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 = 26920775 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': 3732553, 'mtr_portfolio_id': 26920775, 'created_at': datetime.datetime(2025, 9, 17, 6, 20, 28), 'result': '0.038637870793443135', 'result_long': None, 'result_double': None}] Qualite : 0.038637870793443135 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26920775 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26920775_17-09-2025_06_20_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26920775 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_P26920775_17-09-2025_06_20_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26920781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26920782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26920783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26920784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26920785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26920786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26920787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26920788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26920789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26920790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26920791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26920792, 'pht': 3726}}" where mtr_portfolio_id = 26920775 and dashboard_run_id = 2309859 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`=26920775 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15288057, 0.038637870793443135, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26920775_17-09-2025_06_20_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26920781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26920782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26920783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26920784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26920785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26920786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26920787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26920788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26920789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26920790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26920791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26920792, '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 = 26921240 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': 3732554, 'mtr_portfolio_id': 26921240, 'created_at': datetime.datetime(2025, 9, 17, 6, 20, 37), 'result': '0.04476262593749069', 'result_long': None, 'result_double': None}] Qualite : 0.04476262593749069 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26921240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26921240_17-09-2025_06_20_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26921240 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_P26921240_17-09-2025_06_20_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26921249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26921250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26921251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26921252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26921253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26921254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26921255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26921256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26921257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26921258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26921259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26921260, 'pht': 3726}}" where mtr_portfolio_id = 26921240 and dashboard_run_id = 2309859 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`=26921240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15288058, 0.04476262593749069, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26921240_17-09-2025_06_20_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26921249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26921250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26921251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26921252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26921253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26921254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26921255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26921256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26921257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26921258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26921259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26921260, '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 = 26921882 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': 3732555, 'mtr_portfolio_id': 26921882, 'created_at': datetime.datetime(2025, 9, 17, 6, 21, 29), 'result': '0.07154484052750976', 'result_long': None, 'result_double': None}] Qualite : 0.07154484052750976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26921882 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26921882_17-09-2025_06_21_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26921882 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_P26921882_17-09-2025_06_21_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26921893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26921894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26921895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26921896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26921897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26921898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26921899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26921900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26921901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26921902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26921903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26921904, 'pht': 3726}}" where mtr_portfolio_id = 26921882 and dashboard_run_id = 2309859 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`=26921882 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15288059, 0.07154484052750976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26921882_17-09-2025_06_21_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26921893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26921894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26921895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26921896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26921897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26921898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26921899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26921900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26921901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26921902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26921903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26921904, '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 = 26922389 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': 3732556, 'mtr_portfolio_id': 26922389, 'created_at': datetime.datetime(2025, 9, 17, 6, 22), 'result': '0.03665288194111033', 'result_long': None, 'result_double': None}] Qualite : 0.03665288194111033 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26922389 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26922389_17-09-2025_06_22_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26922389 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_P26922389_17-09-2025_06_22_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26922398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26922399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26922400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26922401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26922402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26922403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26922404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26922405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26922406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26922407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26922408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26922409, 'pht': 3726}}" where mtr_portfolio_id = 26922389 and dashboard_run_id = 2309859 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`=26922389 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15288060, 0.03665288194111033, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26922389_17-09-2025_06_22_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26922398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26922399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26922400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26922401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26922402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26922403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26922404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26922405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26922406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26922407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26922408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26922409, '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 = 26922797 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': 3732557, 'mtr_portfolio_id': 26922797, 'created_at': datetime.datetime(2025, 9, 17, 6, 22, 30), 'result': '0.053258111009566775', 'result_long': None, 'result_double': None}] Qualite : 0.053258111009566775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26922797 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26922797_17-09-2025_06_22_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26922797 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_P26922797_17-09-2025_06_22_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26922823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26922824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26922825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26922826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26922827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26922828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26922829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26922830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26922831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26922832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26922833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26922834, 'pht': 3726}}" where mtr_portfolio_id = 26922797 and dashboard_run_id = 2309859 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`=26922797 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15288061, 0.053258111009566775, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26922797_17-09-2025_06_22_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26922823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26922824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26922825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26922826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26922827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26922828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26922829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26922830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26922831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26922832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26922833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26922834, '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 = 26923194 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': 3732142, 'mtr_portfolio_id': 26923194, 'created_at': datetime.datetime(2025, 9, 17, 6, 1, 1), 'result': '0.03187562283868707', 'result_long': None, 'result_double': None}] Qualite : 0.03187562283868707 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26923194 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26923194_17-09-2025_06_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26923194 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_P26923194_17-09-2025_06_01_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26923221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26923222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26923223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26923224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26923225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26923226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26923227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26923228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26923229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26923230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26923231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26923232, 'pht': 3726}}" where mtr_portfolio_id = 26923194 and dashboard_run_id = 2309859 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`=26923194 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15288062, 0.03187562283868707, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26923194_17-09-2025_06_01_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26923221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26923222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26923223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26923224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26923225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26923226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26923227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26923228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26923229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26923230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26923231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26923232, '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 = 26924102 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': 3732558, 'mtr_portfolio_id': 26924102, 'created_at': datetime.datetime(2025, 9, 17, 6, 23, 2), 'result': '0.043806340379132926', 'result_long': None, 'result_double': None}] Qualite : 0.043806340379132926 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26924102 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26924102_17-09-2025_06_23_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26924102 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_P26924102_17-09-2025_06_23_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924115, 'pht': 3726}}" where mtr_portfolio_id = 26924102 and dashboard_run_id = 2309859 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`=26924102 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15288063, 0.043806340379132926, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26924102_17-09-2025_06_23_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924115, '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 = 26924391 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': 3732559, 'mtr_portfolio_id': 26924391, 'created_at': datetime.datetime(2025, 9, 17, 6, 23, 30), 'result': '0.038854450436580125', 'result_long': None, 'result_double': None}] Qualite : 0.038854450436580125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26924391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26924391_17-09-2025_06_23_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26924391 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_P26924391_17-09-2025_06_23_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924400, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924407, 'pht': 3726}}" where mtr_portfolio_id = 26924391 and dashboard_run_id = 2309859 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`=26924391 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15288064, 0.038854450436580125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26924391_17-09-2025_06_23_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924400, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924407, '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 = 26924797 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': 3732605, 'mtr_portfolio_id': 26924797, 'created_at': datetime.datetime(2025, 9, 17, 5, 47, 30), 'result': '0.0555519198114147', 'result_long': None, 'result_double': None}] Qualite : 0.0555519198114147 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26924797 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26924797_17-09-2025_05_47_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26924797 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_P26924797_17-09-2025_05_47_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924811, 'pht': 3726}}" where mtr_portfolio_id = 26924797 and dashboard_run_id = 2309859 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`=26924797 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15288065, 0.0555519198114147, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26924797_17-09-2025_05_47_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924811, '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 = 26925081 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': 3732641, 'mtr_portfolio_id': 26925081, 'created_at': datetime.datetime(2025, 9, 17, 6, 5, 28), 'result': '0.03614144143676788', 'result_long': None, 'result_double': None}] Qualite : 0.03614144143676788 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26925081 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26925081_17-09-2025_06_05_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26925081 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_P26925081_17-09-2025_06_05_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26925086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26925087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26925088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26925089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26925090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26925091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26925092, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26925093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26925094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26925095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26925096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26925097, 'pht': 3726}}" where mtr_portfolio_id = 26925081 and dashboard_run_id = 2309859 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`=26925081 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15288066, 0.03614144143676788, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26925081_17-09-2025_06_05_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26925086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26925087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26925088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26925089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26925090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26925091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26925092, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26925093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26925094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26925095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26925096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26925097, '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 = 26925514 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': 3732710, 'mtr_portfolio_id': 26925514, 'created_at': datetime.datetime(2025, 9, 17, 6, 19, 28), 'result': '0.05163043017052247', 'result_long': None, 'result_double': None}] Qualite : 0.05163043017052247 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26925514 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26925514_17-09-2025_06_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26925514 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_P26925514_17-09-2025_06_19_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26925525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26925526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26925527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26925528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26925529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26925530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26925531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26925532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26925533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26925534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26925536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26925537, 'pht': 3726}}" where mtr_portfolio_id = 26925514 and dashboard_run_id = 2309857 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`=26925514 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15288067, 0.05163043017052247, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26925514_17-09-2025_06_19_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26925525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26925526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26925527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26925528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26925529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26925530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26925531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26925532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26925533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26925534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26925536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26925537, '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 = 26926119 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': 3732790, 'mtr_portfolio_id': 26926119, 'created_at': datetime.datetime(2025, 9, 17, 6, 33), 'result': '0.05237131561620687', 'result_long': None, 'result_double': None}] Qualite : 0.05237131561620687 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26926119 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26926119_17-09-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26926119 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_P26926119_17-09-2025_06_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26926125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26926126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926129, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26926131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26926134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926136, 'pht': 3726}}" where mtr_portfolio_id = 26926119 and dashboard_run_id = 2309857 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`=26926119 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15288068, 0.05237131561620687, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26926119_17-09-2025_06_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26926125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26926126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926129, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26926131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26926134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926136, '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 = 26926538 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': 3732864, 'mtr_portfolio_id': 26926538, 'created_at': datetime.datetime(2025, 9, 17, 6, 49), 'result': '0.058544981737487484', 'result_long': None, 'result_double': None}] Qualite : 0.058544981737487484 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26926538 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26926538_17-09-2025_06_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26926538 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_P26926538_17-09-2025_06_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26926548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26926549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26926550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26926558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926559, 'pht': 3726}}" where mtr_portfolio_id = 26926538 and dashboard_run_id = 2309857 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`=26926538 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15288069, 0.058544981737487484, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26926538_17-09-2025_06_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26926548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26926549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26926550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26926558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926559, '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 (26918428,26918876,26919228,26919628,26920486,26920775,26921240,26921882,26922389,26922797,26923194,26924102,26924391,26924797,26925081,26925514,26926119,26926538) result : ((1384027410,), (1384027478,), (1384027543,), (1384027593,), (1384027636,), (1384027876,), (1384027877,), (1384027878,), (1384027890,), (1384027891,), (1384027892,), (1384027894,), (1384027916,), (1384027919,), (1384027922,), (1384027924,), (1384027942,), (1384027943,), (1384027944,), (1384027946,), (1384027958,), (1384027959,), (1384027960,), (1384028042,), (1384028043,), (1384028061,), (1384028098,), (1384028100,), (1384028123,), (1384028125,), (1384028127,), (1384028129,), (1384028143,), (1384028144,), (1384028528,), (1384028524,), (1384028525,), (1384028526,), (1384028572,), (1384028573,), (1384028574,), (1384028588,), (1384028589,), (1384028591,), (1384028614,), (1384028615,), (1384028616,), (1384028638,), (1384028639,), (1384028642,), (1384028644,), (1384028686,), (1384028687,), (1384028688,), (1384028690,), (1384028703,), (1384028706,), (1384028708,), (1384028710,), (1384028713,), (1384028741,), (1384028743,), (1384028745,), (1384028748,), (1384028759,), (1384028761,), (1384028762,), (1384028765,), (1384028769,), (1384028773,), (1384028785,), (1384028786,), (1384028787,), (1384028789,), (1384028791,), (1384028794,), (1384028804,), (1384028805,), (1384028806,), (1384028826,), (1384028827,), (1384028828,), (1384028830,), (1384028833,), (1384028844,), (1384028845,), (1384028847,), (1384028849,), (1384028872,), (1384028876,), (1384028877,), (1384028895,), (1384028893,), (1384028894,), (1384028917,), (1384028918,), (1384028921,), (1384028925,), (1384028935,), (1384028936,), (1384028937,), (1384028939,), (1384028942,), (1384028964,), (1384028965,), (1384028966,), (1384028968,), (1384028984,), (1384028985,), (1384028986,), (1384028988,), (1384029002,), (1384029003,), (1384029005,), (1384029008,), (1384029021,), (1384029022,), (1384029023,), (1384029025,), (1384029071,), (1384029072,), (1384029073,), (1384029091,), (1384029092,), (1384029093,), (1384029095,), (1384029098,), (1384029115,), (1384029116,), (1384029117,), (1384029119,), (1384029135,), (1384029136,), (1384029137,), (1384029158,), (1384029159,), (1384029160,), (1384029163,), (1384029180,), (1384029181,), (1384029182,), (1384029209,), (1384029210,), (1384029230,), (1384029232,), (1384029235,), (1384029238,), (1384029263,), (1384029255,), (1384029256,), (1384029258,), (1384029260,), (1384029274,), (1384029275,), (1384029276,), (1384029312,), (1384029313,), (1384029314,), (1384029332,), (1384029333,), (1384029347,), (1384029348,), (1384029349,), (1384029351,), (1384029371,), (1384029372,), (1384029373,), (1384029375,), (1384029392,), (1384029393,), (1384029394,), (1384029402,), (1384029410,), (1384029442,), (1384029443,), (1384029444,), (1384029468,), (1384029469,), (1384029472,), (1384029475,), (1384029485,), (1384029486,), (1384029487,), (1384029489,), (1384029492,), (1384029494,), (1384029512,), (1384029518,), (1384029522,), (1384029528,), (1384029560,), (1384029561,), (1384029564,), (1384035034,), (1384035022,), (1384035025,), (1384035027,), (1384035031,), (1384035045,), (1384035051,), (1384035052,), (1384035083,), (1384035087,), (1384035123,), (1384035141,), (1384035143,), (1384035145,), (1384035163,), (1384035165,), (1384035191,), (1384035195,), (1384035196,), (1384035198,), (1384035201,), (1384035210,), (1384035211,), (1384035212,), (1384035225,), (1384035226,), (1384035227,), (1384035229,), (1384035242,), (1384035244,), (1384035247,), (1384035251,), (1384035264,), (1384035265,), (1384035266,), (1384035268,), (1384035280,), (1384035281,), (1384035282,), (1384035308,), (1384035313,), (1384035321,), (1384035351,), (1384035352,), (1384035353,), (1384035355,), (1384035358,), (1384035370,), (1384035371,), (1384035372,), (1384035399,), (1384035402,), (1384035416,), (1384035447,), (1384035445,), (1384035446,), (1384035465,), (1384035466,), (1384035467,), (1384035470,), (1384035474,), (1384035496,), (1384035498,), (1384035500,), (1384035519,), (1384035521,), (1384035523,), (1384035526,), (1384035529,), (1384035548,), (1384035549,), (1384035550,), (1384035552,), (1384035555,), (1384035565,), (1384035566,), (1384035567,), (1384035569,), (1384035593,), (1384035594,), (1384035595,), (1384035597,), (1384035608,), (1384035609,), (1384035610,), (1384035612,), (1384035613,), (1384035630,), (1384035631,), (1384035633,), (1384035637,), (1384035641,), (1384035655,), (1384035656,), (1384035675,), (1384035676,), (1384035677,), (1384035679,), (1384035682,), (1384035690,), (1384035692,), (1384035695,), (1384035698,), (1384035699,), (1384035720,), (1384035725,), (1384035738,), (1384035740,), (1384035744,), (1384035754,), (1384035757,), (1384035774,), (1384035777,), (1384035779,), (1384035781,), (1384035783,), (1384035805,), (1384035798,), (1384035799,), (1384035800,), (1384035801,), (1384035803,), (1384036020,), (1384036040,), (1384036065,), (1384036089,), (1384036370,), (1384036391,), (1384036412,), (1384036437,), (1384036459,), (1384036852,), (1384036880,), (1384036905,), (1384036930,), (1384036960,), (1384037299,), (1384037342,), (1384037402,), (1384037450,), (1384038008,), (1384038511,), (1384038630,), (1384038654,), (1384038678,), (1384038702,), (1384038809,), (1384038811,), (1384038829,), (1384038855,), (1384039331,), (1384039372,), (1384039422,), (1384039452,), (1384039478,), (1384039518,), (1384039788,), (1384039789,), (1384039942,), (1384039961,), (1384039973,), (1384039975,), (1384040054,), (1384040055,), (1384040056,), (1384040058,), (1384040061,), (1384040085,), (1384040086,), (1384040087,), (1384040090,), (1384040190,), (1384040191,), (1384040193,), (1384040211,), (1384040212,), (1384040245,), (1384040239,), (1384040244,), (1384040292,), (1384040293,), (1384040318,), (1384040319,), (1384040320,), (1384040329,), (1384040332,), (1384040334,), (1384040337,), (1384040352,), (1384040354,), (1384040356,), (1384040390,), (1384040391,), (1384040392,), (1384040415,), (1384040416,), (1384040417,), (1384040421,), (1384040441,), (1384040442,), (1384040443,), (1384040468,), (1384040469,), (1384040470,), (1384040472,), (1384040483,), (1384040484,), (1384040487,), (1384040492,), (1384040496,), (1384040510,), (1384040511,), (1384040523,), (1384040524,), (1384040525,), (1384040545,), (1384040546,), (1384040547,), (1384040559,), (1384040560,), (1384040561,), (1384040563,), (1384040595,), (1384040599,), (1384040600,), (1384040619,), (1384040617,), (1384040618,), (1384040641,), (1384040643,), (1384040675,), (1384040676,), (1384040698,), (1384040699,), (1384040701,), (1384040721,), (1384040722,), (1384040723,), (1384040726,), (1384040730,), (1384040755,), (1384040756,), (1384040757,), (1384040820,), (1384040821,), (1384040843,), (1384040844,), (1384040866,), (1384040867,), (1384040868,), (1384040870,), (1384040882,), (1384040884,), (1384040886,), (1384040889,), (1384040893,), (1384040897,), (1384040906,), (1384040908,), (1384040910,), (1384040912,), (1384040915,), (1384040970,), (1384040971,), (1384040972,), (1384040974,), (1384040984,), (1384040985,), (1384040986,), (1384040988,), (1384040991,), (1384041014,), (1384041018,), (1384041021,), (1384041039,), (1384041037,), (1384041038,), (1384041054,), (1384041055,), (1384041056,), (1384041059,), (1384041110,), (1384041111,), (1384041131,), (1384041132,), (1384041134,), (1384041137,), (1384041162,), (1384041163,), (1384041175,), (1384041176,), (1384041177,), (1384041195,), (1384041196,), (1384041197,), (1384041200,), (1384041237,), (1384041239,), (1384041263,), (1384041264,), (1384041265,), (1384041267,), (1384041285,), (1384041286,), (1384041287,), (1384041311,), (1384041313,), (1384041315,), (1384041317,), (1384041320,), (1384041324,), (1384041334,), (1384041335,), (1384041336,), (1384041338,), (1384041349,), (1384041386,), (1384041388,), (1384041390,), (1384042203,), (1384042255,), (1384042307,), (1384042491,), (1384042554,), (1384042608,), (1384042656,), (1384043315,), (1384042998,), (1384043089,), (1384043160,), (1384043231,), (1384043947,), (1384043948,), (1384044428,), (1384051246,), (1384051212,), (1384052021,), (1384052040,), (1384052043,), (1384052046,), (1384052049,), (1384052063,), (1384052086,), (1384052088,), (1384052091,), (1384052095,), (1384052144,), (1384052147,), (1384052151,), (1384052154,), (1384052156,), (1384052171,), (1384052173,), (1384052176,), (1384052178,), (1384052183,), (1384052186,), (1384052201,), (1384052203,), (1384052205,), (1384052208,), (1384052212,), (1384052220,), (1384052222,), (1384052224,), (1384052227,), (1384052254,), (1384052257,), (1384052260,), (1384052263,), (1384052266,), (1384052271,), (1384052306,), (1384052308,), (1384052310,), (1384052313,), (1384052319,), (1384052322,), (1384052332,), (1384052334,), (1384052336,), (1384052353,), (1384052356,), (1384052357,), (1384052360,), (1384052365,), (1384052368,), (1384052396,), (1384052383,), (1384052386,), (1384052388,), (1384052391,), (1384052407,), (1384052410,), (1384052413,), (1384052415,), (1384052418,), (1384052496,), (1384052498,), (1384052500,), (1384052503,), (1384052507,), (1384052523,), (1384052524,), (1384052525,), (1384052527,), (1384052539,), (1384052542,), (1384052544,), (1384052546,), (1384052548,), (1384052556,), (1384052557,), (1384052558,), (1384052561,), (1384052585,), (1384052588,), (1384052599,), (1384052621,), (1384052623,), (1384052624,), (1384052643,), (1384052644,), (1384052645,), (1384052647,), (1384052655,), (1384052657,), (1384052658,), (1384052687,), (1384052688,), (1384052689,), (1384052699,), (1384052764,), (1384052765,), (1384052767,), (1384052797,), (1384052798,), (1384052800,), (1384052803,), (1384052806,), (1384052810,), (1384052825,), (1384052851,), (1384052848,), (1384052910,), (1384052929,), (1384052931,), (1384052932,), (1384052953,), (1384052954,), (1384052955,), (1384052957,), (1384052961,), (1384052982,), (1384052985,), (1384052987,), (1384052994,), (1384053001,), (1384053037,), (1384053052,), (1384053054,), (1384053055,), (1384053057,), (1384053070,), (1384053071,), (1384053089,), (1384053091,), (1384053095,), (1384053099,), (1384053117,), (1384053119,), (1384053122,), (1384053125,), (1384053127,), (1384053129,), (1384053135,), (1384053136,), (1384053137,), (1384053139,), (1384053161,), (1384053162,), (1384053163,), (1384053164,), (1384053178,), (1384053180,), (1384053182,), (1384053184,), (1384053211,), (1384053207,), (1384053208,), (1384053209,), (1384053224,), (1384053225,), (1384053226,), (1384053227,), (1384053245,), (1384053246,), (1384053247,), (1384053249,), (1384053258,), (1384053259,), (1384053260,), (1384053262,), (1384053280,), (1384053281,), (1384053282,), (1384053284,), (1384053286,), (1384053288,), (1384053303,), (1384053305,), (1384053309,), (1384053313,), (1384053331,), (1384053333,), (1384053335,), (1384053337,), (1384053339,), (1384053340,), (1384053342,), (1384053343,), (1384053349,), (1384053350,), (1384053352,), (1384053354,), (1384053356,), (1384053366,), (1384053367,), (1384053368,), (1384053385,), (1384053387,), (1384053388,), (1384053390,), (1384053408,), (1384053414,), (1384053417,), (1384053420,), (1384053422,), (1384053425,), (1384053426,), (1384053427,), (1384053430,), (1384053435,), (1384053616,), (1384053639,), (1384053663,), (1384054070,), (1384054095,), (1384054121,), (1384054129,), (1384054132,), (1384054139,), (1384054215,), (1384054417,), (1384054207,), (1384054212,), (1384054213,), (1384054230,), (1384054231,), (1384054233,), (1384054251,), (1384054276,), (1384054301,), (1384054392,), (1384054509,), (1384054531,), (1384054555,), (1384054579,), (1384054873,), (1384054898,), (1384054919,), (1384054944,), (1384054971,), (1384055109,), (1384055139,), (1384055164,), (1384055660,), (1384055701,), (1384055745,), (1384055775,), (1384055807,), (1384056057,), (1384056080,), (1384056108,), (1384056131,), (1384056139,), (1384056202,), (1384056230,), (1384056255,), (1384056280,), (1384056422,), (1384056436,), (1384056437,), (1384056439,), (1384056465,), (1384056468,), (1384056470,), (1384056471,), (1384056474,), (1384056484,), (1384056485,), (1384056486,), (1384056488,), (1384056490,), (1384056512,), (1384056513,), (1384056515,), (1384056518,), (1384056520,), (1384056523,), (1384056529,), (1384056538,), (1384056541,), (1384056542,), (1384056545,), (1384056548,), (1384056550,), (1384056571,), (1384056574,), (1384056576,), (1384056579,), (1384056582,), (1384056595,), (1384056600,), (1384056602,), (1384056604,), (1384056646,), (1384056635,), (1384056640,), (1384056642,), (1384056644,), (1384056653,), (1384056654,), (1384056655,), (1384056656,), (1384056682,), (1384056684,), (1384056685,), (1384056687,), (1384056690,), (1384056691,), (1384056699,), (1384056700,), (1384056701,), (1384056702,), (1384056719,), (1384056721,), (1384056777,), (1384056838,), (1384056848,), (1384056851,), (1384056870,), (1384056871,), (1384056872,), (1384056874,), (1384056876,), (1384056878,), (1384056897,), (1384056900,), (1384056906,), (1384056952,), (1384056953,), (1384056954,), (1384056956,), (1384056958,), (1384057000,), (1384057002,), (1384057003,), (1384057006,), (1384057015,), (1384057016,), (1384057019,), (1384057026,), (1384057029,), (1384057032,), (1384057039,), (1384057040,), (1384057041,), (1384057043,), (1384057049,), (1384057056,), (1384057058,), (1384057076,), (1384057072,), (1384057073,), (1384057074,), (1384057095,), (1384057096,), (1384057097,), (1384057099,), (1384057109,), (1384057110,), (1384057111,), (1384057112,), (1384057114,), (1384057116,), (1384057130,), (1384057132,), (1384057133,), (1384057150,), (1384057152,), (1384057154,), (1384057158,), (1384057163,), (1384057182,), (1384057184,), (1384057185,), (1384057188,), (1384057193,), (1384057195,), (1384057206,), (1384057207,), (1384057211,), (1384057216,), (1384057271,), (1384057273,), (1384057274,), (1384057276,), (1384057292,), (1384057293,), (1384057294,), (1384057295,), (1384057297,), (1384057299,), (1384057313,), (1384057315,), (1384057316,), (1384057318,), (1384057319,), (1384057321,), (1384057337,), (1384057338,), (1384057339,), (1384057366,), (1384057367,), (1384057369,), (1384057371,), (1384057373,), (1384057375,), (1384057379,), (1384057380,), (1384057390,), (1384057396,), (1384057398,), (1384057401,), (1384057404,), (1384057406,), (1384057428,), (1384057430,), (1384057432,), (1384057434,), (1384057447,), (1384057448,), (1384057450,), (1384057452,), (1384057454,), (1384057455,), (1384057466,), (1384057470,), (1384057482,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17092025': {'nb_upload': 77, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26926538]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1384057482] map_info['map_portfolio_photo'] : {26926538: [1384057482, 1384057470, 1384057466, 1384057455, 1384057454, 1384057452, 1384057450, 1384057448, 1384057447, 1384057434, 1384057432, 1384057430, 1384057428, 1384057406, 1384057404, 1384057401, 1384057398, 1384057396, 1384057390, 1384057380, 1384057379, 1384057375, 1384057373, 1384057371, 1384057369, 1384057367, 1384057366, 1384057339, 1384057338, 1384057337, 1384057321, 1384057319, 1384057318, 1384057316, 1384057315, 1384057313, 1384057299, 1384057297, 1384057295, 1384057294, 1384057293, 1384057292, 1384057276, 1384057274, 1384057273, 1384057271, 1384057216, 1384057211, 1384057207, 1384057206, 1384057195, 1384057193, 1384057188, 1384057185, 1384057184, 1384057182, 1384057163, 1384057158, 1384057154, 1384057152, 1384057150, 1384057133, 1384057132, 1384057130, 1384057116, 1384057114, 1384057112, 1384057111, 1384057110, 1384057109, 1384057099, 1384057097, 1384057096, 1384057095, 1384057074, 1384057073, 1384057072]} final : True mtd_id 4302 list_pids : [1384057482] Looping around the photos to save general results len do output : 1 /26926538Didn'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, '3732864') ('4302', '26926538', '1384057482', None, None, None, None, None, '3732864') 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, '26926538', 'None', None, None, None, None, '3732864'), ('4302', '26926538', '1384057482', None, None, None, None, None, '3732864')] time used for this insertion : 0.013208866119384766 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.649404525756836 time spend to save output : 0.013351678848266602 total time spend for step 5 : 1.6627562046051025 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 (3732864) 1.92user 2.36system 0:13.12elapsed 32%CPU (0avgtext+0avgdata 156552maxresident)k 56inputs+9640outputs (4major+62565minor)pagefaults 0swaps