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 : 2860626 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 (2683904) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2683904) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21627257 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2683904'] with mtr_portfolio_ids : ['21627257'] and first list_photo_ids : [] new path : /proc/2860626/ Name: python3 Umask: 0002 State: R (running) Tgid: 2860626 Ngid: 0 Pid: 2860626 PPid: 2860625 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2860626 NSpid: 2860626 NSpgid: 2857418 NSsid: 2857418 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98836 kB VmRSS: 98836 kB RssAnon: 59756 kB RssFile: 39080 kB RssShmem: 0 kB VmData: 865588 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 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: 47 nonvoluntary_ctxt_switches: 205 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2860626', 'Ngid': '0', 'Pid': '2860626', 'PPid': '2860625', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2860626', 'NSpid': '2860626', 'NSpgid': '2857418', 'NSsid': '2857418', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98836 kB', 'VmRSS': '98836 kB', 'RssAnon': '59756 kB', 'RssFile': '39080 kB', 'RssShmem': '0 kB', 'VmData': '865588 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 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': '47', 'nonvoluntary_ctxt_switches': '205'} ('datou_batch_current', '2860626', '1106840', '0', '1106840', '865588', '98836', b'', 'marlene', '2683904') 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 (21627257) 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 (2683904 ) ) 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 (21627257) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1346708273, 'portfolio_id': 21627257}, {'photo_id': 1346708265, 'portfolio_id': 21627257}, {'photo_id': 1346708256, 'portfolio_id': 21627257}, {'photo_id': 1346708231, 'portfolio_id': 21627257}, {'photo_id': 1346708229, 'portfolio_id': 21627257}, {'photo_id': 1346708225, 'portfolio_id': 21627257}, {'photo_id': 1346708213, 'portfolio_id': 21627257}, {'photo_id': 1346708060, 'portfolio_id': 21627257}, {'photo_id': 1346708002, 'portfolio_id': 21627257}, {'photo_id': 1346707958, 'portfolio_id': 21627257}, {'photo_id': 1346707931, 'portfolio_id': 21627257}, {'photo_id': 1346707904, 'portfolio_id': 21627257}, {'photo_id': 1346707875, 'portfolio_id': 21627257}, {'photo_id': 1346707642, 'portfolio_id': 21627257}, {'photo_id': 1346707640, 'portfolio_id': 21627257}, {'photo_id': 1346707637, 'portfolio_id': 21627257}, {'photo_id': 1346707635, 'portfolio_id': 21627257}, {'photo_id': 1346707633, 'portfolio_id': 21627257}, {'photo_id': 1346707631, 'portfolio_id': 21627257}, {'photo_id': 1346707602, 'portfolio_id': 21627257}, {'photo_id': 1346707595, 'portfolio_id': 21627257}, {'photo_id': 1346707592, 'portfolio_id': 21627257}, {'photo_id': 1346707589, 'portfolio_id': 21627257}, {'photo_id': 1346707556, 'portfolio_id': 21627257}, {'photo_id': 1346707553, 'portfolio_id': 21627257}, {'photo_id': 1346707551, 'portfolio_id': 21627257}, {'photo_id': 1346707549, 'portfolio_id': 21627257}, {'photo_id': 1346707547, 'portfolio_id': 21627257}, {'photo_id': 1346707527, 'portfolio_id': 21627257}, {'photo_id': 1346707524, 'portfolio_id': 21627257}, {'photo_id': 1346707523, 'portfolio_id': 21627257}, {'photo_id': 1346707520, 'portfolio_id': 21627257}, {'photo_id': 1346707517, 'portfolio_id': 21627257}, {'photo_id': 1346707509, 'portfolio_id': 21627257}, {'photo_id': 1346707479, 'portfolio_id': 21627257}, {'photo_id': 1346707476, 'portfolio_id': 21627257}, {'photo_id': 1346707474, 'portfolio_id': 21627257}, {'photo_id': 1346707472, 'portfolio_id': 21627257}, {'photo_id': 1346707470, 'portfolio_id': 21627257}, {'photo_id': 1346707449, 'portfolio_id': 21627257}, {'photo_id': 1346707445, 'portfolio_id': 21627257}, {'photo_id': 1346707441, 'portfolio_id': 21627257}, {'photo_id': 1346707437, 'portfolio_id': 21627257}, {'photo_id': 1346707434, 'portfolio_id': 21627257}, {'photo_id': 1346707378, 'portfolio_id': 21627257}, {'photo_id': 1346707374, 'portfolio_id': 21627257}, {'photo_id': 1346707371, 'portfolio_id': 21627257}, {'photo_id': 1346707368, 'portfolio_id': 21627257}, {'photo_id': 1346707365, 'portfolio_id': 21627257}, {'photo_id': 1346707342, 'portfolio_id': 21627257}, {'photo_id': 1346707338, 'portfolio_id': 21627257}, {'photo_id': 1346707334, 'portfolio_id': 21627257}, {'photo_id': 1346707331, 'portfolio_id': 21627257}, {'photo_id': 1346707322, 'portfolio_id': 21627257}, {'photo_id': 1346707294, 'portfolio_id': 21627257}, {'photo_id': 1346707292, 'portfolio_id': 21627257}, {'photo_id': 1346707290, 'portfolio_id': 21627257}, {'photo_id': 1346707209, 'portfolio_id': 21627257}, {'photo_id': 1346707206, 'portfolio_id': 21627257}, {'photo_id': 1346707202, 'portfolio_id': 21627257}] map_portfolio_id_photo_id: {21627257: [1346708273, 1346708265, 1346708256, 1346708231, 1346708229, 1346708225, 1346708213, 1346708060, 1346708002, 1346707958, 1346707931, 1346707904, 1346707875, 1346707642, 1346707640, 1346707637, 1346707635, 1346707633, 1346707631, 1346707602, 1346707595, 1346707592, 1346707589, 1346707556, 1346707553, 1346707551, 1346707549, 1346707547, 1346707527, 1346707524, 1346707523, 1346707520, 1346707517, 1346707509, 1346707479, 1346707476, 1346707474, 1346707472, 1346707470, 1346707449, 1346707445, 1346707441, 1346707437, 1346707434, 1346707378, 1346707374, 1346707371, 1346707368, 1346707365, 1346707342, 1346707338, 1346707334, 1346707331, 1346707322, 1346707294, 1346707292, 1346707290, 1346707209, 1346707206, 1346707202]} ##### 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.024010181427001953 #### 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 Mon Mar 24 06:00:28 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 (21627257) 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 : 21627257 get user id for portfolio 21627257 get sub ptf for main ptf 21627257, type 3726 and hashtags ['Carton_brun', 'kraft', 'metal', 'Carton_gris', 'autre_refus', 'plastique', 'environnement', 'papier', 'cartonnette', 'mal_croppe', 'Teint_Dans_La_Masse', 'flou'] 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`=21627257 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','kraft','metal','Carton_gris','autre_refus','plastique','environnement','papier','cartonnette','mal_croppe','Teint_Dans_La_Masse','flou')) 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`=21627257 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','kraft','metal','Carton_gris','autre_refus','plastique','environnement','papier','cartonnette','mal_croppe','Teint_Dans_La_Masse','flou')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 21627257, 'sub_port_id': 21627258, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165718, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 57)}, 'papier': {'main_port_id': 21627257, 'sub_port_id': 21627259, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165719, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 57)}, 'Carton_gris': {'main_port_id': 21627257, 'sub_port_id': 21627260, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165720, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 57)}, 'kraft': {'main_port_id': 21627257, 'sub_port_id': 21627261, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165721, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 57)}, 'mal_croppe': {'main_port_id': 21627257, 'sub_port_id': 21627262, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165722, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 57)}, 'flou': {'main_port_id': 21627257, 'sub_port_id': 21627263, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165723, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 57)}, 'autre_refus': {'main_port_id': 21627257, 'sub_port_id': 21627264, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165724, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 57)}, 'cartonnette': {'main_port_id': 21627257, 'sub_port_id': 21627265, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165725, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 57)}, 'plastique': {'main_port_id': 21627257, 'sub_port_id': 21627266, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165726, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21627257, 'sub_port_id': 21627267, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165727, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 57)}, 'environnement': {'main_port_id': 21627257, 'sub_port_id': 21627268, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165728, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 57)}, 'Carton_brun': {'main_port_id': 21627257, 'sub_port_id': 21627269, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165729, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21627258 , 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=21627257 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 (21627258) result : ((1346708274,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21627257) result : ((1346707202,), (1346707206,), (1346707209,), (1346707290,), (1346707292,), (1346707294,), (1346707322,), (1346707331,), (1346707334,), (1346707338,), (1346707342,), (1346707365,), (1346707368,), (1346707371,), (1346707374,), (1346707378,), (1346707434,), (1346707437,), (1346707441,), (1346707445,), (1346707449,), (1346707470,), (1346707472,), (1346707474,), (1346707476,), (1346707479,), (1346707509,), (1346707517,), (1346707520,), (1346707523,), (1346707524,), (1346707527,), (1346707547,), (1346707549,), (1346707551,), (1346707553,), (1346707556,), (1346707589,), (1346707592,), (1346707595,), (1346707602,), (1346707631,), (1346707633,), (1346707635,), (1346707637,), (1346707640,), (1346707642,), (1346707875,), (1346707904,), (1346707931,), (1346707958,), (1346708002,), (1346708060,), (1346708213,), (1346708225,), (1346708229,), (1346708231,), (1346708256,), (1346708265,), (1346708273,)) 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 21627259 , 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=21627257 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 (21627259) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21627257) result : ((1346707202,), (1346707206,), (1346707209,), (1346707290,), (1346707292,), (1346707294,), (1346707322,), (1346707331,), (1346707334,), (1346707338,), (1346707342,), (1346707365,), (1346707368,), (1346707371,), (1346707374,), (1346707378,), (1346707434,), (1346707437,), (1346707441,), (1346707445,), (1346707449,), (1346707470,), (1346707472,), (1346707474,), (1346707476,), (1346707479,), (1346707509,), (1346707517,), (1346707520,), (1346707523,), (1346707524,), (1346707527,), (1346707547,), (1346707549,), (1346707551,), (1346707553,), (1346707556,), (1346707589,), (1346707592,), (1346707595,), (1346707602,), (1346707631,), (1346707633,), (1346707635,), (1346707637,), (1346707640,), (1346707642,), (1346707875,), (1346707904,), (1346707931,), (1346707958,), (1346708002,), (1346708060,), (1346708213,), (1346708225,), (1346708229,), (1346708231,), (1346708256,), (1346708265,), (1346708273,)) 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 21627260 , 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=21627257 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 (21627260) result : ((1346707491,), (1346707492,), (1346707571,), (1346707610,), (1346707747,), (1346708263,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21627257) result : ((1346707202,), (1346707206,), (1346707209,), (1346707290,), (1346707292,), (1346707294,), (1346707322,), (1346707331,), (1346707334,), (1346707338,), (1346707342,), (1346707365,), (1346707368,), (1346707371,), (1346707374,), (1346707378,), (1346707434,), (1346707437,), (1346707441,), (1346707445,), (1346707449,), (1346707470,), (1346707472,), (1346707474,), (1346707476,), (1346707479,), (1346707509,), (1346707517,), (1346707520,), (1346707523,), (1346707524,), (1346707527,), (1346707547,), (1346707549,), (1346707551,), (1346707553,), (1346707556,), (1346707589,), (1346707592,), (1346707595,), (1346707602,), (1346707631,), (1346707633,), (1346707635,), (1346707637,), (1346707640,), (1346707642,), (1346707875,), (1346707904,), (1346707931,), (1346707958,), (1346708002,), (1346708060,), (1346708213,), (1346708225,), (1346708229,), (1346708231,), (1346708256,), (1346708265,), (1346708273,)) 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 21627261 , 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=21627257 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 (21627261) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21627257) result : ((1346707202,), (1346707206,), (1346707209,), (1346707290,), (1346707292,), (1346707294,), (1346707322,), (1346707331,), (1346707334,), (1346707338,), (1346707342,), (1346707365,), (1346707368,), (1346707371,), (1346707374,), (1346707378,), (1346707434,), (1346707437,), (1346707441,), (1346707445,), (1346707449,), (1346707470,), (1346707472,), (1346707474,), (1346707476,), (1346707479,), (1346707509,), (1346707517,), (1346707520,), (1346707523,), (1346707524,), (1346707527,), (1346707547,), (1346707549,), (1346707551,), (1346707553,), (1346707556,), (1346707589,), (1346707592,), (1346707595,), (1346707602,), (1346707631,), (1346707633,), (1346707635,), (1346707637,), (1346707640,), (1346707642,), (1346707875,), (1346707904,), (1346707931,), (1346707958,), (1346708002,), (1346708060,), (1346708213,), (1346708225,), (1346708229,), (1346708231,), (1346708256,), (1346708265,), (1346708273,)) 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 21627262 , 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=21627257 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 (21627262) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21627257) result : ((1346707202,), (1346707206,), (1346707209,), (1346707290,), (1346707292,), (1346707294,), (1346707322,), (1346707331,), (1346707334,), (1346707338,), (1346707342,), (1346707365,), (1346707368,), (1346707371,), (1346707374,), (1346707378,), (1346707434,), (1346707437,), (1346707441,), (1346707445,), (1346707449,), (1346707470,), (1346707472,), (1346707474,), (1346707476,), (1346707479,), (1346707509,), (1346707517,), (1346707520,), (1346707523,), (1346707524,), (1346707527,), (1346707547,), (1346707549,), (1346707551,), (1346707553,), (1346707556,), (1346707589,), (1346707592,), (1346707595,), (1346707602,), (1346707631,), (1346707633,), (1346707635,), (1346707637,), (1346707640,), (1346707642,), (1346707875,), (1346707904,), (1346707931,), (1346707958,), (1346708002,), (1346708060,), (1346708213,), (1346708225,), (1346708229,), (1346708231,), (1346708256,), (1346708265,), (1346708273,)) 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 21627263 , 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=21627257 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 (21627263) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21627257) result : ((1346707202,), (1346707206,), (1346707209,), (1346707290,), (1346707292,), (1346707294,), (1346707322,), (1346707331,), (1346707334,), (1346707338,), (1346707342,), (1346707365,), (1346707368,), (1346707371,), (1346707374,), (1346707378,), (1346707434,), (1346707437,), (1346707441,), (1346707445,), (1346707449,), (1346707470,), (1346707472,), (1346707474,), (1346707476,), (1346707479,), (1346707509,), (1346707517,), (1346707520,), (1346707523,), (1346707524,), (1346707527,), (1346707547,), (1346707549,), (1346707551,), (1346707553,), (1346707556,), (1346707589,), (1346707592,), (1346707595,), (1346707602,), (1346707631,), (1346707633,), (1346707635,), (1346707637,), (1346707640,), (1346707642,), (1346707875,), (1346707904,), (1346707931,), (1346707958,), (1346708002,), (1346708060,), (1346708213,), (1346708225,), (1346708229,), (1346708231,), (1346708256,), (1346708265,), (1346708273,)) 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 21627264 , 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=21627257 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 (21627264) result : ((1346707324,), (1346707325,), (1346707328,), (1346707428,), (1346707485,), (1346707486,), (1346707487,), (1346707488,), (1346707569,), (1346707570,), (1346707579,), (1346707603,), (1346707604,), (1346707605,), (1346707606,), (1346707649,), (1346707742,), (1346707956,), (1346707959,), (1346707961,), (1346707963,), (1346707965,), (1346708125,), (1346708126,), (1346708127,), (1346708128,), (1346708129,), (1346708236,), (1346708257,), (1346708258,), (1346708260,), (1346708261,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21627257) result : ((1346707202,), (1346707206,), (1346707209,), (1346707290,), (1346707292,), (1346707294,), (1346707322,), (1346707331,), (1346707334,), (1346707338,), (1346707342,), (1346707365,), (1346707368,), (1346707371,), (1346707374,), (1346707378,), (1346707434,), (1346707437,), (1346707441,), (1346707445,), (1346707449,), (1346707470,), (1346707472,), (1346707474,), (1346707476,), (1346707479,), (1346707509,), (1346707517,), (1346707520,), (1346707523,), (1346707524,), (1346707527,), (1346707547,), (1346707549,), (1346707551,), (1346707553,), (1346707556,), (1346707589,), (1346707592,), (1346707595,), (1346707602,), (1346707631,), (1346707633,), (1346707635,), (1346707637,), (1346707640,), (1346707642,), (1346707875,), (1346707904,), (1346707931,), (1346707958,), (1346708002,), (1346708060,), (1346708213,), (1346708225,), (1346708229,), (1346708231,), (1346708256,), (1346708265,), (1346708273,)) 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 21627265 , 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=21627257 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 (21627265) result : ((1346707493,), (1346707650,), (1346707974,), (1346707976,), (1346708130,), (1346708264,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21627257) result : ((1346707202,), (1346707206,), (1346707209,), (1346707290,), (1346707292,), (1346707294,), (1346707322,), (1346707331,), (1346707334,), (1346707338,), (1346707342,), (1346707365,), (1346707368,), (1346707371,), (1346707374,), (1346707378,), (1346707434,), (1346707437,), (1346707441,), (1346707445,), (1346707449,), (1346707470,), (1346707472,), (1346707474,), (1346707476,), (1346707479,), (1346707509,), (1346707517,), (1346707520,), (1346707523,), (1346707524,), (1346707527,), (1346707547,), (1346707549,), (1346707551,), (1346707553,), (1346707556,), (1346707589,), (1346707592,), (1346707595,), (1346707602,), (1346707631,), (1346707633,), (1346707635,), (1346707637,), (1346707640,), (1346707642,), (1346707875,), (1346707904,), (1346707931,), (1346707958,), (1346708002,), (1346708060,), (1346708213,), (1346708225,), (1346708229,), (1346708231,), (1346708256,), (1346708265,), (1346708273,)) 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 21627266 , 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=21627257 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 (21627266) result : ((1346707574,), (1346707575,), (1346707576,), (1346707752,), (1346708270,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21627257) result : ((1346707202,), (1346707206,), (1346707209,), (1346707290,), (1346707292,), (1346707294,), (1346707322,), (1346707331,), (1346707334,), (1346707338,), (1346707342,), (1346707365,), (1346707368,), (1346707371,), (1346707374,), (1346707378,), (1346707434,), (1346707437,), (1346707441,), (1346707445,), (1346707449,), (1346707470,), (1346707472,), (1346707474,), (1346707476,), (1346707479,), (1346707509,), (1346707517,), (1346707520,), (1346707523,), (1346707524,), (1346707527,), (1346707547,), (1346707549,), (1346707551,), (1346707553,), (1346707556,), (1346707589,), (1346707592,), (1346707595,), (1346707602,), (1346707631,), (1346707633,), (1346707635,), (1346707637,), (1346707640,), (1346707642,), (1346707875,), (1346707904,), (1346707931,), (1346707958,), (1346708002,), (1346708060,), (1346708213,), (1346708225,), (1346708229,), (1346708231,), (1346708256,), (1346708265,), (1346708273,)) 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 21627267 , 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=21627257 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 (21627267) result : ((1346707323,), (1346707482,), (1346707483,), (1346707597,), (1346707599,), (1346707600,), (1346707601,), (1346707647,), (1346707941,), (1346708117,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21627257) result : ((1346707202,), (1346707206,), (1346707209,), (1346707290,), (1346707292,), (1346707294,), (1346707322,), (1346707331,), (1346707334,), (1346707338,), (1346707342,), (1346707365,), (1346707368,), (1346707371,), (1346707374,), (1346707378,), (1346707434,), (1346707437,), (1346707441,), (1346707445,), (1346707449,), (1346707470,), (1346707472,), (1346707474,), (1346707476,), (1346707479,), (1346707509,), (1346707517,), (1346707520,), (1346707523,), (1346707524,), (1346707527,), (1346707547,), (1346707549,), (1346707551,), (1346707553,), (1346707556,), (1346707589,), (1346707592,), (1346707595,), (1346707602,), (1346707631,), (1346707633,), (1346707635,), (1346707637,), (1346707640,), (1346707642,), (1346707875,), (1346707904,), (1346707931,), (1346707958,), (1346708002,), (1346708060,), (1346708213,), (1346708225,), (1346708229,), (1346708231,), (1346708256,), (1346708265,), (1346708273,)) 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 21627268 , 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=21627257 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 (21627268) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21627257) result : ((1346707202,), (1346707206,), (1346707209,), (1346707290,), (1346707292,), (1346707294,), (1346707322,), (1346707331,), (1346707334,), (1346707338,), (1346707342,), (1346707365,), (1346707368,), (1346707371,), (1346707374,), (1346707378,), (1346707434,), (1346707437,), (1346707441,), (1346707445,), (1346707449,), (1346707470,), (1346707472,), (1346707474,), (1346707476,), (1346707479,), (1346707509,), (1346707517,), (1346707520,), (1346707523,), (1346707524,), (1346707527,), (1346707547,), (1346707549,), (1346707551,), (1346707553,), (1346707556,), (1346707589,), (1346707592,), (1346707595,), (1346707602,), (1346707631,), (1346707633,), (1346707635,), (1346707637,), (1346707640,), (1346707642,), (1346707875,), (1346707904,), (1346707931,), (1346707958,), (1346708002,), (1346708060,), (1346708213,), (1346708225,), (1346708229,), (1346708231,), (1346708256,), (1346708265,), (1346708273,)) 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 21627269 , 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=21627257 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 (21627269) result : ((1346707329,), (1346707494,), (1346707573,), (1346707580,), (1346707581,), (1346707988,), (1346708132,), (1346708266,), (1346708267,), (1346708268,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21627257) result : ((1346707202,), (1346707206,), (1346707209,), (1346707290,), (1346707292,), (1346707294,), (1346707322,), (1346707331,), (1346707334,), (1346707338,), (1346707342,), (1346707365,), (1346707368,), (1346707371,), (1346707374,), (1346707378,), (1346707434,), (1346707437,), (1346707441,), (1346707445,), (1346707449,), (1346707470,), (1346707472,), (1346707474,), (1346707476,), (1346707479,), (1346707509,), (1346707517,), (1346707520,), (1346707523,), (1346707524,), (1346707527,), (1346707547,), (1346707549,), (1346707551,), (1346707553,), (1346707556,), (1346707589,), (1346707592,), (1346707595,), (1346707602,), (1346707631,), (1346707633,), (1346707635,), (1346707637,), (1346707640,), (1346707642,), (1346707875,), (1346707904,), (1346707931,), (1346707958,), (1346708002,), (1346708060,), (1346708213,), (1346708225,), (1346708229,), (1346708231,), (1346708256,), (1346708265,), (1346708273,)) 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`=21627257 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','kraft','metal','Carton_gris','autre_refus','plastique','environnement','papier','cartonnette','mal_croppe','Teint_Dans_La_Masse','flou')) 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`=21627257 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','kraft','metal','Carton_gris','autre_refus','plastique','environnement','papier','cartonnette','mal_croppe','Teint_Dans_La_Masse','flou')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 21627257, 'sub_port_id': 21627270, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165730, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 59)}, 'papier': {'main_port_id': 21627257, 'sub_port_id': 21627271, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165731, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 59)}, 'Carton_gris': {'main_port_id': 21627257, 'sub_port_id': 21627272, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165732, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 59)}, 'kraft': {'main_port_id': 21627257, 'sub_port_id': 21627273, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165733, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 59)}, 'mal_croppe': {'main_port_id': 21627257, 'sub_port_id': 21627274, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165734, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 59)}, 'flou': {'main_port_id': 21627257, 'sub_port_id': 21627275, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165735, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 59)}, 'autre_refus': {'main_port_id': 21627257, 'sub_port_id': 21627276, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165736, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 59)}, 'cartonnette': {'main_port_id': 21627257, 'sub_port_id': 21627277, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165737, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 59)}, 'plastique': {'main_port_id': 21627257, 'sub_port_id': 21627278, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165738, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21627257, 'sub_port_id': 21627279, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165739, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 59)}, 'environnement': {'main_port_id': 21627257, 'sub_port_id': 21627280, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165740, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 59)}, 'Carton_brun': {'main_port_id': 21627257, 'sub_port_id': 21627281, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14165741, 'last_updated_at': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 5, 57, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 5, 50, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21627270,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21627258 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21627271,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21627259 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21627272,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21627260 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21627273,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21627261 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21627274,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21627262 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21627275,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21627263 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21627276,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21627264 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21627277,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21627265 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21627278,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21627266 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21627279,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21627267 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21627280,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21627268 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21627281,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21627269 lien utilise dans velours : https://www.fotonower.com/velours/21627270,21627271,21627272,21627273,21627274,21627275,21627276,21627277,21627278,21627279,21627280,21627281?tags=metal,papier,Carton_gris,kraft,mal_croppe,flou,autre_refus,cartonnette,plastique,Teint_Dans_La_Masse,environnement,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21627257]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1346708273, 1346708265, 1346708256, 1346708231, 1346708229, 1346708225, 1346708213] map_info['map_portfolio_photo'] : {21627257: [1346708273, 1346708265, 1346708256, 1346708231, 1346708229, 1346708225, 1346708213, 1346708060, 1346708002, 1346707958, 1346707931, 1346707904, 1346707875, 1346707642, 1346707640, 1346707637, 1346707635, 1346707633, 1346707631, 1346707602, 1346707595, 1346707592, 1346707589, 1346707556, 1346707553, 1346707551, 1346707549, 1346707547, 1346707527, 1346707524, 1346707523, 1346707520, 1346707517, 1346707509, 1346707479, 1346707476, 1346707474, 1346707472, 1346707470, 1346707449, 1346707445, 1346707441, 1346707437, 1346707434, 1346707378, 1346707374, 1346707371, 1346707368, 1346707365, 1346707342, 1346707338, 1346707334, 1346707331, 1346707322, 1346707294, 1346707292, 1346707290, 1346707209, 1346707206, 1346707202]} final : False mtd_id 4302 list_pids : [1346708273, 1346708265, 1346708256, 1346708231, 1346708229, 1346708225, 1346708213] Looping around the photos to save general results len do output : 1 /21627257. 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, '2683904') ('4302', '21627257', '1346708273', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708265', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708256', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708231', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708229', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708225', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708213', None, None, None, None, None, '2683904') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '21627257', "{'metal': 21627258, 'papier': 21627259, 'Carton_gris': 21627260, 'kraft': 21627261, 'mal_croppe': 21627262, 'flou': 21627263, 'autre_refus': 21627264, 'cartonnette': 21627265, 'plastique': 21627266, 'Teint_Dans_La_Masse': 21627267, 'environnement': 21627268, 'Carton_brun': 21627269}", None, None, None, None, '2683904'), ('4302', '21627257', '1346708273', None, None, None, None, None, '2683904'), ('4302', '21627257', '1346708265', None, None, None, None, None, '2683904'), ('4302', '21627257', '1346708256', None, None, None, None, None, '2683904'), ('4302', '21627257', '1346708231', None, None, None, None, None, '2683904'), ('4302', '21627257', '1346708229', None, None, None, None, None, '2683904'), ('4302', '21627257', '1346708225', None, None, None, None, None, '2683904'), ('4302', '21627257', '1346708213', None, None, None, None, None, '2683904')] time used for this insertion : 0.016763687133789062 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.771845817565918 time spend to save output : 0.017034530639648438 total time spend for step 1 : 1.7888803482055664 step2:final Mon Mar 24 06:00:30 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 (21627257) 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 21627257 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1346707209,1346707206,1346707202,1346707294,1346707292,1346707290,1346707342,1346707338,1346707334,1346707331,1346707322,1346707378,1346707374,1346707371,1346707368,1346707365,1346707449,1346707445,1346707441,1346707437,1346707434,1346707479,1346707476,1346707474,1346707472,1346707470,1346707527,1346707524,1346707523,1346707520,1346707509,1346707517,1346707556,1346707553,1346707551,1346707549,1346707547,1346707602,1346707595,1346707592,1346707589,1346707642,1346707640,1346707637,1346707635,1346707633,1346707631,1346708060,1346708002,1346707958,1346707931,1346707904,1346707875,1346708231,1346708229,1346708225,1346708213,1346708273,1346708265,1346708256); 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([21627257]) Inside saveOutput : final : False verbose : True original output for save of step final : {1346708273: ('0.07025159054494129',), 1346708265: ('0.07025159054494129',), 1346708256: ('0.07025159054494129',), 1346708231: ('0.07025159054494129',), 1346708229: ('0.07025159054494129',), 1346708225: ('0.07025159054494129',), 1346708213: ('0.07025159054494129',)} new output for save of step final : {1346708273: ('0.07025159054494129',), 1346708265: ('0.07025159054494129',), 1346708256: ('0.07025159054494129',), 1346708231: ('0.07025159054494129',), 1346708229: ('0.07025159054494129',), 1346708225: ('0.07025159054494129',), 1346708213: ('0.07025159054494129',)} [1346708273, 1346708265, 1346708256, 1346708231, 1346708229, 1346708225, 1346708213] map_info['map_portfolio_photo'] : {21627257: [1346708273, 1346708265, 1346708256, 1346708231, 1346708229, 1346708225, 1346708213, 1346708060, 1346708002, 1346707958, 1346707931, 1346707904, 1346707875, 1346707642, 1346707640, 1346707637, 1346707635, 1346707633, 1346707631, 1346707602, 1346707595, 1346707592, 1346707589, 1346707556, 1346707553, 1346707551, 1346707549, 1346707547, 1346707527, 1346707524, 1346707523, 1346707520, 1346707517, 1346707509, 1346707479, 1346707476, 1346707474, 1346707472, 1346707470, 1346707449, 1346707445, 1346707441, 1346707437, 1346707434, 1346707378, 1346707374, 1346707371, 1346707368, 1346707365, 1346707342, 1346707338, 1346707334, 1346707331, 1346707322, 1346707294, 1346707292, 1346707290, 1346707209, 1346707206, 1346707202]} final : False mtd_id 4302 list_pids : [1346708273, 1346708265, 1346708256, 1346708231, 1346708229, 1346708225, 1346708213] Looping around the photos to save general results len do output : 7 /1346708273.Didn't retrieve data . /1346708265.Didn't retrieve data . /1346708256.Didn't retrieve data . /1346708231.Didn't retrieve data . /1346708229.Didn't retrieve data . /1346708225.Didn't retrieve data . /1346708213.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, '2683904') ('4302', '21627257', '1346708273', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708265', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708256', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708231', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708229', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708225', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708213', None, None, None, None, None, '2683904') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '21627257', '1346708273', '0.07025159054494129', None, None, None, None, '2683904'), ('4302', '21627257', '1346708265', '0.07025159054494129', None, None, None, None, '2683904'), ('4302', '21627257', '1346708256', '0.07025159054494129', None, None, None, None, '2683904'), ('4302', '21627257', '1346708231', '0.07025159054494129', None, None, None, None, '2683904'), ('4302', '21627257', '1346708229', '0.07025159054494129', None, None, None, None, '2683904'), ('4302', '21627257', '1346708225', '0.07025159054494129', None, None, None, None, '2683904'), ('4302', '21627257', '1346708213', '0.07025159054494129', None, None, None, None, '2683904')] time used for this insertion : 0.012342214584350586 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07170796394348145 time spend to save output : 0.012926578521728516 total time spend for step 2 : 0.08463454246520996 step3:velours_tree Mon Mar 24 06:00:30 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 : {21627257: [{'metal': 21627258, 'papier': 21627259, 'Carton_gris': 21627260, 'kraft': 21627261, 'mal_croppe': 21627262, 'flou': 21627263, 'autre_refus': 21627264, 'cartonnette': 21627265, 'plastique': 21627266, 'Teint_Dans_La_Masse': 21627267, 'environnement': 21627268, 'Carton_brun': 21627269}]} input_args_next_step : {21627257: ()} output_args : {21627257: [{'metal': 21627258, 'papier': 21627259, 'Carton_gris': 21627260, 'kraft': 21627261, 'mal_croppe': 21627262, 'flou': 21627263, 'autre_refus': 21627264, 'cartonnette': 21627265, 'plastique': 21627266, 'Teint_Dans_La_Masse': 21627267, 'environnement': 21627268, 'Carton_brun': 21627269}]} args : 21627257 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 : ({'metal': 21627258, 'papier': 21627259, 'Carton_gris': 21627260, 'kraft': 21627261, 'mal_croppe': 21627262, 'flou': 21627263, 'autre_refus': 21627264, 'cartonnette': 21627265, 'plastique': 21627266, 'Teint_Dans_La_Masse': 21627267, 'environnement': 21627268, 'Carton_brun': 21627269},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21627257) 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([21627257]) 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.3538999557495117 time spend to save output : 5.14984130859375e-05 total time spend for step 3 : 0.35395145416259766 step4:send_mail_cod Mon Mar 24 06:00:31 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 : {1346708273: ('0.07025159054494129',), 1346708265: ('0.07025159054494129',), 1346708256: ('0.07025159054494129',), 1346708231: ('0.07025159054494129',), 1346708229: ('0.07025159054494129',), 1346708225: ('0.07025159054494129',), 1346708213: ('0.07025159054494129',)} input_args_next_step : {1346708273: ()} output_args : {1346708273: ('0.07025159054494129',), 1346708265: ('0.07025159054494129',), 1346708256: ('0.07025159054494129',), 1346708231: ('0.07025159054494129',), 1346708229: ('0.07025159054494129',), 1346708225: ('0.07025159054494129',), 1346708213: ('0.07025159054494129',)} args : 1346708273 depend.output_id : 0 input_args_next_step : {1346708273: ('0.07025159054494129',), 1346708265: ()} output_args : {1346708273: ('0.07025159054494129',), 1346708265: ('0.07025159054494129',), 1346708256: ('0.07025159054494129',), 1346708231: ('0.07025159054494129',), 1346708229: ('0.07025159054494129',), 1346708225: ('0.07025159054494129',), 1346708213: ('0.07025159054494129',)} args : 1346708265 depend.output_id : 0 input_args_next_step : {1346708273: ('0.07025159054494129',), 1346708265: ('0.07025159054494129',), 1346708256: ()} output_args : {1346708273: ('0.07025159054494129',), 1346708265: ('0.07025159054494129',), 1346708256: ('0.07025159054494129',), 1346708231: ('0.07025159054494129',), 1346708229: ('0.07025159054494129',), 1346708225: ('0.07025159054494129',), 1346708213: ('0.07025159054494129',)} args : 1346708256 depend.output_id : 0 input_args_next_step : {1346708273: ('0.07025159054494129',), 1346708265: ('0.07025159054494129',), 1346708256: ('0.07025159054494129',), 1346708231: ()} output_args : {1346708273: ('0.07025159054494129',), 1346708265: ('0.07025159054494129',), 1346708256: ('0.07025159054494129',), 1346708231: ('0.07025159054494129',), 1346708229: ('0.07025159054494129',), 1346708225: ('0.07025159054494129',), 1346708213: ('0.07025159054494129',)} args : 1346708231 depend.output_id : 0 input_args_next_step : {1346708273: ('0.07025159054494129',), 1346708265: ('0.07025159054494129',), 1346708256: ('0.07025159054494129',), 1346708231: ('0.07025159054494129',), 1346708229: ()} output_args : {1346708273: ('0.07025159054494129',), 1346708265: ('0.07025159054494129',), 1346708256: ('0.07025159054494129',), 1346708231: ('0.07025159054494129',), 1346708229: ('0.07025159054494129',), 1346708225: ('0.07025159054494129',), 1346708213: ('0.07025159054494129',)} args : 1346708229 depend.output_id : 0 input_args_next_step : {1346708273: ('0.07025159054494129',), 1346708265: ('0.07025159054494129',), 1346708256: ('0.07025159054494129',), 1346708231: ('0.07025159054494129',), 1346708229: ('0.07025159054494129',), 1346708225: ()} output_args : {1346708273: ('0.07025159054494129',), 1346708265: ('0.07025159054494129',), 1346708256: ('0.07025159054494129',), 1346708231: ('0.07025159054494129',), 1346708229: ('0.07025159054494129',), 1346708225: ('0.07025159054494129',), 1346708213: ('0.07025159054494129',)} args : 1346708225 depend.output_id : 0 input_args_next_step : {1346708273: ('0.07025159054494129',), 1346708265: ('0.07025159054494129',), 1346708256: ('0.07025159054494129',), 1346708231: ('0.07025159054494129',), 1346708229: ('0.07025159054494129',), 1346708225: ('0.07025159054494129',), 1346708213: ()} output_args : {1346708273: ('0.07025159054494129',), 1346708265: ('0.07025159054494129',), 1346708256: ('0.07025159054494129',), 1346708231: ('0.07025159054494129',), 1346708229: ('0.07025159054494129',), 1346708225: ('0.07025159054494129',), 1346708213: ('0.07025159054494129',)} args : 1346708213 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 : {21627257: [{'metal': 21627258, 'papier': 21627259, 'Carton_gris': 21627260, 'kraft': 21627261, 'mal_croppe': 21627262, 'flou': 21627263, 'autre_refus': 21627264, 'cartonnette': 21627265, 'plastique': 21627266, 'Teint_Dans_La_Masse': 21627267, 'environnement': 21627268, 'Carton_brun': 21627269}]} input_args_next_step : {1346708273: ('0.07025159054494129',), 1346708265: ('0.07025159054494129',), 1346708256: ('0.07025159054494129',), 1346708231: ('0.07025159054494129',), 1346708229: ('0.07025159054494129',), 1346708225: ('0.07025159054494129',), 1346708213: ('0.07025159054494129',), 21627257: ()} output_args : {21627257: [{'metal': 21627258, 'papier': 21627259, 'Carton_gris': 21627260, 'kraft': 21627261, 'mal_croppe': 21627262, 'flou': 21627263, 'autre_refus': 21627264, 'cartonnette': 21627265, 'plastique': 21627266, 'Teint_Dans_La_Masse': 21627267, 'environnement': 21627268, 'Carton_brun': 21627269}]} args : 21627257 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 :8, first value : ('0.07025159054494129',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21627257) 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 (1346708273,1346708265,1346708256,1346708231,1346708229,1346708225,1346708213) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1346708213 begin to download photo : 1346708229 begin to download photo : 1346708256 begin to download photo : 1346708273 download finish for photo 1346708273 download finish for photo 1346708229 begin to download photo : 1346708231 download finish for photo 1346708213 begin to download photo : 1346708225 download finish for photo 1346708256 begin to download photo : 1346708265 download finish for photo 1346708231 download finish for photo 1346708265 download finish for photo 1346708225 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 : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P21627257_24-03-2025_06_00_31.pdf 21627258 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=21627258 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346708274: '1742792322_683288_1346707635_e5b2037bffff0034fb47ef2c58473b41_rle_crop_3726184568_0.png'} change filename to text .imagette216272581742792431/ imagette216272581742792431/1742792322_683288_1346707635_e5b2037bffff0034fb47ef2c58473b41_rle_crop_3726184568_0.png.png imagette216272611742792431/ imagette216272621742792431/ imagette216272631742792431/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/65faa3bd835ca802d46204f21bb9e766_99247634.png imagette216272581742792431 21627261 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=21627261 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216272611742792431 21627262 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=21627262 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216272621742792431 21627263 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=21627263 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216272631742792431 21627264 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=21627264 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346707742: '1742792191_2570980_1346707527_7eb72803a434886bb8d1bb4f8f6d0159_rle_crop_3726182541_0.png', 1346708261: '1742792322_683288_1346707633_f639e38243dcdb519e5bb105a110301e_rle_crop_3726184596_0.png', 1346708260: '1742792322_683288_1346707635_e5b2037bffff0034fb47ef2c58473b41_rle_crop_3726184580_0.png', 1346708258: '1742792322_683288_1346707637_a429c5002e30261a395fd37f4334b1d3_rle_crop_3726184563_0.png', 1346708257: '1742792322_683288_1346707640_14e703af79366164e2947f4d5e06330d_rle_crop_3726184549_0.png', 1346708236: '1742792291_2571835_1346707642_b5222faa0ad84222d88a1eee809e752f_rle_crop_3726184381_0.png', 1346708129: '1742792213_2571191_1346707509_9d890eb0dd1b219aad9ca5c23a9094eb_rle_crop_3726184353_0.png', 1346708128: '1742792213_2571191_1346707517_1e3a0c02cdc60c331535198bf45f1e99_rle_crop_3726184343_0.png', 1346708127: '1742792213_2571191_1346707520_7379ac4192a61cc2714882acf738d3c1_rle_crop_3726184332_0.png', 1346708126: '1742792213_2571191_1346707524_32472154d56c489ff1c403a5895e495a_rle_crop_3726184311_0.png', 1346708125: '1742792213_2571191_1346707556_40915c2166704fe962f95c85cf32db63_rle_crop_3726184288_0.png', 1346707965: '1742792203_680379_1346707547_3aa3cf7428af91fcbacd266ef892eac9_rle_crop_3726184275_0.png', 1346707963: '1742792203_680379_1346707547_3aa3cf7428af91fcbacd266ef892eac9_rle_crop_3726184274_0.png', 1346707961: '1742792203_680379_1346707549_38a9bb8954e81d256643c8599172d44a_rle_crop_3726184263_0.png', 1346707959: '1742792203_680379_1346707553_358c2f854a3a22b0349417f85bd113cb_rle_crop_3726184093_0.png', 1346707956: '1742792203_680379_1346707602_13c4a2a60c7abc14bbd9d2c2e84fb120_rle_crop_3726184076_0.png', 1346707324: '1742791721_673363_1346707209_f8a9e571198f2e5d1a755d63b0c48cee_rle_crop_3726172585_0.png', 1346707649: '1742792173_2570822_1346707589_2593fdc51d5d553640a927bba03c2515_rle_crop_3726179573_0.png', 1346707606: '1742792086_677089_1346707434_55eeae5cb8f5beb08f36b47bba01c80c_rle_crop_3726173655_0.png', 1346707605: '1742792086_677089_1346707437_54118c1f883c521e16d3fb8973b15184_rle_crop_3726173646_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/82c036343a044cb7dac16d051ddfbfba_36003520.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/0a2308c4cd09940a7cfd4079afbb4542_13774192.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/33c25e54aa8d576f98788f8c8c5fedf0_52777865.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/1d18ba85ceaa96475f317f4dd2054459_3205664.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f8ce105078924fcb1882f049e0bf45ea_76941249.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f617c1998c8c92098fa8a51c991f174f_1236530.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d219ae565c50ae14d7de7358e3f17707_25822993.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/89c8c358b3d8878cf8c439ff2cc4ea99_71755964.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3445eafbc9a4b2594cbbf8aac818462c_8674169.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/818a4026ffbf1d96c7d5faebb0220b43_14979535.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e3b8c18d53e5f0f1a708c2cc30bc0c60_62077799.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/385e4adcf86ef1246d35681c405087e3_1526360.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/a1cfe92bc54d9b1c85a2eaf7206a4ffc_69279572.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/79d2ddb908679ea254165abac6ede25e_57247942.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d02c7dc2cfa2ef1c64b4304805400fa3_60387988.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/9ff9e6ff6bf67f7de40e0c5b2b9cadc8_66150121.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5cb5c1da57259f5519dd05d8034cbff7_58930513.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/cf0498a47a9e3ef4c677cc6434ba48b3_71838573.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ba4878dd5a8606a96831c57666731ba8_75947701.png change filename to text .imagette216272641742792431/ imagette216272641742792431/1742792191_2570980_1346707527_7eb72803a434886bb8d1bb4f8f6d0159_rle_crop_3726182541_0.png.png imagette216272641742792431/1742792322_683288_1346707635_e5b2037bffff0034fb47ef2c58473b41_rle_crop_3726184580_0.png.png imagette216272641742792431/1742792213_2571191_1346707520_7379ac4192a61cc2714882acf738d3c1_rle_crop_3726184332_0.png.png imagette216272641742792431/1742791721_673363_1346707209_f8a9e571198f2e5d1a755d63b0c48cee_rle_crop_3726172585_0.png.png imagette216272641742792431/1742792086_677089_1346707434_55eeae5cb8f5beb08f36b47bba01c80c_rle_crop_3726173655_0.png.png imagette216272641742792431/1742792291_2571835_1346707642_b5222faa0ad84222d88a1eee809e752f_rle_crop_3726184381_0.png.png imagette216272641742792431/1742792203_680379_1346707602_13c4a2a60c7abc14bbd9d2c2e84fb120_rle_crop_3726184076_0.png.png imagette216272641742792431/1742792203_680379_1346707547_3aa3cf7428af91fcbacd266ef892eac9_rle_crop_3726184274_0.png.png imagette216272641742792431/1742792203_680379_1346707549_38a9bb8954e81d256643c8599172d44a_rle_crop_3726184263_0.png.png imagette216272641742792431/1742792203_680379_1346707547_3aa3cf7428af91fcbacd266ef892eac9_rle_crop_3726184275_0.png.png imagette216272641742792431/1742792213_2571191_1346707509_9d890eb0dd1b219aad9ca5c23a9094eb_rle_crop_3726184353_0.png.png imagette216272641742792431/1742792086_677089_1346707437_54118c1f883c521e16d3fb8973b15184_rle_crop_3726173646_0.png.png imagette216272641742792431/1742792322_683288_1346707637_a429c5002e30261a395fd37f4334b1d3_rle_crop_3726184563_0.png.png imagette216272641742792431/1742792213_2571191_1346707524_32472154d56c489ff1c403a5895e495a_rle_crop_3726184311_0.png.png imagette216272641742792431/1742792173_2570822_1346707589_2593fdc51d5d553640a927bba03c2515_rle_crop_3726179573_0.png.png imagette216272641742792431/1742792322_683288_1346707640_14e703af79366164e2947f4d5e06330d_rle_crop_3726184549_0.png.png imagette216272641742792431/1742792213_2571191_1346707556_40915c2166704fe962f95c85cf32db63_rle_crop_3726184288_0.png.png imagette216272641742792431/1742792322_683288_1346707633_f639e38243dcdb519e5bb105a110301e_rle_crop_3726184596_0.png.png imagette216272641742792431/1742792213_2571191_1346707517_1e3a0c02cdc60c331535198bf45f1e99_rle_crop_3726184343_0.png.png imagette216272641742792431/1742792203_680379_1346707553_358c2f854a3a22b0349417f85bd113cb_rle_crop_3726184093_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/74a818b644e7b958aa47a143a3ed1dcf_45056498.png imagette216272641742792431 21627265 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=21627265 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346707493: '1742791911_2569333_1346707365_b5389e0da104ab2b148d93c716e3fc98_rle_crop_3726173327_0.png', 1346707650: '1742792173_2570822_1346707595_e1372e90919750120aba723dbfb2dcbc_rle_crop_3726179561_0.png', 1346707974: '1742792203_680379_1346707549_38a9bb8954e81d256643c8599172d44a_rle_crop_3726184255_0.png', 1346707976: '1742792203_680379_1346707547_3aa3cf7428af91fcbacd266ef892eac9_rle_crop_3726184272_0.png', 1346708130: '1742792213_2571191_1346707524_32472154d56c489ff1c403a5895e495a_rle_crop_3726184306_0.png', 1346708264: '1742792322_683288_1346707635_e5b2037bffff0034fb47ef2c58473b41_rle_crop_3726184569_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e31b00b64a0619ae44968edf84d8d034_77533980.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/762781bcaf878591c3dd1dfb4ef0c076_53556106.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/15d48646d65e514d8616201a94abe121_54562403.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/cfea492a09bd875926c8299ddf804895_27634844.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/17d6daf536cb26fe1a3427187544012e_38310137.png change filename to text .imagette216272651742792432/ imagette216272651742792432/1742792173_2570822_1346707595_e1372e90919750120aba723dbfb2dcbc_rle_crop_3726179561_0.png.png imagette216272651742792432/1742792213_2571191_1346707524_32472154d56c489ff1c403a5895e495a_rle_crop_3726184306_0.png.png imagette216272651742792432/1742792203_680379_1346707547_3aa3cf7428af91fcbacd266ef892eac9_rle_crop_3726184272_0.png.png imagette216272651742792432/1742792322_683288_1346707635_e5b2037bffff0034fb47ef2c58473b41_rle_crop_3726184569_0.png.png imagette216272651742792432/1742792203_680379_1346707549_38a9bb8954e81d256643c8599172d44a_rle_crop_3726184255_0.png.png imagette216272651742792432/1742791911_2569333_1346707365_b5389e0da104ab2b148d93c716e3fc98_rle_crop_3726173327_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/09f2b13532abb6424e3f862ff81399aa_43844095.png imagette216272651742792432 21627266 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=21627266 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346707574: '1742792052_2569940_1346707472_aee0910bba4d8222846944d536ceef9b_rle_crop_3726173431_0.png', 1346707575: '1742792052_2569940_1346707470_c3203a5ec01ca9e683ab7679ee9a0936_rle_crop_3726173474_0.png', 1346707576: '1742792052_2569940_1346707470_c3203a5ec01ca9e683ab7679ee9a0936_rle_crop_3726173476_0.png', 1346707752: '1742792191_2570980_1346707527_7eb72803a434886bb8d1bb4f8f6d0159_rle_crop_3726182540_0.png', 1346708270: '1742792322_683288_1346707631_83765879d078ce70bb0cf8115d8c70a7_rle_crop_3726184603_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/21ab05849efda8a792319cf4cbe24905_39204478.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c99938aa3159e092313f66583d84aede_50727048.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/0dde3f27b7af07b3a8856c46659d3b31_82948786.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4af56bdca59ee29fa11aeff994b4e561_96180756.png change filename to text .imagette216272661742792433/ imagette216272661742792433/1742792191_2570980_1346707527_7eb72803a434886bb8d1bb4f8f6d0159_rle_crop_3726182540_0.png.png imagette216272661742792433/1742792052_2569940_1346707470_c3203a5ec01ca9e683ab7679ee9a0936_rle_crop_3726173474_0.png.png imagette216272661742792433/1742792052_2569940_1346707470_c3203a5ec01ca9e683ab7679ee9a0936_rle_crop_3726173476_0.png.png imagette216272661742792433/1742792322_683288_1346707631_83765879d078ce70bb0cf8115d8c70a7_rle_crop_3726184603_0.png.png imagette216272661742792433/1742792052_2569940_1346707472_aee0910bba4d8222846944d536ceef9b_rle_crop_3726173431_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/79da7725be948879b322c87ea95409cd_88571072.png imagette216272661742792433 21627260 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=21627260 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346707491: '1742791911_2569333_1346707371_b85138dcf9ee2132d854c56ca95f55bd_rle_crop_3726173286_0.png', 1346707492: '1742791911_2569333_1346707368_6b8a272b56bf1e24a3b7b0bd933543bd_rle_crop_3726173306_0.png', 1346707571: '1742792052_2569940_1346707476_b40e1b0020f795ed9d1883c83d8a028b_rle_crop_3726173418_0.png', 1346707610: '1742792086_677089_1346707445_708fb75763ac4477851f70596658f4cd_rle_crop_3726173612_0.png', 1346707747: '1742792191_2570980_1346707527_7eb72803a434886bb8d1bb4f8f6d0159_rle_crop_3726182542_0.png', 1346708263: '1742792322_683288_1346707637_a429c5002e30261a395fd37f4334b1d3_rle_crop_3726184558_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/fc5c5868e37a88df2c1eb4889ac7c768_81211361.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/67b8d27bb348cb5bbdd62c50f210e0ff_52438575.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3fad6845fc8a19e7346842bbbe0ae5ff_55291838.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b38cff9782b9587862b55dfda3ab2e5e_50603796.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/1ada77036e6fc4f28fbeacbde502058d_40534415.png change filename to text .imagette216272601742792433/ imagette216272601742792433/1742792086_677089_1346707445_708fb75763ac4477851f70596658f4cd_rle_crop_3726173612_0.png.png imagette216272601742792433/1742792052_2569940_1346707476_b40e1b0020f795ed9d1883c83d8a028b_rle_crop_3726173418_0.png.png imagette216272601742792433/1742791911_2569333_1346707368_6b8a272b56bf1e24a3b7b0bd933543bd_rle_crop_3726173306_0.png.png imagette216272601742792433/1742792322_683288_1346707637_a429c5002e30261a395fd37f4334b1d3_rle_crop_3726184558_0.png.png imagette216272601742792433/1742792191_2570980_1346707527_7eb72803a434886bb8d1bb4f8f6d0159_rle_crop_3726182542_0.png.png imagette216272601742792433/1742791911_2569333_1346707371_b85138dcf9ee2132d854c56ca95f55bd_rle_crop_3726173286_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/16dffbaae75fdfe80fecca6a7027bb04_12447851.png imagette216272601742792433 21627267 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=21627267 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346707323: '1742791721_673363_1346707202_f78cbb448df04e9d7e6e660645b851ed_rle_crop_3726172614_0.png', 1346707482: '1742791911_2569333_1346707371_b85138dcf9ee2132d854c56ca95f55bd_rle_crop_3726173289_0.png', 1346707483: '1742791911_2569333_1346707371_b85138dcf9ee2132d854c56ca95f55bd_rle_crop_3726173293_0.png', 1346707597: '1742792086_677089_1346707445_708fb75763ac4477851f70596658f4cd_rle_crop_3726173611_0.png', 1346707599: '1742792086_677089_1346707441_5cf54b3fd40226d8b5ee80157b8b43cb_rle_crop_3726173632_0.png', 1346707600: '1742792086_677089_1346707437_54118c1f883c521e16d3fb8973b15184_rle_crop_3726173645_0.png', 1346707601: '1742792086_677089_1346707437_54118c1f883c521e16d3fb8973b15184_rle_crop_3726173644_0.png', 1346707647: '1742792173_2570822_1346707589_2593fdc51d5d553640a927bba03c2515_rle_crop_3726179571_0.png', 1346707941: '1742792203_680379_1346707602_13c4a2a60c7abc14bbd9d2c2e84fb120_rle_crop_3726184080_0.png', 1346708117: '1742792213_2571191_1346707520_7379ac4192a61cc2714882acf738d3c1_rle_crop_3726184327_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/29978e4481fd96150a40aa7191a7bfb3_44538015.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4d99c31eadbf9d88dcb37eb7d6e2e615_51790714.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3ae064d879585001b7fc29744fe90dfd_9836718.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5b8ae9093a0f77ccbb4ddeb89bb6fd0e_27951380.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/6eba993268685172e0a83fdfba63ac86_58678368.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/715920cadd4e003fbfc5748e24c80491_72521359.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/894d9a0b7805df8674cd7f7e9e55a90d_28899606.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/cba520114dbc19a6f509a7cf6f5340c3_33320053.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5ed142c9273f38fbfeefbc34eba61c65_5534087.png change filename to text .imagette216272671742792433/ imagette216272671742792433/1742792086_677089_1346707437_54118c1f883c521e16d3fb8973b15184_rle_crop_3726173645_0.png.png imagette216272671742792433/1742792086_677089_1346707445_708fb75763ac4477851f70596658f4cd_rle_crop_3726173611_0.png.png imagette216272671742792433/1742792213_2571191_1346707520_7379ac4192a61cc2714882acf738d3c1_rle_crop_3726184327_0.png.png imagette216272671742792433/1742792086_677089_1346707441_5cf54b3fd40226d8b5ee80157b8b43cb_rle_crop_3726173632_0.png.png imagette216272671742792433/1742792086_677089_1346707437_54118c1f883c521e16d3fb8973b15184_rle_crop_3726173644_0.png.png imagette216272671742792433/1742792173_2570822_1346707589_2593fdc51d5d553640a927bba03c2515_rle_crop_3726179571_0.png.png imagette216272671742792433/1742792203_680379_1346707602_13c4a2a60c7abc14bbd9d2c2e84fb120_rle_crop_3726184080_0.png.png imagette216272671742792433/1742791721_673363_1346707202_f78cbb448df04e9d7e6e660645b851ed_rle_crop_3726172614_0.png.png imagette216272671742792433/1742791911_2569333_1346707371_b85138dcf9ee2132d854c56ca95f55bd_rle_crop_3726173293_0.png.png imagette216272671742792433/1742791911_2569333_1346707371_b85138dcf9ee2132d854c56ca95f55bd_rle_crop_3726173289_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/41cb69982ba6cd907ae6c34fcb1ef757_19574518.png imagette216272671742792433 21627269 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=21627269 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346707329: '1742791721_673363_1346707206_c866482bb4ead65126c4c14df78de94a_rle_crop_3726172596_0.png', 1346707494: '1742791911_2569333_1346707368_6b8a272b56bf1e24a3b7b0bd933543bd_rle_crop_3726173313_0.png', 1346707573: '1742792052_2569940_1346707472_aee0910bba4d8222846944d536ceef9b_rle_crop_3726173433_0.png', 1346707580: '1742792071_2570190_1346707449_3545115093a5336576163eeebf36478f_rle_crop_3726173487_0.png', 1346707581: '1742792071_2570190_1346707449_3545115093a5336576163eeebf36478f_rle_crop_3726173486_0.png', 1346707988: '1742792203_680379_1346707602_13c4a2a60c7abc14bbd9d2c2e84fb120_rle_crop_3726184074_0.png', 1346708132: '1742792213_2571191_1346707556_40915c2166704fe962f95c85cf32db63_rle_crop_3726184289_0.png', 1346708266: '1742792322_683288_1346707635_e5b2037bffff0034fb47ef2c58473b41_rle_crop_3726184579_0.png', 1346708267: '1742792322_683288_1346707633_f639e38243dcdb519e5bb105a110301e_rle_crop_3726184595_0.png', 1346708268: '1742792322_683288_1346707631_83765879d078ce70bb0cf8115d8c70a7_rle_crop_3726184606_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/a82403a5eee8f4356b507adae32a8e22_33188239.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/655be47bd6c1e9d63a0cf5981ce9e732_93712492.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f2eafa9715d6ad25dc61294187c00dd6_46759958.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c5012a48649d10a7a1b580bb3f12a46d_58909401.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/823cfd9797dd058e679f3ac17207f033_33814653.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/662b398478804cb39d4e5df9cfd99f83_46005618.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b6ba6bc331e96ecbcded2e5a60724329_81874213.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/19a1eec3dfd53c292f4f21758c54be8b_29529804.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/787d9968ca557284204c23934f4e329f_41131798.png change filename to text .imagette216272691742792434/ imagette216272691742792434/1742792322_683288_1346707633_f639e38243dcdb519e5bb105a110301e_rle_crop_3726184595_0.png.png imagette216272691742792434/1742792203_680379_1346707602_13c4a2a60c7abc14bbd9d2c2e84fb120_rle_crop_3726184074_0.png.png imagette216272691742792434/1742791721_673363_1346707206_c866482bb4ead65126c4c14df78de94a_rle_crop_3726172596_0.png.png imagette216272691742792434/1742792213_2571191_1346707556_40915c2166704fe962f95c85cf32db63_rle_crop_3726184289_0.png.png imagette216272691742792434/1742792322_683288_1346707635_e5b2037bffff0034fb47ef2c58473b41_rle_crop_3726184579_0.png.png imagette216272691742792434/1742792071_2570190_1346707449_3545115093a5336576163eeebf36478f_rle_crop_3726173486_0.png.png imagette216272691742792434/1742791911_2569333_1346707368_6b8a272b56bf1e24a3b7b0bd933543bd_rle_crop_3726173313_0.png.png imagette216272691742792434/1742792052_2569940_1346707472_aee0910bba4d8222846944d536ceef9b_rle_crop_3726173433_0.png.png imagette216272691742792434/1742792322_683288_1346707631_83765879d078ce70bb0cf8115d8c70a7_rle_crop_3726184606_0.png.png imagette216272691742792434/1742792071_2570190_1346707449_3545115093a5336576163eeebf36478f_rle_crop_3726173487_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4f615e4f9508850d54a2fe8bde34a6af_33772696.png imagette216272691742792434 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21627257 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21627270,21627271,21627272,21627273,21627274,21627275,21627276,21627277,21627278,21627279,21627280,21627281?tags=metal,papier,Carton_gris,kraft,mal_croppe,flou,autre_refus,cartonnette,plastique,Teint_Dans_La_Masse,environnement,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1346708273] : ('0.07025159054494129',) no score found for photo 1346708273 We are sending mail with results at report@fotonower.com args[1346708265] : ('0.07025159054494129',) no score found for photo 1346708265 We are sending mail with results at report@fotonower.com args[1346708256] : ('0.07025159054494129',) no score found for photo 1346708256 We are sending mail with results at report@fotonower.com args[1346708231] : ('0.07025159054494129',) no score found for photo 1346708231 We are sending mail with results at report@fotonower.com args[1346708229] : ('0.07025159054494129',) no score found for photo 1346708229 We are sending mail with results at report@fotonower.com args[1346708225] : ('0.07025159054494129',) no score found for photo 1346708225 We are sending mail with results at report@fotonower.com args[1346708213] : ('0.07025159054494129',) no score found for photo 1346708213 We are sending mail with results at report@fotonower.com refus_total : 0.07025159054494129 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=21627257 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_P21627257_24-03-2025_06_00_31.pdf results_Auto_P21627257_24-03-2025_06_00_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21627257_24-03-2025_06_00_31.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','21627257','results_Auto_P21627257_24-03-2025_06_00_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21627257_24-03-2025_06_00_31.pdf','pdf','','0.23','0.07025159054494129') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21627257]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1346708273, 1346708265, 1346708256, 1346708231, 1346708229, 1346708225, 1346708213] map_info['map_portfolio_photo'] : {21627257: [1346708273, 1346708265, 1346708256, 1346708231, 1346708229, 1346708225, 1346708213, 1346708060, 1346708002, 1346707958, 1346707931, 1346707904, 1346707875, 1346707642, 1346707640, 1346707637, 1346707635, 1346707633, 1346707631, 1346707602, 1346707595, 1346707592, 1346707589, 1346707556, 1346707553, 1346707551, 1346707549, 1346707547, 1346707527, 1346707524, 1346707523, 1346707520, 1346707517, 1346707509, 1346707479, 1346707476, 1346707474, 1346707472, 1346707470, 1346707449, 1346707445, 1346707441, 1346707437, 1346707434, 1346707378, 1346707374, 1346707371, 1346707368, 1346707365, 1346707342, 1346707338, 1346707334, 1346707331, 1346707322, 1346707294, 1346707292, 1346707290, 1346707209, 1346707206, 1346707202]} final : False mtd_id 4302 list_pids : [1346708273, 1346708265, 1346708256, 1346708231, 1346708229, 1346708225, 1346708213] 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, '2683904') ('4302', '21627257', '1346708273', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708265', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708256', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708231', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708229', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708225', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708213', None, None, None, None, None, '2683904') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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', '21627257', '1346708273', None, None, None, None, None, '2683904'), ('4302', '21627257', '1346708265', None, None, None, None, None, '2683904'), ('4302', '21627257', '1346708256', None, None, None, None, None, '2683904'), ('4302', '21627257', '1346708231', None, None, None, None, None, '2683904'), ('4302', '21627257', '1346708229', None, None, None, None, None, '2683904'), ('4302', '21627257', '1346708225', None, None, None, None, None, '2683904'), ('4302', '21627257', '1346708213', None, None, None, None, None, '2683904')] time used for this insertion : 0.05959010124206543 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.518932819366455 time spend to save output : 0.05981564521789551 total time spend for step 4 : 4.578748464584351 step5:split_time_score Mon Mar 24 06:00:35 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 : ['21627257'] 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 : [('21627257',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21627257) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1346708273: {'path': 'temp/1742792431_2860626_1346708273_f2a6cddb8b05c8a3c149c84c6daaf758.jpg', 'extension': 'jpg'}, 1346708229: {'path': 'temp/1742792431_2860626_1346708229_aa14e1e8391228a80c4eef6cc6051e47.jpg', 'extension': 'jpg'}, 1346708231: {'path': 'temp/1742792431_2860626_1346708231_155c091d8b021a261aeb461120095aa5.jpg', 'extension': 'jpg'}, 1346708256: {'path': 'temp/1742792431_2860626_1346708256_a0fa31cac7010f541dd07ec84b233993.jpg', 'extension': 'jpg'}, 1346708265: {'path': 'temp/1742792431_2860626_1346708265_39b91ed9211c5c5ec683978f86b1d58b.jpg', 'extension': 'jpg'}, 1346708213: {'path': 'temp/1742792431_2860626_1346708213_8146f3bcd842dd86b6691fc28a0c05c7.jpg', 'extension': 'jpg'}, 1346708225: {'path': 'temp/1742792431_2860626_1346708225_c7679228c18b38c837a6c76ac605be42.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 = 21627257; (('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 = 21627257 group by h (('05', 60),) 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=21627257 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 (21627257) 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 (21627257) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24032025 21627257 Nombre de photos uploadées : 60 / 23040 (0%) 24032025 21627257 Nombre de photos taguées (types de déchets): 0 / 60 (0%) 24032025 21627257 Nombre de photos taguées (volume) : 0 / 60 (0%) [{'photo_id': 1346707209, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f8a9e571198f2e5d1a755d63b0c48cee.jpg', 'username': None, 'uploaded_at': 1742791628, 'text': 'image_24032025_05_45_05_10133.jpg'}, {'photo_id': 1346707206, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c866482bb4ead65126c4c14df78de94a.jpg', 'username': None, 'uploaded_at': 1742791628, 'text': 'image_24032025_05_45_15_10138.jpg'}, {'photo_id': 1346707202, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f78cbb448df04e9d7e6e660645b851ed.jpg', 'username': None, 'uploaded_at': 1742791628, 'text': 'image_24032025_05_45_35_10143.jpg'}, {'photo_id': 1346707294, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/38834b003cdd123a744315dd8e78119a.jpg', 'username': None, 'uploaded_at': 1742791689, 'text': 'image_24032025_05_45_54_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ???????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0027434825897216797 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21627257, '2025-03-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1682789,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.0321044921875 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= 1682789 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1682789, 'dashboard_run_id': 1690326, 'mtr_portfolio_id': 21626361, 'dashboard_result_id': 9564375, '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_P21626361_24-03-2025_05_36_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21626365, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21626366, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21626367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21626368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21626369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21626370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21626371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21626372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21626373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21626374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21626375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21626376, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1690326, 'mtr_portfolio_id': 21626812, 'dashboard_result_id': 9564376, '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_P21626812_24-03-2025_05_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21626837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21626838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21626839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21626840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21626841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21626842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21626843, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21626844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21626845, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21626846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21626847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21626848, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1690326, 'mtr_portfolio_id': 21627257, 'dashboard_result_id': 9564377, '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_P21627257_24-03-2025_05_58_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21627258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21627259, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21627260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21627261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21627262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21627263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21627264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21627265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21627266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21627267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21627268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21627269, '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 = 21626361 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': 2683869, 'mtr_portfolio_id': 21626361, 'created_at': datetime.datetime(2025, 3, 24, 5, 35, 59), 'result': '0.0697932125327058', 'result_long': None, 'result_double': None}] Qualite : 0.0697932125327058 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21626361 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21626361_24-03-2025_05_36_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21626361 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_P21626361_24-03-2025_05_36_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21626365, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21626366, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21626367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21626368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21626369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21626370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21626371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21626372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21626373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21626374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21626375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21626376, 'pht': 3726}}" where mtr_portfolio_id = 21626361 and dashboard_run_id = 1690326 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`=21626361 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9564375, 0.0697932125327058, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21626361_24-03-2025_05_36_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21626365, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21626366, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21626367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21626368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21626369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21626370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21626371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21626372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21626373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21626374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21626375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21626376, '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 = 21626812 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': 2683871, 'mtr_portfolio_id': 21626812, 'created_at': datetime.datetime(2025, 3, 24, 5, 48, 59), 'result': '0.09835260583909122', 'result_long': None, 'result_double': None}] Qualite : 0.09835260583909122 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21626812 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21626812_24-03-2025_05_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21626812 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_P21626812_24-03-2025_05_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21626837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21626838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21626839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21626840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21626841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21626842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21626843, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21626844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21626845, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21626846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21626847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21626848, 'pht': 3726}}" where mtr_portfolio_id = 21626812 and dashboard_run_id = 1690326 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`=21626812 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9564376, 0.09835260583909122, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21626812_24-03-2025_05_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21626837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21626838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21626839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21626840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21626841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21626842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21626843, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21626844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21626845, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21626846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21626847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21626848, '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 = 21627257 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': 2683904, 'mtr_portfolio_id': 21627257, 'created_at': datetime.datetime(2025, 3, 24, 6, 0, 30), 'result': '0.07025159054494129', 'result_long': None, 'result_double': None}] Qualite : 0.07025159054494129 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21627257 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21627257_24-03-2025_06_00_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21627257 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_P21627257_24-03-2025_06_00_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21627258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21627259, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21627260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21627261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21627262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21627263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21627264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21627265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21627266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21627267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21627268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21627269, 'pht': 3726}}" where mtr_portfolio_id = 21627257 and dashboard_run_id = 1690326 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`=21627257 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9564377, 0.07025159054494129, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21627257_24-03-2025_06_00_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21627258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21627259, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21627260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21627261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21627262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21627263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21627264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21627265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21627266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21627267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21627268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21627269, '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 (21626361,21626812,21627257) result : ((1346705691,), (1346705694,), (1346705697,), (1346705702,), (1346705705,), (1346705724,), (1346705735,), (1346705742,), (1346705746,), (1346705751,), (1346705772,), (1346705776,), (1346705780,), (1346705786,), (1346705804,), (1346705808,), (1346705812,), (1346705816,), (1346705820,), (1346705830,), (1346705871,), (1346705884,), (1346705890,), (1346705897,), (1346705923,), (1346705926,), (1346705928,), (1346705931,), (1346705962,), (1346705966,), (1346705970,), (1346706038,), (1346706041,), (1346706044,), (1346706047,), (1346706052,), (1346706055,), (1346706082,), (1346706087,), (1346706091,), (1346706096,), (1346706098,), (1346706118,), (1346706121,), (1346706124,), (1346706127,), (1346706132,), (1346706135,), (1346706164,), (1346706168,), (1346706172,), (1346706244,), (1346706247,), (1346706250,), (1346706255,), (1346706259,), (1346706290,), (1346706296,), (1346706300,), (1346706304,), (1346706311,), (1346706318,), (1346706320,), (1346706321,), (1346706371,), (1346706373,), (1346706380,), (1346706410,), (1346706408,), (1346706409,), (1346706449,), (1346706451,), (1346706453,), (1346706455,), (1346706457,), (1346706483,), (1346706484,), (1346706485,), (1346706537,), (1346706539,), (1346706540,), (1346706542,), (1346706544,), (1346706572,), (1346706573,), (1346706574,), (1346706591,), (1346706638,), (1346706640,), (1346706642,), (1346706644,), (1346706647,), (1346706649,), (1346706674,), (1346706675,), (1346706856,), (1346706859,), (1346706861,), (1346706889,), (1346706890,), (1346706891,), (1346706942,), (1346706944,), (1346706946,), (1346706951,), (1346707003,), (1346707005,), (1346707007,), (1346707009,), (1346707012,), (1346707048,), (1346707050,), (1346707052,), (1346707054,), (1346707058,), (1346707061,), (1346707080,), (1346707085,), (1346707089,), (1346707093,), (1346707098,), (1346707131,), (1346707134,), (1346707138,), (1346707141,), (1346707145,), (1346707165,), (1346707169,), (1346707172,), (1346707175,), (1346707223,), (1346707202,), (1346707206,), (1346707209,), (1346707290,), (1346707292,), (1346707294,), (1346707322,), (1346707331,), (1346707334,), (1346707338,), (1346707342,), (1346707365,), (1346707368,), (1346707371,), (1346707374,), (1346707378,), (1346707434,), (1346707437,), (1346707441,), (1346707445,), (1346707449,), (1346707470,), (1346707472,), (1346707474,), (1346707476,), (1346707479,), (1346707509,), (1346707517,), (1346707520,), (1346707523,), (1346707524,), (1346707527,), (1346707547,), (1346707549,), (1346707551,), (1346707553,), (1346707556,), (1346707589,), (1346707592,), (1346707595,), (1346707602,), (1346707631,), (1346707633,), (1346707635,), (1346707637,), (1346707640,), (1346707642,), (1346707875,), (1346707904,), (1346707931,), (1346707958,), (1346708002,), (1346708060,), (1346708213,), (1346708225,), (1346708229,), (1346708231,), (1346708256,), (1346708265,), (1346708273,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24032025': {'nb_upload': 60, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21627257]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1346708273, 1346708265, 1346708256, 1346708231, 1346708229, 1346708225, 1346708213] map_info['map_portfolio_photo'] : {21627257: [1346708273, 1346708265, 1346708256, 1346708231, 1346708229, 1346708225, 1346708213, 1346708060, 1346708002, 1346707958, 1346707931, 1346707904, 1346707875, 1346707642, 1346707640, 1346707637, 1346707635, 1346707633, 1346707631, 1346707602, 1346707595, 1346707592, 1346707589, 1346707556, 1346707553, 1346707551, 1346707549, 1346707547, 1346707527, 1346707524, 1346707523, 1346707520, 1346707517, 1346707509, 1346707479, 1346707476, 1346707474, 1346707472, 1346707470, 1346707449, 1346707445, 1346707441, 1346707437, 1346707434, 1346707378, 1346707374, 1346707371, 1346707368, 1346707365, 1346707342, 1346707338, 1346707334, 1346707331, 1346707322, 1346707294, 1346707292, 1346707290, 1346707209, 1346707206, 1346707202]} final : True mtd_id 4302 list_pids : [1346708273, 1346708265, 1346708256, 1346708231, 1346708229, 1346708225, 1346708213] Looping around the photos to save general results len do output : 1 /21627257Didn'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, '2683904') ('4302', '21627257', '1346708273', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708265', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708256', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708231', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708229', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708225', None, None, None, None, None, '2683904') ('4302', None, None, None, None, None, None, None, '2683904') ('4302', '21627257', '1346708213', None, None, None, None, None, '2683904') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '21627257', 'None', None, None, None, None, '2683904'), ('4302', '21627257', '1346708273', None, None, None, None, None, '2683904'), ('4302', '21627257', '1346708265', None, None, None, None, None, '2683904'), ('4302', '21627257', '1346708256', None, None, None, None, None, '2683904'), ('4302', '21627257', '1346708231', None, None, None, None, None, '2683904'), ('4302', '21627257', '1346708229', None, None, None, None, None, '2683904'), ('4302', '21627257', '1346708225', None, None, None, None, None, '2683904'), ('4302', '21627257', '1346708213', None, None, None, None, None, '2683904')] time used for this insertion : 0.06329941749572754 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.320223331451416 time spend to save output : 0.06352782249450684 total time spend for step 5 : 0.38375115394592285 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 (2683904) 2.67user 2.51system 0:11.13elapsed 46%CPU (0avgtext+0avgdata 160448maxresident)k 8inputs+11360outputs (10major+74347minor)pagefaults 0swaps