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 : 4094768 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 (2688224) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2688224) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21680463 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2688224'] with mtr_portfolio_ids : ['21680463'] and first list_photo_ids : [] new path : /proc/4094768/ Name: python3 Umask: 0002 State: R (running) Tgid: 4094768 Ngid: 0 Pid: 4094768 PPid: 4094767 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4094768 NSpid: 4094768 NSpgid: 4091749 NSsid: 4091749 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97944 kB VmRSS: 97944 kB RssAnon: 59760 kB RssFile: 38184 kB RssShmem: 0 kB VmData: 865588 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 568 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 52 nonvoluntary_ctxt_switches: 90 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4094768', 'Ngid': '0', 'Pid': '4094768', 'PPid': '4094767', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4094768', 'NSpid': '4094768', 'NSpgid': '4091749', 'NSsid': '4091749', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97944 kB', 'VmRSS': '97944 kB', 'RssAnon': '59760 kB', 'RssFile': '38184 kB', 'RssShmem': '0 kB', 'VmData': '865588 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '568 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '52', 'nonvoluntary_ctxt_switches': '90'} ('datou_batch_current', '4094768', '1106840', '0', '1106840', '865588', '97944', b'', 'marlene', '2688224') 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 (21680463) 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 (2688224 ) ) 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 (21680463) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1347098555, 'portfolio_id': 21680463}, {'photo_id': 1347098537, 'portfolio_id': 21680463}, {'photo_id': 1347098533, 'portfolio_id': 21680463}, {'photo_id': 1347098528, 'portfolio_id': 21680463}, {'photo_id': 1347098525, 'portfolio_id': 21680463}, {'photo_id': 1347098520, 'portfolio_id': 21680463}, {'photo_id': 1347098478, 'portfolio_id': 21680463}, {'photo_id': 1347098473, 'portfolio_id': 21680463}, {'photo_id': 1347098464, 'portfolio_id': 21680463}, {'photo_id': 1347098448, 'portfolio_id': 21680463}, {'photo_id': 1347098443, 'portfolio_id': 21680463}, {'photo_id': 1347098438, 'portfolio_id': 21680463}, {'photo_id': 1347098434, 'portfolio_id': 21680463}, {'photo_id': 1347098432, 'portfolio_id': 21680463}, {'photo_id': 1347098430, 'portfolio_id': 21680463}, {'photo_id': 1347098405, 'portfolio_id': 21680463}, {'photo_id': 1347098401, 'portfolio_id': 21680463}, {'photo_id': 1347098397, 'portfolio_id': 21680463}, {'photo_id': 1347098394, 'portfolio_id': 21680463}, {'photo_id': 1347098359, 'portfolio_id': 21680463}, {'photo_id': 1347098355, 'portfolio_id': 21680463}, {'photo_id': 1347098353, 'portfolio_id': 21680463}, {'photo_id': 1347098351, 'portfolio_id': 21680463}, {'photo_id': 1347098316, 'portfolio_id': 21680463}, {'photo_id': 1347098310, 'portfolio_id': 21680463}, {'photo_id': 1347098305, 'portfolio_id': 21680463}, {'photo_id': 1347098302, 'portfolio_id': 21680463}, {'photo_id': 1347098299, 'portfolio_id': 21680463}, {'photo_id': 1347098239, 'portfolio_id': 21680463}, {'photo_id': 1347098237, 'portfolio_id': 21680463}, {'photo_id': 1347098235, 'portfolio_id': 21680463}, {'photo_id': 1347098233, 'portfolio_id': 21680463}, {'photo_id': 1347098204, 'portfolio_id': 21680463}, {'photo_id': 1347098186, 'portfolio_id': 21680463}, {'photo_id': 1347098179, 'portfolio_id': 21680463}, {'photo_id': 1347098176, 'portfolio_id': 21680463}, {'photo_id': 1347098141, 'portfolio_id': 21680463}, {'photo_id': 1347098139, 'portfolio_id': 21680463}, {'photo_id': 1347098050, 'portfolio_id': 21680463}, {'photo_id': 1347097780, 'portfolio_id': 21680463}, {'photo_id': 1347097775, 'portfolio_id': 21680463}, {'photo_id': 1347097771, 'portfolio_id': 21680463}, {'photo_id': 1347097768, 'portfolio_id': 21680463}, {'photo_id': 1347097750, 'portfolio_id': 21680463}, {'photo_id': 1347097748, 'portfolio_id': 21680463}, {'photo_id': 1347097742, 'portfolio_id': 21680463}, {'photo_id': 1347097729, 'portfolio_id': 21680463}, {'photo_id': 1347097707, 'portfolio_id': 21680463}, {'photo_id': 1347097697, 'portfolio_id': 21680463}, {'photo_id': 1347097677, 'portfolio_id': 21680463}, {'photo_id': 1347097674, 'portfolio_id': 21680463}, {'photo_id': 1347097668, 'portfolio_id': 21680463}, {'photo_id': 1347097664, 'portfolio_id': 21680463}, {'photo_id': 1347097661, 'portfolio_id': 21680463}, {'photo_id': 1347097657, 'portfolio_id': 21680463}, {'photo_id': 1347097593, 'portfolio_id': 21680463}, {'photo_id': 1347097592, 'portfolio_id': 21680463}, {'photo_id': 1347097470, 'portfolio_id': 21680463}, {'photo_id': 1347097460, 'portfolio_id': 21680463}, {'photo_id': 1347097449, 'portfolio_id': 21680463}, {'photo_id': 1347097446, 'portfolio_id': 21680463}] map_portfolio_id_photo_id: {21680463: [1347098555, 1347098537, 1347098533, 1347098528, 1347098525, 1347098520, 1347098478, 1347098473, 1347098464, 1347098448, 1347098443, 1347098438, 1347098434, 1347098432, 1347098430, 1347098405, 1347098401, 1347098397, 1347098394, 1347098359, 1347098355, 1347098353, 1347098351, 1347098316, 1347098310, 1347098305, 1347098302, 1347098299, 1347098239, 1347098237, 1347098235, 1347098233, 1347098204, 1347098186, 1347098179, 1347098176, 1347098141, 1347098139, 1347098050, 1347097780, 1347097775, 1347097771, 1347097768, 1347097750, 1347097748, 1347097742, 1347097729, 1347097707, 1347097697, 1347097677, 1347097674, 1347097668, 1347097664, 1347097661, 1347097657, 1347097593, 1347097592, 1347097470, 1347097460, 1347097449, 1347097446]} ##### 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.01902914047241211 #### 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 Tue Mar 25 06: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 (21680463) 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 : 21680463 get user id for portfolio 21680463 get sub ptf for main ptf 21680463, type 3726 and hashtags ['plastique', 'Carton_gris', 'Teint_Dans_La_Masse', 'metal', 'autre_refus', 'flou', 'environnement', 'mal_croppe', 'Carton_brun', 'kraft', 'papier', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21680463 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','Teint_Dans_La_Masse','metal','autre_refus','flou','environnement','mal_croppe','Carton_brun','kraft','papier','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21680463 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','Teint_Dans_La_Masse','metal','autre_refus','flou','environnement','mal_croppe','Carton_brun','kraft','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 21680463, 'sub_port_id': 21680464, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213327, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 57)}, 'environnement': {'main_port_id': 21680463, 'sub_port_id': 21680465, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213328, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 57)}, 'metal': {'main_port_id': 21680463, 'sub_port_id': 21680466, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213329, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 57)}, 'Carton_brun': {'main_port_id': 21680463, 'sub_port_id': 21680467, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213330, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 57)}, 'Carton_gris': {'main_port_id': 21680463, 'sub_port_id': 21680468, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213331, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21680463, 'sub_port_id': 21680469, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213332, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 57)}, 'papier': {'main_port_id': 21680463, 'sub_port_id': 21680470, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213333, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 57)}, 'plastique': {'main_port_id': 21680463, 'sub_port_id': 21680471, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213334, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 57)}, 'kraft': {'main_port_id': 21680463, 'sub_port_id': 21680472, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213335, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 57)}, 'autre_refus': {'main_port_id': 21680463, 'sub_port_id': 21680473, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213336, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 57)}, 'flou': {'main_port_id': 21680463, 'sub_port_id': 21680474, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213337, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 57)}, 'mal_croppe': {'main_port_id': 21680463, 'sub_port_id': 21680475, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213338, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 45, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21680464 , 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=21680463 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 (21680464) result : ((1347097713,), (1347098012,), (1347098526,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21680463) result : ((1347097446,), (1347097449,), (1347097460,), (1347097470,), (1347097592,), (1347097593,), (1347097657,), (1347097661,), (1347097664,), (1347097668,), (1347097674,), (1347097677,), (1347097697,), (1347097707,), (1347097729,), (1347097742,), (1347097748,), (1347097750,), (1347097768,), (1347097771,), (1347097775,), (1347097780,), (1347098050,), (1347098139,), (1347098141,), (1347098176,), (1347098179,), (1347098186,), (1347098204,), (1347098233,), (1347098235,), (1347098237,), (1347098239,), (1347098299,), (1347098302,), (1347098305,), (1347098310,), (1347098316,), (1347098351,), (1347098353,), (1347098355,), (1347098359,), (1347098394,), (1347098397,), (1347098401,), (1347098405,), (1347098430,), (1347098432,), (1347098434,), (1347098438,), (1347098443,), (1347098448,), (1347098464,), (1347098473,), (1347098478,), (1347098520,), (1347098525,), (1347098528,), (1347098533,), (1347098537,), (1347098555,)) 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 21680465 , 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=21680463 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 (21680465) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21680463) result : ((1347097446,), (1347097449,), (1347097460,), (1347097470,), (1347097592,), (1347097593,), (1347097657,), (1347097661,), (1347097664,), (1347097668,), (1347097674,), (1347097677,), (1347097697,), (1347097707,), (1347097729,), (1347097742,), (1347097748,), (1347097750,), (1347097768,), (1347097771,), (1347097775,), (1347097780,), (1347098050,), (1347098139,), (1347098141,), (1347098176,), (1347098179,), (1347098186,), (1347098204,), (1347098233,), (1347098235,), (1347098237,), (1347098239,), (1347098299,), (1347098302,), (1347098305,), (1347098310,), (1347098316,), (1347098351,), (1347098353,), (1347098355,), (1347098359,), (1347098394,), (1347098397,), (1347098401,), (1347098405,), (1347098430,), (1347098432,), (1347098434,), (1347098438,), (1347098443,), (1347098448,), (1347098464,), (1347098473,), (1347098478,), (1347098520,), (1347098525,), (1347098528,), (1347098533,), (1347098537,), (1347098555,)) 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 21680466 , 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=21680463 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 (21680466) result : ((1347098491,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21680463) result : ((1347097446,), (1347097449,), (1347097460,), (1347097470,), (1347097592,), (1347097593,), (1347097657,), (1347097661,), (1347097664,), (1347097668,), (1347097674,), (1347097677,), (1347097697,), (1347097707,), (1347097729,), (1347097742,), (1347097748,), (1347097750,), (1347097768,), (1347097771,), (1347097775,), (1347097780,), (1347098050,), (1347098139,), (1347098141,), (1347098176,), (1347098179,), (1347098186,), (1347098204,), (1347098233,), (1347098235,), (1347098237,), (1347098239,), (1347098299,), (1347098302,), (1347098305,), (1347098310,), (1347098316,), (1347098351,), (1347098353,), (1347098355,), (1347098359,), (1347098394,), (1347098397,), (1347098401,), (1347098405,), (1347098430,), (1347098432,), (1347098434,), (1347098438,), (1347098443,), (1347098448,), (1347098464,), (1347098473,), (1347098478,), (1347098520,), (1347098525,), (1347098528,), (1347098533,), (1347098537,), (1347098555,)) 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 21680467 , 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=21680463 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 (21680467) result : ((1347097718,), (1347098194,), (1347098195,), (1347098196,), (1347098197,), (1347098198,), (1347098199,), (1347098200,), (1347098321,), (1347098322,), (1347098388,), (1347098516,), (1347098517,), (1347098562,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21680463) result : ((1347097446,), (1347097449,), (1347097460,), (1347097470,), (1347097592,), (1347097593,), (1347097657,), (1347097661,), (1347097664,), (1347097668,), (1347097674,), (1347097677,), (1347097697,), (1347097707,), (1347097729,), (1347097742,), (1347097748,), (1347097750,), (1347097768,), (1347097771,), (1347097775,), (1347097780,), (1347098050,), (1347098139,), (1347098141,), (1347098176,), (1347098179,), (1347098186,), (1347098204,), (1347098233,), (1347098235,), (1347098237,), (1347098239,), (1347098299,), (1347098302,), (1347098305,), (1347098310,), (1347098316,), (1347098351,), (1347098353,), (1347098355,), (1347098359,), (1347098394,), (1347098397,), (1347098401,), (1347098405,), (1347098430,), (1347098432,), (1347098434,), (1347098438,), (1347098443,), (1347098448,), (1347098464,), (1347098473,), (1347098478,), (1347098520,), (1347098525,), (1347098528,), (1347098533,), (1347098537,), (1347098555,)) 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 21680468 , 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=21680463 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 (21680468) result : ((1347097708,), (1347097709,), (1347097710,), (1347097711,), (1347097990,), (1347097992,), (1347098387,), (1347098514,), (1347098524,), (1347098557,), (1347098558,), (1347098559,), (1347098560,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21680463) result : ((1347097446,), (1347097449,), (1347097460,), (1347097470,), (1347097592,), (1347097593,), (1347097657,), (1347097661,), (1347097664,), (1347097668,), (1347097674,), (1347097677,), (1347097697,), (1347097707,), (1347097729,), (1347097742,), (1347097748,), (1347097750,), (1347097768,), (1347097771,), (1347097775,), (1347097780,), (1347098050,), (1347098139,), (1347098141,), (1347098176,), (1347098179,), (1347098186,), (1347098204,), (1347098233,), (1347098235,), (1347098237,), (1347098239,), (1347098299,), (1347098302,), (1347098305,), (1347098310,), (1347098316,), (1347098351,), (1347098353,), (1347098355,), (1347098359,), (1347098394,), (1347098397,), (1347098401,), (1347098405,), (1347098430,), (1347098432,), (1347098434,), (1347098438,), (1347098443,), (1347098448,), (1347098464,), (1347098473,), (1347098478,), (1347098520,), (1347098525,), (1347098528,), (1347098533,), (1347098537,), (1347098555,)) 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 21680469 , 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=21680463 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 (21680469) result : ((1347097699,), (1347097700,), (1347097905,), (1347098182,), (1347098183,), (1347098184,), (1347098185,), (1347098312,), (1347098313,), (1347098314,), (1347098326,), (1347098327,), (1347098328,), (1347098329,), (1347098382,), (1347098482,), (1347098507,), (1347098508,), (1347098521,), (1347098538,), (1347098540,), (1347098541,), (1347098542,), (1347098543,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21680463) result : ((1347097446,), (1347097449,), (1347097460,), (1347097470,), (1347097592,), (1347097593,), (1347097657,), (1347097661,), (1347097664,), (1347097668,), (1347097674,), (1347097677,), (1347097697,), (1347097707,), (1347097729,), (1347097742,), (1347097748,), (1347097750,), (1347097768,), (1347097771,), (1347097775,), (1347097780,), (1347098050,), (1347098139,), (1347098141,), (1347098176,), (1347098179,), (1347098186,), (1347098204,), (1347098233,), (1347098235,), (1347098237,), (1347098239,), (1347098299,), (1347098302,), (1347098305,), (1347098310,), (1347098316,), (1347098351,), (1347098353,), (1347098355,), (1347098359,), (1347098394,), (1347098397,), (1347098401,), (1347098405,), (1347098430,), (1347098432,), (1347098434,), (1347098438,), (1347098443,), (1347098448,), (1347098464,), (1347098473,), (1347098478,), (1347098520,), (1347098525,), (1347098528,), (1347098533,), (1347098537,), (1347098555,)) 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 21680470 , 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=21680463 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 (21680470) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21680463) result : ((1347097446,), (1347097449,), (1347097460,), (1347097470,), (1347097592,), (1347097593,), (1347097657,), (1347097661,), (1347097664,), (1347097668,), (1347097674,), (1347097677,), (1347097697,), (1347097707,), (1347097729,), (1347097742,), (1347097748,), (1347097750,), (1347097768,), (1347097771,), (1347097775,), (1347097780,), (1347098050,), (1347098139,), (1347098141,), (1347098176,), (1347098179,), (1347098186,), (1347098204,), (1347098233,), (1347098235,), (1347098237,), (1347098239,), (1347098299,), (1347098302,), (1347098305,), (1347098310,), (1347098316,), (1347098351,), (1347098353,), (1347098355,), (1347098359,), (1347098394,), (1347098397,), (1347098401,), (1347098405,), (1347098430,), (1347098432,), (1347098434,), (1347098438,), (1347098443,), (1347098448,), (1347098464,), (1347098473,), (1347098478,), (1347098520,), (1347098525,), (1347098528,), (1347098533,), (1347098537,), (1347098555,)) 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 21680471 , 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=21680463 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 (21680471) result : ((1347097723,), (1347097724,), (1347097725,), (1347097728,), (1347098175,), (1347098333,), (1347098335,), (1347098488,), (1347098489,), (1347098518,), (1347098519,), (1347098565,), (1347098566,), (1347098567,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21680463) result : ((1347097446,), (1347097449,), (1347097460,), (1347097470,), (1347097592,), (1347097593,), (1347097657,), (1347097661,), (1347097664,), (1347097668,), (1347097674,), (1347097677,), (1347097697,), (1347097707,), (1347097729,), (1347097742,), (1347097748,), (1347097750,), (1347097768,), (1347097771,), (1347097775,), (1347097780,), (1347098050,), (1347098139,), (1347098141,), (1347098176,), (1347098179,), (1347098186,), (1347098204,), (1347098233,), (1347098235,), (1347098237,), (1347098239,), (1347098299,), (1347098302,), (1347098305,), (1347098310,), (1347098316,), (1347098351,), (1347098353,), (1347098355,), (1347098359,), (1347098394,), (1347098397,), (1347098401,), (1347098405,), (1347098430,), (1347098432,), (1347098434,), (1347098438,), (1347098443,), (1347098448,), (1347098464,), (1347098473,), (1347098478,), (1347098520,), (1347098525,), (1347098528,), (1347098533,), (1347098537,), (1347098555,)) 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 21680472 , 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=21680463 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 (21680472) result : ((1347098201,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21680463) result : ((1347097446,), (1347097449,), (1347097460,), (1347097470,), (1347097592,), (1347097593,), (1347097657,), (1347097661,), (1347097664,), (1347097668,), (1347097674,), (1347097677,), (1347097697,), (1347097707,), (1347097729,), (1347097742,), (1347097748,), (1347097750,), (1347097768,), (1347097771,), (1347097775,), (1347097780,), (1347098050,), (1347098139,), (1347098141,), (1347098176,), (1347098179,), (1347098186,), (1347098204,), (1347098233,), (1347098235,), (1347098237,), (1347098239,), (1347098299,), (1347098302,), (1347098305,), (1347098310,), (1347098316,), (1347098351,), (1347098353,), (1347098355,), (1347098359,), (1347098394,), (1347098397,), (1347098401,), (1347098405,), (1347098430,), (1347098432,), (1347098434,), (1347098438,), (1347098443,), (1347098448,), (1347098464,), (1347098473,), (1347098478,), (1347098520,), (1347098525,), (1347098528,), (1347098533,), (1347098537,), (1347098555,)) 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 21680473 , 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=21680463 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 (21680473) result : ((1347097703,), (1347097704,), (1347097705,), (1347097950,), (1347097951,), (1347097953,), (1347098173,), (1347098174,), (1347098187,), (1347098188,), (1347098189,), (1347098190,), (1347098191,), (1347098317,), (1347098318,), (1347098319,), (1347098330,), (1347098332,), (1347098384,), (1347098385,), (1347098386,), (1347098483,), (1347098484,), (1347098485,), (1347098509,), (1347098510,), (1347098511,), (1347098512,), (1347098523,), (1347098547,), (1347098548,), (1347098549,), (1347098550,), (1347098552,), (1347098553,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21680463) result : ((1347097446,), (1347097449,), (1347097460,), (1347097470,), (1347097592,), (1347097593,), (1347097657,), (1347097661,), (1347097664,), (1347097668,), (1347097674,), (1347097677,), (1347097697,), (1347097707,), (1347097729,), (1347097742,), (1347097748,), (1347097750,), (1347097768,), (1347097771,), (1347097775,), (1347097780,), (1347098050,), (1347098139,), (1347098141,), (1347098176,), (1347098179,), (1347098186,), (1347098204,), (1347098233,), (1347098235,), (1347098237,), (1347098239,), (1347098299,), (1347098302,), (1347098305,), (1347098310,), (1347098316,), (1347098351,), (1347098353,), (1347098355,), (1347098359,), (1347098394,), (1347098397,), (1347098401,), (1347098405,), (1347098430,), (1347098432,), (1347098434,), (1347098438,), (1347098443,), (1347098448,), (1347098464,), (1347098473,), (1347098478,), (1347098520,), (1347098525,), (1347098528,), (1347098533,), (1347098537,), (1347098555,)) 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 21680474 , 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=21680463 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 (21680474) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21680463) result : ((1347097446,), (1347097449,), (1347097460,), (1347097470,), (1347097592,), (1347097593,), (1347097657,), (1347097661,), (1347097664,), (1347097668,), (1347097674,), (1347097677,), (1347097697,), (1347097707,), (1347097729,), (1347097742,), (1347097748,), (1347097750,), (1347097768,), (1347097771,), (1347097775,), (1347097780,), (1347098050,), (1347098139,), (1347098141,), (1347098176,), (1347098179,), (1347098186,), (1347098204,), (1347098233,), (1347098235,), (1347098237,), (1347098239,), (1347098299,), (1347098302,), (1347098305,), (1347098310,), (1347098316,), (1347098351,), (1347098353,), (1347098355,), (1347098359,), (1347098394,), (1347098397,), (1347098401,), (1347098405,), (1347098430,), (1347098432,), (1347098434,), (1347098438,), (1347098443,), (1347098448,), (1347098464,), (1347098473,), (1347098478,), (1347098520,), (1347098525,), (1347098528,), (1347098533,), (1347098537,), (1347098555,)) 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 21680475 , 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=21680463 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 (21680475) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21680463) result : ((1347097446,), (1347097449,), (1347097460,), (1347097470,), (1347097592,), (1347097593,), (1347097657,), (1347097661,), (1347097664,), (1347097668,), (1347097674,), (1347097677,), (1347097697,), (1347097707,), (1347097729,), (1347097742,), (1347097748,), (1347097750,), (1347097768,), (1347097771,), (1347097775,), (1347097780,), (1347098050,), (1347098139,), (1347098141,), (1347098176,), (1347098179,), (1347098186,), (1347098204,), (1347098233,), (1347098235,), (1347098237,), (1347098239,), (1347098299,), (1347098302,), (1347098305,), (1347098310,), (1347098316,), (1347098351,), (1347098353,), (1347098355,), (1347098359,), (1347098394,), (1347098397,), (1347098401,), (1347098405,), (1347098430,), (1347098432,), (1347098434,), (1347098438,), (1347098443,), (1347098448,), (1347098464,), (1347098473,), (1347098478,), (1347098520,), (1347098525,), (1347098528,), (1347098533,), (1347098537,), (1347098555,)) 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`=21680463 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','Teint_Dans_La_Masse','metal','autre_refus','flou','environnement','mal_croppe','Carton_brun','kraft','papier','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21680463 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','Teint_Dans_La_Masse','metal','autre_refus','flou','environnement','mal_croppe','Carton_brun','kraft','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 21680463, 'sub_port_id': 21680476, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213339, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 59)}, 'environnement': {'main_port_id': 21680463, 'sub_port_id': 21680477, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213340, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 59)}, 'metal': {'main_port_id': 21680463, 'sub_port_id': 21680478, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213341, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 59)}, 'Carton_brun': {'main_port_id': 21680463, 'sub_port_id': 21680479, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213342, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 59)}, 'Carton_gris': {'main_port_id': 21680463, 'sub_port_id': 21680480, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213343, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21680463, 'sub_port_id': 21680481, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213344, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 59)}, 'papier': {'main_port_id': 21680463, 'sub_port_id': 21680482, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213345, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 59)}, 'plastique': {'main_port_id': 21680463, 'sub_port_id': 21680483, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213346, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 59)}, 'kraft': {'main_port_id': 21680463, 'sub_port_id': 21680484, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213347, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 59)}, 'autre_refus': {'main_port_id': 21680463, 'sub_port_id': 21680485, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213348, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 59)}, 'flou': {'main_port_id': 21680463, 'sub_port_id': 21680486, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213349, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 35, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 59)}, 'mal_croppe': {'main_port_id': 21680463, 'sub_port_id': 21680487, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14213350, 'last_updated_at': datetime.datetime(2025, 3, 25, 6, 45, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 6, 45, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 6, 35, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21680476,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21680464 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21680477,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21680465 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21680478,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21680466 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21680479,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21680467 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21680480,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21680468 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21680481,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21680469 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21680482,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21680470 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21680483,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21680471 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21680484,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21680472 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21680485,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21680473 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21680486,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21680474 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21680487,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21680475 lien utilise dans velours : https://www.fotonower.com/velours/21680476,21680477,21680478,21680479,21680480,21680481,21680482,21680483,21680484,21680485,21680486,21680487?tags=cartonnette,environnement,metal,Carton_brun,Carton_gris,Teint_Dans_La_Masse,papier,plastique,kraft,autre_refus,flou,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21680463]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347098555, 1347098537, 1347098533, 1347098528, 1347098525, 1347098520, 1347098478, 1347098473, 1347098464] map_info['map_portfolio_photo'] : {21680463: [1347098555, 1347098537, 1347098533, 1347098528, 1347098525, 1347098520, 1347098478, 1347098473, 1347098464, 1347098448, 1347098443, 1347098438, 1347098434, 1347098432, 1347098430, 1347098405, 1347098401, 1347098397, 1347098394, 1347098359, 1347098355, 1347098353, 1347098351, 1347098316, 1347098310, 1347098305, 1347098302, 1347098299, 1347098239, 1347098237, 1347098235, 1347098233, 1347098204, 1347098186, 1347098179, 1347098176, 1347098141, 1347098139, 1347098050, 1347097780, 1347097775, 1347097771, 1347097768, 1347097750, 1347097748, 1347097742, 1347097729, 1347097707, 1347097697, 1347097677, 1347097674, 1347097668, 1347097664, 1347097661, 1347097657, 1347097593, 1347097592, 1347097470, 1347097460, 1347097449, 1347097446]} final : False mtd_id 4302 list_pids : [1347098555, 1347098537, 1347098533, 1347098528, 1347098525, 1347098520, 1347098478, 1347098473, 1347098464] Looping around the photos to save general results len do output : 1 /21680463. 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, '2688224') ('4302', '21680463', '1347098555', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098537', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098533', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098528', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098525', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098520', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098478', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098473', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098464', None, None, None, None, None, '2688224') 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', None, '21680463', "{'cartonnette': 21680464, 'environnement': 21680465, 'metal': 21680466, 'Carton_brun': 21680467, 'Carton_gris': 21680468, 'Teint_Dans_La_Masse': 21680469, 'papier': 21680470, 'plastique': 21680471, 'kraft': 21680472, 'autre_refus': 21680473, 'flou': 21680474, 'mal_croppe': 21680475}", None, None, None, None, '2688224'), ('4302', '21680463', '1347098555', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098537', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098533', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098528', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098525', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098520', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098478', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098473', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098464', None, None, None, None, None, '2688224')] time used for this insertion : 0.016248226165771484 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.511183738708496 time spend to save output : 0.01656365394592285 total time spend for step 1 : 1.527747392654419 step2:final Tue Mar 25 06:47:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21680463) 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 21680463 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347097470,1347097460,1347097449,1347097446,1347097593,1347097592,1347097677,1347097674,1347097668,1347097664,1347097661,1347097657,1347097750,1347097748,1347097742,1347097729,1347097707,1347097697,1347097780,1347097775,1347097771,1347097768,1347098050,1347098141,1347098139,1347098204,1347098186,1347098179,1347098176,1347098239,1347098237,1347098235,1347098233,1347098316,1347098310,1347098305,1347098302,1347098299,1347098359,1347098355,1347098353,1347098351,1347098405,1347098401,1347098397,1347098394,1347098448,1347098443,1347098438,1347098434,1347098432,1347098430,1347098478,1347098464,1347098473,1347098555,1347098537,1347098533,1347098528,1347098525,1347098520); 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([21680463]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347098555: ('0.09251986952502068',), 1347098537: ('0.09251986952502068',), 1347098533: ('0.09251986952502068',), 1347098528: ('0.09251986952502068',), 1347098525: ('0.09251986952502068',), 1347098520: ('0.09251986952502068',), 1347098478: ('0.09251986952502068',), 1347098473: ('0.09251986952502068',), 1347098464: ('0.09251986952502068',)} new output for save of step final : {1347098555: ('0.09251986952502068',), 1347098537: ('0.09251986952502068',), 1347098533: ('0.09251986952502068',), 1347098528: ('0.09251986952502068',), 1347098525: ('0.09251986952502068',), 1347098520: ('0.09251986952502068',), 1347098478: ('0.09251986952502068',), 1347098473: ('0.09251986952502068',), 1347098464: ('0.09251986952502068',)} [1347098555, 1347098537, 1347098533, 1347098528, 1347098525, 1347098520, 1347098478, 1347098473, 1347098464] map_info['map_portfolio_photo'] : {21680463: [1347098555, 1347098537, 1347098533, 1347098528, 1347098525, 1347098520, 1347098478, 1347098473, 1347098464, 1347098448, 1347098443, 1347098438, 1347098434, 1347098432, 1347098430, 1347098405, 1347098401, 1347098397, 1347098394, 1347098359, 1347098355, 1347098353, 1347098351, 1347098316, 1347098310, 1347098305, 1347098302, 1347098299, 1347098239, 1347098237, 1347098235, 1347098233, 1347098204, 1347098186, 1347098179, 1347098176, 1347098141, 1347098139, 1347098050, 1347097780, 1347097775, 1347097771, 1347097768, 1347097750, 1347097748, 1347097742, 1347097729, 1347097707, 1347097697, 1347097677, 1347097674, 1347097668, 1347097664, 1347097661, 1347097657, 1347097593, 1347097592, 1347097470, 1347097460, 1347097449, 1347097446]} final : False mtd_id 4302 list_pids : [1347098555, 1347098537, 1347098533, 1347098528, 1347098525, 1347098520, 1347098478, 1347098473, 1347098464] Looping around the photos to save general results len do output : 9 /1347098555.Didn't retrieve data . /1347098537.Didn't retrieve data . /1347098533.Didn't retrieve data . /1347098528.Didn't retrieve data . /1347098525.Didn't retrieve data . /1347098520.Didn't retrieve data . /1347098478.Didn't retrieve data . /1347098473.Didn't retrieve data . /1347098464.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, '2688224') ('4302', '21680463', '1347098555', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098537', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098533', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098528', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098525', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098520', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098478', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098473', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098464', None, None, None, None, None, '2688224') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '21680463', '1347098555', '0.09251986952502068', None, None, None, None, '2688224'), ('4302', '21680463', '1347098537', '0.09251986952502068', None, None, None, None, '2688224'), ('4302', '21680463', '1347098533', '0.09251986952502068', None, None, None, None, '2688224'), ('4302', '21680463', '1347098528', '0.09251986952502068', None, None, None, None, '2688224'), ('4302', '21680463', '1347098525', '0.09251986952502068', None, None, None, None, '2688224'), ('4302', '21680463', '1347098520', '0.09251986952502068', None, None, None, None, '2688224'), ('4302', '21680463', '1347098478', '0.09251986952502068', None, None, None, None, '2688224'), ('4302', '21680463', '1347098473', '0.09251986952502068', None, None, None, None, '2688224'), ('4302', '21680463', '1347098464', '0.09251986952502068', None, None, None, None, '2688224')] time used for this insertion : 0.019282817840576172 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.17058300971984863 time spend to save output : 0.019707679748535156 total time spend for step 2 : 0.1902906894683838 step3:velours_tree Tue Mar 25 06:47:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21680463: [{'cartonnette': 21680464, 'environnement': 21680465, 'metal': 21680466, 'Carton_brun': 21680467, 'Carton_gris': 21680468, 'Teint_Dans_La_Masse': 21680469, 'papier': 21680470, 'plastique': 21680471, 'kraft': 21680472, 'autre_refus': 21680473, 'flou': 21680474, 'mal_croppe': 21680475}]} input_args_next_step : {21680463: ()} output_args : {21680463: [{'cartonnette': 21680464, 'environnement': 21680465, 'metal': 21680466, 'Carton_brun': 21680467, 'Carton_gris': 21680468, 'Teint_Dans_La_Masse': 21680469, 'papier': 21680470, 'plastique': 21680471, 'kraft': 21680472, 'autre_refus': 21680473, 'flou': 21680474, 'mal_croppe': 21680475}]} args : 21680463 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'cartonnette': 21680464, 'environnement': 21680465, 'metal': 21680466, 'Carton_brun': 21680467, 'Carton_gris': 21680468, 'Teint_Dans_La_Masse': 21680469, 'papier': 21680470, 'plastique': 21680471, 'kraft': 21680472, 'autre_refus': 21680473, 'flou': 21680474, 'mal_croppe': 21680475},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21680463) 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([21680463]) 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.3188624382019043 time spend to save output : 5.4836273193359375e-05 total time spend for step 3 : 0.31891727447509766 step4:send_mail_cod Tue Mar 25 06:47:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1347098555: ('0.09251986952502068',), 1347098537: ('0.09251986952502068',), 1347098533: ('0.09251986952502068',), 1347098528: ('0.09251986952502068',), 1347098525: ('0.09251986952502068',), 1347098520: ('0.09251986952502068',), 1347098478: ('0.09251986952502068',), 1347098473: ('0.09251986952502068',), 1347098464: ('0.09251986952502068',)} input_args_next_step : {1347098555: ()} output_args : {1347098555: ('0.09251986952502068',), 1347098537: ('0.09251986952502068',), 1347098533: ('0.09251986952502068',), 1347098528: ('0.09251986952502068',), 1347098525: ('0.09251986952502068',), 1347098520: ('0.09251986952502068',), 1347098478: ('0.09251986952502068',), 1347098473: ('0.09251986952502068',), 1347098464: ('0.09251986952502068',)} args : 1347098555 depend.output_id : 0 input_args_next_step : {1347098555: ('0.09251986952502068',), 1347098537: ()} output_args : {1347098555: ('0.09251986952502068',), 1347098537: ('0.09251986952502068',), 1347098533: ('0.09251986952502068',), 1347098528: ('0.09251986952502068',), 1347098525: ('0.09251986952502068',), 1347098520: ('0.09251986952502068',), 1347098478: ('0.09251986952502068',), 1347098473: ('0.09251986952502068',), 1347098464: ('0.09251986952502068',)} args : 1347098537 depend.output_id : 0 input_args_next_step : {1347098555: ('0.09251986952502068',), 1347098537: ('0.09251986952502068',), 1347098533: ()} output_args : {1347098555: ('0.09251986952502068',), 1347098537: ('0.09251986952502068',), 1347098533: ('0.09251986952502068',), 1347098528: ('0.09251986952502068',), 1347098525: ('0.09251986952502068',), 1347098520: ('0.09251986952502068',), 1347098478: ('0.09251986952502068',), 1347098473: ('0.09251986952502068',), 1347098464: ('0.09251986952502068',)} args : 1347098533 depend.output_id : 0 input_args_next_step : {1347098555: ('0.09251986952502068',), 1347098537: ('0.09251986952502068',), 1347098533: ('0.09251986952502068',), 1347098528: ()} output_args : {1347098555: ('0.09251986952502068',), 1347098537: ('0.09251986952502068',), 1347098533: ('0.09251986952502068',), 1347098528: ('0.09251986952502068',), 1347098525: ('0.09251986952502068',), 1347098520: ('0.09251986952502068',), 1347098478: ('0.09251986952502068',), 1347098473: ('0.09251986952502068',), 1347098464: ('0.09251986952502068',)} args : 1347098528 depend.output_id : 0 input_args_next_step : {1347098555: ('0.09251986952502068',), 1347098537: ('0.09251986952502068',), 1347098533: ('0.09251986952502068',), 1347098528: ('0.09251986952502068',), 1347098525: ()} output_args : {1347098555: ('0.09251986952502068',), 1347098537: ('0.09251986952502068',), 1347098533: ('0.09251986952502068',), 1347098528: ('0.09251986952502068',), 1347098525: ('0.09251986952502068',), 1347098520: ('0.09251986952502068',), 1347098478: ('0.09251986952502068',), 1347098473: ('0.09251986952502068',), 1347098464: ('0.09251986952502068',)} args : 1347098525 depend.output_id : 0 input_args_next_step : {1347098555: ('0.09251986952502068',), 1347098537: ('0.09251986952502068',), 1347098533: ('0.09251986952502068',), 1347098528: ('0.09251986952502068',), 1347098525: ('0.09251986952502068',), 1347098520: ()} output_args : {1347098555: ('0.09251986952502068',), 1347098537: ('0.09251986952502068',), 1347098533: ('0.09251986952502068',), 1347098528: ('0.09251986952502068',), 1347098525: ('0.09251986952502068',), 1347098520: ('0.09251986952502068',), 1347098478: ('0.09251986952502068',), 1347098473: ('0.09251986952502068',), 1347098464: ('0.09251986952502068',)} args : 1347098520 depend.output_id : 0 input_args_next_step : {1347098555: ('0.09251986952502068',), 1347098537: ('0.09251986952502068',), 1347098533: ('0.09251986952502068',), 1347098528: ('0.09251986952502068',), 1347098525: ('0.09251986952502068',), 1347098520: ('0.09251986952502068',), 1347098478: ()} output_args : {1347098555: ('0.09251986952502068',), 1347098537: ('0.09251986952502068',), 1347098533: ('0.09251986952502068',), 1347098528: ('0.09251986952502068',), 1347098525: ('0.09251986952502068',), 1347098520: ('0.09251986952502068',), 1347098478: ('0.09251986952502068',), 1347098473: ('0.09251986952502068',), 1347098464: ('0.09251986952502068',)} args : 1347098478 depend.output_id : 0 input_args_next_step : {1347098555: ('0.09251986952502068',), 1347098537: ('0.09251986952502068',), 1347098533: ('0.09251986952502068',), 1347098528: ('0.09251986952502068',), 1347098525: ('0.09251986952502068',), 1347098520: ('0.09251986952502068',), 1347098478: ('0.09251986952502068',), 1347098473: ()} output_args : {1347098555: ('0.09251986952502068',), 1347098537: ('0.09251986952502068',), 1347098533: ('0.09251986952502068',), 1347098528: ('0.09251986952502068',), 1347098525: ('0.09251986952502068',), 1347098520: ('0.09251986952502068',), 1347098478: ('0.09251986952502068',), 1347098473: ('0.09251986952502068',), 1347098464: ('0.09251986952502068',)} args : 1347098473 depend.output_id : 0 input_args_next_step : {1347098555: ('0.09251986952502068',), 1347098537: ('0.09251986952502068',), 1347098533: ('0.09251986952502068',), 1347098528: ('0.09251986952502068',), 1347098525: ('0.09251986952502068',), 1347098520: ('0.09251986952502068',), 1347098478: ('0.09251986952502068',), 1347098473: ('0.09251986952502068',), 1347098464: ()} output_args : {1347098555: ('0.09251986952502068',), 1347098537: ('0.09251986952502068',), 1347098533: ('0.09251986952502068',), 1347098528: ('0.09251986952502068',), 1347098525: ('0.09251986952502068',), 1347098520: ('0.09251986952502068',), 1347098478: ('0.09251986952502068',), 1347098473: ('0.09251986952502068',), 1347098464: ('0.09251986952502068',)} args : 1347098464 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 : {21680463: [{'cartonnette': 21680464, 'environnement': 21680465, 'metal': 21680466, 'Carton_brun': 21680467, 'Carton_gris': 21680468, 'Teint_Dans_La_Masse': 21680469, 'papier': 21680470, 'plastique': 21680471, 'kraft': 21680472, 'autre_refus': 21680473, 'flou': 21680474, 'mal_croppe': 21680475}]} input_args_next_step : {1347098555: ('0.09251986952502068',), 1347098537: ('0.09251986952502068',), 1347098533: ('0.09251986952502068',), 1347098528: ('0.09251986952502068',), 1347098525: ('0.09251986952502068',), 1347098520: ('0.09251986952502068',), 1347098478: ('0.09251986952502068',), 1347098473: ('0.09251986952502068',), 1347098464: ('0.09251986952502068',), 21680463: ()} output_args : {21680463: [{'cartonnette': 21680464, 'environnement': 21680465, 'metal': 21680466, 'Carton_brun': 21680467, 'Carton_gris': 21680468, 'Teint_Dans_La_Masse': 21680469, 'papier': 21680470, 'plastique': 21680471, 'kraft': 21680472, 'autre_refus': 21680473, 'flou': 21680474, 'mal_croppe': 21680475}]} args : 21680463 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 :10, first value : ('0.09251986952502068',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21680463) 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 (1347098555,1347098537,1347098533,1347098528,1347098525,1347098520,1347098478,1347098473,1347098464) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347098464 begin to download photo : 1347098478 begin to download photo : 1347098525 begin to download photo : 1347098533 begin to download photo : 1347098555 download finish for photo 1347098555 download finish for photo 1347098533 begin to download photo : 1347098537 download finish for photo 1347098525 begin to download photo : 1347098528 download finish for photo 1347098464 begin to download photo : 1347098473 download finish for photo 1347098478 begin to download photo : 1347098520 download finish for photo 1347098537 download finish for photo 1347098520 download finish for photo 1347098473 download finish for photo 1347098528 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 : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P21680463_25-03-2025_06_47_00.pdf 21680464 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=21680464 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347097713: '1742880853_111291_1347097470_79031dba91b15581155f86a9513999a8_rle_crop_3728582795_0.png', 1347098012: '1742880979_111994_1347097668_03bd7ee5b7ff4878505e447aa22bae3b_rle_crop_3728583116_0.png', 1347098526: '1742881537_4090624_1347098316_e9f16eeeb0f1d90a74b00b1de128f954_rle_crop_3728587104_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/87ad70738745ca84636831a7fc25f323_17566804.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/39e3bb5ef4f6600afa584721afb4d232_81384635.png change filename to text .imagette216804641742881620/ imagette216804641742881620/1742881537_4090624_1347098316_e9f16eeeb0f1d90a74b00b1de128f954_rle_crop_3728587104_0.png.png imagette216804641742881620/1742880979_111994_1347097668_03bd7ee5b7ff4878505e447aa22bae3b_rle_crop_3728583116_0.png.png imagette216804641742881620/1742880853_111291_1347097470_79031dba91b15581155f86a9513999a8_rle_crop_3728582795_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/4983bc033793c3b30318807ac1fd632e_60254880.png imagette216804641742881620 21680466 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=21680466 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347098491: '1742881492_114973_1347098394_8113e1dfbaa78747e904951a94ec8560_rle_crop_3728585753_0.png'} change filename to text .imagette216804661742881621/ imagette216804661742881621/1742881492_114973_1347098394_8113e1dfbaa78747e904951a94ec8560_rle_crop_3728585753_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/85140883ff39a400ae2cca008cb1c0db_271663.png imagette216804661742881621 21680471 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=21680471 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347097723: '1742880853_111291_1347097470_79031dba91b15581155f86a9513999a8_rle_crop_3728582807_0.png', 1347097724: '1742880853_111291_1347097460_cf17b3a3a74c2c6944b43b872da87e81_rle_crop_3728582821_0.png', 1347097725: '1742880853_111291_1347097460_cf17b3a3a74c2c6944b43b872da87e81_rle_crop_3728582820_0.png', 1347097728: '1742880853_111291_1347097449_fe77466a8143c47657e8e17d8a2029b1_rle_crop_3728582858_0.png', 1347098175: '1742881121_1967668_1347098050_7b52de05ef66bf7524dac61af15268bb_rle_crop_3728583598_0.png', 1347098333: '1742881263_113537_1347098204_2ecf95ee6f61614da590e90b760410f4_rle_crop_3728584301_0.png', 1347098335: '1742881263_113537_1347098139_ba80436d0ebfea643dfcc9d10044fa99_rle_crop_3728584420_0.png', 1347098488: '1742881492_114973_1347098397_8c8a90e8b4d7ad2f09c7e5aa25538ee9_rle_crop_3728585743_0.png', 1347098489: '1742881492_114973_1347098394_8113e1dfbaa78747e904951a94ec8560_rle_crop_3728585762_0.png', 1347098518: '1742881512_115215_1347098355_ff92cfec1cf15ef03ca1d53e97c85cb5_rle_crop_3728587019_0.png', 1347098519: '1742881512_115215_1347098353_fd7474494f4cf2eeab14e5936494b340_rle_crop_3728587074_0.png', 1347098565: '1742881532_115463_1347098310_41eb36f44edc7f3f02f9d4859c394673_rle_crop_3728587219_0.png', 1347098566: '1742881532_115463_1347098305_054ce8f86738d4281ea6afeb4a8010eb_rle_crop_3728587331_0.png', 1347098567: '1742881532_115463_1347098302_5ba06625c60780b419c2201638c38e61_rle_crop_3728587344_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/f2d6cf249ee4fffce26a58c2f495d4c1_98950747.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/84e134c3cea17b32a4ef0e2d36a5c24f_5327333.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/054f2b861f95e7f29b32fe0f6b447d39_19460741.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/f965ca2d68e5b2303d038d4a241e3ea7_58181961.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/33792dad1203b8c9506eeee56e5371f6_92347041.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/7bd72b070ffe1dc73e6ae9445fb17e25_56521539.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/b65e3de94f4f2a3938c894a5a13a2121_64851444.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/057f067b1440544229596eda0147a0f2_88030537.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/5b1c8b7cca70d30ccd89f9789b41cb11_20280337.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/5540d4eaabae546b5b4248bd67e1afb9_308879.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/079a7816e3d7365eccb6912c22af2249_37549746.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/d06644397f0cbdddaac06e3c0c82fc57_16646401.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/7fdc49827cbf86b670a65a467be17aa5_98267809.png change filename to text .imagette216804711742881621/ imagette216804711742881621/1742881532_115463_1347098302_5ba06625c60780b419c2201638c38e61_rle_crop_3728587344_0.png.png imagette216804711742881621/1742881121_1967668_1347098050_7b52de05ef66bf7524dac61af15268bb_rle_crop_3728583598_0.png.png imagette216804711742881621/1742880853_111291_1347097470_79031dba91b15581155f86a9513999a8_rle_crop_3728582807_0.png.png imagette216804711742881621/1742881532_115463_1347098305_054ce8f86738d4281ea6afeb4a8010eb_rle_crop_3728587331_0.png.png imagette216804711742881621/1742881263_113537_1347098204_2ecf95ee6f61614da590e90b760410f4_rle_crop_3728584301_0.png.png imagette216804711742881621/1742880853_111291_1347097460_cf17b3a3a74c2c6944b43b872da87e81_rle_crop_3728582821_0.png.png imagette216804711742881621/1742881492_114973_1347098397_8c8a90e8b4d7ad2f09c7e5aa25538ee9_rle_crop_3728585743_0.png.png imagette216804711742881621/1742880853_111291_1347097449_fe77466a8143c47657e8e17d8a2029b1_rle_crop_3728582858_0.png.png imagette216804711742881621/1742881512_115215_1347098353_fd7474494f4cf2eeab14e5936494b340_rle_crop_3728587074_0.png.png imagette216804711742881621/1742881512_115215_1347098355_ff92cfec1cf15ef03ca1d53e97c85cb5_rle_crop_3728587019_0.png.png imagette216804711742881621/1742880853_111291_1347097460_cf17b3a3a74c2c6944b43b872da87e81_rle_crop_3728582820_0.png.png imagette216804711742881621/1742881532_115463_1347098310_41eb36f44edc7f3f02f9d4859c394673_rle_crop_3728587219_0.png.png imagette216804711742881621/1742881263_113537_1347098139_ba80436d0ebfea643dfcc9d10044fa99_rle_crop_3728584420_0.png.png imagette216804711742881621/1742881492_114973_1347098394_8113e1dfbaa78747e904951a94ec8560_rle_crop_3728585762_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/83dbe729fe1046bdf5c3183870b78722_8039453.png imagette216804711742881621 21680472 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=21680472 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347098201: '1742881110_112748_1347097729_5153cd11869a9fb98798c789239d8d71_rle_crop_3728583663_0.png'} change filename to text .imagette216804721742881622/ imagette216804721742881622/1742881110_112748_1347097729_5153cd11869a9fb98798c789239d8d71_rle_crop_3728583663_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/446fdc0477f8b19b3d287493735d7ee5_55453595.png imagette216804721742881622 21680473 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=21680473 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347098511: '1742881512_115215_1347098353_fd7474494f4cf2eeab14e5936494b340_rle_crop_3728587076_0.png', 1347098384: '1742881332_114071_1347098237_6110266c43769d26b3b9bc7b8eb76a36_rle_crop_3728584690_0.png', 1347098385: '1742881332_114071_1347098233_446b119f68cf53f1e7093f65851840e9_rle_crop_3728584723_0.png', 1347098386: '1742881332_114071_1347098233_446b119f68cf53f1e7093f65851840e9_rle_crop_3728584725_0.png', 1347098483: '1742881492_114973_1347098401_ba5a104df964317f07ba231dfce5bb35_rle_crop_3728585724_0.png', 1347098484: '1742881492_114973_1347098397_8c8a90e8b4d7ad2f09c7e5aa25538ee9_rle_crop_3728585731_0.png', 1347098485: '1742881492_114973_1347098397_8c8a90e8b4d7ad2f09c7e5aa25538ee9_rle_crop_3728585736_0.png', 1347098509: '1742881512_115215_1347098405_284a426431ed22f626ff60453a48db22_rle_crop_3728585895_0.png', 1347098510: '1742881512_115215_1347098355_ff92cfec1cf15ef03ca1d53e97c85cb5_rle_crop_3728587018_0.png', 1347098332: '1742881263_113537_1347098139_ba80436d0ebfea643dfcc9d10044fa99_rle_crop_3728584418_0.png', 1347098512: '1742881512_115215_1347098351_488b69686af2ed14a8ed6f7b772c93f0_rle_crop_3728587084_0.png', 1347098523: '1742881537_4090624_1347098316_e9f16eeeb0f1d90a74b00b1de128f954_rle_crop_3728587114_0.png', 1347098547: '1742881532_115463_1347098310_41eb36f44edc7f3f02f9d4859c394673_rle_crop_3728587225_0.png', 1347098548: '1742881532_115463_1347098305_054ce8f86738d4281ea6afeb4a8010eb_rle_crop_3728587328_0.png', 1347098549: '1742881532_115463_1347098305_054ce8f86738d4281ea6afeb4a8010eb_rle_crop_3728587326_0.png', 1347098550: '1742881532_115463_1347098305_054ce8f86738d4281ea6afeb4a8010eb_rle_crop_3728587334_0.png', 1347098552: '1742881532_115463_1347098302_5ba06625c60780b419c2201638c38e61_rle_crop_3728587349_0.png', 1347098553: '1742881532_115463_1347098302_5ba06625c60780b419c2201638c38e61_rle_crop_3728587348_0.png', 1347098188: '1742881110_112748_1347097748_0f6938fcf0e4226379243bf49e1b234e_rle_crop_3728583626_0.png', 1347097704: '1742880853_111291_1347097470_79031dba91b15581155f86a9513999a8_rle_crop_3728582806_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/67eddb07c1bae6a45a54f28dabacf1bd_49421835.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/adca16a1b62fdf8167c38085aee7406a_31527018.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/a482b5397198199cb211411939213fe4_73737734.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/b65975cf2509b97c5b848572d14eb1ca_83775470.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/7afa597d2313d0afd778fa9a67ec239f_64354365.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/7efb6bb6c7ac2255bf779e92bd7d653c_52355822.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/af803f49b6b5ab5803005e29e387d726_86888949.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/2efcee9acfba1359eee726ff0006157a_46730129.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/68e8e1ccb6fd732a4577ca2fbfcb8968_83323821.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/1a506439433a3c1c3c650128cbc9bea3_41558478.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/a6779cd934d215d6fe8b22ae08f5fb4e_5060564.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/f05469933948c2e14469fbd4af0a721f_12047868.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/2b4dbe4f8a49592525de09743247e06d_4910171.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/2c7e93bbd5c8cd64f0cfa42c99a0116d_68980621.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/aaff26b7a9bd512b102e7e7b5271a98a_96966648.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/49cc48d9e1bb54b4dc1e2d5150db09fc_46925619.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/3618584cf1cd9a2f0a2f0b6943ad181f_45675132.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/28b3e64bf13b4bdc7d410e82687e5c12_2236414.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/8d69b872e8751d9343e409fbe03f81c9_69812497.png change filename to text .imagette216804731742881622/ imagette216804731742881622/1742881492_114973_1347098397_8c8a90e8b4d7ad2f09c7e5aa25538ee9_rle_crop_3728585736_0.png.png imagette216804731742881622/1742881332_114071_1347098237_6110266c43769d26b3b9bc7b8eb76a36_rle_crop_3728584690_0.png.png imagette216804731742881622/1742881512_115215_1347098405_284a426431ed22f626ff60453a48db22_rle_crop_3728585895_0.png.png imagette216804731742881622/1742881332_114071_1347098233_446b119f68cf53f1e7093f65851840e9_rle_crop_3728584725_0.png.png imagette216804731742881622/1742881263_113537_1347098139_ba80436d0ebfea643dfcc9d10044fa99_rle_crop_3728584418_0.png.png imagette216804731742881622/1742881492_114973_1347098397_8c8a90e8b4d7ad2f09c7e5aa25538ee9_rle_crop_3728585731_0.png.png imagette216804731742881622/1742880853_111291_1347097470_79031dba91b15581155f86a9513999a8_rle_crop_3728582806_0.png.png imagette216804731742881622/1742881537_4090624_1347098316_e9f16eeeb0f1d90a74b00b1de128f954_rle_crop_3728587114_0.png.png imagette216804731742881622/1742881332_114071_1347098233_446b119f68cf53f1e7093f65851840e9_rle_crop_3728584723_0.png.png imagette216804731742881622/1742881512_115215_1347098351_488b69686af2ed14a8ed6f7b772c93f0_rle_crop_3728587084_0.png.png imagette216804731742881622/1742881492_114973_1347098401_ba5a104df964317f07ba231dfce5bb35_rle_crop_3728585724_0.png.png imagette216804731742881622/1742881532_115463_1347098302_5ba06625c60780b419c2201638c38e61_rle_crop_3728587349_0.png.png imagette216804731742881622/1742881532_115463_1347098305_054ce8f86738d4281ea6afeb4a8010eb_rle_crop_3728587326_0.png.png imagette216804731742881622/1742881532_115463_1347098305_054ce8f86738d4281ea6afeb4a8010eb_rle_crop_3728587328_0.png.png imagette216804731742881622/1742881532_115463_1347098305_054ce8f86738d4281ea6afeb4a8010eb_rle_crop_3728587334_0.png.png imagette216804731742881622/1742881512_115215_1347098353_fd7474494f4cf2eeab14e5936494b340_rle_crop_3728587076_0.png.png imagette216804731742881622/1742881110_112748_1347097748_0f6938fcf0e4226379243bf49e1b234e_rle_crop_3728583626_0.png.png imagette216804731742881622/1742881532_115463_1347098310_41eb36f44edc7f3f02f9d4859c394673_rle_crop_3728587225_0.png.png imagette216804731742881622/1742881532_115463_1347098302_5ba06625c60780b419c2201638c38e61_rle_crop_3728587348_0.png.png imagette216804731742881622/1742881512_115215_1347098355_ff92cfec1cf15ef03ca1d53e97c85cb5_rle_crop_3728587018_0.png.png imagette216804741742881623/ imagette216804751742881623/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/969b91b2bc0ce2fa803f78571f0106b1_12841200.png imagette216804731742881622 21680474 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=21680474 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216804741742881623 21680475 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=21680475 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216804751742881623 21680467 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=21680467 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347097718: '1742880853_111291_1347097593_280e79f3f5f4168dd91dfbf783f2049e_rle_crop_3728582773_0.png', 1347098194: '1742881110_112748_1347097742_e7916343fc2f652e8bfb51c80e86e38a_rle_crop_3728583647_0.png', 1347098195: '1742881110_112748_1347097742_e7916343fc2f652e8bfb51c80e86e38a_rle_crop_3728583655_0.png', 1347098196: '1742881110_112748_1347097742_e7916343fc2f652e8bfb51c80e86e38a_rle_crop_3728583646_0.png', 1347098197: '1742881110_112748_1347097707_4148816ac56f9c2c37252ebaa22fd790_rle_crop_3728583684_0.png', 1347098198: '1742881110_112748_1347097697_f53e2eeac55f21230c8a2d9a52de8cca_rle_crop_3728583702_0.png', 1347098199: '1742881110_112748_1347097697_f53e2eeac55f21230c8a2d9a52de8cca_rle_crop_3728583698_0.png', 1347098200: '1742881110_112748_1347097697_f53e2eeac55f21230c8a2d9a52de8cca_rle_crop_3728583703_0.png', 1347098321: '1742881251_113445_1347098179_cc87c27cce7e51aaa164d436a6993d6b_rle_crop_3728584264_0.png', 1347098322: '1742881251_113445_1347098176_db2a9709a99c67a64dbbe15930d2724c_rle_crop_3728584279_0.png', 1347098388: '1742881332_114071_1347098233_446b119f68cf53f1e7093f65851840e9_rle_crop_3728584727_0.png', 1347098516: '1742881512_115215_1347098405_284a426431ed22f626ff60453a48db22_rle_crop_3728585898_0.png', 1347098517: '1742881512_115215_1347098351_488b69686af2ed14a8ed6f7b772c93f0_rle_crop_3728587086_0.png', 1347098562: '1742881532_115463_1347098310_41eb36f44edc7f3f02f9d4859c394673_rle_crop_3728587223_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/40388f91cb99c1bfeeeef6450f0d3646_97396426.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/1c46a03760c2a77439e1333f0548e8af_35747788.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/ada79d5a97cb840be883756cf044038a_36830326.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/6d8bccc9dc9738964c1b3f601ea586be_81628244.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/b324b2e7151f74d20c249e898018e19e_31164108.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/60e00569f2f92cc9efcef13981fdbd6b_44263157.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/7fe928f1178d0aaa33fb63b2e19c90f4_93914464.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/1ab2079696ccb6ad0a68d5823d0189f6_60377352.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/e801cea002184ed4f29793e40e7f8dcb_88231696.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/423865fdc8a74ae955952088c8bbab02_4620528.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/2129d0f5f6f835ee05f34b41f73c70a4_39467136.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/ea8515cd0e8349bab66250089d3bdc20_41256310.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/1d0e1d67887a2a1a880fef0342b72d37_55997873.png change filename to text .imagette216804671742881623/ imagette216804671742881623/1742881512_115215_1347098405_284a426431ed22f626ff60453a48db22_rle_crop_3728585898_0.png.png imagette216804671742881623/1742881512_115215_1347098351_488b69686af2ed14a8ed6f7b772c93f0_rle_crop_3728587086_0.png.png imagette216804671742881623/1742880853_111291_1347097593_280e79f3f5f4168dd91dfbf783f2049e_rle_crop_3728582773_0.png.png imagette216804671742881623/1742881251_113445_1347098179_cc87c27cce7e51aaa164d436a6993d6b_rle_crop_3728584264_0.png.png imagette216804671742881623/1742881110_112748_1347097742_e7916343fc2f652e8bfb51c80e86e38a_rle_crop_3728583647_0.png.png imagette216804671742881623/1742881532_115463_1347098310_41eb36f44edc7f3f02f9d4859c394673_rle_crop_3728587223_0.png.png imagette216804671742881623/1742881110_112748_1347097742_e7916343fc2f652e8bfb51c80e86e38a_rle_crop_3728583655_0.png.png imagette216804671742881623/1742881110_112748_1347097707_4148816ac56f9c2c37252ebaa22fd790_rle_crop_3728583684_0.png.png imagette216804671742881623/1742881110_112748_1347097742_e7916343fc2f652e8bfb51c80e86e38a_rle_crop_3728583646_0.png.png imagette216804671742881623/1742881110_112748_1347097697_f53e2eeac55f21230c8a2d9a52de8cca_rle_crop_3728583703_0.png.png imagette216804671742881623/1742881110_112748_1347097697_f53e2eeac55f21230c8a2d9a52de8cca_rle_crop_3728583698_0.png.png imagette216804671742881623/1742881110_112748_1347097697_f53e2eeac55f21230c8a2d9a52de8cca_rle_crop_3728583702_0.png.png imagette216804671742881623/1742881251_113445_1347098176_db2a9709a99c67a64dbbe15930d2724c_rle_crop_3728584279_0.png.png imagette216804671742881623/1742881332_114071_1347098233_446b119f68cf53f1e7093f65851840e9_rle_crop_3728584727_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/b4c4954bc2e9e05640a0887f7b430e39_19614138.png imagette216804671742881623 21680468 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=21680468 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347097708: '1742880853_111291_1347097470_79031dba91b15581155f86a9513999a8_rle_crop_3728582793_0.png', 1347097709: '1742880853_111291_1347097470_79031dba91b15581155f86a9513999a8_rle_crop_3728582791_0.png', 1347097710: '1742880853_111291_1347097449_fe77466a8143c47657e8e17d8a2029b1_rle_crop_3728582846_0.png', 1347097711: '1742880853_111291_1347097446_58c91571e75a1f3a30a32bebc509977e_rle_crop_3728582887_0.png', 1347097990: '1742880979_111994_1347097657_629c2c87e5cfc6848b78f8b41a6732ea_rle_crop_3728583160_0.png', 1347097992: '1742880979_111994_1347097657_629c2c87e5cfc6848b78f8b41a6732ea_rle_crop_3728583159_0.png', 1347098387: '1742881332_114071_1347098233_446b119f68cf53f1e7093f65851840e9_rle_crop_3728584718_0.png', 1347098514: '1742881512_115215_1347098405_284a426431ed22f626ff60453a48db22_rle_crop_3728585896_0.png', 1347098524: '1742881537_4090624_1347098316_e9f16eeeb0f1d90a74b00b1de128f954_rle_crop_3728587111_0.png', 1347098557: '1742881532_115463_1347098310_41eb36f44edc7f3f02f9d4859c394673_rle_crop_3728587229_0.png', 1347098558: '1742881532_115463_1347098310_41eb36f44edc7f3f02f9d4859c394673_rle_crop_3728587224_0.png', 1347098559: '1742881532_115463_1347098299_3218a15f139af7770034b7cf82031eff_rle_crop_3728587369_0.png', 1347098560: '1742881532_115463_1347098299_3218a15f139af7770034b7cf82031eff_rle_crop_3728587364_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/d0cdc5eed26bcc547475ff98d949ce12_5357201.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/90e2ecffb1b533fc099111649ea38bba_14136622.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/34e875daf666ff7bd80d55269c0103d2_96656918.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/d6b94ad7be2881a541eac06498c31ff2_13157827.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/3fed6d932b0a05fb666041c1c65112da_66844688.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/0434697b88fef0366624e6c5c9bdbb19_34334361.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/d4665f90576aa852f790d873e9fe6a24_76990853.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/d319e7d8d655b59b87973ef5bd72ae29_18286726.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/cb9647c7ead5156b41dee1416b70c648_35180539.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/72da04a6a41c6348a0069a3819444ddc_61658447.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/6c450c679aa37ea4a4010d249b3d6a93_90967029.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/4abaf87f11b65774abfa3d052a1bab53_10035474.png change filename to text .imagette216804681742881624/ imagette216804681742881624/1742881512_115215_1347098405_284a426431ed22f626ff60453a48db22_rle_crop_3728585896_0.png.png imagette216804681742881624/1742880853_111291_1347097449_fe77466a8143c47657e8e17d8a2029b1_rle_crop_3728582846_0.png.png imagette216804681742881624/1742881537_4090624_1347098316_e9f16eeeb0f1d90a74b00b1de128f954_rle_crop_3728587111_0.png.png imagette216804681742881624/1742881532_115463_1347098299_3218a15f139af7770034b7cf82031eff_rle_crop_3728587364_0.png.png imagette216804681742881624/1742881332_114071_1347098233_446b119f68cf53f1e7093f65851840e9_rle_crop_3728584718_0.png.png imagette216804681742881624/1742880979_111994_1347097657_629c2c87e5cfc6848b78f8b41a6732ea_rle_crop_3728583160_0.png.png imagette216804681742881624/1742880853_111291_1347097446_58c91571e75a1f3a30a32bebc509977e_rle_crop_3728582887_0.png.png imagette216804681742881624/1742880979_111994_1347097657_629c2c87e5cfc6848b78f8b41a6732ea_rle_crop_3728583159_0.png.png imagette216804681742881624/1742881532_115463_1347098310_41eb36f44edc7f3f02f9d4859c394673_rle_crop_3728587229_0.png.png imagette216804681742881624/1742881532_115463_1347098310_41eb36f44edc7f3f02f9d4859c394673_rle_crop_3728587224_0.png.png imagette216804681742881624/1742880853_111291_1347097470_79031dba91b15581155f86a9513999a8_rle_crop_3728582791_0.png.png imagette216804681742881624/1742881532_115463_1347098299_3218a15f139af7770034b7cf82031eff_rle_crop_3728587369_0.png.png imagette216804681742881624/1742880853_111291_1347097470_79031dba91b15581155f86a9513999a8_rle_crop_3728582793_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/37b69e61410e8e03cb93706f9b3d7d26_30879132.png imagette216804681742881624 21680469 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=21680469 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347098328: '1742881263_113537_1347098139_ba80436d0ebfea643dfcc9d10044fa99_rle_crop_3728584413_0.png', 1347098543: '1742881532_115463_1347098299_3218a15f139af7770034b7cf82031eff_rle_crop_3728587370_0.png', 1347098542: '1742881532_115463_1347098299_3218a15f139af7770034b7cf82031eff_rle_crop_3728587371_0.png', 1347098541: '1742881532_115463_1347098299_3218a15f139af7770034b7cf82031eff_rle_crop_3728587375_0.png', 1347098540: '1742881532_115463_1347098302_5ba06625c60780b419c2201638c38e61_rle_crop_3728587353_0.png', 1347098538: '1742881532_115463_1347098302_5ba06625c60780b419c2201638c38e61_rle_crop_3728587350_0.png', 1347098521: '1742881537_4090624_1347098316_e9f16eeeb0f1d90a74b00b1de128f954_rle_crop_3728587110_0.png', 1347098508: '1742881512_115215_1347098351_488b69686af2ed14a8ed6f7b772c93f0_rle_crop_3728587093_0.png', 1347098507: '1742881512_115215_1347098405_284a426431ed22f626ff60453a48db22_rle_crop_3728585894_0.png', 1347098482: '1742881492_114973_1347098394_8113e1dfbaa78747e904951a94ec8560_rle_crop_3728585757_0.png', 1347098382: '1742881332_114071_1347098237_6110266c43769d26b3b9bc7b8eb76a36_rle_crop_3728584694_0.png', 1347098329: '1742881263_113537_1347098139_ba80436d0ebfea643dfcc9d10044fa99_rle_crop_3728584411_0.png', 1347097699: '1742880853_111291_1347097593_280e79f3f5f4168dd91dfbf783f2049e_rle_crop_3728582781_0.png', 1347098327: '1742881263_113537_1347098204_2ecf95ee6f61614da590e90b760410f4_rle_crop_3728584298_0.png', 1347098326: '1742881263_113537_1347098204_2ecf95ee6f61614da590e90b760410f4_rle_crop_3728584307_0.png', 1347098314: '1742881251_113445_1347098176_db2a9709a99c67a64dbbe15930d2724c_rle_crop_3728584281_0.png', 1347098313: '1742881251_113445_1347098176_db2a9709a99c67a64dbbe15930d2724c_rle_crop_3728584285_0.png', 1347098312: '1742881251_113445_1347098179_cc87c27cce7e51aaa164d436a6993d6b_rle_crop_3728584269_0.png', 1347098185: '1742881110_112748_1347097697_f53e2eeac55f21230c8a2d9a52de8cca_rle_crop_3728583699_0.png', 1347098184: '1742881110_112748_1347097707_4148816ac56f9c2c37252ebaa22fd790_rle_crop_3728583683_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/2082f3d3f0054d265ad03bf6db687603_52514684.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/34ada4c531fa71e390ffff965d6d8380_4137407.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/10405fd7042866e29079e2f9c4b20ce7_92316743.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/dbedad5f2486f07e40327e1e37764276_24049382.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/63405fed194d4a397f49a30438af4a2e_68445347.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/a149bb63e5b66dfe5263a84728024967_45329439.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/adaacb24abd815f0484d91ac352dac2d_61241823.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/b6f61642a8533cd9dad9f8b62c1a6b74_56437063.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/267b346cd321e19a4014242d312286b5_56013371.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/3410ddb4cc29e73b330d453e245bb91c_13348712.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/9bd7aacccbf2f117caab4bccd6db7f81_70879143.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/c233fd276fee0636fcb3cf7065fb67fb_43305852.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/1c6b90b053f82d3896ff9f44e6d41cae_9327683.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/b07532c5cace84e66b94077e11f65984_45413850.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/69f2c13fa83218ff50c8abb7b9546270_33960958.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/396b130bfd216fb7a4d4e5d29ff2695c_77125415.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/32ff9006fd6c8ae4f53af4dbf41c5d0c_66385198.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/0db1dcc62e2a5512d2d3a955d51922d9_71244458.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/3a9599a04d5426d7f780a5930847cad4_54015571.png change filename to text .imagette216804691742881625/ imagette216804691742881625/1742881512_115215_1347098351_488b69686af2ed14a8ed6f7b772c93f0_rle_crop_3728587093_0.png.png imagette216804691742881625/1742881263_113537_1347098204_2ecf95ee6f61614da590e90b760410f4_rle_crop_3728584298_0.png.png imagette216804691742881625/1742881532_115463_1347098302_5ba06625c60780b419c2201638c38e61_rle_crop_3728587353_0.png.png imagette216804691742881625/1742881251_113445_1347098176_db2a9709a99c67a64dbbe15930d2724c_rle_crop_3728584285_0.png.png imagette216804691742881625/1742881512_115215_1347098405_284a426431ed22f626ff60453a48db22_rle_crop_3728585894_0.png.png imagette216804691742881625/1742881263_113537_1347098139_ba80436d0ebfea643dfcc9d10044fa99_rle_crop_3728584411_0.png.png imagette216804691742881625/1742881332_114071_1347098237_6110266c43769d26b3b9bc7b8eb76a36_rle_crop_3728584694_0.png.png imagette216804691742881625/1742881263_113537_1347098204_2ecf95ee6f61614da590e90b760410f4_rle_crop_3728584307_0.png.png imagette216804691742881625/1742881492_114973_1347098394_8113e1dfbaa78747e904951a94ec8560_rle_crop_3728585757_0.png.png imagette216804691742881625/1742881251_113445_1347098179_cc87c27cce7e51aaa164d436a6993d6b_rle_crop_3728584269_0.png.png imagette216804691742881625/1742881263_113537_1347098139_ba80436d0ebfea643dfcc9d10044fa99_rle_crop_3728584413_0.png.png imagette216804691742881625/1742880853_111291_1347097593_280e79f3f5f4168dd91dfbf783f2049e_rle_crop_3728582781_0.png.png imagette216804691742881625/1742881532_115463_1347098299_3218a15f139af7770034b7cf82031eff_rle_crop_3728587371_0.png.png imagette216804691742881625/1742881532_115463_1347098302_5ba06625c60780b419c2201638c38e61_rle_crop_3728587350_0.png.png imagette216804691742881625/1742881110_112748_1347097707_4148816ac56f9c2c37252ebaa22fd790_rle_crop_3728583683_0.png.png imagette216804691742881625/1742881532_115463_1347098299_3218a15f139af7770034b7cf82031eff_rle_crop_3728587375_0.png.png imagette216804691742881625/1742881251_113445_1347098176_db2a9709a99c67a64dbbe15930d2724c_rle_crop_3728584281_0.png.png imagette216804691742881625/1742881537_4090624_1347098316_e9f16eeeb0f1d90a74b00b1de128f954_rle_crop_3728587110_0.png.png imagette216804691742881625/1742881532_115463_1347098299_3218a15f139af7770034b7cf82031eff_rle_crop_3728587370_0.png.png imagette216804691742881625/1742881110_112748_1347097697_f53e2eeac55f21230c8a2d9a52de8cca_rle_crop_3728583699_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/9c4895dc0727b1532667be3d90529c09_61461660.png imagette216804691742881625 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21680463 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21680476,21680477,21680478,21680479,21680480,21680481,21680482,21680483,21680484,21680485,21680486,21680487?tags=cartonnette,environnement,metal,Carton_brun,Carton_gris,Teint_Dans_La_Masse,papier,plastique,kraft,autre_refus,flou,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1347098555] : ('0.09251986952502068',) no score found for photo 1347098555 We are sending mail with results at report@fotonower.com args[1347098537] : ('0.09251986952502068',) no score found for photo 1347098537 We are sending mail with results at report@fotonower.com args[1347098533] : ('0.09251986952502068',) no score found for photo 1347098533 We are sending mail with results at report@fotonower.com args[1347098528] : ('0.09251986952502068',) no score found for photo 1347098528 We are sending mail with results at report@fotonower.com args[1347098525] : ('0.09251986952502068',) no score found for photo 1347098525 We are sending mail with results at report@fotonower.com args[1347098520] : ('0.09251986952502068',) no score found for photo 1347098520 We are sending mail with results at report@fotonower.com args[1347098478] : ('0.09251986952502068',) no score found for photo 1347098478 We are sending mail with results at report@fotonower.com args[1347098473] : ('0.09251986952502068',) no score found for photo 1347098473 We are sending mail with results at report@fotonower.com args[1347098464] : ('0.09251986952502068',) no score found for photo 1347098464 We are sending mail with results at report@fotonower.com refus_total : 0.09251986952502068 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=21680463 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_P21680463_25-03-2025_06_47_00.pdf results_Auto_P21680463_25-03-2025_06_47_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21680463_25-03-2025_06_47_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21680463','results_Auto_P21680463_25-03-2025_06_47_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21680463_25-03-2025_06_47_00.pdf','pdf','','0.38','0.09251986952502068') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21680463]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347098555, 1347098537, 1347098533, 1347098528, 1347098525, 1347098520, 1347098478, 1347098473, 1347098464] map_info['map_portfolio_photo'] : {21680463: [1347098555, 1347098537, 1347098533, 1347098528, 1347098525, 1347098520, 1347098478, 1347098473, 1347098464, 1347098448, 1347098443, 1347098438, 1347098434, 1347098432, 1347098430, 1347098405, 1347098401, 1347098397, 1347098394, 1347098359, 1347098355, 1347098353, 1347098351, 1347098316, 1347098310, 1347098305, 1347098302, 1347098299, 1347098239, 1347098237, 1347098235, 1347098233, 1347098204, 1347098186, 1347098179, 1347098176, 1347098141, 1347098139, 1347098050, 1347097780, 1347097775, 1347097771, 1347097768, 1347097750, 1347097748, 1347097742, 1347097729, 1347097707, 1347097697, 1347097677, 1347097674, 1347097668, 1347097664, 1347097661, 1347097657, 1347097593, 1347097592, 1347097470, 1347097460, 1347097449, 1347097446]} final : False mtd_id 4302 list_pids : [1347098555, 1347098537, 1347098533, 1347098528, 1347098525, 1347098520, 1347098478, 1347098473, 1347098464] 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, '2688224') ('4302', '21680463', '1347098555', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098537', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098533', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098528', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098525', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098520', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098478', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098473', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098464', None, None, None, None, None, '2688224') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '21680463', '1347098555', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098537', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098533', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098528', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098525', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098520', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098478', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098473', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098464', None, None, None, None, None, '2688224')] time used for this insertion : 0.4445459842681885 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.357702732086182 time spend to save output : 0.4448237419128418 total time spend for step 4 : 7.802526473999023 step5:split_time_score Tue Mar 25 06: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 : ['21680463'] 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 : [('21680463',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21680463) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347098555: {'path': 'temp/1742881620_4094768_1347098555_feb62f66a4ee577c60ffda057c734c72.jpg', 'extension': 'jpg'}, 1347098533: {'path': 'temp/1742881620_4094768_1347098533_a726c1bbc994ac561adce1558ce0db09.jpg', 'extension': 'jpg'}, 1347098537: {'path': 'temp/1742881620_4094768_1347098537_d4d3b4395cc0233e2c5ce88fdd91ab57.jpg', 'extension': 'jpg'}, 1347098478: {'path': 'temp/1742881620_4094768_1347098478_9e8a4b504fdf3fd73f044df3e9cb5901.jpg', 'extension': 'jpg'}, 1347098520: {'path': 'temp/1742881620_4094768_1347098520_7834033e6d26bd57c3efdd2191c73857.jpg', 'extension': 'jpg'}, 1347098464: {'path': 'temp/1742881620_4094768_1347098464_c7f3798e45b345ccc5c54095c2324373.jpg', 'extension': 'jpg'}, 1347098473: {'path': 'temp/1742881620_4094768_1347098473_171355a9745ff6da67656f83f39d0e4e.jpg', 'extension': 'jpg'}, 1347098525: {'path': 'temp/1742881620_4094768_1347098525_d7fcee801f1c9f745d8c7b16516a4343.jpg', 'extension': 'jpg'}, 1347098528: {'path': 'temp/1742881620_4094768_1347098528_9cfb9cf3af363d4cf9aef524d6d34ae3.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 = 21680463; (('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 = 21680463 group by h (('06', 61),) 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=21680463 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 (21680463) 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 (21680463) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25032025 21680463 Nombre de photos uploadées : 61 / 23040 (0%) 25032025 21680463 Nombre de photos taguées (types de déchets): 0 / 61 (0%) 25032025 21680463 Nombre de photos taguées (volume) : 0 / 61 (0%) [{'photo_id': 1347097470, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/79031dba91b15581155f86a9513999a8.jpg', 'username': None, 'uploaded_at': 1742880731, 'text': 'image_25032025_06_30_04_010140m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347097460, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/cf17b3a3a74c2c6944b43b872da87e81.jpg', 'username': None, 'uploaded_at': 1742880731, 'text': 'image_25032025_06_30_13_009125m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347097449, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/fe77466a8143c47657e8e17d8a2029b1.jpg', 'username': None, 'uploaded_at': 1742880731, 'text': 'image_25032025_06_30_24_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347097446, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/58c91571e75a1f3a30a32bebc509977e.jpg', 'username': None, 'uploaded_at': 1742880731, 'text': 'image_25032025_06_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 6.67572021484375e-06 ????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002852201461791992 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21680463, '2025-03-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1685799,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.15952444076538086 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= 1685799 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1685799, 'dashboard_run_id': 1694057, 'mtr_portfolio_id': 21679339, 'dashboard_result_id': 9603297, '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_P21679339_25-03-2025_06_20_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21679340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21679341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21679342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21679343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21679344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21679345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21679346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21679347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21679348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21679349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21679350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21679351, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1694057, 'mtr_portfolio_id': 21679980, 'dashboard_result_id': 9603298, '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_P21679980_25-03-2025_06_34_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21679981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21679982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21679983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21679984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21679985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21679986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21679987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21679988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21679989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21679990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21679991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21679992, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1694057, 'mtr_portfolio_id': 21680463, 'dashboard_result_id': 9603299, '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_P21680463_25-03-2025_06_45_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21680464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21680465, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21680466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21680467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21680468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21680469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21680470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21680471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21680472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21680473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21680474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21680475, '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 = 21679339 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': 2688153, 'mtr_portfolio_id': 21679339, 'created_at': datetime.datetime(2025, 3, 25, 6, 20, 1), 'result': '0.06832369147736247', 'result_long': None, 'result_double': None}] Qualite : 0.06832369147736247 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21679339 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21679339_25-03-2025_06_20_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21679339 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_P21679339_25-03-2025_06_20_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21679340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21679341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21679342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21679343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21679344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21679345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21679346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21679347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21679348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21679349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21679350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21679351, 'pht': 3726}}" where mtr_portfolio_id = 21679339 and dashboard_run_id = 1694057 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`=21679339 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9603297, 0.06832369147736247, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21679339_25-03-2025_06_20_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21679340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21679341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21679342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21679343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21679344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21679345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21679346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21679347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21679348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21679349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21679350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21679351, '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 = 21679980 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': 2688192, 'mtr_portfolio_id': 21679980, 'created_at': datetime.datetime(2025, 3, 25, 6, 34), 'result': '0.07223093245956738', 'result_long': None, 'result_double': None}] Qualite : 0.07223093245956738 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21679980 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21679980_25-03-2025_06_34_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21679980 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_P21679980_25-03-2025_06_34_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21679981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21679982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21679983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21679984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21679985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21679986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21679987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21679988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21679989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21679990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21679991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21679992, 'pht': 3726}}" where mtr_portfolio_id = 21679980 and dashboard_run_id = 1694057 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`=21679980 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9603298, 0.07223093245956738, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21679980_25-03-2025_06_34_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21679981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21679982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21679983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21679984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21679985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21679986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21679987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21679988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21679989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21679990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21679991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21679992, '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 = 21680463 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': 2688224, 'mtr_portfolio_id': 21680463, 'created_at': datetime.datetime(2025, 3, 25, 6, 47), 'result': '0.09251986952502068', 'result_long': None, 'result_double': None}] Qualite : 0.09251986952502068 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21680463 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21680463_25-03-2025_06_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21680463 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_P21680463_25-03-2025_06_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21680464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21680465, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21680466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21680467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21680468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21680469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21680470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21680471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21680472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21680473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21680474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21680475, 'pht': 3726}}" where mtr_portfolio_id = 21680463 and dashboard_run_id = 1694057 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`=21680463 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9603299, 0.09251986952502068, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21680463_25-03-2025_06_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21680464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21680465, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21680466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21680467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21680468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21680469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21680470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21680471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21680472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21680473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21680474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21680475, '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 (21679339,21679980,21680463) result : ((1347094150,), (1347094174,), (1347094196,), (1347094201,), (1347094310,), (1347094345,), (1347094379,), (1347094401,), (1347094429,), (1347094506,), (1347094520,), (1347094532,), (1347094537,), (1347094545,), (1347094549,), (1347094617,), (1347094625,), (1347094634,), (1347094645,), (1347094761,), (1347094778,), (1347094786,), (1347094806,), (1347094809,), (1347094848,), (1347094852,), (1347094860,), (1347094866,), (1347094873,), (1347094882,), (1347094897,), (1347094898,), (1347094972,), (1347094975,), (1347094982,), (1347094988,), (1347094995,), (1347095020,), (1347095072,), (1347095074,), (1347095078,), (1347095127,), (1347095131,), (1347095136,), (1347095184,), (1347095191,), (1347095193,), (1347095197,), (1347095245,), (1347095246,), (1347095247,), (1347095251,), (1347095254,), (1347095280,), (1347095281,), (1347095282,), (1347095287,), (1347095596,), (1347095598,), (1347095610,), (1347095618,), (1347095635,), (1347095676,), (1347095680,), (1347095685,), (1347095691,), (1347095695,), (1347095726,), (1347095729,), (1347095732,), (1347095738,), (1347095822,), (1347095782,), (1347095794,), (1347095798,), (1347095806,), (1347095814,), (1347095855,), (1347095865,), (1347095880,), (1347095894,), (1347095898,), (1347095916,), (1347095932,), (1347095935,), (1347095956,), (1347095963,), (1347095997,), (1347095999,), (1347096001,), (1347096053,), (1347096055,), (1347096061,), (1347096066,), (1347096069,), (1347096075,), (1347096096,), (1347096103,), (1347096131,), (1347096136,), (1347096149,), (1347096176,), (1347096268,), (1347096276,), (1347096278,), (1347096297,), (1347096321,), (1347096324,), (1347096326,), (1347096331,), (1347096334,), (1347096340,), (1347096484,), (1347096633,), (1347096636,), (1347096833,), (1347096836,), (1347096840,), (1347096844,), (1347096848,), (1347096853,), (1347096881,), (1347096903,), (1347096912,), (1347096951,), (1347096962,), (1347096975,), (1347097009,), (1347097011,), (1347097013,), (1347097014,), (1347097020,), (1347097083,), (1347097110,), (1347097166,), (1347097174,), (1347097180,), (1347097313,), (1347097315,), (1347097334,), (1347097338,), (1347097352,), (1347097475,), (1347097446,), (1347097449,), (1347097460,), (1347097470,), (1347097592,), (1347097593,), (1347097657,), (1347097661,), (1347097664,), (1347097668,), (1347097674,), (1347097677,), (1347097697,), (1347097707,), (1347097729,), (1347097742,), (1347097748,), (1347097750,), (1347097768,), (1347097771,), (1347097775,), (1347097780,), (1347098050,), (1347098139,), (1347098141,), (1347098176,), (1347098179,), (1347098186,), (1347098204,), (1347098233,), (1347098235,), (1347098237,), (1347098239,), (1347098299,), (1347098302,), (1347098305,), (1347098310,), (1347098316,), (1347098351,), (1347098353,), (1347098355,), (1347098359,), (1347098394,), (1347098397,), (1347098401,), (1347098405,), (1347098430,), (1347098432,), (1347098434,), (1347098438,), (1347098443,), (1347098448,), (1347098464,), (1347098473,), (1347098478,), (1347098520,), (1347098525,), (1347098528,), (1347098533,), (1347098537,), (1347098555,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25032025': {'nb_upload': 61, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21680463]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347098555, 1347098537, 1347098533, 1347098528, 1347098525, 1347098520, 1347098478, 1347098473, 1347098464] map_info['map_portfolio_photo'] : {21680463: [1347098555, 1347098537, 1347098533, 1347098528, 1347098525, 1347098520, 1347098478, 1347098473, 1347098464, 1347098448, 1347098443, 1347098438, 1347098434, 1347098432, 1347098430, 1347098405, 1347098401, 1347098397, 1347098394, 1347098359, 1347098355, 1347098353, 1347098351, 1347098316, 1347098310, 1347098305, 1347098302, 1347098299, 1347098239, 1347098237, 1347098235, 1347098233, 1347098204, 1347098186, 1347098179, 1347098176, 1347098141, 1347098139, 1347098050, 1347097780, 1347097775, 1347097771, 1347097768, 1347097750, 1347097748, 1347097742, 1347097729, 1347097707, 1347097697, 1347097677, 1347097674, 1347097668, 1347097664, 1347097661, 1347097657, 1347097593, 1347097592, 1347097470, 1347097460, 1347097449, 1347097446]} final : True mtd_id 4302 list_pids : [1347098555, 1347098537, 1347098533, 1347098528, 1347098525, 1347098520, 1347098478, 1347098473, 1347098464] Looping around the photos to save general results len do output : 1 /21680463Didn'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, '2688224') ('4302', '21680463', '1347098555', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098537', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098533', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098528', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098525', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098520', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098478', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098473', None, None, None, None, None, '2688224') ('4302', None, None, None, None, None, None, None, '2688224') ('4302', '21680463', '1347098464', None, None, None, None, None, '2688224') 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', None, '21680463', 'None', None, None, None, None, '2688224'), ('4302', '21680463', '1347098555', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098537', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098533', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098528', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098525', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098520', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098478', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098473', None, None, None, None, None, '2688224'), ('4302', '21680463', '1347098464', None, None, None, None, None, '2688224')] time used for this insertion : 0.01797962188720703 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4524497985839844 time spend to save output : 0.018271923065185547 total time spend for step 5 : 0.4707217216491699 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 (2688224) 2.31user 2.42system 0:14.55elapsed 32%CPU (0avgtext+0avgdata 160668maxresident)k 22328inputs+20904outputs (97major+76330minor)pagefaults 0swaps