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 : 3227219 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 (4117142) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4117142) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28903442 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4117142'] with mtr_portfolio_ids : ['28903442'] and first list_photo_ids : [] new path : /proc/3227219/ Name: python3 Umask: 0002 State: R (running) Tgid: 3227219 Ngid: 0 Pid: 3227219 PPid: 3227218 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3227219 NSpid: 3227219 NSpgid: 3225506 NSsid: 3225506 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98124 kB VmRSS: 98124 kB RssAnon: 59904 kB RssFile: 38220 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 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: 44 nonvoluntary_ctxt_switches: 86 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3227219', 'Ngid': '0', 'Pid': '3227219', 'PPid': '3227218', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3227219', 'NSpid': '3227219', 'NSpgid': '3225506', 'NSsid': '3225506', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98124 kB', 'VmRSS': '98124 kB', 'RssAnon': '59904 kB', 'RssFile': '38220 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 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': '44', 'nonvoluntary_ctxt_switches': '86'} ('datou_batch_current', '3227219', '1106908', '0', '1106884', '865636', '98124', b'', 'marlene', '4117142') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28903442) 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 (4117142 ) ) 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 (28903442) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1396188665, 'portfolio_id': 28903442}, {'photo_id': 1396188661, 'portfolio_id': 28903442}, {'photo_id': 1396188657, 'portfolio_id': 28903442}, {'photo_id': 1396188655, 'portfolio_id': 28903442}, {'photo_id': 1396188653, 'portfolio_id': 28903442}, {'photo_id': 1396188642, 'portfolio_id': 28903442}, {'photo_id': 1396188639, 'portfolio_id': 28903442}, {'photo_id': 1396188636, 'portfolio_id': 28903442}, {'photo_id': 1396188634, 'portfolio_id': 28903442}, {'photo_id': 1396188632, 'portfolio_id': 28903442}, {'photo_id': 1396188626, 'portfolio_id': 28903442}, {'photo_id': 1396188598, 'portfolio_id': 28903442}, {'photo_id': 1396188597, 'portfolio_id': 28903442}, {'photo_id': 1396188596, 'portfolio_id': 28903442}, {'photo_id': 1396188584, 'portfolio_id': 28903442}, {'photo_id': 1396188581, 'portfolio_id': 28903442}, {'photo_id': 1396188579, 'portfolio_id': 28903442}, {'photo_id': 1396188577, 'portfolio_id': 28903442}, {'photo_id': 1396188575, 'portfolio_id': 28903442}, {'photo_id': 1396188573, 'portfolio_id': 28903442}, {'photo_id': 1396188541, 'portfolio_id': 28903442}, {'photo_id': 1396188536, 'portfolio_id': 28903442}, {'photo_id': 1396188527, 'portfolio_id': 28903442}, {'photo_id': 1396188524, 'portfolio_id': 28903442}, {'photo_id': 1396188521, 'portfolio_id': 28903442}, {'photo_id': 1396188519, 'portfolio_id': 28903442}, {'photo_id': 1396188507, 'portfolio_id': 28903442}, {'photo_id': 1396188505, 'portfolio_id': 28903442}, {'photo_id': 1396188503, 'portfolio_id': 28903442}, {'photo_id': 1396188496, 'portfolio_id': 28903442}, {'photo_id': 1396188466, 'portfolio_id': 28903442}, {'photo_id': 1396188465, 'portfolio_id': 28903442}, {'photo_id': 1396188464, 'portfolio_id': 28903442}, {'photo_id': 1396188463, 'portfolio_id': 28903442}, {'photo_id': 1396188452, 'portfolio_id': 28903442}, {'photo_id': 1396188449, 'portfolio_id': 28903442}, {'photo_id': 1396188446, 'portfolio_id': 28903442}, {'photo_id': 1396188444, 'portfolio_id': 28903442}, {'photo_id': 1396188442, 'portfolio_id': 28903442}, {'photo_id': 1396188440, 'portfolio_id': 28903442}, {'photo_id': 1396188424, 'portfolio_id': 28903442}, {'photo_id': 1396188404, 'portfolio_id': 28903442}, {'photo_id': 1396188402, 'portfolio_id': 28903442}, {'photo_id': 1396188401, 'portfolio_id': 28903442}, {'photo_id': 1396188394, 'portfolio_id': 28903442}, {'photo_id': 1396188363, 'portfolio_id': 28903442}, {'photo_id': 1396188349, 'portfolio_id': 28903442}, {'photo_id': 1396188347, 'portfolio_id': 28903442}, {'photo_id': 1396188345, 'portfolio_id': 28903442}, {'photo_id': 1396188343, 'portfolio_id': 28903442}, {'photo_id': 1396188341, 'portfolio_id': 28903442}, {'photo_id': 1396188323, 'portfolio_id': 28903442}, {'photo_id': 1396188322, 'portfolio_id': 28903442}, {'photo_id': 1396188320, 'portfolio_id': 28903442}, {'photo_id': 1396188319, 'portfolio_id': 28903442}, {'photo_id': 1396188318, 'portfolio_id': 28903442}, {'photo_id': 1396188317, 'portfolio_id': 28903442}, {'photo_id': 1396188298, 'portfolio_id': 28903442}, {'photo_id': 1396188297, 'portfolio_id': 28903442}, {'photo_id': 1396188292, 'portfolio_id': 28903442}, {'photo_id': 1396188263, 'portfolio_id': 28903442}, {'photo_id': 1396188262, 'portfolio_id': 28903442}, {'photo_id': 1396188261, 'portfolio_id': 28903442}, {'photo_id': 1396188260, 'portfolio_id': 28903442}] map_portfolio_id_photo_id: {28903442: [1396188665, 1396188661, 1396188657, 1396188655, 1396188653, 1396188642, 1396188639, 1396188636, 1396188634, 1396188632, 1396188626, 1396188598, 1396188597, 1396188596, 1396188584, 1396188581, 1396188579, 1396188577, 1396188575, 1396188573, 1396188541, 1396188536, 1396188527, 1396188524, 1396188521, 1396188519, 1396188507, 1396188505, 1396188503, 1396188496, 1396188466, 1396188465, 1396188464, 1396188463, 1396188452, 1396188449, 1396188446, 1396188444, 1396188442, 1396188440, 1396188424, 1396188404, 1396188402, 1396188401, 1396188394, 1396188363, 1396188349, 1396188347, 1396188345, 1396188343, 1396188341, 1396188323, 1396188322, 1396188320, 1396188319, 1396188318, 1396188317, 1396188298, 1396188297, 1396188292, 1396188263, 1396188262, 1396188261, 1396188260]} ##### 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.020226240158081055 #### 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 Nov 26 02:30:56 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 (28903442) 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 : 28903442 get user id for portfolio 28903442 get sub ptf for main ptf 28903442, type 3726 and hashtags ['autre_refus', 'kraft', 'Carton_brun', 'papier', 'flou', 'environnement', 'Teint_Dans_La_Masse', 'mal_croppe', 'plastique', 'cartonnette', 'metal', 'Carton_gris'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28903442 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','Carton_brun','papier','flou','environnement','Teint_Dans_La_Masse','mal_croppe','plastique','cartonnette','metal','Carton_gris')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28903442 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','Carton_brun','papier','flou','environnement','Teint_Dans_La_Masse','mal_croppe','plastique','cartonnette','metal','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 28903442, 'sub_port_id': 28903475, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624676, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 27)}, 'Carton_gris': {'main_port_id': 28903442, 'sub_port_id': 28903476, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624677, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 27)}, 'plastique': {'main_port_id': 28903442, 'sub_port_id': 28903477, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624678, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 27)}, 'metal': {'main_port_id': 28903442, 'sub_port_id': 28903478, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624679, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 27)}, 'papier': {'main_port_id': 28903442, 'sub_port_id': 28903479, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624680, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 27)}, 'Carton_brun': {'main_port_id': 28903442, 'sub_port_id': 28903480, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624681, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 27)}, 'autre_refus': {'main_port_id': 28903442, 'sub_port_id': 28903481, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624682, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 27)}, 'environnement': {'main_port_id': 28903442, 'sub_port_id': 28903482, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624683, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 27)}, 'mal_croppe': {'main_port_id': 28903442, 'sub_port_id': 28903483, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624684, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 27)}, 'flou': {'main_port_id': 28903442, 'sub_port_id': 28903484, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624685, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 28903442, 'sub_port_id': 28903485, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624686, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 27)}, 'kraft': {'main_port_id': 28903442, 'sub_port_id': 28903486, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624687, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28903475 , 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=28903442 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 (28903475) result : ((1396188480,), (1396188481,), (1396188498,), (1396188566,), (1396188567,), (1396188612,), (1396188620,), (1396188679,), (1396188681,), (1396188688,), (1396188689,), (1396188690,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28903442) result : ((1396188260,), (1396188261,), (1396188262,), (1396188263,), (1396188292,), (1396188297,), (1396188298,), (1396188317,), (1396188318,), (1396188319,), (1396188320,), (1396188322,), (1396188323,), (1396188341,), (1396188343,), (1396188345,), (1396188347,), (1396188349,), (1396188363,), (1396188394,), (1396188401,), (1396188402,), (1396188404,), (1396188424,), (1396188440,), (1396188442,), (1396188444,), (1396188446,), (1396188449,), (1396188452,), (1396188463,), (1396188464,), (1396188465,), (1396188466,), (1396188496,), (1396188503,), (1396188505,), (1396188507,), (1396188519,), (1396188521,), (1396188524,), (1396188527,), (1396188536,), (1396188541,), (1396188573,), (1396188575,), (1396188577,), (1396188579,), (1396188581,), (1396188584,), (1396188596,), (1396188597,), (1396188598,), (1396188626,), (1396188632,), (1396188634,), (1396188636,), (1396188639,), (1396188642,), (1396188653,), (1396188655,), (1396188657,), (1396188661,), (1396188665,)) 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 28903476 , 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=28903442 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 (28903476) result : ((1396188479,), (1396188497,), (1396188556,), (1396188565,), (1396188618,), (1396188619,), (1396188675,), (1396188676,), (1396188677,), (1396188687,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28903442) result : ((1396188260,), (1396188261,), (1396188262,), (1396188263,), (1396188292,), (1396188297,), (1396188298,), (1396188317,), (1396188318,), (1396188319,), (1396188320,), (1396188322,), (1396188323,), (1396188341,), (1396188343,), (1396188345,), (1396188347,), (1396188349,), (1396188363,), (1396188394,), (1396188401,), (1396188402,), (1396188404,), (1396188424,), (1396188440,), (1396188442,), (1396188444,), (1396188446,), (1396188449,), (1396188452,), (1396188463,), (1396188464,), (1396188465,), (1396188466,), (1396188496,), (1396188503,), (1396188505,), (1396188507,), (1396188519,), (1396188521,), (1396188524,), (1396188527,), (1396188536,), (1396188541,), (1396188573,), (1396188575,), (1396188577,), (1396188579,), (1396188581,), (1396188584,), (1396188596,), (1396188597,), (1396188598,), (1396188626,), (1396188632,), (1396188634,), (1396188636,), (1396188639,), (1396188642,), (1396188653,), (1396188655,), (1396188657,), (1396188661,), (1396188665,)) 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 28903477 , 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=28903442 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 (28903477) result : ((1396188502,), (1396188568,), (1396188569,), (1396188570,), (1396188627,), (1396188628,), (1396188683,), (1396188684,), (1396188685,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28903442) result : ((1396188260,), (1396188261,), (1396188262,), (1396188263,), (1396188292,), (1396188297,), (1396188298,), (1396188317,), (1396188318,), (1396188319,), (1396188320,), (1396188322,), (1396188323,), (1396188341,), (1396188343,), (1396188345,), (1396188347,), (1396188349,), (1396188363,), (1396188394,), (1396188401,), (1396188402,), (1396188404,), (1396188424,), (1396188440,), (1396188442,), (1396188444,), (1396188446,), (1396188449,), (1396188452,), (1396188463,), (1396188464,), (1396188465,), (1396188466,), (1396188496,), (1396188503,), (1396188505,), (1396188507,), (1396188519,), (1396188521,), (1396188524,), (1396188527,), (1396188536,), (1396188541,), (1396188573,), (1396188575,), (1396188577,), (1396188579,), (1396188581,), (1396188584,), (1396188596,), (1396188597,), (1396188598,), (1396188626,), (1396188632,), (1396188634,), (1396188636,), (1396188639,), (1396188642,), (1396188653,), (1396188655,), (1396188657,), (1396188661,), (1396188665,)) 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 28903478 , 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=28903442 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 (28903478) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28903442) result : ((1396188260,), (1396188261,), (1396188262,), (1396188263,), (1396188292,), (1396188297,), (1396188298,), (1396188317,), (1396188318,), (1396188319,), (1396188320,), (1396188322,), (1396188323,), (1396188341,), (1396188343,), (1396188345,), (1396188347,), (1396188349,), (1396188363,), (1396188394,), (1396188401,), (1396188402,), (1396188404,), (1396188424,), (1396188440,), (1396188442,), (1396188444,), (1396188446,), (1396188449,), (1396188452,), (1396188463,), (1396188464,), (1396188465,), (1396188466,), (1396188496,), (1396188503,), (1396188505,), (1396188507,), (1396188519,), (1396188521,), (1396188524,), (1396188527,), (1396188536,), (1396188541,), (1396188573,), (1396188575,), (1396188577,), (1396188579,), (1396188581,), (1396188584,), (1396188596,), (1396188597,), (1396188598,), (1396188626,), (1396188632,), (1396188634,), (1396188636,), (1396188639,), (1396188642,), (1396188653,), (1396188655,), (1396188657,), (1396188661,), (1396188665,)) 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 28903479 , 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=28903442 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 (28903479) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28903442) result : ((1396188260,), (1396188261,), (1396188262,), (1396188263,), (1396188292,), (1396188297,), (1396188298,), (1396188317,), (1396188318,), (1396188319,), (1396188320,), (1396188322,), (1396188323,), (1396188341,), (1396188343,), (1396188345,), (1396188347,), (1396188349,), (1396188363,), (1396188394,), (1396188401,), (1396188402,), (1396188404,), (1396188424,), (1396188440,), (1396188442,), (1396188444,), (1396188446,), (1396188449,), (1396188452,), (1396188463,), (1396188464,), (1396188465,), (1396188466,), (1396188496,), (1396188503,), (1396188505,), (1396188507,), (1396188519,), (1396188521,), (1396188524,), (1396188527,), (1396188536,), (1396188541,), (1396188573,), (1396188575,), (1396188577,), (1396188579,), (1396188581,), (1396188584,), (1396188596,), (1396188597,), (1396188598,), (1396188626,), (1396188632,), (1396188634,), (1396188636,), (1396188639,), (1396188642,), (1396188653,), (1396188655,), (1396188657,), (1396188661,), (1396188665,)) 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 28903480 , 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=28903442 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 (28903480) result : ((1396188499,), (1396188500,), (1396188501,), (1396188557,), (1396188558,), (1396188621,), (1396188622,), (1396188623,), (1396188624,), (1396188625,), (1396188682,), (1396188691,), (1396188692,), (1396188693,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28903442) result : ((1396188260,), (1396188261,), (1396188262,), (1396188263,), (1396188292,), (1396188297,), (1396188298,), (1396188317,), (1396188318,), (1396188319,), (1396188320,), (1396188322,), (1396188323,), (1396188341,), (1396188343,), (1396188345,), (1396188347,), (1396188349,), (1396188363,), (1396188394,), (1396188401,), (1396188402,), (1396188404,), (1396188424,), (1396188440,), (1396188442,), (1396188444,), (1396188446,), (1396188449,), (1396188452,), (1396188463,), (1396188464,), (1396188465,), (1396188466,), (1396188496,), (1396188503,), (1396188505,), (1396188507,), (1396188519,), (1396188521,), (1396188524,), (1396188527,), (1396188536,), (1396188541,), (1396188573,), (1396188575,), (1396188577,), (1396188579,), (1396188581,), (1396188584,), (1396188596,), (1396188597,), (1396188598,), (1396188626,), (1396188632,), (1396188634,), (1396188636,), (1396188639,), (1396188642,), (1396188653,), (1396188655,), (1396188657,), (1396188661,), (1396188665,)) 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 28903481 , 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=28903442 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 (28903481) result : ((1396188476,), (1396188477,), (1396188488,), (1396188489,), (1396188490,), (1396188491,), (1396188492,), (1396188493,), (1396188494,), (1396188495,), (1396188564,), (1396188611,), (1396188616,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28903442) result : ((1396188260,), (1396188261,), (1396188262,), (1396188263,), (1396188292,), (1396188297,), (1396188298,), (1396188317,), (1396188318,), (1396188319,), (1396188320,), (1396188322,), (1396188323,), (1396188341,), (1396188343,), (1396188345,), (1396188347,), (1396188349,), (1396188363,), (1396188394,), (1396188401,), (1396188402,), (1396188404,), (1396188424,), (1396188440,), (1396188442,), (1396188444,), (1396188446,), (1396188449,), (1396188452,), (1396188463,), (1396188464,), (1396188465,), (1396188466,), (1396188496,), (1396188503,), (1396188505,), (1396188507,), (1396188519,), (1396188521,), (1396188524,), (1396188527,), (1396188536,), (1396188541,), (1396188573,), (1396188575,), (1396188577,), (1396188579,), (1396188581,), (1396188584,), (1396188596,), (1396188597,), (1396188598,), (1396188626,), (1396188632,), (1396188634,), (1396188636,), (1396188639,), (1396188642,), (1396188653,), (1396188655,), (1396188657,), (1396188661,), (1396188665,)) 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 28903482 , 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=28903442 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 (28903482) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28903442) result : ((1396188260,), (1396188261,), (1396188262,), (1396188263,), (1396188292,), (1396188297,), (1396188298,), (1396188317,), (1396188318,), (1396188319,), (1396188320,), (1396188322,), (1396188323,), (1396188341,), (1396188343,), (1396188345,), (1396188347,), (1396188349,), (1396188363,), (1396188394,), (1396188401,), (1396188402,), (1396188404,), (1396188424,), (1396188440,), (1396188442,), (1396188444,), (1396188446,), (1396188449,), (1396188452,), (1396188463,), (1396188464,), (1396188465,), (1396188466,), (1396188496,), (1396188503,), (1396188505,), (1396188507,), (1396188519,), (1396188521,), (1396188524,), (1396188527,), (1396188536,), (1396188541,), (1396188573,), (1396188575,), (1396188577,), (1396188579,), (1396188581,), (1396188584,), (1396188596,), (1396188597,), (1396188598,), (1396188626,), (1396188632,), (1396188634,), (1396188636,), (1396188639,), (1396188642,), (1396188653,), (1396188655,), (1396188657,), (1396188661,), (1396188665,)) 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 28903483 , 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=28903442 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 (28903483) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28903442) result : ((1396188260,), (1396188261,), (1396188262,), (1396188263,), (1396188292,), (1396188297,), (1396188298,), (1396188317,), (1396188318,), (1396188319,), (1396188320,), (1396188322,), (1396188323,), (1396188341,), (1396188343,), (1396188345,), (1396188347,), (1396188349,), (1396188363,), (1396188394,), (1396188401,), (1396188402,), (1396188404,), (1396188424,), (1396188440,), (1396188442,), (1396188444,), (1396188446,), (1396188449,), (1396188452,), (1396188463,), (1396188464,), (1396188465,), (1396188466,), (1396188496,), (1396188503,), (1396188505,), (1396188507,), (1396188519,), (1396188521,), (1396188524,), (1396188527,), (1396188536,), (1396188541,), (1396188573,), (1396188575,), (1396188577,), (1396188579,), (1396188581,), (1396188584,), (1396188596,), (1396188597,), (1396188598,), (1396188626,), (1396188632,), (1396188634,), (1396188636,), (1396188639,), (1396188642,), (1396188653,), (1396188655,), (1396188657,), (1396188661,), (1396188665,)) 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 28903484 , 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=28903442 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 (28903484) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28903442) result : ((1396188260,), (1396188261,), (1396188262,), (1396188263,), (1396188292,), (1396188297,), (1396188298,), (1396188317,), (1396188318,), (1396188319,), (1396188320,), (1396188322,), (1396188323,), (1396188341,), (1396188343,), (1396188345,), (1396188347,), (1396188349,), (1396188363,), (1396188394,), (1396188401,), (1396188402,), (1396188404,), (1396188424,), (1396188440,), (1396188442,), (1396188444,), (1396188446,), (1396188449,), (1396188452,), (1396188463,), (1396188464,), (1396188465,), (1396188466,), (1396188496,), (1396188503,), (1396188505,), (1396188507,), (1396188519,), (1396188521,), (1396188524,), (1396188527,), (1396188536,), (1396188541,), (1396188573,), (1396188575,), (1396188577,), (1396188579,), (1396188581,), (1396188584,), (1396188596,), (1396188597,), (1396188598,), (1396188626,), (1396188632,), (1396188634,), (1396188636,), (1396188639,), (1396188642,), (1396188653,), (1396188655,), (1396188657,), (1396188661,), (1396188665,)) 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 28903485 , 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=28903442 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 (28903485) result : ((1396188474,), (1396188475,), (1396188486,), (1396188487,), (1396188547,), (1396188548,), (1396188549,), (1396188550,), (1396188551,), (1396188552,), (1396188554,), (1396188555,), (1396188560,), (1396188561,), (1396188562,), (1396188563,), (1396188613,), (1396188614,), (1396188615,), (1396188672,), (1396188673,), (1396188674,), (1396188686,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28903442) result : ((1396188260,), (1396188261,), (1396188262,), (1396188263,), (1396188292,), (1396188297,), (1396188298,), (1396188317,), (1396188318,), (1396188319,), (1396188320,), (1396188322,), (1396188323,), (1396188341,), (1396188343,), (1396188345,), (1396188347,), (1396188349,), (1396188363,), (1396188394,), (1396188401,), (1396188402,), (1396188404,), (1396188424,), (1396188440,), (1396188442,), (1396188444,), (1396188446,), (1396188449,), (1396188452,), (1396188463,), (1396188464,), (1396188465,), (1396188466,), (1396188496,), (1396188503,), (1396188505,), (1396188507,), (1396188519,), (1396188521,), (1396188524,), (1396188527,), (1396188536,), (1396188541,), (1396188573,), (1396188575,), (1396188577,), (1396188579,), (1396188581,), (1396188584,), (1396188596,), (1396188597,), (1396188598,), (1396188626,), (1396188632,), (1396188634,), (1396188636,), (1396188639,), (1396188642,), (1396188653,), (1396188655,), (1396188657,), (1396188661,), (1396188665,)) 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 28903486 , 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=28903442 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 (28903486) result : ((1396188571,), (1396188630,), (1396188631,), (1396188694,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28903442) result : ((1396188260,), (1396188261,), (1396188262,), (1396188263,), (1396188292,), (1396188297,), (1396188298,), (1396188317,), (1396188318,), (1396188319,), (1396188320,), (1396188322,), (1396188323,), (1396188341,), (1396188343,), (1396188345,), (1396188347,), (1396188349,), (1396188363,), (1396188394,), (1396188401,), (1396188402,), (1396188404,), (1396188424,), (1396188440,), (1396188442,), (1396188444,), (1396188446,), (1396188449,), (1396188452,), (1396188463,), (1396188464,), (1396188465,), (1396188466,), (1396188496,), (1396188503,), (1396188505,), (1396188507,), (1396188519,), (1396188521,), (1396188524,), (1396188527,), (1396188536,), (1396188541,), (1396188573,), (1396188575,), (1396188577,), (1396188579,), (1396188581,), (1396188584,), (1396188596,), (1396188597,), (1396188598,), (1396188626,), (1396188632,), (1396188634,), (1396188636,), (1396188639,), (1396188642,), (1396188653,), (1396188655,), (1396188657,), (1396188661,), (1396188665,)) 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`=28903442 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','Carton_brun','papier','flou','environnement','Teint_Dans_La_Masse','mal_croppe','plastique','cartonnette','metal','Carton_gris')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28903442 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','Carton_brun','papier','flou','environnement','Teint_Dans_La_Masse','mal_croppe','plastique','cartonnette','metal','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 28903442, 'sub_port_id': 28903488, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624688, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 33)}, 'Carton_gris': {'main_port_id': 28903442, 'sub_port_id': 28903489, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624689, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 33)}, 'plastique': {'main_port_id': 28903442, 'sub_port_id': 28903490, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624690, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 33)}, 'metal': {'main_port_id': 28903442, 'sub_port_id': 28903491, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624691, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 33)}, 'papier': {'main_port_id': 28903442, 'sub_port_id': 28903492, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624692, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 33)}, 'Carton_brun': {'main_port_id': 28903442, 'sub_port_id': 28903493, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624693, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 33)}, 'autre_refus': {'main_port_id': 28903442, 'sub_port_id': 28903494, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624694, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 33)}, 'environnement': {'main_port_id': 28903442, 'sub_port_id': 28903495, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624695, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 33)}, 'mal_croppe': {'main_port_id': 28903442, 'sub_port_id': 28903496, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624696, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 33)}, 'flou': {'main_port_id': 28903442, 'sub_port_id': 28903497, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624697, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 28903442, 'sub_port_id': 28903498, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624698, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 33)}, 'kraft': {'main_port_id': 28903442, 'sub_port_id': 28903499, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19624699, 'last_updated_at': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 2, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 2, 19, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28903488,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28903475 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28903489,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28903476 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28903490,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28903477 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28903491,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28903478 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28903492,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28903479 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28903493,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28903480 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28903494,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28903481 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28903495,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28903482 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28903496,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28903483 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28903497,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28903484 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28903498,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28903485 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28903499,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28903486 lien utilise dans velours : https://marlene.fotonower.com/velours/28903488,28903489,28903490,28903491,28903492,28903493,28903494,28903495,28903496,28903497,28903498,28903499?tags=cartonnette,Carton_gris,plastique,metal,papier,Carton_brun,autre_refus,environnement,mal_croppe,flou,Teint_Dans_La_Masse,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28903442]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1396188665, 1396188661, 1396188657, 1396188655, 1396188653, 1396188642, 1396188639, 1396188636, 1396188634, 1396188632, 1396188626] map_info['map_portfolio_photo'] : {28903442: [1396188665, 1396188661, 1396188657, 1396188655, 1396188653, 1396188642, 1396188639, 1396188636, 1396188634, 1396188632, 1396188626, 1396188598, 1396188597, 1396188596, 1396188584, 1396188581, 1396188579, 1396188577, 1396188575, 1396188573, 1396188541, 1396188536, 1396188527, 1396188524, 1396188521, 1396188519, 1396188507, 1396188505, 1396188503, 1396188496, 1396188466, 1396188465, 1396188464, 1396188463, 1396188452, 1396188449, 1396188446, 1396188444, 1396188442, 1396188440, 1396188424, 1396188404, 1396188402, 1396188401, 1396188394, 1396188363, 1396188349, 1396188347, 1396188345, 1396188343, 1396188341, 1396188323, 1396188322, 1396188320, 1396188319, 1396188318, 1396188317, 1396188298, 1396188297, 1396188292, 1396188263, 1396188262, 1396188261, 1396188260]} final : False mtd_id 4302 list_pids : [1396188665, 1396188661, 1396188657, 1396188655, 1396188653, 1396188642, 1396188639, 1396188636, 1396188634, 1396188632, 1396188626] Looping around the photos to save general results len do output : 1 /28903442. 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, '4117142') ('4302', '28903442', '1396188665', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188661', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188657', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188655', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188653', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188642', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188639', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188636', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188634', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188632', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188626', None, None, None, None, None, '4117142') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28903442', "{'cartonnette': 28903475, 'Carton_gris': 28903476, 'plastique': 28903477, 'metal': 28903478, 'papier': 28903479, 'Carton_brun': 28903480, 'autre_refus': 28903481, 'environnement': 28903482, 'mal_croppe': 28903483, 'flou': 28903484, 'Teint_Dans_La_Masse': 28903485, 'kraft': 28903486}", None, None, None, None, '4117142'), ('4302', '28903442', '1396188665', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188661', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188657', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188655', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188653', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188642', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188639', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188636', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188634', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188632', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188626', None, None, None, None, None, '4117142')] time used for this insertion : 0.016509294509887695 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8699469566345215 time spend to save output : 0.016843080520629883 total time spend for step 1 : 1.8867900371551514 step2:final Wed Nov 26 02:30: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 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 (28903442) 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 28903442 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1396188263,1396188262,1396188261,1396188260,1396188298,1396188297,1396188292,1396188323,1396188322,1396188320,1396188319,1396188318,1396188317,1396188349,1396188347,1396188345,1396188343,1396188341,1396188363,1396188424,1396188404,1396188402,1396188401,1396188394,1396188452,1396188449,1396188446,1396188444,1396188442,1396188440,1396188466,1396188465,1396188464,1396188463,1396188507,1396188505,1396188503,1396188496,1396188541,1396188536,1396188527,1396188524,1396188521,1396188519,1396188584,1396188581,1396188579,1396188577,1396188575,1396188573,1396188598,1396188597,1396188596,1396188642,1396188639,1396188636,1396188634,1396188632,1396188626,1396188665,1396188661,1396188657,1396188655,1396188653); 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([28903442]) Inside saveOutput : final : False verbose : True original output for save of step final : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ('0.05936270301892077',), 1396188639: ('0.05936270301892077',), 1396188636: ('0.05936270301892077',), 1396188634: ('0.05936270301892077',), 1396188632: ('0.05936270301892077',), 1396188626: ('0.05936270301892077',)} new output for save of step final : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ('0.05936270301892077',), 1396188639: ('0.05936270301892077',), 1396188636: ('0.05936270301892077',), 1396188634: ('0.05936270301892077',), 1396188632: ('0.05936270301892077',), 1396188626: ('0.05936270301892077',)} [1396188665, 1396188661, 1396188657, 1396188655, 1396188653, 1396188642, 1396188639, 1396188636, 1396188634, 1396188632, 1396188626] map_info['map_portfolio_photo'] : {28903442: [1396188665, 1396188661, 1396188657, 1396188655, 1396188653, 1396188642, 1396188639, 1396188636, 1396188634, 1396188632, 1396188626, 1396188598, 1396188597, 1396188596, 1396188584, 1396188581, 1396188579, 1396188577, 1396188575, 1396188573, 1396188541, 1396188536, 1396188527, 1396188524, 1396188521, 1396188519, 1396188507, 1396188505, 1396188503, 1396188496, 1396188466, 1396188465, 1396188464, 1396188463, 1396188452, 1396188449, 1396188446, 1396188444, 1396188442, 1396188440, 1396188424, 1396188404, 1396188402, 1396188401, 1396188394, 1396188363, 1396188349, 1396188347, 1396188345, 1396188343, 1396188341, 1396188323, 1396188322, 1396188320, 1396188319, 1396188318, 1396188317, 1396188298, 1396188297, 1396188292, 1396188263, 1396188262, 1396188261, 1396188260]} final : False mtd_id 4302 list_pids : [1396188665, 1396188661, 1396188657, 1396188655, 1396188653, 1396188642, 1396188639, 1396188636, 1396188634, 1396188632, 1396188626] Looping around the photos to save general results len do output : 11 /1396188665.Didn't retrieve data . /1396188661.Didn't retrieve data . /1396188657.Didn't retrieve data . /1396188655.Didn't retrieve data . /1396188653.Didn't retrieve data . /1396188642.Didn't retrieve data . /1396188639.Didn't retrieve data . /1396188636.Didn't retrieve data . /1396188634.Didn't retrieve data . /1396188632.Didn't retrieve data . /1396188626.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, '4117142') ('4302', '28903442', '1396188665', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188661', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188657', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188655', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188653', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188642', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188639', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188636', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188634', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188632', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188626', None, None, None, None, None, '4117142') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28903442', '1396188665', '0.05936270301892077', None, None, None, None, '4117142'), ('4302', '28903442', '1396188661', '0.05936270301892077', None, None, None, None, '4117142'), ('4302', '28903442', '1396188657', '0.05936270301892077', None, None, None, None, '4117142'), ('4302', '28903442', '1396188655', '0.05936270301892077', None, None, None, None, '4117142'), ('4302', '28903442', '1396188653', '0.05936270301892077', None, None, None, None, '4117142'), ('4302', '28903442', '1396188642', '0.05936270301892077', None, None, None, None, '4117142'), ('4302', '28903442', '1396188639', '0.05936270301892077', None, None, None, None, '4117142'), ('4302', '28903442', '1396188636', '0.05936270301892077', None, None, None, None, '4117142'), ('4302', '28903442', '1396188634', '0.05936270301892077', None, None, None, None, '4117142'), ('4302', '28903442', '1396188632', '0.05936270301892077', None, None, None, None, '4117142'), ('4302', '28903442', '1396188626', '0.05936270301892077', None, None, None, None, '4117142')] time used for this insertion : 0.015351533889770508 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08200216293334961 time spend to save output : 0.015956401824951172 total time spend for step 2 : 0.09795856475830078 step3:velours_tree Wed Nov 26 02:30: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 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 : {28903442: [{'cartonnette': 28903475, 'Carton_gris': 28903476, 'plastique': 28903477, 'metal': 28903478, 'papier': 28903479, 'Carton_brun': 28903480, 'autre_refus': 28903481, 'environnement': 28903482, 'mal_croppe': 28903483, 'flou': 28903484, 'Teint_Dans_La_Masse': 28903485, 'kraft': 28903486}]} input_args_next_step : {28903442: ()} output_args : {28903442: [{'cartonnette': 28903475, 'Carton_gris': 28903476, 'plastique': 28903477, 'metal': 28903478, 'papier': 28903479, 'Carton_brun': 28903480, 'autre_refus': 28903481, 'environnement': 28903482, 'mal_croppe': 28903483, 'flou': 28903484, 'Teint_Dans_La_Masse': 28903485, 'kraft': 28903486}]} args : 28903442 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 : ({'cartonnette': 28903475, 'Carton_gris': 28903476, 'plastique': 28903477, 'metal': 28903478, 'papier': 28903479, 'Carton_brun': 28903480, 'autre_refus': 28903481, 'environnement': 28903482, 'mal_croppe': 28903483, 'flou': 28903484, 'Teint_Dans_La_Masse': 28903485, 'kraft': 28903486},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28903442) 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([28903442]) 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.30449628829956055 time spend to save output : 5.3882598876953125e-05 total time spend for step 3 : 0.3045501708984375 step4:send_mail_cod Wed Nov 26 02:30: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 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 : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ('0.05936270301892077',), 1396188639: ('0.05936270301892077',), 1396188636: ('0.05936270301892077',), 1396188634: ('0.05936270301892077',), 1396188632: ('0.05936270301892077',), 1396188626: ('0.05936270301892077',)} input_args_next_step : {1396188665: ()} output_args : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ('0.05936270301892077',), 1396188639: ('0.05936270301892077',), 1396188636: ('0.05936270301892077',), 1396188634: ('0.05936270301892077',), 1396188632: ('0.05936270301892077',), 1396188626: ('0.05936270301892077',)} args : 1396188665 depend.output_id : 0 input_args_next_step : {1396188665: ('0.05936270301892077',), 1396188661: ()} output_args : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ('0.05936270301892077',), 1396188639: ('0.05936270301892077',), 1396188636: ('0.05936270301892077',), 1396188634: ('0.05936270301892077',), 1396188632: ('0.05936270301892077',), 1396188626: ('0.05936270301892077',)} args : 1396188661 depend.output_id : 0 input_args_next_step : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ()} output_args : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ('0.05936270301892077',), 1396188639: ('0.05936270301892077',), 1396188636: ('0.05936270301892077',), 1396188634: ('0.05936270301892077',), 1396188632: ('0.05936270301892077',), 1396188626: ('0.05936270301892077',)} args : 1396188657 depend.output_id : 0 input_args_next_step : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ()} output_args : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ('0.05936270301892077',), 1396188639: ('0.05936270301892077',), 1396188636: ('0.05936270301892077',), 1396188634: ('0.05936270301892077',), 1396188632: ('0.05936270301892077',), 1396188626: ('0.05936270301892077',)} args : 1396188655 depend.output_id : 0 input_args_next_step : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ()} output_args : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ('0.05936270301892077',), 1396188639: ('0.05936270301892077',), 1396188636: ('0.05936270301892077',), 1396188634: ('0.05936270301892077',), 1396188632: ('0.05936270301892077',), 1396188626: ('0.05936270301892077',)} args : 1396188653 depend.output_id : 0 input_args_next_step : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ()} output_args : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ('0.05936270301892077',), 1396188639: ('0.05936270301892077',), 1396188636: ('0.05936270301892077',), 1396188634: ('0.05936270301892077',), 1396188632: ('0.05936270301892077',), 1396188626: ('0.05936270301892077',)} args : 1396188642 depend.output_id : 0 input_args_next_step : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ('0.05936270301892077',), 1396188639: ()} output_args : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ('0.05936270301892077',), 1396188639: ('0.05936270301892077',), 1396188636: ('0.05936270301892077',), 1396188634: ('0.05936270301892077',), 1396188632: ('0.05936270301892077',), 1396188626: ('0.05936270301892077',)} args : 1396188639 depend.output_id : 0 input_args_next_step : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ('0.05936270301892077',), 1396188639: ('0.05936270301892077',), 1396188636: ()} output_args : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ('0.05936270301892077',), 1396188639: ('0.05936270301892077',), 1396188636: ('0.05936270301892077',), 1396188634: ('0.05936270301892077',), 1396188632: ('0.05936270301892077',), 1396188626: ('0.05936270301892077',)} args : 1396188636 depend.output_id : 0 input_args_next_step : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ('0.05936270301892077',), 1396188639: ('0.05936270301892077',), 1396188636: ('0.05936270301892077',), 1396188634: ()} output_args : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ('0.05936270301892077',), 1396188639: ('0.05936270301892077',), 1396188636: ('0.05936270301892077',), 1396188634: ('0.05936270301892077',), 1396188632: ('0.05936270301892077',), 1396188626: ('0.05936270301892077',)} args : 1396188634 depend.output_id : 0 input_args_next_step : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ('0.05936270301892077',), 1396188639: ('0.05936270301892077',), 1396188636: ('0.05936270301892077',), 1396188634: ('0.05936270301892077',), 1396188632: ()} output_args : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ('0.05936270301892077',), 1396188639: ('0.05936270301892077',), 1396188636: ('0.05936270301892077',), 1396188634: ('0.05936270301892077',), 1396188632: ('0.05936270301892077',), 1396188626: ('0.05936270301892077',)} args : 1396188632 depend.output_id : 0 input_args_next_step : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ('0.05936270301892077',), 1396188639: ('0.05936270301892077',), 1396188636: ('0.05936270301892077',), 1396188634: ('0.05936270301892077',), 1396188632: ('0.05936270301892077',), 1396188626: ()} output_args : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ('0.05936270301892077',), 1396188639: ('0.05936270301892077',), 1396188636: ('0.05936270301892077',), 1396188634: ('0.05936270301892077',), 1396188632: ('0.05936270301892077',), 1396188626: ('0.05936270301892077',)} args : 1396188626 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {28903442: [{'cartonnette': 28903475, 'Carton_gris': 28903476, 'plastique': 28903477, 'metal': 28903478, 'papier': 28903479, 'Carton_brun': 28903480, 'autre_refus': 28903481, 'environnement': 28903482, 'mal_croppe': 28903483, 'flou': 28903484, 'Teint_Dans_La_Masse': 28903485, 'kraft': 28903486}]} input_args_next_step : {1396188665: ('0.05936270301892077',), 1396188661: ('0.05936270301892077',), 1396188657: ('0.05936270301892077',), 1396188655: ('0.05936270301892077',), 1396188653: ('0.05936270301892077',), 1396188642: ('0.05936270301892077',), 1396188639: ('0.05936270301892077',), 1396188636: ('0.05936270301892077',), 1396188634: ('0.05936270301892077',), 1396188632: ('0.05936270301892077',), 1396188626: ('0.05936270301892077',), 28903442: ()} output_args : {28903442: [{'cartonnette': 28903475, 'Carton_gris': 28903476, 'plastique': 28903477, 'metal': 28903478, 'papier': 28903479, 'Carton_brun': 28903480, 'autre_refus': 28903481, 'environnement': 28903482, 'mal_croppe': 28903483, 'flou': 28903484, 'Teint_Dans_La_Masse': 28903485, 'kraft': 28903486}]} args : 28903442 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :12, first value : ('0.05936270301892077',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28903442) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1396188665,1396188661,1396188657,1396188655,1396188653,1396188642,1396188639,1396188636,1396188634,1396188632,1396188626) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1396188626 begin to download photo : 1396188636 begin to download photo : 1396188653 begin to download photo : 1396188661 download finish for photo 1396188661 begin to download photo : 1396188665 download finish for photo 1396188653 begin to download photo : 1396188655 download finish for photo 1396188626 begin to download photo : 1396188632 download finish for photo 1396188636 begin to download photo : 1396188639 download finish for photo 1396188665 download finish for photo 1396188655 begin to download photo : 1396188657 download finish for photo 1396188639 begin to download photo : 1396188642 download finish for photo 1396188632 begin to download photo : 1396188634 download finish for photo 1396188657 download finish for photo 1396188634 download finish for photo 1396188642 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 : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P28903442_26-11-2025_02_30_58.pdf 28903475 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28903475 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396188480: '1764120186_3264786_1396188345_a10707019c4b34c59e077492f9779068_rle_crop_4045737469_0.png', 1396188481: '1764120186_3264786_1396188341_86d6d4763fadcbec7542081f86617e91_rle_crop_4045737496_0.png', 1396188498: '1764120206_3265138_1396188317_1474f4c78917230fca69e2a89cd1a785_rle_crop_4045737775_0.png', 1396188566: '1764120326_3271022_1396188323_fe3c09097c083dc24bc079099bba31d6_rle_crop_4045738294_0.png', 1396188567: '1764120326_3271022_1396188297_d5f4dc96d774eded291cbd5408a92bf1_rle_crop_4045738313_0.png', 1396188612: '1764120427_3275992_1396188503_e9200eb05cb72813bf0d10f381cf691e_rle_crop_4045738646_0.png', 1396188620: '1764120446_3277369_1396188466_5437a58af7e92a0f3b0f2931b2920ec7_rle_crop_4045738670_0.png', 1396188679: '1764120548_3283071_1396188527_87fee8c8677dabb31d147a8cba7537ce_rle_crop_4045739127_0.png', 1396188681: '1764120548_3283071_1396188527_87fee8c8677dabb31d147a8cba7537ce_rle_crop_4045739129_0.png', 1396188688: '1764120567_3283495_1396188465_ebae5f2485758d19b73e250c11de9a20_rle_crop_4045739293_0.png', 1396188689: '1764120567_3283495_1396188465_ebae5f2485758d19b73e250c11de9a20_rle_crop_4045739300_0.png', 1396188690: '1764120567_3283495_1396188464_43601e825d098addfa35395e9a43d1d6_rle_crop_4045739321_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/16d49e87cf904e0b8d7f75384459b33e_2226675.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/a8b3d12de84b0fdda977fb443ff7e523_67554243.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/19f59a8331f00ec12fe8309636fcc056_33157126.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/0edc2023c69988051d645afa5827d542_58334867.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/41e98a618ad5950114d8a9f5649a0dae_58899665.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/bf7cdf6cc8ff2218a023495d0ca31b62_30834907.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/b251ac6af80e0b4d6c26dfacead0c42c_90412973.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/7bca1c369e98a18ce75b2b9c016fe407_2392259.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/2fa71669948c35c7a3e8a098a0690f28_55823943.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/34572a0b1b49043bf97e15684b9a17ea_51101364.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/a82dd04527243f125d6cdfa8097c9408_32493938.png change filename to text .imagette289034751764120658/ imagette289034751764120658/1764120206_3265138_1396188317_1474f4c78917230fca69e2a89cd1a785_rle_crop_4045737775_0.png.png imagette289034751764120658/1764120186_3264786_1396188341_86d6d4763fadcbec7542081f86617e91_rle_crop_4045737496_0.png.png imagette289034751764120658/1764120567_3283495_1396188464_43601e825d098addfa35395e9a43d1d6_rle_crop_4045739321_0.png.png imagette289034751764120658/1764120446_3277369_1396188466_5437a58af7e92a0f3b0f2931b2920ec7_rle_crop_4045738670_0.png.png imagette289034751764120658/1764120567_3283495_1396188465_ebae5f2485758d19b73e250c11de9a20_rle_crop_4045739293_0.png.png imagette289034751764120658/1764120427_3275992_1396188503_e9200eb05cb72813bf0d10f381cf691e_rle_crop_4045738646_0.png.png imagette289034751764120658/1764120326_3271022_1396188323_fe3c09097c083dc24bc079099bba31d6_rle_crop_4045738294_0.png.png imagette289034751764120658/1764120567_3283495_1396188465_ebae5f2485758d19b73e250c11de9a20_rle_crop_4045739300_0.png.png imagette289034751764120658/1764120186_3264786_1396188345_a10707019c4b34c59e077492f9779068_rle_crop_4045737469_0.png.png imagette289034751764120658/1764120548_3283071_1396188527_87fee8c8677dabb31d147a8cba7537ce_rle_crop_4045739129_0.png.png imagette289034751764120658/1764120326_3271022_1396188297_d5f4dc96d774eded291cbd5408a92bf1_rle_crop_4045738313_0.png.png imagette289034751764120658/1764120548_3283071_1396188527_87fee8c8677dabb31d147a8cba7537ce_rle_crop_4045739127_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/6089d6ae33131a904d159a613b3d8a10_56738955.png imagette289034751764120658 28903477 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28903477 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396188502: '1764120206_3265138_1396188320_347aa845851dea238980c8ad9a65ec42_rle_crop_4045737742_0.png', 1396188568: '1764120326_3271022_1396188323_fe3c09097c083dc24bc079099bba31d6_rle_crop_4045738298_0.png', 1396188569: '1764120326_3271022_1396188323_fe3c09097c083dc24bc079099bba31d6_rle_crop_4045738305_0.png', 1396188570: '1764120326_3271022_1396188292_80a855ebce548eded14a8e21e3c7fc6a_rle_crop_4045738340_0.png', 1396188627: '1764120446_3277369_1396188466_5437a58af7e92a0f3b0f2931b2920ec7_rle_crop_4045738677_0.png', 1396188628: '1764120446_3277369_1396188440_16748843b27fa25adc01660ab3657d99_rle_crop_4045738746_0.png', 1396188683: '1764120548_3283071_1396188524_738faeebd0506384915e7c960c578853_rle_crop_4045739147_0.png', 1396188684: '1764120548_3283071_1396188521_e5c8c86a18b5bd91b3e40734dd4b8c70_rle_crop_4045739170_0.png', 1396188685: '1764120548_3283071_1396188519_b316cedd69ccd701a9f6f09506b920e2_rle_crop_4045739233_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/d02ace832a6d700c5432be549caed849_18867967.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/d86df855a7bff1c1218aaf26d9c5f0cb_30191310.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/debbc62dffded39d82f66fc83b9a7d7e_25427243.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/d5dfc43e63d5811eddbca0758eabc47c_77682076.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/0cafe79aba7846b7710fc0e8ae43a21b_63094981.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/c9f6013aa286e146bf2a13370e2ee8ae_41293801.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/9bfb4b0f66ac20d11894bf33d16cbaee_40389946.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/93249da41e3526ec2c44e9bde14a90d1_56883972.png change filename to text .imagette289034771764120659/ imagette289034771764120659/1764120326_3271022_1396188323_fe3c09097c083dc24bc079099bba31d6_rle_crop_4045738305_0.png.png imagette289034771764120659/1764120446_3277369_1396188466_5437a58af7e92a0f3b0f2931b2920ec7_rle_crop_4045738677_0.png.png imagette289034771764120659/1764120326_3271022_1396188292_80a855ebce548eded14a8e21e3c7fc6a_rle_crop_4045738340_0.png.png imagette289034771764120659/1764120548_3283071_1396188524_738faeebd0506384915e7c960c578853_rle_crop_4045739147_0.png.png imagette289034771764120659/1764120446_3277369_1396188440_16748843b27fa25adc01660ab3657d99_rle_crop_4045738746_0.png.png imagette289034771764120659/1764120548_3283071_1396188521_e5c8c86a18b5bd91b3e40734dd4b8c70_rle_crop_4045739170_0.png.png imagette289034771764120659/1764120206_3265138_1396188320_347aa845851dea238980c8ad9a65ec42_rle_crop_4045737742_0.png.png imagette289034771764120659/1764120548_3283071_1396188519_b316cedd69ccd701a9f6f09506b920e2_rle_crop_4045739233_0.png.png imagette289034771764120659/1764120326_3271022_1396188323_fe3c09097c083dc24bc079099bba31d6_rle_crop_4045738298_0.png.png imagette289034781764120660/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/ea7db0f750f916cea865517468413f30_37736409.png imagette289034771764120659 28903478 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28903478 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289034781764120660 28903481 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28903481 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396188476: '1764120186_3264786_1396188345_a10707019c4b34c59e077492f9779068_rle_crop_4045737467_0.png', 1396188477: '1764120186_3264786_1396188341_86d6d4763fadcbec7542081f86617e91_rle_crop_4045737494_0.png', 1396188488: '1764120206_3265138_1396188320_347aa845851dea238980c8ad9a65ec42_rle_crop_4045737741_0.png', 1396188489: '1764120206_3265138_1396188319_3f84b2fee4145549abef92e28f6d81e8_rle_crop_4045737749_0.png', 1396188490: '1764120206_3265138_1396188319_3f84b2fee4145549abef92e28f6d81e8_rle_crop_4045737751_0.png', 1396188491: '1764120206_3265138_1396188319_3f84b2fee4145549abef92e28f6d81e8_rle_crop_4045737753_0.png', 1396188492: '1764120206_3265138_1396188318_25d22ca015fc6a0414000dedc959989f_rle_crop_4045737763_0.png', 1396188493: '1764120206_3265138_1396188318_25d22ca015fc6a0414000dedc959989f_rle_crop_4045737761_0.png', 1396188494: '1764120206_3265138_1396188317_1474f4c78917230fca69e2a89cd1a785_rle_crop_4045737780_0.png', 1396188495: '1764120206_3265138_1396188317_1474f4c78917230fca69e2a89cd1a785_rle_crop_4045737772_0.png', 1396188564: '1764120326_3271022_1396188297_d5f4dc96d774eded291cbd5408a92bf1_rle_crop_4045738318_0.png', 1396188611: '1764120427_3275992_1396188505_4e4410deeac48fa8f2f9ecf794b852a3_rle_crop_4045738640_0.png', 1396188616: '1764120446_3277369_1396188442_9b8a8a1ab0484ae1b099a89df18a1460_rle_crop_4045738726_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/6029bde05b9190f2d93b04b7879efa0f_91457292.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/615f0710a7746222fadfbb71b12d8adc_73959735.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/489f03858e057f834b9724c76bb2b789_47029745.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/b5afed3c7da5b9406e1592373be38e92_99331352.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/136ee8408fe09005d2b71793696a11d7_9912444.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/2a74b7ac9ead57df5c057e5cc4e18250_3530159.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/0e01884b85be52348a824c55cfaca4c8_88930326.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/3025230a773e9905741dfc36c107f925_90028151.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/7aebc4e41c747ee718b79647fbfc2fcf_84935568.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/03b728b00374296a77a4b9a7ded4d350_30455079.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/1511a3d375c98c616c0d21917fe63199_12688790.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/f5fad95c9de0788bc04c944fc8a19eba_18281392.png change filename to text .imagette289034811764120660/ imagette289034811764120660/1764120206_3265138_1396188319_3f84b2fee4145549abef92e28f6d81e8_rle_crop_4045737749_0.png.png imagette289034811764120660/1764120446_3277369_1396188442_9b8a8a1ab0484ae1b099a89df18a1460_rle_crop_4045738726_0.png.png imagette289034811764120660/1764120206_3265138_1396188319_3f84b2fee4145549abef92e28f6d81e8_rle_crop_4045737751_0.png.png imagette289034811764120660/1764120206_3265138_1396188319_3f84b2fee4145549abef92e28f6d81e8_rle_crop_4045737753_0.png.png imagette289034811764120660/1764120427_3275992_1396188505_4e4410deeac48fa8f2f9ecf794b852a3_rle_crop_4045738640_0.png.png imagette289034811764120660/1764120206_3265138_1396188318_25d22ca015fc6a0414000dedc959989f_rle_crop_4045737763_0.png.png imagette289034811764120660/1764120206_3265138_1396188320_347aa845851dea238980c8ad9a65ec42_rle_crop_4045737741_0.png.png imagette289034811764120660/1764120186_3264786_1396188341_86d6d4763fadcbec7542081f86617e91_rle_crop_4045737494_0.png.png imagette289034811764120660/1764120206_3265138_1396188318_25d22ca015fc6a0414000dedc959989f_rle_crop_4045737761_0.png.png imagette289034811764120660/1764120326_3271022_1396188297_d5f4dc96d774eded291cbd5408a92bf1_rle_crop_4045738318_0.png.png imagette289034811764120660/1764120186_3264786_1396188345_a10707019c4b34c59e077492f9779068_rle_crop_4045737467_0.png.png imagette289034811764120660/1764120206_3265138_1396188317_1474f4c78917230fca69e2a89cd1a785_rle_crop_4045737772_0.png.png imagette289034811764120660/1764120206_3265138_1396188317_1474f4c78917230fca69e2a89cd1a785_rle_crop_4045737780_0.png.png imagette289034831764120661/ imagette289034841764120661/ wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/d4b16ef9d7636ff29eaf158e2a930aa1_79110210.png imagette289034811764120660 28903483 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28903483 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289034831764120661 28903484 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28903484 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289034841764120661 28903486 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28903486 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396188571: '1764120326_3271022_1396188323_fe3c09097c083dc24bc079099bba31d6_rle_crop_4045738306_0.png', 1396188630: '1764120446_3277369_1396188466_5437a58af7e92a0f3b0f2931b2920ec7_rle_crop_4045738672_0.png', 1396188631: '1764120446_3277369_1396188440_16748843b27fa25adc01660ab3657d99_rle_crop_4045738736_0.png', 1396188694: '1764120567_3283495_1396188464_43601e825d098addfa35395e9a43d1d6_rle_crop_4045739314_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/ce999e953bc42d976739f83b011e6be5_91577977.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/36a09ae57f1bbce6e5855648e8838e57_76950007.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/145164507af2d1c114dd306f297956ed_33178266.png change filename to text .imagette289034861764120661/ imagette289034861764120661/1764120446_3277369_1396188466_5437a58af7e92a0f3b0f2931b2920ec7_rle_crop_4045738672_0.png.png imagette289034861764120661/1764120446_3277369_1396188440_16748843b27fa25adc01660ab3657d99_rle_crop_4045738736_0.png.png imagette289034861764120661/1764120326_3271022_1396188323_fe3c09097c083dc24bc079099bba31d6_rle_crop_4045738306_0.png.png imagette289034861764120661/1764120567_3283495_1396188464_43601e825d098addfa35395e9a43d1d6_rle_crop_4045739314_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/e0f9575a63783f78aaf1af29550ec1ee_79533447.png imagette289034861764120661 28903476 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28903476 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396188479: '1764120186_3264786_1396188345_a10707019c4b34c59e077492f9779068_rle_crop_4045737466_0.png', 1396188497: '1764120206_3265138_1396188317_1474f4c78917230fca69e2a89cd1a785_rle_crop_4045737783_0.png', 1396188556: '1764120307_3270466_1396188394_b0de7797a024c04178da7b3a77cd3155_rle_crop_4045738172_0.png', 1396188565: '1764120326_3271022_1396188323_fe3c09097c083dc24bc079099bba31d6_rle_crop_4045738296_0.png', 1396188618: '1764120446_3277369_1396188442_9b8a8a1ab0484ae1b099a89df18a1460_rle_crop_4045738716_0.png', 1396188619: '1764120446_3277369_1396188440_16748843b27fa25adc01660ab3657d99_rle_crop_4045738732_0.png', 1396188675: '1764120548_3283071_1396188536_565d6ab2157d9ecda7de47ff3a0cd09c_rle_crop_4045739113_0.png', 1396188676: '1764120548_3283071_1396188521_e5c8c86a18b5bd91b3e40734dd4b8c70_rle_crop_4045739164_0.png', 1396188677: '1764120548_3283071_1396188521_e5c8c86a18b5bd91b3e40734dd4b8c70_rle_crop_4045739165_0.png', 1396188687: '1764120567_3283495_1396188463_bde6c1cd09fee9e0ea41401048b45c70_rle_crop_4045739332_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/a619fcab33150c4984eacbbb9835e087_4638628.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/bcb59371bfdfb93c8faf9454cd62d109_763303.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/a0c81cab96f19c41c936ca29aa0201f8_81973754.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/0b702a060ec75e7583bcb83b386cef12_32901126.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/0aa849653d233605db974712e91ec78c_10377936.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/d4c597a2a4f92df4efcde8a257d37e77_26006379.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/1afa7177195d59f6fa38e2df117eabfc_53490085.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/7119e655578c8255811a9a1e6dfc3763_16977274.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/93fdef9f64748ac32b04534449f2af5a_44471014.png change filename to text .imagette289034761764120662/ imagette289034761764120662/1764120548_3283071_1396188536_565d6ab2157d9ecda7de47ff3a0cd09c_rle_crop_4045739113_0.png.png imagette289034761764120662/1764120307_3270466_1396188394_b0de7797a024c04178da7b3a77cd3155_rle_crop_4045738172_0.png.png imagette289034761764120662/1764120567_3283495_1396188463_bde6c1cd09fee9e0ea41401048b45c70_rle_crop_4045739332_0.png.png imagette289034761764120662/1764120186_3264786_1396188345_a10707019c4b34c59e077492f9779068_rle_crop_4045737466_0.png.png imagette289034761764120662/1764120548_3283071_1396188521_e5c8c86a18b5bd91b3e40734dd4b8c70_rle_crop_4045739165_0.png.png imagette289034761764120662/1764120206_3265138_1396188317_1474f4c78917230fca69e2a89cd1a785_rle_crop_4045737783_0.png.png imagette289034761764120662/1764120446_3277369_1396188442_9b8a8a1ab0484ae1b099a89df18a1460_rle_crop_4045738716_0.png.png imagette289034761764120662/1764120446_3277369_1396188440_16748843b27fa25adc01660ab3657d99_rle_crop_4045738732_0.png.png imagette289034761764120662/1764120326_3271022_1396188323_fe3c09097c083dc24bc079099bba31d6_rle_crop_4045738296_0.png.png imagette289034761764120662/1764120548_3283071_1396188521_e5c8c86a18b5bd91b3e40734dd4b8c70_rle_crop_4045739164_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/02c889b8ede7d7e4a682607a0d2321a1_51241037.png imagette289034761764120662 28903480 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28903480 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396188499: '1764120206_3265138_1396188322_2ba45b1735fa56bb26f4ac889f896a77_rle_crop_4045737718_0.png', 1396188500: '1764120206_3265138_1396188322_2ba45b1735fa56bb26f4ac889f896a77_rle_crop_4045737716_0.png', 1396188501: '1764120206_3265138_1396188317_1474f4c78917230fca69e2a89cd1a785_rle_crop_4045737779_0.png', 1396188557: '1764120307_3270466_1396188404_8e964be1b57f9634e138e1b3bc1013ab_rle_crop_4045738132_0.png', 1396188558: '1764120307_3270466_1396188401_33e17cb3d5f75d88588038e10a082a71_rle_crop_4045738157_0.png', 1396188621: '1764120446_3277369_1396188466_5437a58af7e92a0f3b0f2931b2920ec7_rle_crop_4045738675_0.png', 1396188622: '1764120446_3277369_1396188442_9b8a8a1ab0484ae1b099a89df18a1460_rle_crop_4045738720_0.png', 1396188623: '1764120446_3277369_1396188442_9b8a8a1ab0484ae1b099a89df18a1460_rle_crop_4045738722_0.png', 1396188624: '1764120446_3277369_1396188442_9b8a8a1ab0484ae1b099a89df18a1460_rle_crop_4045738725_0.png', 1396188625: '1764120446_3277369_1396188440_16748843b27fa25adc01660ab3657d99_rle_crop_4045738738_0.png', 1396188682: '1764120548_3283071_1396188519_b316cedd69ccd701a9f6f09506b920e2_rle_crop_4045739227_0.png', 1396188691: '1764120567_3283495_1396188465_ebae5f2485758d19b73e250c11de9a20_rle_crop_4045739296_0.png', 1396188692: '1764120567_3283495_1396188464_43601e825d098addfa35395e9a43d1d6_rle_crop_4045739317_0.png', 1396188693: '1764120567_3283495_1396188463_bde6c1cd09fee9e0ea41401048b45c70_rle_crop_4045739334_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/421dfe1ed42009609449e666d9a40933_80838910.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/d8df613c741a91c09058e294d0cb2294_46697197.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/c7ac45f43710e535c6db3a236cd999a0_77738684.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/f37e0dad7cfd05b4cd1e61954b7e3d00_53166780.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/60295f45f81cef798932e0750c68dd03_23769937.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/aca24a0ba47e5d220dc7dfe1a7313f35_4165527.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/a71114f492554abd19568dc2353a9751_58449192.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/ef4485c564fc897b0ba8f9e63cc0cc49_47654706.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/ad86cb041c82045b85501265745ca78d_1690987.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/26c7a942bd3e11c362eca7c8425030b7_46237332.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/54a16a835d283c4907201ab9d4ce99e6_69846723.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/4aa2036c3dd914566c82625b7adb8502_17693899.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/6b9e1e1b600186675b8f146621f565bb_52899956.png change filename to text .imagette289034801764120662/ imagette289034801764120662/1764120206_3265138_1396188322_2ba45b1735fa56bb26f4ac889f896a77_rle_crop_4045737716_0.png.png imagette289034801764120662/1764120446_3277369_1396188466_5437a58af7e92a0f3b0f2931b2920ec7_rle_crop_4045738675_0.png.png imagette289034801764120662/1764120307_3270466_1396188404_8e964be1b57f9634e138e1b3bc1013ab_rle_crop_4045738132_0.png.png imagette289034801764120662/1764120548_3283071_1396188519_b316cedd69ccd701a9f6f09506b920e2_rle_crop_4045739227_0.png.png imagette289034801764120662/1764120446_3277369_1396188442_9b8a8a1ab0484ae1b099a89df18a1460_rle_crop_4045738725_0.png.png imagette289034801764120662/1764120567_3283495_1396188463_bde6c1cd09fee9e0ea41401048b45c70_rle_crop_4045739334_0.png.png imagette289034801764120662/1764120307_3270466_1396188401_33e17cb3d5f75d88588038e10a082a71_rle_crop_4045738157_0.png.png imagette289034801764120662/1764120567_3283495_1396188465_ebae5f2485758d19b73e250c11de9a20_rle_crop_4045739296_0.png.png imagette289034801764120662/1764120206_3265138_1396188317_1474f4c78917230fca69e2a89cd1a785_rle_crop_4045737779_0.png.png imagette289034801764120662/1764120206_3265138_1396188322_2ba45b1735fa56bb26f4ac889f896a77_rle_crop_4045737718_0.png.png imagette289034801764120662/1764120567_3283495_1396188464_43601e825d098addfa35395e9a43d1d6_rle_crop_4045739317_0.png.png imagette289034801764120662/1764120446_3277369_1396188442_9b8a8a1ab0484ae1b099a89df18a1460_rle_crop_4045738722_0.png.png imagette289034801764120662/1764120446_3277369_1396188440_16748843b27fa25adc01660ab3657d99_rle_crop_4045738738_0.png.png imagette289034801764120662/1764120446_3277369_1396188442_9b8a8a1ab0484ae1b099a89df18a1460_rle_crop_4045738720_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/e81b1797216aaa2590c484473bfec3cc_19219600.png imagette289034801764120662 28903485 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28903485 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396188555: '1764120307_3270466_1396188394_b0de7797a024c04178da7b3a77cd3155_rle_crop_4045738178_0.png', 1396188686: '1764120567_3283495_1396188463_bde6c1cd09fee9e0ea41401048b45c70_rle_crop_4045739331_0.png', 1396188674: '1764120548_3283071_1396188519_b316cedd69ccd701a9f6f09506b920e2_rle_crop_4045739225_0.png', 1396188673: '1764120548_3283071_1396188521_e5c8c86a18b5bd91b3e40734dd4b8c70_rle_crop_4045739167_0.png', 1396188672: '1764120548_3283071_1396188524_738faeebd0506384915e7c960c578853_rle_crop_4045739148_0.png', 1396188615: '1764120446_3277369_1396188440_16748843b27fa25adc01660ab3657d99_rle_crop_4045738740_0.png', 1396188614: '1764120446_3277369_1396188444_e2cd601179241b277f7f3627f4121d3e_rle_crop_4045738709_0.png', 1396188613: '1764120446_3277369_1396188466_5437a58af7e92a0f3b0f2931b2920ec7_rle_crop_4045738676_0.png', 1396188563: '1764120326_3271022_1396188292_80a855ebce548eded14a8e21e3c7fc6a_rle_crop_4045738334_0.png', 1396188562: '1764120326_3271022_1396188292_80a855ebce548eded14a8e21e3c7fc6a_rle_crop_4045738338_0.png', 1396188561: '1764120326_3271022_1396188297_d5f4dc96d774eded291cbd5408a92bf1_rle_crop_4045738325_0.png', 1396188560: '1764120326_3271022_1396188323_fe3c09097c083dc24bc079099bba31d6_rle_crop_4045738299_0.png', 1396188474: '1764120186_3264786_1396188347_5aaa0e46256bd7f71a5ad1bef688dc27_rle_crop_4045737458_0.png', 1396188554: '1764120307_3270466_1396188394_b0de7797a024c04178da7b3a77cd3155_rle_crop_4045738180_0.png', 1396188552: '1764120307_3270466_1396188394_b0de7797a024c04178da7b3a77cd3155_rle_crop_4045738177_0.png', 1396188551: '1764120307_3270466_1396188401_33e17cb3d5f75d88588038e10a082a71_rle_crop_4045738154_0.png', 1396188550: '1764120307_3270466_1396188401_33e17cb3d5f75d88588038e10a082a71_rle_crop_4045738162_0.png', 1396188549: '1764120307_3270466_1396188402_84ef8db496f31826595f8c2913ec3017_rle_crop_4045738148_0.png', 1396188548: '1764120307_3270466_1396188404_8e964be1b57f9634e138e1b3bc1013ab_rle_crop_4045738130_0.png', 1396188547: '1764120307_3270466_1396188404_8e964be1b57f9634e138e1b3bc1013ab_rle_crop_4045738134_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/743f543dc934135444b876a230066a0c_25163225.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/c9ae05fa1347502d1b3612f45fd8b321_91368822.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/2dd2d20c85bb2ae0bcfeeb3b2affc14d_64382226.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/29f8599ed89b0438e1588519501cc3c6_29577521.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/d5d82ac4e641b682ab1a6ba7a32b46f2_76081309.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/c511a664466d36901486a5c808f1d7cf_37830879.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/cb3e0c31997a05f5e9e7796ad8e03a69_25106929.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/09de2a086c10f82f132411857db84f00_9919117.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/f8dd48decafb479391ef6402e6fa75b3_76790583.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/fc0762df17f6d85f393752c6eac9b8ea_38098540.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/a18ef761a5d2bd206f722055ac647a68_52106042.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/1d7c4d1545506057a1615ac5fb7098f0_34612502.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/bb9b62f7ce641bd8480ea46aa49fbb7f_97478055.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/600bc1647b70f4aab3d8b3503a376075_70449495.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/846a6637d243d0a116fc3dedbf9e82b7_46737680.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/c5b1c6ec12d7fd6f649edba0e28d4eac_11400960.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/1f5d70586b1a76a851ee21eb1374cf34_49682008.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/9446ab9fd821e9501d33dd5a637c0689_21589788.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/cb187b28fb78eca8515fd95b8a7343c8_52648968.png change filename to text .imagette289034851764120663/ imagette289034851764120663/1764120446_3277369_1396188466_5437a58af7e92a0f3b0f2931b2920ec7_rle_crop_4045738676_0.png.png imagette289034851764120663/1764120307_3270466_1396188404_8e964be1b57f9634e138e1b3bc1013ab_rle_crop_4045738130_0.png.png imagette289034851764120663/1764120186_3264786_1396188347_5aaa0e46256bd7f71a5ad1bef688dc27_rle_crop_4045737458_0.png.png imagette289034851764120663/1764120326_3271022_1396188323_fe3c09097c083dc24bc079099bba31d6_rle_crop_4045738299_0.png.png imagette289034851764120663/1764120307_3270466_1396188394_b0de7797a024c04178da7b3a77cd3155_rle_crop_4045738177_0.png.png imagette289034851764120663/1764120446_3277369_1396188444_e2cd601179241b277f7f3627f4121d3e_rle_crop_4045738709_0.png.png imagette289034851764120663/1764120307_3270466_1396188394_b0de7797a024c04178da7b3a77cd3155_rle_crop_4045738180_0.png.png imagette289034851764120663/1764120326_3271022_1396188292_80a855ebce548eded14a8e21e3c7fc6a_rle_crop_4045738334_0.png.png imagette289034851764120663/1764120307_3270466_1396188404_8e964be1b57f9634e138e1b3bc1013ab_rle_crop_4045738134_0.png.png imagette289034851764120663/1764120548_3283071_1396188519_b316cedd69ccd701a9f6f09506b920e2_rle_crop_4045739225_0.png.png imagette289034851764120663/1764120548_3283071_1396188521_e5c8c86a18b5bd91b3e40734dd4b8c70_rle_crop_4045739167_0.png.png imagette289034851764120663/1764120567_3283495_1396188463_bde6c1cd09fee9e0ea41401048b45c70_rle_crop_4045739331_0.png.png imagette289034851764120663/1764120307_3270466_1396188394_b0de7797a024c04178da7b3a77cd3155_rle_crop_4045738178_0.png.png imagette289034851764120663/1764120326_3271022_1396188297_d5f4dc96d774eded291cbd5408a92bf1_rle_crop_4045738325_0.png.png imagette289034851764120663/1764120307_3270466_1396188401_33e17cb3d5f75d88588038e10a082a71_rle_crop_4045738162_0.png.png imagette289034851764120663/1764120548_3283071_1396188524_738faeebd0506384915e7c960c578853_rle_crop_4045739148_0.png.png imagette289034851764120663/1764120307_3270466_1396188402_84ef8db496f31826595f8c2913ec3017_rle_crop_4045738148_0.png.png imagette289034851764120663/1764120307_3270466_1396188401_33e17cb3d5f75d88588038e10a082a71_rle_crop_4045738154_0.png.png imagette289034851764120663/1764120326_3271022_1396188292_80a855ebce548eded14a8e21e3c7fc6a_rle_crop_4045738338_0.png.png imagette289034851764120663/1764120446_3277369_1396188440_16748843b27fa25adc01660ab3657d99_rle_crop_4045738740_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/057dc0b181aff80eb4f57bb938dee53c_88269298.png imagette289034851764120663 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28903442 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28903488,28903489,28903490,28903491,28903492,28903493,28903494,28903495,28903496,28903497,28903498,28903499?tags=cartonnette,Carton_gris,plastique,metal,papier,Carton_brun,autre_refus,environnement,mal_croppe,flou,Teint_Dans_La_Masse,kraft your option no_mail is active, we will not send the real mail to your client args[1396188665] : ('0.05936270301892077',) no score found for photo 1396188665 We are sending mail with results at report@fotonower.com args[1396188661] : ('0.05936270301892077',) no score found for photo 1396188661 We are sending mail with results at report@fotonower.com args[1396188657] : ('0.05936270301892077',) no score found for photo 1396188657 We are sending mail with results at report@fotonower.com args[1396188655] : ('0.05936270301892077',) no score found for photo 1396188655 We are sending mail with results at report@fotonower.com args[1396188653] : ('0.05936270301892077',) no score found for photo 1396188653 We are sending mail with results at report@fotonower.com args[1396188642] : ('0.05936270301892077',) no score found for photo 1396188642 We are sending mail with results at report@fotonower.com args[1396188639] : ('0.05936270301892077',) no score found for photo 1396188639 We are sending mail with results at report@fotonower.com args[1396188636] : ('0.05936270301892077',) no score found for photo 1396188636 We are sending mail with results at report@fotonower.com args[1396188634] : ('0.05936270301892077',) no score found for photo 1396188634 We are sending mail with results at report@fotonower.com args[1396188632] : ('0.05936270301892077',) no score found for photo 1396188632 We are sending mail with results at report@fotonower.com args[1396188626] : ('0.05936270301892077',) no score found for photo 1396188626 We are sending mail with results at report@fotonower.com refus_total : 0.05936270301892077 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28903442 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_P28903442_26-11-2025_02_30_58.pdf results_Auto_P28903442_26-11-2025_02_30_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28903442_26-11-2025_02_30_58.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','28903442','results_Auto_P28903442_26-11-2025_02_30_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28903442_26-11-2025_02_30_58.pdf','pdf','','0.33','0.05936270301892077') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28903442]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1396188665, 1396188661, 1396188657, 1396188655, 1396188653, 1396188642, 1396188639, 1396188636, 1396188634, 1396188632, 1396188626] map_info['map_portfolio_photo'] : {28903442: [1396188665, 1396188661, 1396188657, 1396188655, 1396188653, 1396188642, 1396188639, 1396188636, 1396188634, 1396188632, 1396188626, 1396188598, 1396188597, 1396188596, 1396188584, 1396188581, 1396188579, 1396188577, 1396188575, 1396188573, 1396188541, 1396188536, 1396188527, 1396188524, 1396188521, 1396188519, 1396188507, 1396188505, 1396188503, 1396188496, 1396188466, 1396188465, 1396188464, 1396188463, 1396188452, 1396188449, 1396188446, 1396188444, 1396188442, 1396188440, 1396188424, 1396188404, 1396188402, 1396188401, 1396188394, 1396188363, 1396188349, 1396188347, 1396188345, 1396188343, 1396188341, 1396188323, 1396188322, 1396188320, 1396188319, 1396188318, 1396188317, 1396188298, 1396188297, 1396188292, 1396188263, 1396188262, 1396188261, 1396188260]} final : False mtd_id 4302 list_pids : [1396188665, 1396188661, 1396188657, 1396188655, 1396188653, 1396188642, 1396188639, 1396188636, 1396188634, 1396188632, 1396188626] 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, '4117142') ('4302', '28903442', '1396188665', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188661', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188657', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188655', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188653', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188642', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188639', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188636', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188634', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188632', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188626', None, None, None, None, None, '4117142') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28903442', '1396188665', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188661', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188657', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188655', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188653', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188642', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188639', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188636', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188634', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188632', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188626', None, None, None, None, None, '4117142')] time used for this insertion : 0.018549203872680664 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.948779582977295 time spend to save output : 0.018768787384033203 total time spend for step 4 : 8.967548370361328 step5:split_time_score Wed Nov 26 02:31:07 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 : ['28903442'] 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 : [('28903442',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28903442) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1396188661: {'path': 'temp/1764120658_3227219_1396188661_173cfe92b95aadee1fa852cf91135f38.jpg', 'extension': 'jpg'}, 1396188665: {'path': 'temp/1764120658_3227219_1396188665_3d3e24ad8b66cd26439e4ee3f1c2c853.jpg', 'extension': 'jpg'}, 1396188653: {'path': 'temp/1764120658_3227219_1396188653_51dcf3c4590f4d6689fc5012e2b53d30.jpg', 'extension': 'jpg'}, 1396188655: {'path': 'temp/1764120658_3227219_1396188655_9f7c29eaaefa697ac1647e71263064da.jpg', 'extension': 'jpg'}, 1396188657: {'path': 'temp/1764120658_3227219_1396188657_78a86ee615320be5fa5639b19396bb46.jpg', 'extension': 'jpg'}, 1396188626: {'path': 'temp/1764120658_3227219_1396188626_b43b88955dbca58f8c7d6be823103402.jpg', 'extension': 'jpg'}, 1396188632: {'path': 'temp/1764120658_3227219_1396188632_489020472f789509eaef78ec928bab9f.jpg', 'extension': 'jpg'}, 1396188634: {'path': 'temp/1764120658_3227219_1396188634_91cbf1d67b15c0df528dc28197eff19f.jpg', 'extension': 'jpg'}, 1396188636: {'path': 'temp/1764120658_3227219_1396188636_5755ef0e79298fceef739d0dc6b44259.jpg', 'extension': 'jpg'}, 1396188639: {'path': 'temp/1764120658_3227219_1396188639_8428d01b2b1dfc58fc7798b7c5a42987.jpg', 'extension': 'jpg'}, 1396188642: {'path': 'temp/1764120658_3227219_1396188642_624d2cab6abdfca4f96cfdcefde48ac3.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 = 28903442; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28903442 group by h (('02', 64),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28903442 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 (28903442) 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 (28903442) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26112025 28903442 Nombre de photos uploadées : 64 / 23040 (0%) 26112025 28903442 Nombre de photos taguées (types de déchets): 0 / 64 (0%) 26112025 28903442 Nombre de photos taguées (volume) : 0 / 64 (0%) [{'photo_id': 1396188263, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/6430fb140b0d5cdd6ca63af331559538.jpg', 'username': None, 'uploaded_at': 1764119768, 'text': 'image_26112025_02_15_14_10136.jpg'}, {'photo_id': 1396188262, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/47dd62e0e5c21ff546c26d51cf12616b.jpg', 'username': None, 'uploaded_at': 1764119768, 'text': 'image_26112025_02_15_24_10136.jpg'}, {'photo_id': 1396188261, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/6bed880bd9271ec179a4113ef4790640.jpg', 'username': None, 'uploaded_at': 1764119768, 'text': 'image_26112025_02_15_34_10135.jpg'}, {'photo_id': 1396188260, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/230d3fea2fa1f80ab60bfac481e1e4f1.jpg', 'username': None, 'uploaded_at': 1764119768, 'text': 'image_26112025_02_15_44_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ???????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002837657928466797 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28903442, '2025-11-26' ) 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-11-26' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2645256,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24878144264221191 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= 2645256 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2645256, 'dashboard_run_id': 2652636, 'mtr_portfolio_id': 28898557, 'dashboard_result_id': 17727806, '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_P28898557_26-11-2025_00_19_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28898574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28898575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28898576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28898577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28898578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28898579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28898580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28898581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28898582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28898583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28898584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28898585, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2652636, 'mtr_portfolio_id': 28899108, 'dashboard_result_id': 17727807, '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_P28899108_26-11-2025_00_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28899112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28899113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28899114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28899115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28899116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28899117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28899118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28899119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28899120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28899121, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28899122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28899123, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2652636, 'mtr_portfolio_id': 28899477, 'dashboard_result_id': 17727808, '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_P28899477_26-11-2025_00_48_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28899498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28899499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28899500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28899501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28899502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28899503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28899504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28899505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28899506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28899507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28899508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28899509, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2652636, 'mtr_portfolio_id': 28900036, 'dashboard_result_id': 17727809, '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_P28900036_26-11-2025_01_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28900057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28900058, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28900059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28900060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28900061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28900062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28900063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28900064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28900065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28900066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28900067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28900068, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2652636, 'mtr_portfolio_id': 28901576, 'dashboard_result_id': 17727810, '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_P28901576_26-11-2025_01_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28901580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28901581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28901582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28901583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28901584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28901585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28901586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28901587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28901588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28901589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28901590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28901591, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2652636, 'mtr_portfolio_id': 28902220, 'dashboard_result_id': 17727811, '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_P28902220_26-11-2025_02_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28902265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28902266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28902267, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28902268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28902269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28902270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28902271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28902272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28902273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28902274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28902275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28902276, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2652636, 'mtr_portfolio_id': 28902821, 'dashboard_result_id': 17727812, '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_P28902821_26-11-2025_02_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28902835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28902836, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28902837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28902838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28902839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28902840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28902841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28902842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28902843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28902844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28902845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28902846, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2652636, 'mtr_portfolio_id': 28903442, 'dashboard_result_id': 17727813, '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_P28903442_26-11-2025_02_28_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28903475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28903476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28903477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28903478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28903479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28903480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28903481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28903482, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28903483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28903484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28903485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28903486, '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 = 28898557 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': 4116506, 'mtr_portfolio_id': 28898557, 'created_at': datetime.datetime(2025, 11, 26, 0, 19, 1), 'result': '0.06027295964616168', 'result_long': None, 'result_double': None}] Qualite : 0.06027295964616168 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28898557 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28898557_26-11-2025_00_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28898557 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_P28898557_26-11-2025_00_19_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28898574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28898575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28898576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28898577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28898578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28898579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28898580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28898581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28898582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28898583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28898584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28898585, 'pht': 3726}}" where mtr_portfolio_id = 28898557 and dashboard_run_id = 2652636 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`=28898557 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17727806, 0.06027295964616168, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28898557_26-11-2025_00_19_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28898574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28898575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28898576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28898577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28898578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28898579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28898580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28898581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28898582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28898583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28898584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28898585, '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 = 28899108 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': 4116544, 'mtr_portfolio_id': 28899108, 'created_at': datetime.datetime(2025, 11, 26, 0, 34, 59), 'result': '0.055301916103327485', 'result_long': None, 'result_double': None}] Qualite : 0.055301916103327485 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28899108 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28899108_26-11-2025_00_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28899108 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_P28899108_26-11-2025_00_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28899112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28899113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28899114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28899115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28899116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28899117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28899118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28899119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28899120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28899121, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28899122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28899123, 'pht': 3726}}" where mtr_portfolio_id = 28899108 and dashboard_run_id = 2652636 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`=28899108 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17727807, 0.055301916103327485, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28899108_26-11-2025_00_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28899112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28899113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28899114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28899115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28899116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28899117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28899118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28899119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28899120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28899121, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28899122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28899123, '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 = 28899477 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': 4116600, 'mtr_portfolio_id': 28899477, 'created_at': datetime.datetime(2025, 11, 26, 0, 48, 56), 'result': '0.03301544691662482', 'result_long': None, 'result_double': None}] Qualite : 0.03301544691662482 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28899477 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28899477_26-11-2025_00_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28899477 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_P28899477_26-11-2025_00_48_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28899498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28899499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28899500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28899501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28899502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28899503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28899504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28899505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28899506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28899507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28899508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28899509, 'pht': 3726}}" where mtr_portfolio_id = 28899477 and dashboard_run_id = 2652636 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`=28899477 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17727808, 0.03301544691662482, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28899477_26-11-2025_00_48_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28899498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28899499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28899500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28899501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28899502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28899503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28899504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28899505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28899506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28899507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28899508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28899509, '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 = 28900036 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': 4116687, 'mtr_portfolio_id': 28900036, 'created_at': datetime.datetime(2025, 11, 26, 1, 2, 59), 'result': '0.0639703269472146', 'result_long': None, 'result_double': None}] Qualite : 0.0639703269472146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28900036 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28900036_26-11-2025_01_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28900036 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_P28900036_26-11-2025_01_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28900057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28900058, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28900059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28900060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28900061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28900062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28900063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28900064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28900065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28900066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28900067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28900068, 'pht': 3726}}" where mtr_portfolio_id = 28900036 and dashboard_run_id = 2652636 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`=28900036 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17727809, 0.0639703269472146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28900036_26-11-2025_01_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28900057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28900058, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28900059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28900060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28900061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28900062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28900063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28900064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28900065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28900066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28900067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28900068, '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 = 28901576 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': 4116878, 'mtr_portfolio_id': 28901576, 'created_at': datetime.datetime(2025, 11, 26, 1, 46, 58), 'result': '0.0547905966995528', 'result_long': None, 'result_double': None}] Qualite : 0.0547905966995528 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28901576 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28901576_26-11-2025_01_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28901576 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_P28901576_26-11-2025_01_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28901580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28901581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28901582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28901583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28901584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28901585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28901586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28901587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28901588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28901589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28901590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28901591, 'pht': 3726}}" where mtr_portfolio_id = 28901576 and dashboard_run_id = 2652636 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`=28901576 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17727810, 0.0547905966995528, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28901576_26-11-2025_01_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28901580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28901581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28901582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28901583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28901584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28901585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28901586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28901587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28901588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28901589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28901590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28901591, '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 = 28902220 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': 4116948, 'mtr_portfolio_id': 28902220, 'created_at': datetime.datetime(2025, 11, 26, 2, 2, 59), 'result': '0.053494256625833334', 'result_long': None, 'result_double': None}] Qualite : 0.053494256625833334 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28902220 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28902220_26-11-2025_02_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28902220 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_P28902220_26-11-2025_02_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28902265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28902266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28902267, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28902268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28902269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28902270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28902271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28902272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28902273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28902274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28902275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28902276, 'pht': 3726}}" where mtr_portfolio_id = 28902220 and dashboard_run_id = 2652636 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`=28902220 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17727811, 0.053494256625833334, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28902220_26-11-2025_02_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28902265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28902266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28902267, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28902268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28902269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28902270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28902271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28902272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28902273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28902274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28902275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28902276, '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 = 28902821 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': 4117046, 'mtr_portfolio_id': 28902821, 'created_at': datetime.datetime(2025, 11, 26, 2, 18, 59), 'result': '0.05122324970868854', 'result_long': None, 'result_double': None}] Qualite : 0.05122324970868854 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28902821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28902821_26-11-2025_02_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28902821 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_P28902821_26-11-2025_02_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28902835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28902836, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28902837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28902838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28902839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28902840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28902841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28902842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28902843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28902844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28902845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28902846, 'pht': 3726}}" where mtr_portfolio_id = 28902821 and dashboard_run_id = 2652636 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`=28902821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17727812, 0.05122324970868854, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28902821_26-11-2025_02_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28902835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28902836, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28902837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28902838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28902839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28902840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28902841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28902842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28902843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28902844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28902845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28902846, '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 = 28903442 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': 4117142, 'mtr_portfolio_id': 28903442, 'created_at': datetime.datetime(2025, 11, 26, 2, 30, 58), 'result': '0.05936270301892077', 'result_long': None, 'result_double': None}] Qualite : 0.05936270301892077 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28903442 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28903442_26-11-2025_02_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28903442 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_P28903442_26-11-2025_02_30_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28903475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28903476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28903477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28903478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28903479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28903480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28903481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28903482, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28903483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28903484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28903485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28903486, 'pht': 3726}}" where mtr_portfolio_id = 28903442 and dashboard_run_id = 2652636 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`=28903442 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17727813, 0.05936270301892077, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28903442_26-11-2025_02_30_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28903475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28903476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28903477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28903478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28903479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28903480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28903481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28903482, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28903483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28903484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28903485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28903486, '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 (28898557,28899108,28899477,28900036,28901576,28902220,28902821,28903442) result : ((1396152438,), (1396152781,), (1396153460,), (1396153658,), (1396153696,), (1396153728,), (1396153760,), (1396153794,), (1396154005,), (1396154007,), (1396154039,), (1396154074,), (1396154110,), (1396154143,), (1396154247,), (1396154249,), (1396154250,), (1396154252,), (1396154266,), (1396154267,), (1396154269,), (1396154272,), (1396154275,), (1396154278,), (1396154308,), (1396154310,), (1396154312,), (1396154315,), (1396154318,), (1396154319,), (1396154326,), (1396154327,), (1396154329,), (1396154331,), (1396154335,), (1396154337,), (1396154340,), (1396154457,), (1396154489,), (1396154528,), (1396154563,), (1396154603,), (1396154645,), (1396154899,), (1396154903,), (1396154907,), (1396154939,), (1396154947,), (1396154967,), (1396154972,), (1396154974,), (1396154976,), (1396154978,), (1396154979,), (1396154994,), (1396154995,), (1396154998,), (1396154999,), (1396155001,), (1396155004,), (1396155137,), (1396155172,), (1396155205,), (1396155238,), (1396155273,), (1396155472,), (1396155463,), (1396155464,), (1396155465,), (1396155466,), (1396155469,), (1396155486,), (1396155487,), (1396155489,), (1396155490,), (1396155517,), (1396155519,), (1396155521,), (1396155524,), (1396155527,), (1396155623,), (1396155655,), (1396156056,), (1396156091,), (1396156117,), (1396156119,), (1396156174,), (1396156204,), (1396156523,), (1396156536,), (1396156541,), (1396156543,), (1396156558,), (1396156559,), (1396156561,), (1396156565,), (1396156568,), (1396156571,), (1396156584,), (1396156585,), (1396156587,), (1396156588,), (1396156590,), (1396156605,), (1396156607,), (1396156609,), (1396156639,), (1396157054,), (1396157083,), (1396157115,), (1396157157,), (1396157202,), (1396157235,), (1396157382,), (1396157412,), (1396157500,), (1396157501,), (1396157502,), (1396157503,), (1396157506,), (1396157507,), (1396157715,), (1396157746,), (1396157779,), (1396157812,), (1396158214,), (1396158247,), (1396158278,), (1396158310,), (1396158329,), (1396158336,), (1396158525,), (1396158527,), (1396158528,), (1396158530,), (1396158532,), (1396158535,), (1396158538,), (1396158588,), (1396158615,), (1396158626,), (1396158628,), (1396158630,), (1396158632,), (1396158493,), (1396158517,), (1396158520,), (1396158522,), (1396158524,), (1396158575,), (1396158582,), (1396158584,), (1396158586,), (1396158587,), (1396158594,), (1396158597,), (1396158600,), (1396158603,), (1396158604,), (1396158701,), (1396158734,), (1396158765,), (1396158801,), (1396158834,), (1396159025,), (1396159060,), (1396159088,), (1396159119,), (1396159151,), (1396159371,), (1396159373,), (1396159375,), (1396159377,), (1396159380,), (1396159382,), (1396159624,), (1396159653,), (1396159704,), (1396159754,), (1396160199,), (1396160231,), (1396160264,), (1396160303,), (1396160524,), (1396160550,), (1396160551,), (1396160569,), (1396160628,), (1396160630,), (1396160632,), (1396160634,), (1396160648,), (1396160652,), (1396160655,), (1396160659,), (1396160662,), (1396160664,), (1396160898,), (1396160921,), (1396160946,), (1396161330,), (1396161358,), (1396161389,), (1396161423,), (1396161516,), (1396161547,), (1396161656,), (1396161688,), (1396161815,), (1396161816,), (1396161819,), (1396161823,), (1396161827,), (1396161847,), (1396161856,), (1396161889,), (1396161924,), (1396162430,), (1396162195,), (1396162245,), (1396162303,), (1396162337,), (1396162375,), (1396162803,), (1396162845,), (1396162879,), (1396162911,), (1396163040,), (1396163041,), (1396163043,), (1396163325,), (1396163327,), (1396163346,), (1396163368,), (1396163385,), (1396163388,), (1396163411,), (1396163420,), (1396163437,), (1396163473,), (1396163511,), (1396163545,), (1396163806,), (1396163854,), (1396163898,), (1396163937,), (1396164394,), (1396164427,), (1396164459,), (1396164490,), (1396164524,), (1396164893,), (1396164895,), (1396164897,), (1396164899,), (1396165074,), (1396165111,), (1396165136,), (1396165137,), (1396165251,), (1396165253,), (1396165254,), (1396165257,), (1396165260,), (1396165263,), (1396165267,), (1396165268,), (1396165269,), (1396165270,), (1396165280,), (1396165282,), (1396165286,), (1396165293,), (1396165298,), (1396165317,), (1396165318,), (1396165638,), (1396165670,), (1396165702,), (1396165736,), (1396165772,), (1396165805,), (1396166284,), (1396166322,), (1396166358,), (1396166366,), (1396166369,), (1396166372,), (1396166551,), (1396177862,), (1396177865,), (1396177868,), (1396177879,), (1396177880,), (1396177882,), (1396177884,), (1396177886,), (1396177897,), (1396177898,), (1396177900,), (1396178050,), (1396178133,), (1396178214,), (1396178799,), (1396178870,), (1396178886,), (1396178914,), (1396178920,), (1396178935,), (1396178944,), (1396178946,), (1396178949,), (1396178952,), (1396178970,), (1396178972,), (1396179004,), (1396179005,), (1396179006,), (1396179041,), (1396179042,), (1396179044,), (1396179046,), (1396179145,), (1396179263,), (1396179370,), (1396179497,), (1396179622,), (1396180400,), (1396180487,), (1396180615,), (1396180658,), (1396180693,), (1396180759,), (1396180910,), (1396180942,), (1396180974,), (1396181007,), (1396181244,), (1396181278,), (1396181306,), (1396181311,), (1396181315,), (1396181318,), (1396181326,), (1396181328,), (1396181330,), (1396181337,), (1396181343,), (1396181623,), (1396181871,), (1396181922,), (1396181991,), (1396182586,), (1396182367,), (1396182400,), (1396182453,), (1396182515,), (1396182827,), (1396182828,), (1396182829,), (1396182830,), (1396182833,), (1396183040,), (1396183073,), (1396183102,), (1396183110,), (1396183157,), (1396183158,), (1396183183,), (1396183188,), (1396183192,), (1396183195,), (1396183207,), (1396183208,), (1396183209,), (1396183211,), (1396183214,), (1396183254,), (1396183286,), (1396183318,), (1396183675,), (1396183714,), (1396183803,), (1396183837,), (1396183874,), (1396183896,), (1396184052,), (1396184081,), (1396184083,), (1396184085,), (1396184120,), (1396184191,), (1396184193,), (1396184195,), (1396184197,), (1396184211,), (1396184212,), (1396184237,), (1396184239,), (1396184279,), (1396184312,), (1396184345,), (1396184400,), (1396184676,), (1396185840,), (1396185866,), (1396186024,), (1396186061,), (1396186095,), (1396186124,), (1396186303,), (1396186297,), (1396186299,), (1396186301,), (1396186457,), (1396186458,), (1396186476,), (1396186477,), (1396186479,), (1396186481,), (1396186522,), (1396186561,), (1396186595,), (1396186626,), (1396186659,), (1396187013,), (1396187042,), (1396187073,), (1396187103,), (1396187260,), (1396187292,), (1396187863,), (1396187879,), (1396187881,), (1396187885,), (1396188023,), (1396188025,), (1396188027,), (1396188029,), (1396188032,), (1396188049,), (1396188050,), (1396188051,), (1396188054,), (1396188057,), (1396188059,), (1396188071,), (1396188072,), (1396188073,), (1396188079,), (1396188081,), (1396188084,), (1396188098,), (1396188100,), (1396188102,), (1396188104,), (1396188129,), (1396188130,), (1396188131,), (1396188184,), (1396188185,), (1396188187,), (1396188189,), (1396188192,), (1396188208,), (1396188209,), (1396188210,), (1396188224,), (1396188227,), (1396188229,), (1396188231,), (1396188234,), (1396188236,), (1396188266,), (1396188260,), (1396188261,), (1396188262,), (1396188263,), (1396188292,), (1396188297,), (1396188298,), (1396188317,), (1396188318,), (1396188319,), (1396188320,), (1396188322,), (1396188323,), (1396188341,), (1396188343,), (1396188345,), (1396188347,), (1396188349,), (1396188363,), (1396188394,), (1396188401,), (1396188402,), (1396188404,), (1396188424,), (1396188440,), (1396188442,), (1396188444,), (1396188446,), (1396188449,), (1396188452,), (1396188463,), (1396188464,), (1396188465,), (1396188466,), (1396188496,), (1396188503,), (1396188505,), (1396188507,), (1396188519,), (1396188521,), (1396188524,), (1396188527,), (1396188536,), (1396188541,), (1396188573,), (1396188575,), (1396188577,), (1396188579,), (1396188581,), (1396188584,), (1396188596,), (1396188597,), (1396188598,), (1396188626,), (1396188632,), (1396188634,), (1396188636,), (1396188639,), (1396188642,), (1396188653,), (1396188655,), (1396188657,), (1396188661,), (1396188665,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26112025': {'nb_upload': 64, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28903442]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1396188665, 1396188661, 1396188657, 1396188655, 1396188653, 1396188642, 1396188639, 1396188636, 1396188634, 1396188632, 1396188626] map_info['map_portfolio_photo'] : {28903442: [1396188665, 1396188661, 1396188657, 1396188655, 1396188653, 1396188642, 1396188639, 1396188636, 1396188634, 1396188632, 1396188626, 1396188598, 1396188597, 1396188596, 1396188584, 1396188581, 1396188579, 1396188577, 1396188575, 1396188573, 1396188541, 1396188536, 1396188527, 1396188524, 1396188521, 1396188519, 1396188507, 1396188505, 1396188503, 1396188496, 1396188466, 1396188465, 1396188464, 1396188463, 1396188452, 1396188449, 1396188446, 1396188444, 1396188442, 1396188440, 1396188424, 1396188404, 1396188402, 1396188401, 1396188394, 1396188363, 1396188349, 1396188347, 1396188345, 1396188343, 1396188341, 1396188323, 1396188322, 1396188320, 1396188319, 1396188318, 1396188317, 1396188298, 1396188297, 1396188292, 1396188263, 1396188262, 1396188261, 1396188260]} final : True mtd_id 4302 list_pids : [1396188665, 1396188661, 1396188657, 1396188655, 1396188653, 1396188642, 1396188639, 1396188636, 1396188634, 1396188632, 1396188626] Looping around the photos to save general results len do output : 1 /28903442Didn'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, '4117142') ('4302', '28903442', '1396188665', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188661', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188657', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188655', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188653', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188642', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188639', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188636', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188634', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188632', None, None, None, None, None, '4117142') ('4302', None, None, None, None, None, None, None, '4117142') ('4302', '28903442', '1396188626', None, None, None, None, None, '4117142') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28903442', 'None', None, None, None, None, '4117142'), ('4302', '28903442', '1396188665', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188661', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188657', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188655', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188653', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188642', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188639', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188636', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188634', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188632', None, None, None, None, None, '4117142'), ('4302', '28903442', '1396188626', None, None, None, None, None, '4117142')] time used for this insertion : 0.01599717140197754 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8890585899353027 time spend to save output : 0.016220569610595703 total time spend for step 5 : 0.9052791595458984 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 (4117142) 2.28user 2.33system 0:14.04elapsed 32%CPU (0avgtext+0avgdata 160920maxresident)k 280inputs+18376outputs (4major+76194minor)pagefaults 0swaps