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 : 4041528 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 (2679162) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2679162) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21575441 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2679162'] with mtr_portfolio_ids : ['21575441'] and first list_photo_ids : [] new path : /proc/4041528/ Name: python3 Umask: 0002 State: R (running) Tgid: 4041528 Ngid: 0 Pid: 4041528 PPid: 4041527 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4041528 NSpid: 4041528 NSpgid: 4038046 NSsid: 4038046 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98644 kB VmRSS: 98644 kB RssAnon: 59752 kB RssFile: 38892 kB RssShmem: 0 kB VmData: 865588 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 50 nonvoluntary_ctxt_switches: 99 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4041528', 'Ngid': '0', 'Pid': '4041528', 'PPid': '4041527', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4041528', 'NSpid': '4041528', 'NSpgid': '4038046', 'NSsid': '4038046', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98644 kB', 'VmRSS': '98644 kB', 'RssAnon': '59752 kB', 'RssFile': '38892 kB', 'RssShmem': '0 kB', 'VmData': '865588 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '50', 'nonvoluntary_ctxt_switches': '99'} ('datou_batch_current', '4041528', '1106840', '0', '1106840', '865588', '98644', b'', 'marlene', '2679162') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (21575441) 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 (2679162 ) ) 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 (21575441) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1346009062, 'portfolio_id': 21575441}, {'photo_id': 1346008996, 'portfolio_id': 21575441}, {'photo_id': 1346008930, 'portfolio_id': 21575441}, {'photo_id': 1346008878, 'portfolio_id': 21575441}, {'photo_id': 1346008389, 'portfolio_id': 21575441}, {'photo_id': 1346008381, 'portfolio_id': 21575441}, {'photo_id': 1346008325, 'portfolio_id': 21575441}, {'photo_id': 1346008277, 'portfolio_id': 21575441}, {'photo_id': 1346008228, 'portfolio_id': 21575441}, {'photo_id': 1346008192, 'portfolio_id': 21575441}, {'photo_id': 1346007722, 'portfolio_id': 21575441}, {'photo_id': 1346007701, 'portfolio_id': 21575441}, {'photo_id': 1346007673, 'portfolio_id': 21575441}, {'photo_id': 1346007637, 'portfolio_id': 21575441}, {'photo_id': 1346007605, 'portfolio_id': 21575441}, {'photo_id': 1346007489, 'portfolio_id': 21575441}, {'photo_id': 1346007467, 'portfolio_id': 21575441}, {'photo_id': 1346007459, 'portfolio_id': 21575441}, {'photo_id': 1346007447, 'portfolio_id': 21575441}, {'photo_id': 1346007381, 'portfolio_id': 21575441}, {'photo_id': 1346007378, 'portfolio_id': 21575441}, {'photo_id': 1346007373, 'portfolio_id': 21575441}, {'photo_id': 1346007367, 'portfolio_id': 21575441}, {'photo_id': 1346007364, 'portfolio_id': 21575441}, {'photo_id': 1346007361, 'portfolio_id': 21575441}, {'photo_id': 1346007305, 'portfolio_id': 21575441}, {'photo_id': 1346007277, 'portfolio_id': 21575441}, {'photo_id': 1346007260, 'portfolio_id': 21575441}, {'photo_id': 1346006978, 'portfolio_id': 21575441}, {'photo_id': 1346006972, 'portfolio_id': 21575441}, {'photo_id': 1346006938, 'portfolio_id': 21575441}, {'photo_id': 1346006895, 'portfolio_id': 21575441}, {'photo_id': 1346006858, 'portfolio_id': 21575441}, {'photo_id': 1346006712, 'portfolio_id': 21575441}, {'photo_id': 1346006704, 'portfolio_id': 21575441}, {'photo_id': 1346006699, 'portfolio_id': 21575441}, {'photo_id': 1346006694, 'portfolio_id': 21575441}, {'photo_id': 1346006589, 'portfolio_id': 21575441}, {'photo_id': 1346006586, 'portfolio_id': 21575441}, {'photo_id': 1346006583, 'portfolio_id': 21575441}, {'photo_id': 1346006579, 'portfolio_id': 21575441}, {'photo_id': 1346006536, 'portfolio_id': 21575441}, {'photo_id': 1346006531, 'portfolio_id': 21575441}, {'photo_id': 1346006525, 'portfolio_id': 21575441}, {'photo_id': 1346006511, 'portfolio_id': 21575441}, {'photo_id': 1346006501, 'portfolio_id': 21575441}, {'photo_id': 1346006477, 'portfolio_id': 21575441}, {'photo_id': 1346006225, 'portfolio_id': 21575441}, {'photo_id': 1346006207, 'portfolio_id': 21575441}, {'photo_id': 1346006179, 'portfolio_id': 21575441}, {'photo_id': 1346006088, 'portfolio_id': 21575441}, {'photo_id': 1346006086, 'portfolio_id': 21575441}, {'photo_id': 1346006082, 'portfolio_id': 21575441}, {'photo_id': 1346006080, 'portfolio_id': 21575441}, {'photo_id': 1346006077, 'portfolio_id': 21575441}, {'photo_id': 1346006075, 'portfolio_id': 21575441}, {'photo_id': 1346006072, 'portfolio_id': 21575441}, {'photo_id': 1346006069, 'portfolio_id': 21575441}, {'photo_id': 1346006065, 'portfolio_id': 21575441}, {'photo_id': 1346006063, 'portfolio_id': 21575441}, {'photo_id': 1346006058, 'portfolio_id': 21575441}, {'photo_id': 1346006057, 'portfolio_id': 21575441}, {'photo_id': 1346005963, 'portfolio_id': 21575441}, {'photo_id': 1346005957, 'portfolio_id': 21575441}, {'photo_id': 1346005947, 'portfolio_id': 21575441}, {'photo_id': 1346005933, 'portfolio_id': 21575441}, {'photo_id': 1346005924, 'portfolio_id': 21575441}, {'photo_id': 1346005904, 'portfolio_id': 21575441}, {'photo_id': 1346005896, 'portfolio_id': 21575441}, {'photo_id': 1346005890, 'portfolio_id': 21575441}, {'photo_id': 1346005883, 'portfolio_id': 21575441}] map_portfolio_id_photo_id: {21575441: [1346009062, 1346008996, 1346008930, 1346008878, 1346008389, 1346008381, 1346008325, 1346008277, 1346008228, 1346008192, 1346007722, 1346007701, 1346007673, 1346007637, 1346007605, 1346007489, 1346007467, 1346007459, 1346007447, 1346007381, 1346007378, 1346007373, 1346007367, 1346007364, 1346007361, 1346007305, 1346007277, 1346007260, 1346006978, 1346006972, 1346006938, 1346006895, 1346006858, 1346006712, 1346006704, 1346006699, 1346006694, 1346006589, 1346006586, 1346006583, 1346006579, 1346006536, 1346006531, 1346006525, 1346006511, 1346006501, 1346006477, 1346006225, 1346006207, 1346006179, 1346006088, 1346006086, 1346006082, 1346006080, 1346006077, 1346006075, 1346006072, 1346006069, 1346006065, 1346006063, 1346006058, 1346006057, 1346005963, 1346005957, 1346005947, 1346005933, 1346005924, 1346005904, 1346005896, 1346005890, 1346005883]} ##### 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.01605224609375 #### 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 Fri Mar 21 14:46:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21575441) 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 : 21575441 get user id for portfolio 21575441 get sub ptf for main ptf 21575441, type 3726 and hashtags ['Carton_gris', 'Teint_Dans_La_Masse', 'plastique', 'mal_croppe', 'flou', 'autre_refus', 'papier', 'environnement', 'cartonnette', 'metal', 'kraft', 'Carton_brun'] 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`=21575441 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Teint_Dans_La_Masse','plastique','mal_croppe','flou','autre_refus','papier','environnement','cartonnette','metal','kraft','Carton_brun')) 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`=21575441 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Teint_Dans_La_Masse','plastique','mal_croppe','flou','autre_refus','papier','environnement','cartonnette','metal','kraft','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21575441, 'sub_port_id': 21575442, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120692, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 34, 59)}, 'metal': {'main_port_id': 21575441, 'sub_port_id': 21575443, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120693, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 34, 59)}, 'Carton_brun': {'main_port_id': 21575441, 'sub_port_id': 21575444, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120694, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 34, 59)}, 'plastique': {'main_port_id': 21575441, 'sub_port_id': 21575445, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120695, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 34, 59)}, 'flou': {'main_port_id': 21575441, 'sub_port_id': 21575446, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120696, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 34, 59)}, 'kraft': {'main_port_id': 21575441, 'sub_port_id': 21575447, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120697, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 34, 59)}, 'mal_croppe': {'main_port_id': 21575441, 'sub_port_id': 21575448, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120698, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21575441, 'sub_port_id': 21575449, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120699, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 34, 59)}, 'environnement': {'main_port_id': 21575441, 'sub_port_id': 21575450, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120700, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 34, 59)}, 'papier': {'main_port_id': 21575441, 'sub_port_id': 21575451, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120701, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 34, 59)}, 'cartonnette': {'main_port_id': 21575441, 'sub_port_id': 21575452, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120702, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 34, 59)}, 'Carton_gris': {'main_port_id': 21575441, 'sub_port_id': 21575453, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120703, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21575442 , 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=21575441 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 (21575442) result : ((1346006602,), (1346006604,), (1346006605,), (1346006606,), (1346006607,), (1346006609,), (1346006613,), (1346006614,), (1346006615,), (1346006616,), (1346006617,), (1346006618,), (1346006657,), (1346006658,), (1346006661,), (1346006662,), (1346006677,), (1346006678,), (1346006679,), (1346006680,), (1346006681,), (1346006682,), (1346006793,), (1346006795,), (1346006796,), (1346006797,), (1346006887,), (1346006889,), (1346006891,), (1346006893,), (1346006896,), (1346006897,), (1346006909,), (1346006910,), (1346007344,), (1346007345,), (1346007346,), (1346007347,), (1346007484,), (1346007485,), (1346007625,), (1346007626,), (1346007628,), (1346007629,), (1346007630,), (1346007632,), (1346008404,), (1346008408,), (1346008409,), (1346008456,), (1346008513,), (1346008517,), (1346008523,), (1346008527,), (1346008530,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21575441) result : ((1346005883,), (1346005890,), (1346005896,), (1346005904,), (1346005924,), (1346005933,), (1346005947,), (1346005957,), (1346005963,), (1346006057,), (1346006058,), (1346006063,), (1346006065,), (1346006069,), (1346006072,), (1346006075,), (1346006077,), (1346006080,), (1346006082,), (1346006086,), (1346006088,), (1346006179,), (1346006207,), (1346006225,), (1346006477,), (1346006501,), (1346006511,), (1346006525,), (1346006531,), (1346006536,), (1346006579,), (1346006583,), (1346006586,), (1346006589,), (1346006694,), (1346006699,), (1346006704,), (1346006712,), (1346006858,), (1346006895,), (1346006938,), (1346006972,), (1346006978,), (1346007260,), (1346007277,), (1346007305,), (1346007361,), (1346007364,), (1346007367,), (1346007373,), (1346007378,), (1346007381,), (1346007447,), (1346007459,), (1346007467,), (1346007489,), (1346007605,), (1346007637,), (1346007673,), (1346007701,), (1346007722,), (1346008192,), (1346008228,), (1346008277,), (1346008325,), (1346008381,), (1346008389,), (1346008878,), (1346008930,), (1346008996,), (1346009062,)) 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 21575443 , 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=21575441 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 (21575443) result : ((1346007658,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21575441) result : ((1346005883,), (1346005890,), (1346005896,), (1346005904,), (1346005924,), (1346005933,), (1346005947,), (1346005957,), (1346005963,), (1346006057,), (1346006058,), (1346006063,), (1346006065,), (1346006069,), (1346006072,), (1346006075,), (1346006077,), (1346006080,), (1346006082,), (1346006086,), (1346006088,), (1346006179,), (1346006207,), (1346006225,), (1346006477,), (1346006501,), (1346006511,), (1346006525,), (1346006531,), (1346006536,), (1346006579,), (1346006583,), (1346006586,), (1346006589,), (1346006694,), (1346006699,), (1346006704,), (1346006712,), (1346006858,), (1346006895,), (1346006938,), (1346006972,), (1346006978,), (1346007260,), (1346007277,), (1346007305,), (1346007361,), (1346007364,), (1346007367,), (1346007373,), (1346007378,), (1346007381,), (1346007447,), (1346007459,), (1346007467,), (1346007489,), (1346007605,), (1346007637,), (1346007673,), (1346007701,), (1346007722,), (1346008192,), (1346008228,), (1346008277,), (1346008325,), (1346008381,), (1346008389,), (1346008878,), (1346008930,), (1346008996,), (1346009062,)) 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 21575444 , 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=21575441 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 (21575444) result : ((1346006632,), (1346006633,), (1346006634,), (1346006635,), (1346006916,), (1346007490,), (1346007651,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21575441) result : ((1346005883,), (1346005890,), (1346005896,), (1346005904,), (1346005924,), (1346005933,), (1346005947,), (1346005957,), (1346005963,), (1346006057,), (1346006058,), (1346006063,), (1346006065,), (1346006069,), (1346006072,), (1346006075,), (1346006077,), (1346006080,), (1346006082,), (1346006086,), (1346006088,), (1346006179,), (1346006207,), (1346006225,), (1346006477,), (1346006501,), (1346006511,), (1346006525,), (1346006531,), (1346006536,), (1346006579,), (1346006583,), (1346006586,), (1346006589,), (1346006694,), (1346006699,), (1346006704,), (1346006712,), (1346006858,), (1346006895,), (1346006938,), (1346006972,), (1346006978,), (1346007260,), (1346007277,), (1346007305,), (1346007361,), (1346007364,), (1346007367,), (1346007373,), (1346007378,), (1346007381,), (1346007447,), (1346007459,), (1346007467,), (1346007489,), (1346007605,), (1346007637,), (1346007673,), (1346007701,), (1346007722,), (1346008192,), (1346008228,), (1346008277,), (1346008325,), (1346008381,), (1346008389,), (1346008878,), (1346008930,), (1346008996,), (1346009062,)) 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 21575445 , 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=21575441 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 (21575445) result : ((1346006644,), (1346006645,), (1346006683,), (1346006684,), (1346006685,), (1346008622,), (1346008626,), (1346008631,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21575441) result : ((1346005883,), (1346005890,), (1346005896,), (1346005904,), (1346005924,), (1346005933,), (1346005947,), (1346005957,), (1346005963,), (1346006057,), (1346006058,), (1346006063,), (1346006065,), (1346006069,), (1346006072,), (1346006075,), (1346006077,), (1346006080,), (1346006082,), (1346006086,), (1346006088,), (1346006179,), (1346006207,), (1346006225,), (1346006477,), (1346006501,), (1346006511,), (1346006525,), (1346006531,), (1346006536,), (1346006579,), (1346006583,), (1346006586,), (1346006589,), (1346006694,), (1346006699,), (1346006704,), (1346006712,), (1346006858,), (1346006895,), (1346006938,), (1346006972,), (1346006978,), (1346007260,), (1346007277,), (1346007305,), (1346007361,), (1346007364,), (1346007367,), (1346007373,), (1346007378,), (1346007381,), (1346007447,), (1346007459,), (1346007467,), (1346007489,), (1346007605,), (1346007637,), (1346007673,), (1346007701,), (1346007722,), (1346008192,), (1346008228,), (1346008277,), (1346008325,), (1346008381,), (1346008389,), (1346008878,), (1346008930,), (1346008996,), (1346009062,)) 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 21575446 , 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=21575441 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 (21575446) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21575441) result : ((1346005883,), (1346005890,), (1346005896,), (1346005904,), (1346005924,), (1346005933,), (1346005947,), (1346005957,), (1346005963,), (1346006057,), (1346006058,), (1346006063,), (1346006065,), (1346006069,), (1346006072,), (1346006075,), (1346006077,), (1346006080,), (1346006082,), (1346006086,), (1346006088,), (1346006179,), (1346006207,), (1346006225,), (1346006477,), (1346006501,), (1346006511,), (1346006525,), (1346006531,), (1346006536,), (1346006579,), (1346006583,), (1346006586,), (1346006589,), (1346006694,), (1346006699,), (1346006704,), (1346006712,), (1346006858,), (1346006895,), (1346006938,), (1346006972,), (1346006978,), (1346007260,), (1346007277,), (1346007305,), (1346007361,), (1346007364,), (1346007367,), (1346007373,), (1346007378,), (1346007381,), (1346007447,), (1346007459,), (1346007467,), (1346007489,), (1346007605,), (1346007637,), (1346007673,), (1346007701,), (1346007722,), (1346008192,), (1346008228,), (1346008277,), (1346008325,), (1346008381,), (1346008389,), (1346008878,), (1346008930,), (1346008996,), (1346009062,)) 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 21575447 , 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=21575441 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 (21575447) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21575441) result : ((1346005883,), (1346005890,), (1346005896,), (1346005904,), (1346005924,), (1346005933,), (1346005947,), (1346005957,), (1346005963,), (1346006057,), (1346006058,), (1346006063,), (1346006065,), (1346006069,), (1346006072,), (1346006075,), (1346006077,), (1346006080,), (1346006082,), (1346006086,), (1346006088,), (1346006179,), (1346006207,), (1346006225,), (1346006477,), (1346006501,), (1346006511,), (1346006525,), (1346006531,), (1346006536,), (1346006579,), (1346006583,), (1346006586,), (1346006589,), (1346006694,), (1346006699,), (1346006704,), (1346006712,), (1346006858,), (1346006895,), (1346006938,), (1346006972,), (1346006978,), (1346007260,), (1346007277,), (1346007305,), (1346007361,), (1346007364,), (1346007367,), (1346007373,), (1346007378,), (1346007381,), (1346007447,), (1346007459,), (1346007467,), (1346007489,), (1346007605,), (1346007637,), (1346007673,), (1346007701,), (1346007722,), (1346008192,), (1346008228,), (1346008277,), (1346008325,), (1346008381,), (1346008389,), (1346008878,), (1346008930,), (1346008996,), (1346009062,)) 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 21575448 , 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=21575441 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 (21575448) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21575441) result : ((1346005883,), (1346005890,), (1346005896,), (1346005904,), (1346005924,), (1346005933,), (1346005947,), (1346005957,), (1346005963,), (1346006057,), (1346006058,), (1346006063,), (1346006065,), (1346006069,), (1346006072,), (1346006075,), (1346006077,), (1346006080,), (1346006082,), (1346006086,), (1346006088,), (1346006179,), (1346006207,), (1346006225,), (1346006477,), (1346006501,), (1346006511,), (1346006525,), (1346006531,), (1346006536,), (1346006579,), (1346006583,), (1346006586,), (1346006589,), (1346006694,), (1346006699,), (1346006704,), (1346006712,), (1346006858,), (1346006895,), (1346006938,), (1346006972,), (1346006978,), (1346007260,), (1346007277,), (1346007305,), (1346007361,), (1346007364,), (1346007367,), (1346007373,), (1346007378,), (1346007381,), (1346007447,), (1346007459,), (1346007467,), (1346007489,), (1346007605,), (1346007637,), (1346007673,), (1346007701,), (1346007722,), (1346008192,), (1346008228,), (1346008277,), (1346008325,), (1346008381,), (1346008389,), (1346008878,), (1346008930,), (1346008996,), (1346009062,)) 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 21575449 , 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=21575441 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 (21575449) result : ((1346006595,), (1346006596,), (1346006646,), (1346006669,), (1346006670,), (1346006671,), (1346006673,), (1346006674,), (1346006863,), (1346006865,), (1346006867,), (1346006869,), (1346006871,), (1346006902,), (1346007608,), (1346008451,), (1346008464,), (1346008470,), (1346008474,), (1346008479,), (1346008482,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21575441) result : ((1346005883,), (1346005890,), (1346005896,), (1346005904,), (1346005924,), (1346005933,), (1346005947,), (1346005957,), (1346005963,), (1346006057,), (1346006058,), (1346006063,), (1346006065,), (1346006069,), (1346006072,), (1346006075,), (1346006077,), (1346006080,), (1346006082,), (1346006086,), (1346006088,), (1346006179,), (1346006207,), (1346006225,), (1346006477,), (1346006501,), (1346006511,), (1346006525,), (1346006531,), (1346006536,), (1346006579,), (1346006583,), (1346006586,), (1346006589,), (1346006694,), (1346006699,), (1346006704,), (1346006712,), (1346006858,), (1346006895,), (1346006938,), (1346006972,), (1346006978,), (1346007260,), (1346007277,), (1346007305,), (1346007361,), (1346007364,), (1346007367,), (1346007373,), (1346007378,), (1346007381,), (1346007447,), (1346007459,), (1346007467,), (1346007489,), (1346007605,), (1346007637,), (1346007673,), (1346007701,), (1346007722,), (1346008192,), (1346008228,), (1346008277,), (1346008325,), (1346008381,), (1346008389,), (1346008878,), (1346008930,), (1346008996,), (1346009062,)) 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 21575450 , 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=21575441 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 (21575450) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21575441) result : ((1346005883,), (1346005890,), (1346005896,), (1346005904,), (1346005924,), (1346005933,), (1346005947,), (1346005957,), (1346005963,), (1346006057,), (1346006058,), (1346006063,), (1346006065,), (1346006069,), (1346006072,), (1346006075,), (1346006077,), (1346006080,), (1346006082,), (1346006086,), (1346006088,), (1346006179,), (1346006207,), (1346006225,), (1346006477,), (1346006501,), (1346006511,), (1346006525,), (1346006531,), (1346006536,), (1346006579,), (1346006583,), (1346006586,), (1346006589,), (1346006694,), (1346006699,), (1346006704,), (1346006712,), (1346006858,), (1346006895,), (1346006938,), (1346006972,), (1346006978,), (1346007260,), (1346007277,), (1346007305,), (1346007361,), (1346007364,), (1346007367,), (1346007373,), (1346007378,), (1346007381,), (1346007447,), (1346007459,), (1346007467,), (1346007489,), (1346007605,), (1346007637,), (1346007673,), (1346007701,), (1346007722,), (1346008192,), (1346008228,), (1346008277,), (1346008325,), (1346008381,), (1346008389,), (1346008878,), (1346008930,), (1346008996,), (1346009062,)) 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 21575451 , 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=21575441 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 (21575451) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21575441) result : ((1346005883,), (1346005890,), (1346005896,), (1346005904,), (1346005924,), (1346005933,), (1346005947,), (1346005957,), (1346005963,), (1346006057,), (1346006058,), (1346006063,), (1346006065,), (1346006069,), (1346006072,), (1346006075,), (1346006077,), (1346006080,), (1346006082,), (1346006086,), (1346006088,), (1346006179,), (1346006207,), (1346006225,), (1346006477,), (1346006501,), (1346006511,), (1346006525,), (1346006531,), (1346006536,), (1346006579,), (1346006583,), (1346006586,), (1346006589,), (1346006694,), (1346006699,), (1346006704,), (1346006712,), (1346006858,), (1346006895,), (1346006938,), (1346006972,), (1346006978,), (1346007260,), (1346007277,), (1346007305,), (1346007361,), (1346007364,), (1346007367,), (1346007373,), (1346007378,), (1346007381,), (1346007447,), (1346007459,), (1346007467,), (1346007489,), (1346007605,), (1346007637,), (1346007673,), (1346007701,), (1346007722,), (1346008192,), (1346008228,), (1346008277,), (1346008325,), (1346008381,), (1346008389,), (1346008878,), (1346008930,), (1346008996,), (1346009062,)) 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 21575452 , 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=21575441 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 (21575452) result : ((1346006627,), (1346006628,), (1346006629,), (1346006630,), (1346006799,), (1346006914,), (1346007486,), (1346008583,), (1346008594,), (1346008596,), (1346008601,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21575441) result : ((1346005883,), (1346005890,), (1346005896,), (1346005904,), (1346005924,), (1346005933,), (1346005947,), (1346005957,), (1346005963,), (1346006057,), (1346006058,), (1346006063,), (1346006065,), (1346006069,), (1346006072,), (1346006075,), (1346006077,), (1346006080,), (1346006082,), (1346006086,), (1346006088,), (1346006179,), (1346006207,), (1346006225,), (1346006477,), (1346006501,), (1346006511,), (1346006525,), (1346006531,), (1346006536,), (1346006579,), (1346006583,), (1346006586,), (1346006589,), (1346006694,), (1346006699,), (1346006704,), (1346006712,), (1346006858,), (1346006895,), (1346006938,), (1346006972,), (1346006978,), (1346007260,), (1346007277,), (1346007305,), (1346007361,), (1346007364,), (1346007367,), (1346007373,), (1346007378,), (1346007381,), (1346007447,), (1346007459,), (1346007467,), (1346007489,), (1346007605,), (1346007637,), (1346007673,), (1346007701,), (1346007722,), (1346008192,), (1346008228,), (1346008277,), (1346008325,), (1346008381,), (1346008389,), (1346008878,), (1346008930,), (1346008996,), (1346009062,)) 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 21575453 , 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=21575441 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 (21575453) result : ((1346006621,), (1346006622,), (1346006663,), (1346006908,), (1346007351,), (1346007642,), (1346007644,), (1346007646,), (1346008544,), (1346008550,), (1346008554,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21575441) result : ((1346005883,), (1346005890,), (1346005896,), (1346005904,), (1346005924,), (1346005933,), (1346005947,), (1346005957,), (1346005963,), (1346006057,), (1346006058,), (1346006063,), (1346006065,), (1346006069,), (1346006072,), (1346006075,), (1346006077,), (1346006080,), (1346006082,), (1346006086,), (1346006088,), (1346006179,), (1346006207,), (1346006225,), (1346006477,), (1346006501,), (1346006511,), (1346006525,), (1346006531,), (1346006536,), (1346006579,), (1346006583,), (1346006586,), (1346006589,), (1346006694,), (1346006699,), (1346006704,), (1346006712,), (1346006858,), (1346006895,), (1346006938,), (1346006972,), (1346006978,), (1346007260,), (1346007277,), (1346007305,), (1346007361,), (1346007364,), (1346007367,), (1346007373,), (1346007378,), (1346007381,), (1346007447,), (1346007459,), (1346007467,), (1346007489,), (1346007605,), (1346007637,), (1346007673,), (1346007701,), (1346007722,), (1346008192,), (1346008228,), (1346008277,), (1346008325,), (1346008381,), (1346008389,), (1346008878,), (1346008930,), (1346008996,), (1346009062,)) 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`=21575441 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Teint_Dans_La_Masse','plastique','mal_croppe','flou','autre_refus','papier','environnement','cartonnette','metal','kraft','Carton_brun')) 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`=21575441 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Teint_Dans_La_Masse','plastique','mal_croppe','flou','autre_refus','papier','environnement','cartonnette','metal','kraft','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21575441, 'sub_port_id': 21575470, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120720, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 35)}, 'metal': {'main_port_id': 21575441, 'sub_port_id': 21575471, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120721, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 35)}, 'Carton_brun': {'main_port_id': 21575441, 'sub_port_id': 21575472, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120722, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 35)}, 'plastique': {'main_port_id': 21575441, 'sub_port_id': 21575473, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120723, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 35)}, 'flou': {'main_port_id': 21575441, 'sub_port_id': 21575474, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120724, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 35)}, 'kraft': {'main_port_id': 21575441, 'sub_port_id': 21575475, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120725, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 35)}, 'mal_croppe': {'main_port_id': 21575441, 'sub_port_id': 21575476, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120726, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 21575441, 'sub_port_id': 21575477, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120727, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 35)}, 'environnement': {'main_port_id': 21575441, 'sub_port_id': 21575478, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120728, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 35)}, 'papier': {'main_port_id': 21575441, 'sub_port_id': 21575479, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120729, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 35)}, 'cartonnette': {'main_port_id': 21575441, 'sub_port_id': 21575480, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120730, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 35)}, 'Carton_gris': {'main_port_id': 21575441, 'sub_port_id': 21575481, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14120731, 'last_updated_at': datetime.datetime(2025, 3, 21, 14, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 14, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 14, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21575470,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21575442 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21575471,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21575443 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21575472,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21575444 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21575473,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21575445 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21575474,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21575446 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21575475,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21575447 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21575476,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21575448 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21575477,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21575449 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21575478,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21575450 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21575479,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21575451 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21575480,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21575452 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21575481,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21575453 lien utilise dans velours : https://www.fotonower.com/velours/21575470,21575471,21575472,21575473,21575474,21575475,21575476,21575477,21575478,21575479,21575480,21575481?tags=autre_refus,metal,Carton_brun,plastique,flou,kraft,mal_croppe,Teint_Dans_La_Masse,environnement,papier,cartonnette,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21575441]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1346009062, 1346008996, 1346008930, 1346008878, 1346008389, 1346008381, 1346008325, 1346008277, 1346008228, 1346008192] map_info['map_portfolio_photo'] : {21575441: [1346009062, 1346008996, 1346008930, 1346008878, 1346008389, 1346008381, 1346008325, 1346008277, 1346008228, 1346008192, 1346007722, 1346007701, 1346007673, 1346007637, 1346007605, 1346007489, 1346007467, 1346007459, 1346007447, 1346007381, 1346007378, 1346007373, 1346007367, 1346007364, 1346007361, 1346007305, 1346007277, 1346007260, 1346006978, 1346006972, 1346006938, 1346006895, 1346006858, 1346006712, 1346006704, 1346006699, 1346006694, 1346006589, 1346006586, 1346006583, 1346006579, 1346006536, 1346006531, 1346006525, 1346006511, 1346006501, 1346006477, 1346006225, 1346006207, 1346006179, 1346006088, 1346006086, 1346006082, 1346006080, 1346006077, 1346006075, 1346006072, 1346006069, 1346006065, 1346006063, 1346006058, 1346006057, 1346005963, 1346005957, 1346005947, 1346005933, 1346005924, 1346005904, 1346005896, 1346005890, 1346005883]} final : False mtd_id 4302 list_pids : [1346009062, 1346008996, 1346008930, 1346008878, 1346008389, 1346008381, 1346008325, 1346008277, 1346008228, 1346008192] Looping around the photos to save general results len do output : 1 /21575441. 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, '2679162') ('4302', '21575441', '1346009062', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008996', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008930', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008878', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008389', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008381', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008325', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008277', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008228', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008192', None, None, None, None, None, '2679162') 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', None, '21575441', "{'autre_refus': 21575442, 'metal': 21575443, 'Carton_brun': 21575444, 'plastique': 21575445, 'flou': 21575446, 'kraft': 21575447, 'mal_croppe': 21575448, 'Teint_Dans_La_Masse': 21575449, 'environnement': 21575450, 'papier': 21575451, 'cartonnette': 21575452, 'Carton_gris': 21575453}", None, None, None, None, '2679162'), ('4302', '21575441', '1346009062', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008996', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008930', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008878', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008389', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008381', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008325', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008277', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008228', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008192', None, None, None, None, None, '2679162')] time used for this insertion : 0.015417337417602539 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.654425621032715 time spend to save output : 0.015764951705932617 total time spend for step 1 : 2.6701905727386475 step2:final Fri Mar 21 14:47:01 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 (21575441) 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 21575441 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1346005904,1346005896,1346005890,1346005883,1346005963,1346005957,1346005947,1346005933,1346005924,1346006088,1346006086,1346006082,1346006080,1346006075,1346006077,1346006072,1346006069,1346006065,1346006063,1346006057,1346006058,1346006225,1346006207,1346006179,1346006536,1346006531,1346006525,1346006511,1346006501,1346006477,1346006589,1346006586,1346006583,1346006579,1346006712,1346006704,1346006699,1346006694,1346006978,1346006972,1346006938,1346006895,1346006858,1346007305,1346007277,1346007260,1346007381,1346007378,1346007373,1346007367,1346007364,1346007361,1346007489,1346007467,1346007459,1346007447,1346007722,1346007701,1346007673,1346007637,1346007605,1346008389,1346008381,1346008325,1346008277,1346008228,1346008192,1346009062,1346008996,1346008930,1346008878); 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([21575441]) Inside saveOutput : final : False verbose : True original output for save of step final : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ('0.07649712501824377',), 1346008389: ('0.07649712501824377',), 1346008381: ('0.07649712501824377',), 1346008325: ('0.07649712501824377',), 1346008277: ('0.07649712501824377',), 1346008228: ('0.07649712501824377',), 1346008192: ('0.07649712501824377',)} new output for save of step final : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ('0.07649712501824377',), 1346008389: ('0.07649712501824377',), 1346008381: ('0.07649712501824377',), 1346008325: ('0.07649712501824377',), 1346008277: ('0.07649712501824377',), 1346008228: ('0.07649712501824377',), 1346008192: ('0.07649712501824377',)} [1346009062, 1346008996, 1346008930, 1346008878, 1346008389, 1346008381, 1346008325, 1346008277, 1346008228, 1346008192] map_info['map_portfolio_photo'] : {21575441: [1346009062, 1346008996, 1346008930, 1346008878, 1346008389, 1346008381, 1346008325, 1346008277, 1346008228, 1346008192, 1346007722, 1346007701, 1346007673, 1346007637, 1346007605, 1346007489, 1346007467, 1346007459, 1346007447, 1346007381, 1346007378, 1346007373, 1346007367, 1346007364, 1346007361, 1346007305, 1346007277, 1346007260, 1346006978, 1346006972, 1346006938, 1346006895, 1346006858, 1346006712, 1346006704, 1346006699, 1346006694, 1346006589, 1346006586, 1346006583, 1346006579, 1346006536, 1346006531, 1346006525, 1346006511, 1346006501, 1346006477, 1346006225, 1346006207, 1346006179, 1346006088, 1346006086, 1346006082, 1346006080, 1346006077, 1346006075, 1346006072, 1346006069, 1346006065, 1346006063, 1346006058, 1346006057, 1346005963, 1346005957, 1346005947, 1346005933, 1346005924, 1346005904, 1346005896, 1346005890, 1346005883]} final : False mtd_id 4302 list_pids : [1346009062, 1346008996, 1346008930, 1346008878, 1346008389, 1346008381, 1346008325, 1346008277, 1346008228, 1346008192] Looping around the photos to save general results len do output : 10 /1346009062.Didn't retrieve data . /1346008996.Didn't retrieve data . /1346008930.Didn't retrieve data . /1346008878.Didn't retrieve data . /1346008389.Didn't retrieve data . /1346008381.Didn't retrieve data . /1346008325.Didn't retrieve data . /1346008277.Didn't retrieve data . /1346008228.Didn't retrieve data . /1346008192.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, '2679162') ('4302', '21575441', '1346009062', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008996', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008930', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008878', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008389', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008381', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008325', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008277', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008228', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008192', None, None, None, None, None, '2679162') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '21575441', '1346009062', '0.07649712501824377', None, None, None, None, '2679162'), ('4302', '21575441', '1346008996', '0.07649712501824377', None, None, None, None, '2679162'), ('4302', '21575441', '1346008930', '0.07649712501824377', None, None, None, None, '2679162'), ('4302', '21575441', '1346008878', '0.07649712501824377', None, None, None, None, '2679162'), ('4302', '21575441', '1346008389', '0.07649712501824377', None, None, None, None, '2679162'), ('4302', '21575441', '1346008381', '0.07649712501824377', None, None, None, None, '2679162'), ('4302', '21575441', '1346008325', '0.07649712501824377', None, None, None, None, '2679162'), ('4302', '21575441', '1346008277', '0.07649712501824377', None, None, None, None, '2679162'), ('4302', '21575441', '1346008228', '0.07649712501824377', None, None, None, None, '2679162'), ('4302', '21575441', '1346008192', '0.07649712501824377', None, None, None, None, '2679162')] time used for this insertion : 0.01477813720703125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07317113876342773 time spend to save output : 0.015305757522583008 total time spend for step 2 : 0.08847689628601074 step3:velours_tree Fri Mar 21 14:47:01 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 : {21575441: [{'autre_refus': 21575442, 'metal': 21575443, 'Carton_brun': 21575444, 'plastique': 21575445, 'flou': 21575446, 'kraft': 21575447, 'mal_croppe': 21575448, 'Teint_Dans_La_Masse': 21575449, 'environnement': 21575450, 'papier': 21575451, 'cartonnette': 21575452, 'Carton_gris': 21575453}]} input_args_next_step : {21575441: ()} output_args : {21575441: [{'autre_refus': 21575442, 'metal': 21575443, 'Carton_brun': 21575444, 'plastique': 21575445, 'flou': 21575446, 'kraft': 21575447, 'mal_croppe': 21575448, 'Teint_Dans_La_Masse': 21575449, 'environnement': 21575450, 'papier': 21575451, 'cartonnette': 21575452, 'Carton_gris': 21575453}]} args : 21575441 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 : ({'autre_refus': 21575442, 'metal': 21575443, 'Carton_brun': 21575444, 'plastique': 21575445, 'flou': 21575446, 'kraft': 21575447, 'mal_croppe': 21575448, 'Teint_Dans_La_Masse': 21575449, 'environnement': 21575450, 'papier': 21575451, 'cartonnette': 21575452, 'Carton_gris': 21575453},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21575441) 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([21575441]) 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.32357239723205566 time spend to save output : 4.029273986816406e-05 total time spend for step 3 : 0.32361268997192383 step4:send_mail_cod Fri Mar 21 14:47:01 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 : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ('0.07649712501824377',), 1346008389: ('0.07649712501824377',), 1346008381: ('0.07649712501824377',), 1346008325: ('0.07649712501824377',), 1346008277: ('0.07649712501824377',), 1346008228: ('0.07649712501824377',), 1346008192: ('0.07649712501824377',)} input_args_next_step : {1346009062: ()} output_args : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ('0.07649712501824377',), 1346008389: ('0.07649712501824377',), 1346008381: ('0.07649712501824377',), 1346008325: ('0.07649712501824377',), 1346008277: ('0.07649712501824377',), 1346008228: ('0.07649712501824377',), 1346008192: ('0.07649712501824377',)} args : 1346009062 depend.output_id : 0 input_args_next_step : {1346009062: ('0.07649712501824377',), 1346008996: ()} output_args : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ('0.07649712501824377',), 1346008389: ('0.07649712501824377',), 1346008381: ('0.07649712501824377',), 1346008325: ('0.07649712501824377',), 1346008277: ('0.07649712501824377',), 1346008228: ('0.07649712501824377',), 1346008192: ('0.07649712501824377',)} args : 1346008996 depend.output_id : 0 input_args_next_step : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ()} output_args : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ('0.07649712501824377',), 1346008389: ('0.07649712501824377',), 1346008381: ('0.07649712501824377',), 1346008325: ('0.07649712501824377',), 1346008277: ('0.07649712501824377',), 1346008228: ('0.07649712501824377',), 1346008192: ('0.07649712501824377',)} args : 1346008930 depend.output_id : 0 input_args_next_step : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ()} output_args : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ('0.07649712501824377',), 1346008389: ('0.07649712501824377',), 1346008381: ('0.07649712501824377',), 1346008325: ('0.07649712501824377',), 1346008277: ('0.07649712501824377',), 1346008228: ('0.07649712501824377',), 1346008192: ('0.07649712501824377',)} args : 1346008878 depend.output_id : 0 input_args_next_step : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ('0.07649712501824377',), 1346008389: ()} output_args : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ('0.07649712501824377',), 1346008389: ('0.07649712501824377',), 1346008381: ('0.07649712501824377',), 1346008325: ('0.07649712501824377',), 1346008277: ('0.07649712501824377',), 1346008228: ('0.07649712501824377',), 1346008192: ('0.07649712501824377',)} args : 1346008389 depend.output_id : 0 input_args_next_step : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ('0.07649712501824377',), 1346008389: ('0.07649712501824377',), 1346008381: ()} output_args : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ('0.07649712501824377',), 1346008389: ('0.07649712501824377',), 1346008381: ('0.07649712501824377',), 1346008325: ('0.07649712501824377',), 1346008277: ('0.07649712501824377',), 1346008228: ('0.07649712501824377',), 1346008192: ('0.07649712501824377',)} args : 1346008381 depend.output_id : 0 input_args_next_step : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ('0.07649712501824377',), 1346008389: ('0.07649712501824377',), 1346008381: ('0.07649712501824377',), 1346008325: ()} output_args : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ('0.07649712501824377',), 1346008389: ('0.07649712501824377',), 1346008381: ('0.07649712501824377',), 1346008325: ('0.07649712501824377',), 1346008277: ('0.07649712501824377',), 1346008228: ('0.07649712501824377',), 1346008192: ('0.07649712501824377',)} args : 1346008325 depend.output_id : 0 input_args_next_step : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ('0.07649712501824377',), 1346008389: ('0.07649712501824377',), 1346008381: ('0.07649712501824377',), 1346008325: ('0.07649712501824377',), 1346008277: ()} output_args : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ('0.07649712501824377',), 1346008389: ('0.07649712501824377',), 1346008381: ('0.07649712501824377',), 1346008325: ('0.07649712501824377',), 1346008277: ('0.07649712501824377',), 1346008228: ('0.07649712501824377',), 1346008192: ('0.07649712501824377',)} args : 1346008277 depend.output_id : 0 input_args_next_step : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ('0.07649712501824377',), 1346008389: ('0.07649712501824377',), 1346008381: ('0.07649712501824377',), 1346008325: ('0.07649712501824377',), 1346008277: ('0.07649712501824377',), 1346008228: ()} output_args : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ('0.07649712501824377',), 1346008389: ('0.07649712501824377',), 1346008381: ('0.07649712501824377',), 1346008325: ('0.07649712501824377',), 1346008277: ('0.07649712501824377',), 1346008228: ('0.07649712501824377',), 1346008192: ('0.07649712501824377',)} args : 1346008228 depend.output_id : 0 input_args_next_step : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ('0.07649712501824377',), 1346008389: ('0.07649712501824377',), 1346008381: ('0.07649712501824377',), 1346008325: ('0.07649712501824377',), 1346008277: ('0.07649712501824377',), 1346008228: ('0.07649712501824377',), 1346008192: ()} output_args : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ('0.07649712501824377',), 1346008389: ('0.07649712501824377',), 1346008381: ('0.07649712501824377',), 1346008325: ('0.07649712501824377',), 1346008277: ('0.07649712501824377',), 1346008228: ('0.07649712501824377',), 1346008192: ('0.07649712501824377',)} args : 1346008192 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 : {21575441: [{'autre_refus': 21575442, 'metal': 21575443, 'Carton_brun': 21575444, 'plastique': 21575445, 'flou': 21575446, 'kraft': 21575447, 'mal_croppe': 21575448, 'Teint_Dans_La_Masse': 21575449, 'environnement': 21575450, 'papier': 21575451, 'cartonnette': 21575452, 'Carton_gris': 21575453}]} input_args_next_step : {1346009062: ('0.07649712501824377',), 1346008996: ('0.07649712501824377',), 1346008930: ('0.07649712501824377',), 1346008878: ('0.07649712501824377',), 1346008389: ('0.07649712501824377',), 1346008381: ('0.07649712501824377',), 1346008325: ('0.07649712501824377',), 1346008277: ('0.07649712501824377',), 1346008228: ('0.07649712501824377',), 1346008192: ('0.07649712501824377',), 21575441: ()} output_args : {21575441: [{'autre_refus': 21575442, 'metal': 21575443, 'Carton_brun': 21575444, 'plastique': 21575445, 'flou': 21575446, 'kraft': 21575447, 'mal_croppe': 21575448, 'Teint_Dans_La_Masse': 21575449, 'environnement': 21575450, 'papier': 21575451, 'cartonnette': 21575452, 'Carton_gris': 21575453}]} args : 21575441 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 :11, first value : ('0.07649712501824377',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21575441) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1346009062,1346008996,1346008930,1346008878,1346008389,1346008381,1346008325,1346008277,1346008228,1346008192) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1346008192 begin to download photo : 1346008325 begin to download photo : 1346008878 begin to download photo : 1346009062 download finish for photo 1346009062 download finish for photo 1346008192 begin to download photo : 1346008228 download finish for photo 1346008878 begin to download photo : 1346008930 download finish for photo 1346008325 begin to download photo : 1346008381 download finish for photo 1346008930 begin to download photo : 1346008996 download finish for photo 1346008381 begin to download photo : 1346008389 download finish for photo 1346008228 begin to download photo : 1346008277 download finish for photo 1346008996 download finish for photo 1346008277 download finish for photo 1346008389 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 : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P21575441_21-03-2025_14_47_01.pdf 21575442 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21575442 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346007626: '1742564533_838773_1346006972_a837be22220a181f6ef72ebbfc122426_rle_crop_3722031099_0.png', 1346006891: '1742564307_1259737_1346006525_6f0f0dc7bb4c06883db193dcabf76ee4_rle_crop_3722017273_0.png', 1346006893: '1742564307_1259737_1346006511_bb8f2aba0ba24be51b550da1ad3a0895_rle_crop_3722017554_0.png', 1346006896: '1742564307_1259737_1346006501_9ca34688786f848884b11f25db9b5c82_rle_crop_3722017562_0.png', 1346006897: '1742564307_1259737_1346006477_fa491d53aa718d15bc19537d79d18760_rle_crop_3722017574_0.png', 1346006909: '1742564313_836509_1346006536_df12e72f0aeee6722893aed34692c009_rle_crop_3722018146_0.png', 1346006910: '1742564313_836509_1346006179_3237367087c583d04a385c05df3568f8_rle_crop_3722018423_0.png', 1346007344: '1742564414_837736_1346006704_b19602d13990ec3cf51a17a46d1906bd_rle_crop_3722025273_0.png', 1346007345: '1742564414_837736_1346006704_b19602d13990ec3cf51a17a46d1906bd_rle_crop_3722025275_0.png', 1346007346: '1742564414_837736_1346006699_7e24b30e3aeb0b7728ee116061661549_rle_crop_3722025297_0.png', 1346007347: '1742564414_837736_1346006694_d11f741ead70054023e9cd4044018bb2_rle_crop_3722025301_0.png', 1346007484: '1742564511_838574_1346007277_8201c31ee9ed18ceb1e90106574119f6_rle_crop_3722030920_0.png', 1346007485: '1742564511_838574_1346007260_e8e192728606bad964fb81934cd44a99_rle_crop_3722031067_0.png', 1346007625: '1742564533_838773_1346007305_c2d608c8daa3d4d6249fb47a1444c589_rle_crop_3722031089_0.png', 1346006889: '1742564307_1259737_1346006531_75e1c94db8f4ed6b342b261a41a72bfc_rle_crop_3722016979_0.png', 1346007628: '1742564533_838773_1346006938_a23afed50d645a937a6448b80364ed35_rle_crop_3722031114_0.png', 1346007629: '1742564533_838773_1346006895_a278dd01e832b6d3821662010e5d69f6_rle_crop_3722031135_0.png', 1346007630: '1742564533_838773_1346006895_a278dd01e832b6d3821662010e5d69f6_rle_crop_3722031134_0.png', 1346007632: '1742564533_838773_1346006858_6ade9463a2a1672fbfdc7747de34e5a6_rle_crop_3722031151_0.png', 1346008404: '1742564653_839702_1346007459_c2ac33cab3c168a1b4e8c3bf9e86019b_rle_crop_3722034305_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/50bce24821ff983714064b3d961152ed_75040735.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/682cb540632f85cb64bf71716db28692_72693591.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/4c04058ea58cc5bd847f95829a591506_18000728.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/31cb2b3b55b8ccb30d2f495c4f11cafa_79346911.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/0781cd0f89132a925e6cf3db462dc6a6_37024953.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/4bb8439d762f12e36394d5ea7e06dc32_61573122.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/5d3550ad472bce2b401182ad25f14cf6_25082516.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/86cd133a50fa4e8260071cbf51b0875a_73402006.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/321eb553e3e1bb5dae6dc6abd7ddab96_34436251.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/c06e58b358615770f2ab7b93b3bdad46_4096017.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/02de7da07b16c9c5bda29650d8174b4f_54770265.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/edf43fa26688d550a335808c62c54209_56685973.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/0434a51a9947ce92ff3bf4ed2d0c375e_22870320.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/2e58516705dccfd785a845fef7bffcb4_69088028.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/1e320a8be95b94924920609e5e2aab09_35345894.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/15f6b5fa9b2cbfe861a92bc3e9742cfe_32039884.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/b9feafe94415648dc6622e9a589de972_45831966.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/618fc8e815ba8df361c0a4afb305716b_93863476.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/8e3d94dbd12ed84408c4baacce7629a4_17886456.png change filename to text .imagette215754421742564821/ imagette215754421742564821/1742564307_1259737_1346006525_6f0f0dc7bb4c06883db193dcabf76ee4_rle_crop_3722017273_0.png.png imagette215754421742564821/1742564533_838773_1346006938_a23afed50d645a937a6448b80364ed35_rle_crop_3722031114_0.png.png imagette215754421742564821/1742564307_1259737_1346006531_75e1c94db8f4ed6b342b261a41a72bfc_rle_crop_3722016979_0.png.png imagette215754421742564821/1742564307_1259737_1346006477_fa491d53aa718d15bc19537d79d18760_rle_crop_3722017574_0.png.png imagette215754421742564821/1742564313_836509_1346006536_df12e72f0aeee6722893aed34692c009_rle_crop_3722018146_0.png.png imagette215754421742564821/1742564414_837736_1346006699_7e24b30e3aeb0b7728ee116061661549_rle_crop_3722025297_0.png.png imagette215754421742564821/1742564511_838574_1346007277_8201c31ee9ed18ceb1e90106574119f6_rle_crop_3722030920_0.png.png imagette215754421742564821/1742564533_838773_1346006895_a278dd01e832b6d3821662010e5d69f6_rle_crop_3722031135_0.png.png imagette215754421742564821/1742564414_837736_1346006704_b19602d13990ec3cf51a17a46d1906bd_rle_crop_3722025275_0.png.png imagette215754421742564821/1742564511_838574_1346007260_e8e192728606bad964fb81934cd44a99_rle_crop_3722031067_0.png.png imagette215754421742564821/1742564653_839702_1346007459_c2ac33cab3c168a1b4e8c3bf9e86019b_rle_crop_3722034305_0.png.png imagette215754421742564821/1742564414_837736_1346006694_d11f741ead70054023e9cd4044018bb2_rle_crop_3722025301_0.png.png imagette215754421742564821/1742564533_838773_1346006895_a278dd01e832b6d3821662010e5d69f6_rle_crop_3722031134_0.png.png imagette215754421742564821/1742564307_1259737_1346006511_bb8f2aba0ba24be51b550da1ad3a0895_rle_crop_3722017554_0.png.png imagette215754421742564821/1742564313_836509_1346006179_3237367087c583d04a385c05df3568f8_rle_crop_3722018423_0.png.png imagette215754421742564821/1742564307_1259737_1346006501_9ca34688786f848884b11f25db9b5c82_rle_crop_3722017562_0.png.png imagette215754421742564821/1742564533_838773_1346006972_a837be22220a181f6ef72ebbfc122426_rle_crop_3722031099_0.png.png imagette215754421742564821/1742564533_838773_1346006858_6ade9463a2a1672fbfdc7747de34e5a6_rle_crop_3722031151_0.png.png imagette215754421742564821/1742564533_838773_1346007305_c2d608c8daa3d4d6249fb47a1444c589_rle_crop_3722031089_0.png.png imagette215754421742564821/1742564414_837736_1346006704_b19602d13990ec3cf51a17a46d1906bd_rle_crop_3722025273_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/e271903de0cc267102de3483a2a20a16_50831920.png imagette215754421742564821 21575443 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21575443 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346007658: '1742564533_838773_1346007305_c2d608c8daa3d4d6249fb47a1444c589_rle_crop_3722031086_0.png'} change filename to text .imagette215754431742564823/ imagette215754431742564823/1742564533_838773_1346007305_c2d608c8daa3d4d6249fb47a1444c589_rle_crop_3722031086_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/51f9922fb9fc4c7ba7b0234b8505e80a_46800623.png imagette215754431742564823 21575445 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21575445 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346006644: '1742564189_1258358_1346006082_fb0c7a7567be3eb143fc21d1799f2070_rle_crop_3722006935_0.png', 1346006645: '1742564189_1258358_1346006080_b3d083d4210c6d9d709fd0c3a934d519_rle_crop_3722006948_0.png', 1346006683: '1742564212_835589_1346006088_fcb452c5c1d71800213d3d41d0f177e4_rle_crop_3722008642_0.png', 1346006684: '1742564212_835589_1346006086_296d7e8ecc41aa1a86cacca2a894e4bb_rle_crop_3722008654_0.png', 1346006685: '1742564212_835589_1346005947_d38c62d33c9f1fa55bd260869bd9d302_rle_crop_3722009254_0.png', 1346008622: '1742564666_1264083_1346007373_1048f3b8441a8ed51770c1c22f029e74_rle_crop_3722034379_0.png', 1346008626: '1742564666_1264083_1346007373_1048f3b8441a8ed51770c1c22f029e74_rle_crop_3722034380_0.png', 1346008631: '1742564666_1264083_1346007361_abc0c74e4bc9e0a9dde755851db93eec_rle_crop_3722034444_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/a9f4adab91fa5132135a2b4549c30897_4470398.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/a9f4adab91fa5132135a2b4549c30897_67184877.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/1c33a75ae19e1f58634332472d418193_46026393.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/1c33a75ae19e1f58634332472d418193_85414701.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/f60ff0b0544f2ea50f59b8041fbf3485_73992401.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/36b1b9e1ad9ba553b0cfa56797a3bb09_37937463.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/b79eaa18badd68615663f93d9026a5e8_65408680.png change filename to text .imagette215754451742564823/ imagette215754451742564823/1742564212_835589_1346005947_d38c62d33c9f1fa55bd260869bd9d302_rle_crop_3722009254_0.png.png imagette215754451742564823/1742564666_1264083_1346007373_1048f3b8441a8ed51770c1c22f029e74_rle_crop_3722034379_0.png.png imagette215754451742564823/1742564212_835589_1346006088_fcb452c5c1d71800213d3d41d0f177e4_rle_crop_3722008642_0.png.png imagette215754451742564823/1742564212_835589_1346006086_296d7e8ecc41aa1a86cacca2a894e4bb_rle_crop_3722008654_0.png.png imagette215754451742564823/1742564189_1258358_1346006082_fb0c7a7567be3eb143fc21d1799f2070_rle_crop_3722006935_0.png.png imagette215754451742564823/1742564189_1258358_1346006080_b3d083d4210c6d9d709fd0c3a934d519_rle_crop_3722006948_0.png.png imagette215754451742564823/1742564666_1264083_1346007373_1048f3b8441a8ed51770c1c22f029e74_rle_crop_3722034380_0.png.png imagette215754451742564823/1742564666_1264083_1346007361_abc0c74e4bc9e0a9dde755851db93eec_rle_crop_3722034444_0.png.png imagette215754461742564824/ imagette215754471742564824/ imagette215754481742564824/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/bf3492a1eef106b887cff97cc7549f93_83875175.png imagette215754451742564823 21575446 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21575446 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette215754461742564824 21575447 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21575447 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette215754471742564824 21575448 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21575448 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette215754481742564824 21575452 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21575452 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346006627: '1742564189_1258358_1346006077_7f81a0a631fcc16c220cda9f9ae8cd3f_rle_crop_3722006958_0.png', 1346006628: '1742564189_1258358_1346006075_1129fd87c502be2edf5f7f14f2052eaf_rle_crop_3722006981_0.png', 1346006629: '1742564189_1258358_1346006058_86d9e04c91a791f08c81384e1f65f1e5_rle_crop_3722007501_0.png', 1346006630: '1742564189_1258358_1346006057_73d70c3b03a8ba5dae5804e609aef6ac_rle_crop_3722007506_0.png', 1346006799: '1742564292_836347_1346006586_23b9ecb19af7f1beba832538a04d3e34_rle_crop_3722016865_0.png', 1346006914: '1742564307_1259737_1346006525_6f0f0dc7bb4c06883db193dcabf76ee4_rle_crop_3722017270_0.png', 1346007486: '1742564511_838574_1346007260_e8e192728606bad964fb81934cd44a99_rle_crop_3722031065_0.png', 1346008583: '1742564666_1264083_1346007489_09a9167fb0aaaa01fcce3729523aea10_rle_crop_3722034357_0.png', 1346008594: '1742564666_1264083_1346007373_1048f3b8441a8ed51770c1c22f029e74_rle_crop_3722034381_0.png', 1346008596: '1742564666_1264083_1346007367_6bac9bcafd0565fc74070291a639ba64_rle_crop_3722034394_0.png', 1346008601: '1742564666_1264083_1346007364_43ec639a09d152c919f14406ed1c2b00_rle_crop_3722034406_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/1be510f35b82ec921dae90588a5b150c_92354043.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/1be510f35b82ec921dae90588a5b150c_67612689.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/1c6b8117d1d42803b84d8444699f837c_3368360.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/1c6b8117d1d42803b84d8444699f837c_1828455.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/f7673ffddad02d6dba2f2c13dc3d28ba_225976.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/775f7c73012e386e1644ea99fd0db124_26410495.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/f088680f3c3ac21f17f10d4ccd2bee7b_11289417.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/834851dfe6b8a14588fe933b9716ed30_30179804.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/35ad38223d99bc1adc14eef5f140e9aa_32401626.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/d567f5ac581290193e0b9a18ef14d398_22645958.png change filename to text .imagette215754521742564824/ imagette215754521742564824/1742564666_1264083_1346007489_09a9167fb0aaaa01fcce3729523aea10_rle_crop_3722034357_0.png.png imagette215754521742564824/1742564666_1264083_1346007367_6bac9bcafd0565fc74070291a639ba64_rle_crop_3722034394_0.png.png imagette215754521742564824/1742564511_838574_1346007260_e8e192728606bad964fb81934cd44a99_rle_crop_3722031065_0.png.png imagette215754521742564824/1742564189_1258358_1346006077_7f81a0a631fcc16c220cda9f9ae8cd3f_rle_crop_3722006958_0.png.png imagette215754521742564824/1742564307_1259737_1346006525_6f0f0dc7bb4c06883db193dcabf76ee4_rle_crop_3722017270_0.png.png imagette215754521742564824/1742564189_1258358_1346006057_73d70c3b03a8ba5dae5804e609aef6ac_rle_crop_3722007506_0.png.png imagette215754521742564824/1742564292_836347_1346006586_23b9ecb19af7f1beba832538a04d3e34_rle_crop_3722016865_0.png.png imagette215754521742564824/1742564189_1258358_1346006075_1129fd87c502be2edf5f7f14f2052eaf_rle_crop_3722006981_0.png.png imagette215754521742564824/1742564666_1264083_1346007373_1048f3b8441a8ed51770c1c22f029e74_rle_crop_3722034381_0.png.png imagette215754521742564824/1742564666_1264083_1346007364_43ec639a09d152c919f14406ed1c2b00_rle_crop_3722034406_0.png.png imagette215754521742564824/1742564189_1258358_1346006058_86d9e04c91a791f08c81384e1f65f1e5_rle_crop_3722007501_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/e3245cb840b1ea04a7850d0234314bdd_17228647.png imagette215754521742564824 21575444 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21575444 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346006632: '1742564189_1258358_1346006077_7f81a0a631fcc16c220cda9f9ae8cd3f_rle_crop_3722006964_0.png', 1346006633: '1742564189_1258358_1346006077_7f81a0a631fcc16c220cda9f9ae8cd3f_rle_crop_3722006965_0.png', 1346006634: '1742564189_1258358_1346006075_1129fd87c502be2edf5f7f14f2052eaf_rle_crop_3722006987_0.png', 1346006635: '1742564189_1258358_1346006075_1129fd87c502be2edf5f7f14f2052eaf_rle_crop_3722006988_0.png', 1346006916: '1742564307_1259737_1346006589_3368b0e01388d7c7bae56deac0337703_rle_crop_3722016961_0.png', 1346007490: '1742564511_838574_1346007277_8201c31ee9ed18ceb1e90106574119f6_rle_crop_3722030918_0.png', 1346007651: '1742564533_838773_1346006972_a837be22220a181f6ef72ebbfc122426_rle_crop_3722031094_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/7cf34053d970393379fb0d834a5960bb_83112898.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/42935afd0108f2481fa887475ae050bb_75707415.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/7cf34053d970393379fb0d834a5960bb_39478062.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/42935afd0108f2481fa887475ae050bb_97973806.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/20350e2692a9c0dc921436261a4fe6c1_27005382.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/922ed3f1708239204d804cada910c162_23227177.png change filename to text .imagette215754441742564824/ imagette215754441742564824/1742564189_1258358_1346006077_7f81a0a631fcc16c220cda9f9ae8cd3f_rle_crop_3722006964_0.png.png imagette215754441742564824/1742564533_838773_1346006972_a837be22220a181f6ef72ebbfc122426_rle_crop_3722031094_0.png.png imagette215754441742564824/1742564511_838574_1346007277_8201c31ee9ed18ceb1e90106574119f6_rle_crop_3722030918_0.png.png imagette215754441742564824/1742564189_1258358_1346006077_7f81a0a631fcc16c220cda9f9ae8cd3f_rle_crop_3722006965_0.png.png imagette215754441742564824/1742564307_1259737_1346006589_3368b0e01388d7c7bae56deac0337703_rle_crop_3722016961_0.png.png imagette215754441742564824/1742564189_1258358_1346006075_1129fd87c502be2edf5f7f14f2052eaf_rle_crop_3722006987_0.png.png imagette215754441742564824/1742564189_1258358_1346006075_1129fd87c502be2edf5f7f14f2052eaf_rle_crop_3722006988_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/97ce9dcbf9f0f8e1473a1069f0e06e14_95109110.png imagette215754441742564824 21575449 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21575449 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346006867: '1742564307_1259737_1346006477_fa491d53aa718d15bc19537d79d18760_rle_crop_3722017571_0.png', 1346008482: '1742564666_1264083_1346007361_abc0c74e4bc9e0a9dde755851db93eec_rle_crop_3722034450_0.png', 1346008479: '1742564666_1264083_1346007367_6bac9bcafd0565fc74070291a639ba64_rle_crop_3722034402_0.png', 1346008474: '1742564666_1264083_1346007373_1048f3b8441a8ed51770c1c22f029e74_rle_crop_3722034389_0.png', 1346008470: '1742564666_1264083_1346007378_314cbbc5e4f30ced5eda59ce3341ced9_rle_crop_3722034373_0.png', 1346008464: '1742564666_1264083_1346007378_314cbbc5e4f30ced5eda59ce3341ced9_rle_crop_3722034369_0.png', 1346008451: '1742564673_839840_1346007381_72d709917bca0de2d0818760df3e9f34_rle_crop_3722034433_0.png', 1346007608: '1742564533_838773_1346007305_c2d608c8daa3d4d6249fb47a1444c589_rle_crop_3722031087_0.png', 1346006902: '1742564313_836509_1346006536_df12e72f0aeee6722893aed34692c009_rle_crop_3722018144_0.png', 1346006871: '1742564307_1259737_1346006477_fa491d53aa718d15bc19537d79d18760_rle_crop_3722017567_0.png', 1346006869: '1742564307_1259737_1346006477_fa491d53aa718d15bc19537d79d18760_rle_crop_3722017570_0.png', 1346006595: '1742564189_1258358_1346006082_fb0c7a7567be3eb143fc21d1799f2070_rle_crop_3722006936_0.png', 1346006865: '1742564307_1259737_1346006511_bb8f2aba0ba24be51b550da1ad3a0895_rle_crop_3722017553_0.png', 1346006863: '1742564307_1259737_1346006589_3368b0e01388d7c7bae56deac0337703_rle_crop_3722016958_0.png', 1346006674: '1742564212_835589_1346005947_d38c62d33c9f1fa55bd260869bd9d302_rle_crop_3722009255_0.png', 1346006673: '1742564212_835589_1346005957_b41dd00733b39046711c33cedb578e77_rle_crop_3722009232_0.png', 1346006671: '1742564212_835589_1346005957_b41dd00733b39046711c33cedb578e77_rle_crop_3722009237_0.png', 1346006670: '1742564212_835589_1346006086_296d7e8ecc41aa1a86cacca2a894e4bb_rle_crop_3722008652_0.png', 1346006669: '1742564212_835589_1346006088_fcb452c5c1d71800213d3d41d0f177e4_rle_crop_3722008640_0.png', 1346006646: '1742564191_835315_1346005890_9514407cd2c2a53cb9831804862e6a8e_rle_crop_3722008112_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/6064a23f6db41ebe904730e81147fb56_9641451.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/5d7c8f67b76cbea4cc068765bad47f54_86180131.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/75a637ba677b3040ecde22098ff9129a_34489302.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/8a3b71a2d428ead07d9c01ffed171dae_11996663.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/748c349f55731b59462f0429754fc472_10785226.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/3fbcb98a73e1f45edf23bcb04f2cf5ee_95820542.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/cd45e8bce96314a77da83b7d7f097859_65272961.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/ebc2b2f5406a8e2b7ad53be7357fb430_11569132.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/ab1e4e24f3574d328c64ceed17510c2f_79119211.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/6d04567bb85445f2a67a2e8f1e036ec6_11518217.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/da87366859c11a4f4936ef0ddb759e93_93650626.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/28f89a3ed041315234798d873c780a78_52964243.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/940d61b59e1f25861e934523269f4e8c_24521934.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/60e030eb19b9a10bc713ba3be9089fd7_6119383.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/01c44ac4c81e14dce091516f76522346_1080583.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/5202ea58d6660d5fe356e40363beeb38_24228003.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/a6444b0870b66aa99194e1870fd6f62f_27590223.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/21e79e8e7dc466e4afb2eef461225253_39529556.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/21e79e8e7dc466e4afb2eef461225253_908734.png change filename to text .imagette215754491742564825/ imagette215754491742564825/1742564533_838773_1346007305_c2d608c8daa3d4d6249fb47a1444c589_rle_crop_3722031087_0.png.png imagette215754491742564825/1742564307_1259737_1346006477_fa491d53aa718d15bc19537d79d18760_rle_crop_3722017571_0.png.png imagette215754491742564825/1742564307_1259737_1346006477_fa491d53aa718d15bc19537d79d18760_rle_crop_3722017567_0.png.png imagette215754491742564825/1742564666_1264083_1346007361_abc0c74e4bc9e0a9dde755851db93eec_rle_crop_3722034450_0.png.png imagette215754491742564825/1742564189_1258358_1346006082_fb0c7a7567be3eb143fc21d1799f2070_rle_crop_3722006936_0.png.png imagette215754491742564825/1742564212_835589_1346005947_d38c62d33c9f1fa55bd260869bd9d302_rle_crop_3722009255_0.png.png imagette215754491742564825/1742564191_835315_1346005890_9514407cd2c2a53cb9831804862e6a8e_rle_crop_3722008112_0.png.png imagette215754491742564825/1742564307_1259737_1346006477_fa491d53aa718d15bc19537d79d18760_rle_crop_3722017570_0.png.png imagette215754491742564825/1742564666_1264083_1346007378_314cbbc5e4f30ced5eda59ce3341ced9_rle_crop_3722034369_0.png.png imagette215754491742564825/1742564212_835589_1346005957_b41dd00733b39046711c33cedb578e77_rle_crop_3722009237_0.png.png imagette215754491742564825/1742564212_835589_1346005957_b41dd00733b39046711c33cedb578e77_rle_crop_3722009232_0.png.png imagette215754491742564825/1742564313_836509_1346006536_df12e72f0aeee6722893aed34692c009_rle_crop_3722018144_0.png.png imagette215754491742564825/1742564307_1259737_1346006511_bb8f2aba0ba24be51b550da1ad3a0895_rle_crop_3722017553_0.png.png imagette215754491742564825/1742564212_835589_1346006086_296d7e8ecc41aa1a86cacca2a894e4bb_rle_crop_3722008652_0.png.png imagette215754491742564825/1742564666_1264083_1346007373_1048f3b8441a8ed51770c1c22f029e74_rle_crop_3722034389_0.png.png imagette215754491742564825/1742564307_1259737_1346006589_3368b0e01388d7c7bae56deac0337703_rle_crop_3722016958_0.png.png imagette215754491742564825/1742564673_839840_1346007381_72d709917bca0de2d0818760df3e9f34_rle_crop_3722034433_0.png.png imagette215754491742564825/1742564666_1264083_1346007367_6bac9bcafd0565fc74070291a639ba64_rle_crop_3722034402_0.png.png imagette215754491742564825/1742564666_1264083_1346007378_314cbbc5e4f30ced5eda59ce3341ced9_rle_crop_3722034373_0.png.png imagette215754491742564825/1742564212_835589_1346006088_fcb452c5c1d71800213d3d41d0f177e4_rle_crop_3722008640_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/293cbbd368948c6907d74ee05fb14031_88142289.png imagette215754491742564825 21575453 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21575453 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346006621: '1742564189_1258358_1346006082_fb0c7a7567be3eb143fc21d1799f2070_rle_crop_3722006931_0.png', 1346006622: '1742564189_1258358_1346006080_b3d083d4210c6d9d709fd0c3a934d519_rle_crop_3722006944_0.png', 1346006663: '1742564191_835315_1346005883_d80550e753957b4750b7860169e61a4d_rle_crop_3722008124_0.png', 1346006908: '1742564307_1259737_1346006525_6f0f0dc7bb4c06883db193dcabf76ee4_rle_crop_3722017268_0.png', 1346007351: '1742564414_837736_1346006704_b19602d13990ec3cf51a17a46d1906bd_rle_crop_3722025263_0.png', 1346007642: '1742564533_838773_1346007305_c2d608c8daa3d4d6249fb47a1444c589_rle_crop_3722031085_0.png', 1346007644: '1742564533_838773_1346006938_a23afed50d645a937a6448b80364ed35_rle_crop_3722031113_0.png', 1346007646: '1742564533_838773_1346006895_a278dd01e832b6d3821662010e5d69f6_rle_crop_3722031129_0.png', 1346008544: '1742564666_1264083_1346007378_314cbbc5e4f30ced5eda59ce3341ced9_rle_crop_3722034364_0.png', 1346008550: '1742564666_1264083_1346007364_43ec639a09d152c919f14406ed1c2b00_rle_crop_3722034408_0.png', 1346008554: '1742564666_1264083_1346007361_abc0c74e4bc9e0a9dde755851db93eec_rle_crop_3722034441_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/b6fa2968e84844402edc27c185627a9b_40928743.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/b6fa2968e84844402edc27c185627a9b_64969532.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/a0134d0eed124c151c0a05f0de7f454f_18009647.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/8de22903d168712bc1041b0380ff99f8_85688719.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/7a234c6340ed8e984ed5d9662616586f_51817535.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/cd930e9f86bad88fb229a381e3cefd2a_25575698.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/71dbc8a15eb655b4c6a9ecbd8e3bc8bc_58164055.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/fa39a826f848325b7529faf4ad0b0a56_23560660.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/0c9789d0c9b36ab4ed1f1f58d616dd76_68501544.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/6e76b09ee25398f59d771a4c2ef9147d_35525884.png change filename to text .imagette215754531742564826/ imagette215754531742564826/1742564533_838773_1346007305_c2d608c8daa3d4d6249fb47a1444c589_rle_crop_3722031085_0.png.png imagette215754531742564826/1742564666_1264083_1346007364_43ec639a09d152c919f14406ed1c2b00_rle_crop_3722034408_0.png.png imagette215754531742564826/1742564666_1264083_1346007378_314cbbc5e4f30ced5eda59ce3341ced9_rle_crop_3722034364_0.png.png imagette215754531742564826/1742564189_1258358_1346006082_fb0c7a7567be3eb143fc21d1799f2070_rle_crop_3722006931_0.png.png imagette215754531742564826/1742564414_837736_1346006704_b19602d13990ec3cf51a17a46d1906bd_rle_crop_3722025263_0.png.png imagette215754531742564826/1742564307_1259737_1346006525_6f0f0dc7bb4c06883db193dcabf76ee4_rle_crop_3722017268_0.png.png imagette215754531742564826/1742564191_835315_1346005883_d80550e753957b4750b7860169e61a4d_rle_crop_3722008124_0.png.png imagette215754531742564826/1742564533_838773_1346006938_a23afed50d645a937a6448b80364ed35_rle_crop_3722031113_0.png.png imagette215754531742564826/1742564189_1258358_1346006080_b3d083d4210c6d9d709fd0c3a934d519_rle_crop_3722006944_0.png.png imagette215754531742564826/1742564533_838773_1346006895_a278dd01e832b6d3821662010e5d69f6_rle_crop_3722031129_0.png.png imagette215754531742564826/1742564666_1264083_1346007361_abc0c74e4bc9e0a9dde755851db93eec_rle_crop_3722034441_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/71cf7861154a57e4e7ed01a8dd9a9e2b_86040407.png imagette215754531742564826 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21575441 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21575470,21575471,21575472,21575473,21575474,21575475,21575476,21575477,21575478,21575479,21575480,21575481?tags=autre_refus,metal,Carton_brun,plastique,flou,kraft,mal_croppe,Teint_Dans_La_Masse,environnement,papier,cartonnette,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1346009062] : ('0.07649712501824377',) no score found for photo 1346009062 We are sending mail with results at report@fotonower.com args[1346008996] : ('0.07649712501824377',) no score found for photo 1346008996 We are sending mail with results at report@fotonower.com args[1346008930] : ('0.07649712501824377',) no score found for photo 1346008930 We are sending mail with results at report@fotonower.com args[1346008878] : ('0.07649712501824377',) no score found for photo 1346008878 We are sending mail with results at report@fotonower.com args[1346008389] : ('0.07649712501824377',) no score found for photo 1346008389 We are sending mail with results at report@fotonower.com args[1346008381] : ('0.07649712501824377',) no score found for photo 1346008381 We are sending mail with results at report@fotonower.com args[1346008325] : ('0.07649712501824377',) no score found for photo 1346008325 We are sending mail with results at report@fotonower.com args[1346008277] : ('0.07649712501824377',) no score found for photo 1346008277 We are sending mail with results at report@fotonower.com args[1346008228] : ('0.07649712501824377',) no score found for photo 1346008228 We are sending mail with results at report@fotonower.com args[1346008192] : ('0.07649712501824377',) no score found for photo 1346008192 We are sending mail with results at report@fotonower.com refus_total : 0.07649712501824377 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21575441 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_P21575441_21-03-2025_14_47_01.pdf results_Auto_P21575441_21-03-2025_14_47_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21575441_21-03-2025_14_47_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21575441','results_Auto_P21575441_21-03-2025_14_47_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21575441_21-03-2025_14_47_01.pdf','pdf','','0.31','0.07649712501824377') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21575441]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1346009062, 1346008996, 1346008930, 1346008878, 1346008389, 1346008381, 1346008325, 1346008277, 1346008228, 1346008192] map_info['map_portfolio_photo'] : {21575441: [1346009062, 1346008996, 1346008930, 1346008878, 1346008389, 1346008381, 1346008325, 1346008277, 1346008228, 1346008192, 1346007722, 1346007701, 1346007673, 1346007637, 1346007605, 1346007489, 1346007467, 1346007459, 1346007447, 1346007381, 1346007378, 1346007373, 1346007367, 1346007364, 1346007361, 1346007305, 1346007277, 1346007260, 1346006978, 1346006972, 1346006938, 1346006895, 1346006858, 1346006712, 1346006704, 1346006699, 1346006694, 1346006589, 1346006586, 1346006583, 1346006579, 1346006536, 1346006531, 1346006525, 1346006511, 1346006501, 1346006477, 1346006225, 1346006207, 1346006179, 1346006088, 1346006086, 1346006082, 1346006080, 1346006077, 1346006075, 1346006072, 1346006069, 1346006065, 1346006063, 1346006058, 1346006057, 1346005963, 1346005957, 1346005947, 1346005933, 1346005924, 1346005904, 1346005896, 1346005890, 1346005883]} final : False mtd_id 4302 list_pids : [1346009062, 1346008996, 1346008930, 1346008878, 1346008389, 1346008381, 1346008325, 1346008277, 1346008228, 1346008192] 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, '2679162') ('4302', '21575441', '1346009062', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008996', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008930', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008878', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008389', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008381', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008325', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008277', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008228', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008192', None, None, None, None, None, '2679162') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '21575441', '1346009062', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008996', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008930', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008878', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008389', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008381', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008325', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008277', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008228', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008192', None, None, None, None, None, '2679162')] time used for this insertion : 0.015426158905029297 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.835251092910767 time spend to save output : 0.015684127807617188 total time spend for step 4 : 6.850935220718384 step5:split_time_score Fri Mar 21 14:47:08 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 : ['21575441'] 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 : [('21575441',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21575441) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1346009062: {'path': 'temp/1742564821_4041528_1346009062_ef89c32eef9d7d3b3c7e81450ff10204.jpg', 'extension': 'jpg'}, 1346008878: {'path': 'temp/1742564821_4041528_1346008878_515190eda2501dcb14d37cd109bdb957.jpg', 'extension': 'jpg'}, 1346008930: {'path': 'temp/1742564821_4041528_1346008930_e641b82173e05d73311df7d7f02d3f28.jpg', 'extension': 'jpg'}, 1346008996: {'path': 'temp/1742564821_4041528_1346008996_09db46125e4bb69b17b27ee46395840f.jpg', 'extension': 'jpg'}, 1346008192: {'path': 'temp/1742564821_4041528_1346008192_83deb454185c17731e8b28e678c1c054.jpg', 'extension': 'jpg'}, 1346008228: {'path': 'temp/1742564821_4041528_1346008228_6d37b576d712ff5b66b5bfd391fb318f.jpg', 'extension': 'jpg'}, 1346008277: {'path': 'temp/1742564821_4041528_1346008277_d4b07c730076c6c8916b6334ce4b9eb3.jpg', 'extension': 'jpg'}, 1346008325: {'path': 'temp/1742564821_4041528_1346008325_4107eb6250e5ff2ab5b32dbd4745c2fd.jpg', 'extension': 'jpg'}, 1346008381: {'path': 'temp/1742564821_4041528_1346008381_138f64200836f07d5c805a5e49197ecc.jpg', 'extension': 'jpg'}, 1346008389: {'path': 'temp/1742564821_4041528_1346008389_c64b622cb2967c3c366c06177ec04026.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 = 21575441; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 21575441 group by h (('14', 71),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21575441 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 (21575441) 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 (21575441) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 21032025 21575441 Nombre de photos uploadées : 71 / 23040 (0%) 21032025 21575441 Nombre de photos taguées (types de déchets): 0 / 71 (0%) 21032025 21575441 Nombre de photos taguées (volume) : 0 / 71 (0%) [{'photo_id': 1346005904, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/92fec7409ffeef1f90112bb73ea36448.jpg', 'username': None, 'uploaded_at': 1742563953, 'text': 'image_21032025_14_30_15_010140m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1346005896, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/5b5b212e2612d69a44e24f3605ae27b2.jpg', 'username': None, 'uploaded_at': 1742563953, 'text': 'image_21032025_14_30_25_010133m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1346005890, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/9514407cd2c2a53cb9831804862e6a8e.jpg', 'username': None, 'uploaded_at': 1742563953, 'text': 'image_21032025_14_30_34_009122m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1346005883, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/d80550e753957b4750b7860169e61a4d.jpg', 'username': None, 'uploaded_at': 1742563953, 'text': 'image_21032025_14_30_44_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ??????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003416299819946289 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21575441, '2025-03-21' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1678259,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02658867835998535 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= 1678259 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1678259, 'dashboard_run_id': 1686106, 'mtr_portfolio_id': 21573757, 'dashboard_result_id': 9532063, '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_P21573757_21-03-2025_14_04_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21573758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21573759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21573760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21573761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21573762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21573763, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21573764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21573765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21573766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21573767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21573768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21573769, 'pht': 3726}}"}, {'dashboat_entry_day': 1678259, 'dashboard_run_id': 1686106, 'mtr_portfolio_id': 21573905, 'dashboard_result_id': 9532064, '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_P21573905_21-03-2025_14_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21573961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21573962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21573963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21573964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21573965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21573966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21573967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21573968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21573969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21573970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21573971, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21573972, 'pht': 3726}}"}, {'dashboat_entry_day': 1678259, 'dashboard_run_id': 1686106, 'mtr_portfolio_id': 21574824, 'dashboard_result_id': 9532065, '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_P21574824_21-03-2025_14_25_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21574837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21574838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21574839, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21574840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21574841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21574842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21574843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21574844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21574845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21574846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21574847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21574848, 'pht': 3726}}"}, {'dashboat_entry_day': 1678259, 'dashboard_run_id': 1686106, 'mtr_portfolio_id': 21575441, 'dashboard_result_id': 9532066, '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_P21575441_21-03-2025_14_44_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21575442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21575443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21575444, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21575445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21575446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21575447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21575448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21575449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21575450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21575451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21575452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21575453, '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 = 21573757 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': 2679067, 'mtr_portfolio_id': 21573757, 'created_at': datetime.datetime(2025, 3, 21, 14, 3, 59), 'result': '0.094390057961336', 'result_long': None, 'result_double': None}] Qualite : 0.094390057961336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21573757 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21573757_21-03-2025_14_04_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21573757 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_P21573757_21-03-2025_14_04_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21573758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21573759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21573760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21573761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21573762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21573763, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21573764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21573765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21573766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21573767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21573768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21573769, 'pht': 3726}}" where mtr_portfolio_id = 21573757 and dashboard_run_id = 1686106 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`=21573757 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9532063, 0.094390057961336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21573757_21-03-2025_14_04_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21573758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21573759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21573760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21573761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21573762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21573763, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21573764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21573765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21573766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21573767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21573768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21573769, '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 = 21573905 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': 2679075, 'mtr_portfolio_id': 21573905, 'created_at': datetime.datetime(2025, 3, 21, 14, 17), 'result': '0.06619103322203668', 'result_long': None, 'result_double': None}] Qualite : 0.06619103322203668 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21573905 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21573905_21-03-2025_14_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21573905 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_P21573905_21-03-2025_14_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21573961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21573962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21573963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21573964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21573965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21573966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21573967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21573968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21573969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21573970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21573971, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21573972, 'pht': 3726}}" where mtr_portfolio_id = 21573905 and dashboard_run_id = 1686106 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`=21573905 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9532064, 0.06619103322203668, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21573905_21-03-2025_14_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21573961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21573962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21573963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21573964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21573965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21573966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21573967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21573968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21573969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21573970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21573971, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21573972, '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 = 21574824 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': 2679116, 'mtr_portfolio_id': 21574824, 'created_at': datetime.datetime(2025, 3, 21, 14, 25, 3), 'result': '0.07173744758601436', 'result_long': None, 'result_double': None}] Qualite : 0.07173744758601436 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21574824 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21574824_21-03-2025_14_25_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21574824 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_P21574824_21-03-2025_14_25_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21574837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21574838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21574839, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21574840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21574841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21574842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21574843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21574844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21574845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21574846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21574847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21574848, 'pht': 3726}}" where mtr_portfolio_id = 21574824 and dashboard_run_id = 1686106 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`=21574824 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9532065, 0.07173744758601436, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21574824_21-03-2025_14_25_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21574837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21574838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21574839, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21574840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21574841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21574842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21574843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21574844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21574845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21574846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21574847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21574848, '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 = 21575441 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': 2679162, 'mtr_portfolio_id': 21575441, 'created_at': datetime.datetime(2025, 3, 21, 14, 47, 1), 'result': '0.07649712501824377', 'result_long': None, 'result_double': None}] Qualite : 0.07649712501824377 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21575441 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21575441_21-03-2025_14_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21575441 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_P21575441_21-03-2025_14_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21575442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21575443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21575444, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21575445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21575446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21575447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21575448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21575449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21575450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21575451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21575452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21575453, 'pht': 3726}}" where mtr_portfolio_id = 21575441 and dashboard_run_id = 1686106 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`=21575441 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9532066, 0.07649712501824377, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21575441_21-03-2025_14_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21575442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21575443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21575444, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21575445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21575446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21575447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21575448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21575449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21575450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21575451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21575452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21575453, '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 (21573757,21573905,21574824,21575441) result : ((1345991072,), (1345991532,), (1345991540,), (1345991569,), (1345991655,), (1345991661,), (1345991961,), (1345991987,), (1345992009,), (1345993487,), (1345993534,), (1345994355,), (1345994275,), (1345994328,), (1345994867,), (1345994912,), (1345994948,), (1345994981,), (1345995640,), (1345995643,), (1345995682,), (1345995684,), (1345995708,), (1345995712,), (1345995736,), (1345995743,), (1345995788,), (1345995799,), (1345995837,), (1345995845,), (1345995961,), (1345995992,), (1345996041,), (1345996468,), (1345996494,), (1345996503,), (1345996509,), (1345996515,), (1345996532,), (1345996803,), (1345996828,), (1345996868,), (1345996888,), (1345997059,), (1345997076,), (1345997102,), (1345997144,), (1345997197,), (1345997249,), (1345997665,), (1345997714,), (1345997761,), (1345997783,), (1345998206,), (1345998256,), (1345998263,), (1345998286,), (1345998314,), (1345998366,), (1345998478,), (1345998541,), (1345998595,), (1345999010,), (1345999054,), (1345999104,), (1345999145,), (1345999188,), (1346000016,), (1346000055,), (1346000107,), (1346000164,), (1346000203,), (1346000403,), (1346000430,), (1346000477,), (1346001331,), (1346001354,), (1346001373,), (1346001377,), (1346001381,), (1346001386,), (1346001395,), (1346001412,), (1346001435,), (1346001465,), (1346002304,), (1346002081,), (1346002126,), (1346002156,), (1346002212,), (1346002537,), (1346002563,), (1346002609,), (1346002666,), (1346002722,), (1346002847,), (1346002877,), (1346002912,), (1346002937,), (1346002959,), (1346003391,), (1346003451,), (1346003499,), (1346003525,), (1346003818,), (1346003862,), (1346003887,), (1346003904,), (1346003925,), (1346003951,), (1346004141,), (1346004144,), (1346004148,), (1346004152,), (1346004371,), (1346004397,), (1346004419,), (1346004439,), (1346004466,), (1346004490,), (1346004549,), (1346004568,), (1346004585,), (1346004606,), (1346004635,), (1346004685,), (1346004691,), (1346004693,), (1346004695,), (1346004713,), (1346004726,), (1346004881,), (1346004886,), (1346004891,), (1346004897,), (1346004998,), (1346005035,), (1346005055,), (1346005077,), (1346005118,), (1346005151,), (1346005413,), (1346005423,), (1346005427,), (1346005433,), (1346005478,), (1346005486,), (1346005499,), (1346005731,), (1346005738,), (1346005744,), (1346005753,), (1346005795,), (1346005806,), (1346005810,), (1346005817,), (1346005824,), (1346005910,), (1346005883,), (1346005890,), (1346005896,), (1346005904,), (1346005924,), (1346005933,), (1346005947,), (1346005957,), (1346005963,), (1346006057,), (1346006058,), (1346006063,), (1346006065,), (1346006069,), (1346006072,), (1346006075,), (1346006077,), (1346006080,), (1346006082,), (1346006086,), (1346006088,), (1346006179,), (1346006207,), (1346006225,), (1346006477,), (1346006501,), (1346006511,), (1346006525,), (1346006531,), (1346006536,), (1346006579,), (1346006583,), (1346006586,), (1346006589,), (1346006694,), (1346006699,), (1346006704,), (1346006712,), (1346006858,), (1346006895,), (1346006938,), (1346006972,), (1346006978,), (1346007260,), (1346007277,), (1346007305,), (1346007361,), (1346007364,), (1346007367,), (1346007373,), (1346007378,), (1346007381,), (1346007447,), (1346007459,), (1346007467,), (1346007489,), (1346007605,), (1346007637,), (1346007673,), (1346007701,), (1346007722,), (1346008192,), (1346008228,), (1346008277,), (1346008325,), (1346008381,), (1346008389,), (1346008878,), (1346008930,), (1346008996,), (1346009062,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'21032025': {'nb_upload': 71, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21575441]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1346009062, 1346008996, 1346008930, 1346008878, 1346008389, 1346008381, 1346008325, 1346008277, 1346008228, 1346008192] map_info['map_portfolio_photo'] : {21575441: [1346009062, 1346008996, 1346008930, 1346008878, 1346008389, 1346008381, 1346008325, 1346008277, 1346008228, 1346008192, 1346007722, 1346007701, 1346007673, 1346007637, 1346007605, 1346007489, 1346007467, 1346007459, 1346007447, 1346007381, 1346007378, 1346007373, 1346007367, 1346007364, 1346007361, 1346007305, 1346007277, 1346007260, 1346006978, 1346006972, 1346006938, 1346006895, 1346006858, 1346006712, 1346006704, 1346006699, 1346006694, 1346006589, 1346006586, 1346006583, 1346006579, 1346006536, 1346006531, 1346006525, 1346006511, 1346006501, 1346006477, 1346006225, 1346006207, 1346006179, 1346006088, 1346006086, 1346006082, 1346006080, 1346006077, 1346006075, 1346006072, 1346006069, 1346006065, 1346006063, 1346006058, 1346006057, 1346005963, 1346005957, 1346005947, 1346005933, 1346005924, 1346005904, 1346005896, 1346005890, 1346005883]} final : True mtd_id 4302 list_pids : [1346009062, 1346008996, 1346008930, 1346008878, 1346008389, 1346008381, 1346008325, 1346008277, 1346008228, 1346008192] Looping around the photos to save general results len do output : 1 /21575441Didn'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, '2679162') ('4302', '21575441', '1346009062', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008996', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008930', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008878', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008389', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008381', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008325', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008277', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008228', None, None, None, None, None, '2679162') ('4302', None, None, None, None, None, None, None, '2679162') ('4302', '21575441', '1346008192', None, None, None, None, None, '2679162') 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', None, '21575441', 'None', None, None, None, None, '2679162'), ('4302', '21575441', '1346009062', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008996', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008930', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008878', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008389', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008381', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008325', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008277', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008228', None, None, None, None, None, '2679162'), ('4302', '21575441', '1346008192', None, None, None, None, None, '2679162')] time used for this insertion : 0.13158392906188965 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.36861181259155273 time spend to save output : 0.13181686401367188 total time spend for step 5 : 0.5004286766052246 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 (2679162) 2.39user 2.63system 0:13.48elapsed 37%CPU (0avgtext+0avgdata 160940maxresident)k 328inputs+19392outputs (2major+76074minor)pagefaults 0swaps