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 : 878459 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 (2734525) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2734525) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22174430 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2734525'] with mtr_portfolio_ids : ['22174430'] and first list_photo_ids : [] new path : /proc/878459/ Name: python3 Umask: 0002 State: R (running) Tgid: 878459 Ngid: 0 Pid: 878459 PPid: 878458 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 878459 NSpid: 878459 NSpgid: 873865 NSsid: 873865 VmPeak: 1106828 kB VmSize: 1106828 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98732 kB VmRSS: 98732 kB RssAnon: 59800 kB RssFile: 38932 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/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: 54 nonvoluntary_ctxt_switches: 42 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '878459', 'Ngid': '0', 'Pid': '878459', 'PPid': '878458', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '878459', 'NSpid': '878459', 'NSpgid': '873865', 'NSsid': '873865', 'VmPeak': '1106828 kB', 'VmSize': '1106828 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98732 kB', 'VmRSS': '98732 kB', 'RssAnon': '59800 kB', 'RssFile': '38932 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/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': '54', 'nonvoluntary_ctxt_switches': '42'} ('datou_batch_current', '878459', '1106828', '0', '1106828', '865576', '98732', b'', 'marlene', '2734525') 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 (22174430) 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 (2734525 ) ) 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 (22174430) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350958285, 'portfolio_id': 22174430}, {'photo_id': 1350958014, 'portfolio_id': 22174430}, {'photo_id': 1350957979, 'portfolio_id': 22174430}, {'photo_id': 1350957957, 'portfolio_id': 22174430}, {'photo_id': 1350957952, 'portfolio_id': 22174430}, {'photo_id': 1350957939, 'portfolio_id': 22174430}, {'photo_id': 1350957391, 'portfolio_id': 22174430}, {'photo_id': 1350957365, 'portfolio_id': 22174430}, {'photo_id': 1350957340, 'portfolio_id': 22174430}, {'photo_id': 1350957322, 'portfolio_id': 22174430}, {'photo_id': 1350957268, 'portfolio_id': 22174430}, {'photo_id': 1350957266, 'portfolio_id': 22174430}, {'photo_id': 1350957263, 'portfolio_id': 22174430}, {'photo_id': 1350957255, 'portfolio_id': 22174430}, {'photo_id': 1350957247, 'portfolio_id': 22174430}, {'photo_id': 1350957175, 'portfolio_id': 22174430}, {'photo_id': 1350957174, 'portfolio_id': 22174430}, {'photo_id': 1350957172, 'portfolio_id': 22174430}, {'photo_id': 1350957141, 'portfolio_id': 22174430}, {'photo_id': 1350957134, 'portfolio_id': 22174430}, {'photo_id': 1350957126, 'portfolio_id': 22174430}, {'photo_id': 1350957120, 'portfolio_id': 22174430}, {'photo_id': 1350957116, 'portfolio_id': 22174430}, {'photo_id': 1350956823, 'portfolio_id': 22174430}, {'photo_id': 1350956808, 'portfolio_id': 22174430}, {'photo_id': 1350956803, 'portfolio_id': 22174430}, {'photo_id': 1350956795, 'portfolio_id': 22174430}, {'photo_id': 1350956789, 'portfolio_id': 22174430}, {'photo_id': 1350956786, 'portfolio_id': 22174430}, {'photo_id': 1350956726, 'portfolio_id': 22174430}, {'photo_id': 1350956724, 'portfolio_id': 22174430}, {'photo_id': 1350956723, 'portfolio_id': 22174430}, {'photo_id': 1350956668, 'portfolio_id': 22174430}, {'photo_id': 1350956665, 'portfolio_id': 22174430}, {'photo_id': 1350956662, 'portfolio_id': 22174430}, {'photo_id': 1350956659, 'portfolio_id': 22174430}, {'photo_id': 1350956584, 'portfolio_id': 22174430}, {'photo_id': 1350956582, 'portfolio_id': 22174430}, {'photo_id': 1350956576, 'portfolio_id': 22174430}, {'photo_id': 1350956558, 'portfolio_id': 22174430}, {'photo_id': 1350956543, 'portfolio_id': 22174430}, {'photo_id': 1350956316, 'portfolio_id': 22174430}, {'photo_id': 1350956288, 'portfolio_id': 22174430}, {'photo_id': 1350956263, 'portfolio_id': 22174430}, {'photo_id': 1350956007, 'portfolio_id': 22174430}, {'photo_id': 1350956005, 'portfolio_id': 22174430}, {'photo_id': 1350956002, 'portfolio_id': 22174430}, {'photo_id': 1350955999, 'portfolio_id': 22174430}, {'photo_id': 1350955995, 'portfolio_id': 22174430}, {'photo_id': 1350955993, 'portfolio_id': 22174430}, {'photo_id': 1350955899, 'portfolio_id': 22174430}, {'photo_id': 1350955892, 'portfolio_id': 22174430}, {'photo_id': 1350955889, 'portfolio_id': 22174430}, {'photo_id': 1350955885, 'portfolio_id': 22174430}, {'photo_id': 1350955875, 'portfolio_id': 22174430}, {'photo_id': 1350955282, 'portfolio_id': 22174430}, {'photo_id': 1350955230, 'portfolio_id': 22174430}, {'photo_id': 1350955194, 'portfolio_id': 22174430}, {'photo_id': 1350954467, 'portfolio_id': 22174430}] map_portfolio_id_photo_id: {22174430: [1350958285, 1350958014, 1350957979, 1350957957, 1350957952, 1350957939, 1350957391, 1350957365, 1350957340, 1350957322, 1350957268, 1350957266, 1350957263, 1350957255, 1350957247, 1350957175, 1350957174, 1350957172, 1350957141, 1350957134, 1350957126, 1350957120, 1350957116, 1350956823, 1350956808, 1350956803, 1350956795, 1350956789, 1350956786, 1350956726, 1350956724, 1350956723, 1350956668, 1350956665, 1350956662, 1350956659, 1350956584, 1350956582, 1350956576, 1350956558, 1350956543, 1350956316, 1350956288, 1350956263, 1350956007, 1350956005, 1350956002, 1350955999, 1350955995, 1350955993, 1350955899, 1350955892, 1350955889, 1350955885, 1350955875, 1350955282, 1350955230, 1350955194, 1350954467]} ##### 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.014511823654174805 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Apr 18 07:16:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22174430) 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 : 22174430 get user id for portfolio 22174430 get sub ptf for main ptf 22174430, type 3726 and hashtags ['Teint_Dans_La_Masse', 'environnement', 'kraft', 'metal', 'autre_refus', 'papier', 'flou', 'cartonnette', 'Carton_gris', 'Carton_brun', 'plastique', 'mal_croppe'] 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`=22174430 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','kraft','metal','autre_refus','papier','flou','cartonnette','Carton_gris','Carton_brun','plastique','mal_croppe')) 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`=22174430 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','kraft','metal','autre_refus','papier','flou','cartonnette','Carton_gris','Carton_brun','plastique','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22174430, 'sub_port_id': 22174461, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652165, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 58)}, 'cartonnette': {'main_port_id': 22174430, 'sub_port_id': 22174462, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652166, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 58)}, 'flou': {'main_port_id': 22174430, 'sub_port_id': 22174463, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652167, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 58)}, 'metal': {'main_port_id': 22174430, 'sub_port_id': 22174464, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652168, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 58)}, 'Carton_gris': {'main_port_id': 22174430, 'sub_port_id': 22174465, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652169, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 58)}, 'plastique': {'main_port_id': 22174430, 'sub_port_id': 22174466, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652170, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 58)}, 'kraft': {'main_port_id': 22174430, 'sub_port_id': 22174467, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652171, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 58)}, 'autre_refus': {'main_port_id': 22174430, 'sub_port_id': 22174468, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652172, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 58)}, 'papier': {'main_port_id': 22174430, 'sub_port_id': 22174469, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652173, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 58)}, 'mal_croppe': {'main_port_id': 22174430, 'sub_port_id': 22174470, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652174, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 58)}, 'Carton_brun': {'main_port_id': 22174430, 'sub_port_id': 22174471, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652175, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 58)}, 'environnement': {'main_port_id': 22174430, 'sub_port_id': 22174472, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652176, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22174461 , 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=22174430 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 (22174461) result : ((1350955989,), (1350955990,), (1350956071,), (1350956072,), (1350956560,), (1350956562,), (1350956698,), (1350956699,), (1350956700,), (1350956701,), (1350956703,), (1350956704,), (1350956705,), (1350956706,), (1350956707,), (1350956708,), (1350956748,), (1350956749,), (1350956750,), (1350956751,), (1350956752,), (1350957182,), (1350957183,), (1350957184,), (1350957185,), (1350957186,), (1350957187,), (1350957188,), (1350958174,), (1350958175,), (1350958176,), (1350958177,), (1350958178,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22174430) result : ((1350954467,), (1350955194,), (1350955230,), (1350955282,), (1350955875,), (1350955885,), (1350955889,), (1350955892,), (1350955899,), (1350955993,), (1350955995,), (1350955999,), (1350956002,), (1350956005,), (1350956007,), (1350956263,), (1350956288,), (1350956316,), (1350956543,), (1350956558,), (1350956576,), (1350956582,), (1350956584,), (1350956659,), (1350956662,), (1350956665,), (1350956668,), (1350956723,), (1350956724,), (1350956726,), (1350956786,), (1350956789,), (1350956795,), (1350956803,), (1350956808,), (1350956823,), (1350957116,), (1350957120,), (1350957126,), (1350957134,), (1350957141,), (1350957172,), (1350957174,), (1350957175,), (1350957247,), (1350957255,), (1350957263,), (1350957266,), (1350957268,), (1350957322,), (1350957340,), (1350957365,), (1350957391,), (1350957939,), (1350957952,), (1350957957,), (1350957979,), (1350958014,), (1350958285,)) 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 22174462 , 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=22174430 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 (22174462) result : ((1350956574,), (1350956575,), (1350956719,), (1350956720,), (1350956721,), (1350957197,), (1350958183,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22174430) result : ((1350954467,), (1350955194,), (1350955230,), (1350955282,), (1350955875,), (1350955885,), (1350955889,), (1350955892,), (1350955899,), (1350955993,), (1350955995,), (1350955999,), (1350956002,), (1350956005,), (1350956007,), (1350956263,), (1350956288,), (1350956316,), (1350956543,), (1350956558,), (1350956576,), (1350956582,), (1350956584,), (1350956659,), (1350956662,), (1350956665,), (1350956668,), (1350956723,), (1350956724,), (1350956726,), (1350956786,), (1350956789,), (1350956795,), (1350956803,), (1350956808,), (1350956823,), (1350957116,), (1350957120,), (1350957126,), (1350957134,), (1350957141,), (1350957172,), (1350957174,), (1350957175,), (1350957247,), (1350957255,), (1350957263,), (1350957266,), (1350957268,), (1350957322,), (1350957340,), (1350957365,), (1350957391,), (1350957939,), (1350957952,), (1350957957,), (1350957979,), (1350958014,), (1350958285,)) 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 22174463 , 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=22174430 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 (22174463) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22174430) result : ((1350954467,), (1350955194,), (1350955230,), (1350955282,), (1350955875,), (1350955885,), (1350955889,), (1350955892,), (1350955899,), (1350955993,), (1350955995,), (1350955999,), (1350956002,), (1350956005,), (1350956007,), (1350956263,), (1350956288,), (1350956316,), (1350956543,), (1350956558,), (1350956576,), (1350956582,), (1350956584,), (1350956659,), (1350956662,), (1350956665,), (1350956668,), (1350956723,), (1350956724,), (1350956726,), (1350956786,), (1350956789,), (1350956795,), (1350956803,), (1350956808,), (1350956823,), (1350957116,), (1350957120,), (1350957126,), (1350957134,), (1350957141,), (1350957172,), (1350957174,), (1350957175,), (1350957247,), (1350957255,), (1350957263,), (1350957266,), (1350957268,), (1350957322,), (1350957340,), (1350957365,), (1350957391,), (1350957939,), (1350957952,), (1350957957,), (1350957979,), (1350958014,), (1350958285,)) 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 22174464 , 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=22174430 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 (22174464) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22174430) result : ((1350954467,), (1350955194,), (1350955230,), (1350955282,), (1350955875,), (1350955885,), (1350955889,), (1350955892,), (1350955899,), (1350955993,), (1350955995,), (1350955999,), (1350956002,), (1350956005,), (1350956007,), (1350956263,), (1350956288,), (1350956316,), (1350956543,), (1350956558,), (1350956576,), (1350956582,), (1350956584,), (1350956659,), (1350956662,), (1350956665,), (1350956668,), (1350956723,), (1350956724,), (1350956726,), (1350956786,), (1350956789,), (1350956795,), (1350956803,), (1350956808,), (1350956823,), (1350957116,), (1350957120,), (1350957126,), (1350957134,), (1350957141,), (1350957172,), (1350957174,), (1350957175,), (1350957247,), (1350957255,), (1350957263,), (1350957266,), (1350957268,), (1350957322,), (1350957340,), (1350957365,), (1350957391,), (1350957939,), (1350957952,), (1350957957,), (1350957979,), (1350958014,), (1350958285,)) 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 22174465 , 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=22174430 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 (22174465) result : ((1350956564,), (1350956566,), (1350956568,), (1350956570,), (1350956718,), (1350956754,), (1350956755,), (1350957152,), (1350957195,), (1350957196,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22174430) result : ((1350954467,), (1350955194,), (1350955230,), (1350955282,), (1350955875,), (1350955885,), (1350955889,), (1350955892,), (1350955899,), (1350955993,), (1350955995,), (1350955999,), (1350956002,), (1350956005,), (1350956007,), (1350956263,), (1350956288,), (1350956316,), (1350956543,), (1350956558,), (1350956576,), (1350956582,), (1350956584,), (1350956659,), (1350956662,), (1350956665,), (1350956668,), (1350956723,), (1350956724,), (1350956726,), (1350956786,), (1350956789,), (1350956795,), (1350956803,), (1350956808,), (1350956823,), (1350957116,), (1350957120,), (1350957126,), (1350957134,), (1350957141,), (1350957172,), (1350957174,), (1350957175,), (1350957247,), (1350957255,), (1350957263,), (1350957266,), (1350957268,), (1350957322,), (1350957340,), (1350957365,), (1350957391,), (1350957939,), (1350957952,), (1350957957,), (1350957979,), (1350958014,), (1350958285,)) 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 22174466 , 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=22174430 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 (22174466) result : ((1350955992,), (1350956580,), (1350957207,), (1350957208,), (1350958190,), (1350958191,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22174430) result : ((1350954467,), (1350955194,), (1350955230,), (1350955282,), (1350955875,), (1350955885,), (1350955889,), (1350955892,), (1350955899,), (1350955993,), (1350955995,), (1350955999,), (1350956002,), (1350956005,), (1350956007,), (1350956263,), (1350956288,), (1350956316,), (1350956543,), (1350956558,), (1350956576,), (1350956582,), (1350956584,), (1350956659,), (1350956662,), (1350956665,), (1350956668,), (1350956723,), (1350956724,), (1350956726,), (1350956786,), (1350956789,), (1350956795,), (1350956803,), (1350956808,), (1350956823,), (1350957116,), (1350957120,), (1350957126,), (1350957134,), (1350957141,), (1350957172,), (1350957174,), (1350957175,), (1350957247,), (1350957255,), (1350957263,), (1350957266,), (1350957268,), (1350957322,), (1350957340,), (1350957365,), (1350957391,), (1350957939,), (1350957952,), (1350957957,), (1350957979,), (1350958014,), (1350958285,)) 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 22174467 , 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=22174430 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 (22174467) result : ((1350957154,), (1350957209,), (1350958192,), (1350958193,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22174430) result : ((1350954467,), (1350955194,), (1350955230,), (1350955282,), (1350955875,), (1350955885,), (1350955889,), (1350955892,), (1350955899,), (1350955993,), (1350955995,), (1350955999,), (1350956002,), (1350956005,), (1350956007,), (1350956263,), (1350956288,), (1350956316,), (1350956543,), (1350956558,), (1350956576,), (1350956582,), (1350956584,), (1350956659,), (1350956662,), (1350956665,), (1350956668,), (1350956723,), (1350956724,), (1350956726,), (1350956786,), (1350956789,), (1350956795,), (1350956803,), (1350956808,), (1350956823,), (1350957116,), (1350957120,), (1350957126,), (1350957134,), (1350957141,), (1350957172,), (1350957174,), (1350957175,), (1350957247,), (1350957255,), (1350957263,), (1350957266,), (1350957268,), (1350957322,), (1350957340,), (1350957365,), (1350957391,), (1350957939,), (1350957952,), (1350957957,), (1350957979,), (1350958014,), (1350958285,)) 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 22174468 , 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=22174430 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 (22174468) result : ((1350956076,), (1350956714,), (1350957189,), (1350957191,), (1350957192,), (1350958181,), (1350958182,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22174430) result : ((1350954467,), (1350955194,), (1350955230,), (1350955282,), (1350955875,), (1350955885,), (1350955889,), (1350955892,), (1350955899,), (1350955993,), (1350955995,), (1350955999,), (1350956002,), (1350956005,), (1350956007,), (1350956263,), (1350956288,), (1350956316,), (1350956543,), (1350956558,), (1350956576,), (1350956582,), (1350956584,), (1350956659,), (1350956662,), (1350956665,), (1350956668,), (1350956723,), (1350956724,), (1350956726,), (1350956786,), (1350956789,), (1350956795,), (1350956803,), (1350956808,), (1350956823,), (1350957116,), (1350957120,), (1350957126,), (1350957134,), (1350957141,), (1350957172,), (1350957174,), (1350957175,), (1350957247,), (1350957255,), (1350957263,), (1350957266,), (1350957268,), (1350957322,), (1350957340,), (1350957365,), (1350957391,), (1350957939,), (1350957952,), (1350957957,), (1350957979,), (1350958014,), (1350958285,)) 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 22174469 , 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=22174430 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 (22174469) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22174430) result : ((1350954467,), (1350955194,), (1350955230,), (1350955282,), (1350955875,), (1350955885,), (1350955889,), (1350955892,), (1350955899,), (1350955993,), (1350955995,), (1350955999,), (1350956002,), (1350956005,), (1350956007,), (1350956263,), (1350956288,), (1350956316,), (1350956543,), (1350956558,), (1350956576,), (1350956582,), (1350956584,), (1350956659,), (1350956662,), (1350956665,), (1350956668,), (1350956723,), (1350956724,), (1350956726,), (1350956786,), (1350956789,), (1350956795,), (1350956803,), (1350956808,), (1350956823,), (1350957116,), (1350957120,), (1350957126,), (1350957134,), (1350957141,), (1350957172,), (1350957174,), (1350957175,), (1350957247,), (1350957255,), (1350957263,), (1350957266,), (1350957268,), (1350957322,), (1350957340,), (1350957365,), (1350957391,), (1350957939,), (1350957952,), (1350957957,), (1350957979,), (1350958014,), (1350958285,)) 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 22174470 , 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=22174430 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 (22174470) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22174430) result : ((1350954467,), (1350955194,), (1350955230,), (1350955282,), (1350955875,), (1350955885,), (1350955889,), (1350955892,), (1350955899,), (1350955993,), (1350955995,), (1350955999,), (1350956002,), (1350956005,), (1350956007,), (1350956263,), (1350956288,), (1350956316,), (1350956543,), (1350956558,), (1350956576,), (1350956582,), (1350956584,), (1350956659,), (1350956662,), (1350956665,), (1350956668,), (1350956723,), (1350956724,), (1350956726,), (1350956786,), (1350956789,), (1350956795,), (1350956803,), (1350956808,), (1350956823,), (1350957116,), (1350957120,), (1350957126,), (1350957134,), (1350957141,), (1350957172,), (1350957174,), (1350957175,), (1350957247,), (1350957255,), (1350957263,), (1350957266,), (1350957268,), (1350957322,), (1350957340,), (1350957365,), (1350957391,), (1350957939,), (1350957952,), (1350957957,), (1350957979,), (1350958014,), (1350958285,)) 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 22174471 , 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=22174430 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 (22174471) result : ((1350956577,), (1350956578,), (1350956757,), (1350957200,), (1350957201,), (1350957202,), (1350957203,), (1350957204,), (1350957609,), (1350958185,), (1350958186,), (1350958187,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22174430) result : ((1350954467,), (1350955194,), (1350955230,), (1350955282,), (1350955875,), (1350955885,), (1350955889,), (1350955892,), (1350955899,), (1350955993,), (1350955995,), (1350955999,), (1350956002,), (1350956005,), (1350956007,), (1350956263,), (1350956288,), (1350956316,), (1350956543,), (1350956558,), (1350956576,), (1350956582,), (1350956584,), (1350956659,), (1350956662,), (1350956665,), (1350956668,), (1350956723,), (1350956724,), (1350956726,), (1350956786,), (1350956789,), (1350956795,), (1350956803,), (1350956808,), (1350956823,), (1350957116,), (1350957120,), (1350957126,), (1350957134,), (1350957141,), (1350957172,), (1350957174,), (1350957175,), (1350957247,), (1350957255,), (1350957263,), (1350957266,), (1350957268,), (1350957322,), (1350957340,), (1350957365,), (1350957391,), (1350957939,), (1350957952,), (1350957957,), (1350957979,), (1350958014,), (1350958285,)) 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 22174472 , 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=22174430 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 (22174472) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22174430) result : ((1350954467,), (1350955194,), (1350955230,), (1350955282,), (1350955875,), (1350955885,), (1350955889,), (1350955892,), (1350955899,), (1350955993,), (1350955995,), (1350955999,), (1350956002,), (1350956005,), (1350956007,), (1350956263,), (1350956288,), (1350956316,), (1350956543,), (1350956558,), (1350956576,), (1350956582,), (1350956584,), (1350956659,), (1350956662,), (1350956665,), (1350956668,), (1350956723,), (1350956724,), (1350956726,), (1350956786,), (1350956789,), (1350956795,), (1350956803,), (1350956808,), (1350956823,), (1350957116,), (1350957120,), (1350957126,), (1350957134,), (1350957141,), (1350957172,), (1350957174,), (1350957175,), (1350957247,), (1350957255,), (1350957263,), (1350957266,), (1350957268,), (1350957322,), (1350957340,), (1350957365,), (1350957391,), (1350957939,), (1350957952,), (1350957957,), (1350957979,), (1350958014,), (1350958285,)) 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`=22174430 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','kraft','metal','autre_refus','papier','flou','cartonnette','Carton_gris','Carton_brun','plastique','mal_croppe')) 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`=22174430 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','kraft','metal','autre_refus','papier','flou','cartonnette','Carton_gris','Carton_brun','plastique','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22174430, 'sub_port_id': 22174473, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652177, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 59)}, 'cartonnette': {'main_port_id': 22174430, 'sub_port_id': 22174474, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652178, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 59)}, 'flou': {'main_port_id': 22174430, 'sub_port_id': 22174475, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652179, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 59)}, 'metal': {'main_port_id': 22174430, 'sub_port_id': 22174476, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652180, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 59)}, 'Carton_gris': {'main_port_id': 22174430, 'sub_port_id': 22174477, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652181, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 59)}, 'plastique': {'main_port_id': 22174430, 'sub_port_id': 22174478, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652182, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 59)}, 'kraft': {'main_port_id': 22174430, 'sub_port_id': 22174479, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652183, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 59)}, 'autre_refus': {'main_port_id': 22174430, 'sub_port_id': 22174480, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652184, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 59)}, 'papier': {'main_port_id': 22174430, 'sub_port_id': 22174481, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652185, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 59)}, 'mal_croppe': {'main_port_id': 22174430, 'sub_port_id': 22174482, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652186, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 59)}, 'Carton_brun': {'main_port_id': 22174430, 'sub_port_id': 22174483, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652187, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 59)}, 'environnement': {'main_port_id': 22174430, 'sub_port_id': 22174484, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14652188, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22174473,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22174461 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22174474,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22174462 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22174475,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22174463 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22174476,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22174464 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22174477,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22174465 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22174478,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22174466 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22174479,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22174467 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22174480,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22174468 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22174481,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22174469 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22174482,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22174470 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22174483,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22174471 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22174484,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22174472 lien utilise dans velours : https://www.fotonower.com/velours/22174473,22174474,22174475,22174476,22174477,22174478,22174479,22174480,22174481,22174482,22174483,22174484?tags=Teint_Dans_La_Masse,cartonnette,flou,metal,Carton_gris,plastique,kraft,autre_refus,papier,mal_croppe,Carton_brun,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22174430]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350958285, 1350958014, 1350957979, 1350957957, 1350957952, 1350957939] map_info['map_portfolio_photo'] : {22174430: [1350958285, 1350958014, 1350957979, 1350957957, 1350957952, 1350957939, 1350957391, 1350957365, 1350957340, 1350957322, 1350957268, 1350957266, 1350957263, 1350957255, 1350957247, 1350957175, 1350957174, 1350957172, 1350957141, 1350957134, 1350957126, 1350957120, 1350957116, 1350956823, 1350956808, 1350956803, 1350956795, 1350956789, 1350956786, 1350956726, 1350956724, 1350956723, 1350956668, 1350956665, 1350956662, 1350956659, 1350956584, 1350956582, 1350956576, 1350956558, 1350956543, 1350956316, 1350956288, 1350956263, 1350956007, 1350956005, 1350956002, 1350955999, 1350955995, 1350955993, 1350955899, 1350955892, 1350955889, 1350955885, 1350955875, 1350955282, 1350955230, 1350955194, 1350954467]} final : False mtd_id 4302 list_pids : [1350958285, 1350958014, 1350957979, 1350957957, 1350957952, 1350957939] Looping around the photos to save general results len do output : 1 /22174430. 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, '2734525') ('4302', '22174430', '1350958285', None, None, None, None, None, '2734525') ('4302', None, None, None, None, None, None, None, '2734525') ('4302', '22174430', '1350958014', None, None, None, None, None, '2734525') ('4302', None, None, None, None, None, None, None, '2734525') ('4302', '22174430', '1350957979', None, None, None, None, None, '2734525') ('4302', None, None, None, None, None, None, None, '2734525') ('4302', '22174430', '1350957957', None, None, None, None, None, '2734525') ('4302', None, None, None, None, None, None, None, '2734525') ('4302', '22174430', '1350957952', None, None, None, None, None, '2734525') ('4302', None, None, None, None, None, None, None, '2734525') ('4302', '22174430', '1350957939', None, None, None, None, None, '2734525') 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', None, '22174430', "{'Teint_Dans_La_Masse': 22174461, 'cartonnette': 22174462, 'flou': 22174463, 'metal': 22174464, 'Carton_gris': 22174465, 'plastique': 22174466, 'kraft': 22174467, 'autre_refus': 22174468, 'papier': 22174469, 'mal_croppe': 22174470, 'Carton_brun': 22174471, 'environnement': 22174472}", None, None, None, None, '2734525'), ('4302', '22174430', '1350958285', None, None, None, None, None, '2734525'), ('4302', '22174430', '1350958014', None, None, None, None, None, '2734525'), ('4302', '22174430', '1350957979', None, None, None, None, None, '2734525'), ('4302', '22174430', '1350957957', None, None, None, None, None, '2734525'), ('4302', '22174430', '1350957952', None, None, None, None, None, '2734525'), ('4302', '22174430', '1350957939', None, None, None, None, None, '2734525')] time used for this insertion : 0.016964197158813477 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5018723011016846 time spend to save output : 0.01728653907775879 total time spend for step 1 : 1.5191588401794434 step2:final Fri Apr 18 07:17:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22174430) 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 22174430 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350954467,1350955282,1350955230,1350955194,1350955899,1350955892,1350955889,1350955885,1350955875,1350956007,1350956005,1350956002,1350955999,1350955995,1350955993,1350956316,1350956288,1350956263,1350956584,1350956582,1350956576,1350956558,1350956543,1350956668,1350956665,1350956662,1350956659,1350956726,1350956724,1350956723,1350956823,1350956808,1350956803,1350956795,1350956789,1350956786,1350957141,1350957134,1350957126,1350957120,1350957116,1350957175,1350957174,1350957172,1350957268,1350957266,1350957263,1350957255,1350957247,1350957391,1350957365,1350957340,1350957322,1350958014,1350957979,1350957957,1350957952,1350957939,1350958285); 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([22174430]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350958285: ('0.09001200735003627',), 1350958014: ('0.09001200735003627',), 1350957979: ('0.09001200735003627',), 1350957957: ('0.09001200735003627',), 1350957952: ('0.09001200735003627',), 1350957939: ('0.09001200735003627',)} new output for save of step final : {1350958285: ('0.09001200735003627',), 1350958014: ('0.09001200735003627',), 1350957979: ('0.09001200735003627',), 1350957957: ('0.09001200735003627',), 1350957952: ('0.09001200735003627',), 1350957939: ('0.09001200735003627',)} [1350958285, 1350958014, 1350957979, 1350957957, 1350957952, 1350957939] map_info['map_portfolio_photo'] : {22174430: [1350958285, 1350958014, 1350957979, 1350957957, 1350957952, 1350957939, 1350957391, 1350957365, 1350957340, 1350957322, 1350957268, 1350957266, 1350957263, 1350957255, 1350957247, 1350957175, 1350957174, 1350957172, 1350957141, 1350957134, 1350957126, 1350957120, 1350957116, 1350956823, 1350956808, 1350956803, 1350956795, 1350956789, 1350956786, 1350956726, 1350956724, 1350956723, 1350956668, 1350956665, 1350956662, 1350956659, 1350956584, 1350956582, 1350956576, 1350956558, 1350956543, 1350956316, 1350956288, 1350956263, 1350956007, 1350956005, 1350956002, 1350955999, 1350955995, 1350955993, 1350955899, 1350955892, 1350955889, 1350955885, 1350955875, 1350955282, 1350955230, 1350955194, 1350954467]} final : False mtd_id 4302 list_pids : [1350958285, 1350958014, 1350957979, 1350957957, 1350957952, 1350957939] Looping around the photos to save general results len do output : 6 /1350958285.Didn't retrieve data . /1350958014.Didn't retrieve data . /1350957979.Didn't retrieve data . /1350957957.Didn't retrieve data . /1350957952.Didn't retrieve data . /1350957939.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, '2734525') ('4302', '22174430', '1350958285', None, None, None, None, None, '2734525') ('4302', None, None, None, None, None, None, None, '2734525') ('4302', '22174430', '1350958014', None, None, None, None, None, '2734525') ('4302', None, None, None, None, None, None, None, '2734525') ('4302', '22174430', '1350957979', None, None, None, None, None, '2734525') ('4302', None, None, None, None, None, None, None, '2734525') ('4302', '22174430', '1350957957', None, None, None, None, None, '2734525') ('4302', None, None, None, None, None, None, None, '2734525') ('4302', '22174430', '1350957952', None, None, None, None, None, '2734525') ('4302', None, None, None, None, None, None, None, '2734525') ('4302', '22174430', '1350957939', None, None, None, None, None, '2734525') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '22174430', '1350958285', '0.09001200735003627', None, None, None, None, '2734525'), ('4302', '22174430', '1350958014', '0.09001200735003627', None, None, None, None, '2734525'), ('4302', '22174430', '1350957979', '0.09001200735003627', None, None, None, None, '2734525'), ('4302', '22174430', '1350957957', '0.09001200735003627', None, None, None, None, '2734525'), ('4302', '22174430', '1350957952', '0.09001200735003627', None, None, None, None, '2734525'), ('4302', '22174430', '1350957939', '0.09001200735003627', None, None, None, None, '2734525')] time used for this insertion : 0.023632287979125977 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07359743118286133 time spend to save output : 0.024039506912231445 total time spend for step 2 : 0.09763693809509277 step3:velours_tree Fri Apr 18 07:17:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22174430: [{'Teint_Dans_La_Masse': 22174461, 'cartonnette': 22174462, 'flou': 22174463, 'metal': 22174464, 'Carton_gris': 22174465, 'plastique': 22174466, 'kraft': 22174467, 'autre_refus': 22174468, 'papier': 22174469, 'mal_croppe': 22174470, 'Carton_brun': 22174471, 'environnement': 22174472}]} input_args_next_step : {22174430: ()} output_args : {22174430: [{'Teint_Dans_La_Masse': 22174461, 'cartonnette': 22174462, 'flou': 22174463, 'metal': 22174464, 'Carton_gris': 22174465, 'plastique': 22174466, 'kraft': 22174467, 'autre_refus': 22174468, 'papier': 22174469, 'mal_croppe': 22174470, 'Carton_brun': 22174471, 'environnement': 22174472}]} args : 22174430 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 : ({'Teint_Dans_La_Masse': 22174461, 'cartonnette': 22174462, 'flou': 22174463, 'metal': 22174464, 'Carton_gris': 22174465, 'plastique': 22174466, 'kraft': 22174467, 'autre_refus': 22174468, 'papier': 22174469, 'mal_croppe': 22174470, 'Carton_brun': 22174471, 'environnement': 22174472},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22174430) 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([22174430]) 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.2987251281738281 time spend to save output : 5.1975250244140625e-05 total time spend for step 3 : 0.29877710342407227 step4:send_mail_cod Fri Apr 18 07:17:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1350958285: ('0.09001200735003627',), 1350958014: ('0.09001200735003627',), 1350957979: ('0.09001200735003627',), 1350957957: ('0.09001200735003627',), 1350957952: ('0.09001200735003627',), 1350957939: ('0.09001200735003627',)} input_args_next_step : {1350958285: ()} output_args : {1350958285: ('0.09001200735003627',), 1350958014: ('0.09001200735003627',), 1350957979: ('0.09001200735003627',), 1350957957: ('0.09001200735003627',), 1350957952: ('0.09001200735003627',), 1350957939: ('0.09001200735003627',)} args : 1350958285 depend.output_id : 0 input_args_next_step : {1350958285: ('0.09001200735003627',), 1350958014: ()} output_args : {1350958285: ('0.09001200735003627',), 1350958014: ('0.09001200735003627',), 1350957979: ('0.09001200735003627',), 1350957957: ('0.09001200735003627',), 1350957952: ('0.09001200735003627',), 1350957939: ('0.09001200735003627',)} args : 1350958014 depend.output_id : 0 input_args_next_step : {1350958285: ('0.09001200735003627',), 1350958014: ('0.09001200735003627',), 1350957979: ()} output_args : {1350958285: ('0.09001200735003627',), 1350958014: ('0.09001200735003627',), 1350957979: ('0.09001200735003627',), 1350957957: ('0.09001200735003627',), 1350957952: ('0.09001200735003627',), 1350957939: ('0.09001200735003627',)} args : 1350957979 depend.output_id : 0 input_args_next_step : {1350958285: ('0.09001200735003627',), 1350958014: ('0.09001200735003627',), 1350957979: ('0.09001200735003627',), 1350957957: ()} output_args : {1350958285: ('0.09001200735003627',), 1350958014: ('0.09001200735003627',), 1350957979: ('0.09001200735003627',), 1350957957: ('0.09001200735003627',), 1350957952: ('0.09001200735003627',), 1350957939: ('0.09001200735003627',)} args : 1350957957 depend.output_id : 0 input_args_next_step : {1350958285: ('0.09001200735003627',), 1350958014: ('0.09001200735003627',), 1350957979: ('0.09001200735003627',), 1350957957: ('0.09001200735003627',), 1350957952: ()} output_args : {1350958285: ('0.09001200735003627',), 1350958014: ('0.09001200735003627',), 1350957979: ('0.09001200735003627',), 1350957957: ('0.09001200735003627',), 1350957952: ('0.09001200735003627',), 1350957939: ('0.09001200735003627',)} args : 1350957952 depend.output_id : 0 input_args_next_step : {1350958285: ('0.09001200735003627',), 1350958014: ('0.09001200735003627',), 1350957979: ('0.09001200735003627',), 1350957957: ('0.09001200735003627',), 1350957952: ('0.09001200735003627',), 1350957939: ()} output_args : {1350958285: ('0.09001200735003627',), 1350958014: ('0.09001200735003627',), 1350957979: ('0.09001200735003627',), 1350957957: ('0.09001200735003627',), 1350957952: ('0.09001200735003627',), 1350957939: ('0.09001200735003627',)} args : 1350957939 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 : {22174430: [{'Teint_Dans_La_Masse': 22174461, 'cartonnette': 22174462, 'flou': 22174463, 'metal': 22174464, 'Carton_gris': 22174465, 'plastique': 22174466, 'kraft': 22174467, 'autre_refus': 22174468, 'papier': 22174469, 'mal_croppe': 22174470, 'Carton_brun': 22174471, 'environnement': 22174472}]} input_args_next_step : {1350958285: ('0.09001200735003627',), 1350958014: ('0.09001200735003627',), 1350957979: ('0.09001200735003627',), 1350957957: ('0.09001200735003627',), 1350957952: ('0.09001200735003627',), 1350957939: ('0.09001200735003627',), 22174430: ()} output_args : {22174430: [{'Teint_Dans_La_Masse': 22174461, 'cartonnette': 22174462, 'flou': 22174463, 'metal': 22174464, 'Carton_gris': 22174465, 'plastique': 22174466, 'kraft': 22174467, 'autre_refus': 22174468, 'papier': 22174469, 'mal_croppe': 22174470, 'Carton_brun': 22174471, 'environnement': 22174472}]} args : 22174430 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 :7, first value : ('0.09001200735003627',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22174430) 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 (1350958285,1350958014,1350957979,1350957957,1350957952,1350957939) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350957939 begin to download photo : 1350957957 begin to download photo : 1350958014 download finish for photo 1350958014 begin to download photo : 1350958285 download finish for photo 1350957957 begin to download photo : 1350957979 download finish for photo 1350958285 download finish for photo 1350957979 download finish for photo 1350957939 begin to download photo : 1350957952 download finish for photo 1350957952 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 : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P22174430_18-04-2025_07_17_03.pdf 22174462 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=22174462 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350956574: '1744952743_2109388_1350955889_fb64ea8a05c841b8e2f0c4191a277875_rle_crop_3753330350_0.png', 1350956575: '1744952743_2109388_1350955875_48ee2982a09a9b43e3ee230608a42686_rle_crop_3753330394_0.png', 1350956719: '1744952893_3755845_1350956582_39fd80d53b876b52e0c7c3caa973c678_rle_crop_3753333238_0.png', 1350956720: '1744952893_3755845_1350956582_39fd80d53b876b52e0c7c3caa973c678_rle_crop_3753333241_0.png', 1350956721: '1744952893_3755845_1350956543_8c64a6bc056bf57e4d9cef227b9f45df_rle_crop_3753333341_0.png', 1350957197: '1744953107_2115507_1350956005_84c8218de330865144c98f2e8adc976e_rle_crop_3753338708_0.png', 1350958183: '1744953313_3760034_1350957340_f0500b8a01521719a820e190fc690a34_rle_crop_3753341679_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b920cfad7fbfd63e7c956a3700e10cf0_40016364.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/a749e373df1ad8107c96d72c9bbf09c5_65261598.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/fbdb1d89075599a93ca7c5f14b753d98_34862445.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/e66dccff70b34cec88b6ed0fb66c11aa_12172476.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/6c6315b39a93acdd6d1942d0fb68aa69_9108016.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/9f1d9542a802d34e97421f2ef0679177_54067540.png change filename to text .imagette221744621744953423/ imagette221744621744953423/1744952893_3755845_1350956582_39fd80d53b876b52e0c7c3caa973c678_rle_crop_3753333241_0.png.png imagette221744621744953423/1744952743_2109388_1350955875_48ee2982a09a9b43e3ee230608a42686_rle_crop_3753330394_0.png.png imagette221744621744953423/1744952893_3755845_1350956543_8c64a6bc056bf57e4d9cef227b9f45df_rle_crop_3753333341_0.png.png imagette221744621744953423/1744952743_2109388_1350955889_fb64ea8a05c841b8e2f0c4191a277875_rle_crop_3753330350_0.png.png imagette221744621744953423/1744953313_3760034_1350957340_f0500b8a01521719a820e190fc690a34_rle_crop_3753341679_0.png.png imagette221744621744953423/1744953107_2115507_1350956005_84c8218de330865144c98f2e8adc976e_rle_crop_3753338708_0.png.png imagette221744621744953423/1744952893_3755845_1350956582_39fd80d53b876b52e0c7c3caa973c678_rle_crop_3753333238_0.png.png imagette221744631744953424/ imagette221744641744953424/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/1151d57976420e0f64a90d9384a3618c_96680452.png imagette221744621744953423 22174463 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=22174463 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221744631744953424 22174464 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=22174464 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221744641744953424 22174466 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=22174466 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350955992: '1744952623_2106363_1350954467_9d8bd71e8df29b91dbb9ebd1e2b3a3a1_rle_crop_3753328449_0.png', 1350956580: '1744952743_2109388_1350955885_20693a17f7ac4de4fba473a26ac24653_rle_crop_3753330371_0.png', 1350957207: '1744953107_2115507_1350956316_3702c4af43fb4e07302b55eb23f89a37_rle_crop_3753338669_0.png', 1350957208: '1744953107_2115507_1350955995_78a47994dc34c29fe044d3b102d9504c_rle_crop_3753338822_0.png', 1350958190: '1744953313_3760034_1350957340_f0500b8a01521719a820e190fc690a34_rle_crop_3753341681_0.png', 1350958191: '1744953313_3760034_1350957322_44ad990dd96c551257ffddacfff8d2ed_rle_crop_3753341720_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/dfed5a8d6923ee04c62d0fcafc789ef5_74909228.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/8d77bd4f64b1e6dccf122fa91804b872_56273502.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/acd61e0e878ccfafd10f7fc4012ca148_46038684.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/15d5f7ef36653e3ce6755c97b7689f86_21202010.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/e43a17c0c53bebf4225e4d29e1f06b57_82967729.png change filename to text .imagette221744661744953424/ imagette221744661744953424/1744953313_3760034_1350957340_f0500b8a01521719a820e190fc690a34_rle_crop_3753341681_0.png.png imagette221744661744953424/1744953313_3760034_1350957322_44ad990dd96c551257ffddacfff8d2ed_rle_crop_3753341720_0.png.png imagette221744661744953424/1744952623_2106363_1350954467_9d8bd71e8df29b91dbb9ebd1e2b3a3a1_rle_crop_3753328449_0.png.png imagette221744661744953424/1744953107_2115507_1350955995_78a47994dc34c29fe044d3b102d9504c_rle_crop_3753338822_0.png.png imagette221744661744953424/1744952743_2109388_1350955885_20693a17f7ac4de4fba473a26ac24653_rle_crop_3753330371_0.png.png imagette221744661744953424/1744953107_2115507_1350956316_3702c4af43fb4e07302b55eb23f89a37_rle_crop_3753338669_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/573ae77b68c4398aa3754af826378904_53901326.png imagette221744661744953424 22174467 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=22174467 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350957154: '1744953074_3757775_1350956723_cc6b761291a61249ae824308a79031c4_rle_crop_3753338008_0.png', 1350957209: '1744953107_2115507_1350955993_00b8de6bbf15e092127919a8a3c9f74d_rle_crop_3753338849_0.png', 1350958192: '1744953313_3760034_1350957365_a8f79bde64c05607f64437a9c7b2764d_rle_crop_3753341653_0.png', 1350958193: '1744953313_3760034_1350957322_44ad990dd96c551257ffddacfff8d2ed_rle_crop_3753341727_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/5793a7a717198b6f4d691812def67843_14092568.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/0d15d2198f2e6568bacb5461a670646d_61857312.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/80e40a24af9f9f84e7a5d99c3394485d_39896852.png change filename to text .imagette221744671744953424/ imagette221744671744953424/1744953107_2115507_1350955993_00b8de6bbf15e092127919a8a3c9f74d_rle_crop_3753338849_0.png.png imagette221744671744953424/1744953074_3757775_1350956723_cc6b761291a61249ae824308a79031c4_rle_crop_3753338008_0.png.png imagette221744671744953424/1744953313_3760034_1350957322_44ad990dd96c551257ffddacfff8d2ed_rle_crop_3753341727_0.png.png imagette221744671744953424/1744953313_3760034_1350957365_a8f79bde64c05607f64437a9c7b2764d_rle_crop_3753341653_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/e1b66bb1b6a270d01fd2eec707df6247_57960789.png imagette221744671744953424 22174468 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=22174468 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350956076: '1744952653_3753544_1350955230_e1df2057661914249e19eb3fd37e29c1_rle_crop_3753328509_0.png', 1350956714: '1744952893_3755845_1350956558_9c314d51c4ef3f12806f67aa73b90b06_rle_crop_3753333322_0.png', 1350957189: '1744953107_2115507_1350956005_84c8218de330865144c98f2e8adc976e_rle_crop_3753338716_0.png', 1350957191: '1744953107_2115507_1350956002_714e225f3b63be2f62dfa1018bc6e859_rle_crop_3753338749_0.png', 1350957192: '1744953107_2115507_1350955995_78a47994dc34c29fe044d3b102d9504c_rle_crop_3753338817_0.png', 1350958181: '1744953313_3760034_1350957365_a8f79bde64c05607f64437a9c7b2764d_rle_crop_3753341654_0.png', 1350958182: '1744953313_3760034_1350957340_f0500b8a01521719a820e190fc690a34_rle_crop_3753341691_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/52721879464106968f82e1d4c3b7daa0_81872582.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f5126813adf40ae036a29eff3e2b6632_38599368.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f5d82604ba79765d731b85c47dfc10fa_92261743.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/cf527a07fad4634d869fd5cd0b2e5ae7_18969006.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/ea92364fff4d22b975029b6e7c4166be_72661744.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/a963102245c80c99dc7b2c987fa0eb4f_43151683.png change filename to text .imagette221744681744953424/ imagette221744681744953424/1744953107_2115507_1350956005_84c8218de330865144c98f2e8adc976e_rle_crop_3753338716_0.png.png imagette221744681744953424/1744953313_3760034_1350957365_a8f79bde64c05607f64437a9c7b2764d_rle_crop_3753341654_0.png.png imagette221744681744953424/1744953107_2115507_1350955995_78a47994dc34c29fe044d3b102d9504c_rle_crop_3753338817_0.png.png imagette221744681744953424/1744952893_3755845_1350956558_9c314d51c4ef3f12806f67aa73b90b06_rle_crop_3753333322_0.png.png imagette221744681744953424/1744953107_2115507_1350956002_714e225f3b63be2f62dfa1018bc6e859_rle_crop_3753338749_0.png.png imagette221744681744953424/1744953313_3760034_1350957340_f0500b8a01521719a820e190fc690a34_rle_crop_3753341691_0.png.png imagette221744681744953424/1744952653_3753544_1350955230_e1df2057661914249e19eb3fd37e29c1_rle_crop_3753328509_0.png.png imagette221744701744953425/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/6a31d79581f5611c8ecb28bffddee7cd_51284495.png imagette221744681744953424 22174470 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=22174470 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221744701744953425 22174461 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=22174461 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350957186: '1744953107_2115507_1350955999_5c6dd20caa6659af9898c4ffc7bba444_rle_crop_3753338789_0.png', 1350956749: '1744952951_3756600_1350956584_9770f996378f2e16dd794887bcd5f0d1_rle_crop_3753334376_0.png', 1350956750: '1744952951_3756600_1350956584_9770f996378f2e16dd794887bcd5f0d1_rle_crop_3753334378_0.png', 1350956751: '1744952951_3756600_1350956584_9770f996378f2e16dd794887bcd5f0d1_rle_crop_3753334381_0.png', 1350956752: '1744952951_3756600_1350956263_d36eb54ca2c8976024b633a9a8be8250_rle_crop_3753334396_0.png', 1350957182: '1744953107_2115507_1350956316_3702c4af43fb4e07302b55eb23f89a37_rle_crop_3753338668_0.png', 1350957183: '1744953107_2115507_1350956316_3702c4af43fb4e07302b55eb23f89a37_rle_crop_3753338666_0.png', 1350957184: '1744953107_2115507_1350956005_84c8218de330865144c98f2e8adc976e_rle_crop_3753338720_0.png', 1350957185: '1744953107_2115507_1350956002_714e225f3b63be2f62dfa1018bc6e859_rle_crop_3753338761_0.png', 1350956748: '1744952951_3756600_1350956584_9770f996378f2e16dd794887bcd5f0d1_rle_crop_3753334373_0.png', 1350957187: '1744953107_2115507_1350955995_78a47994dc34c29fe044d3b102d9504c_rle_crop_3753338823_0.png', 1350957188: '1744953107_2115507_1350955993_00b8de6bbf15e092127919a8a3c9f74d_rle_crop_3753338857_0.png', 1350958174: '1744953313_3760034_1350957365_a8f79bde64c05607f64437a9c7b2764d_rle_crop_3753341659_0.png', 1350958175: '1744953313_3760034_1350957340_f0500b8a01521719a820e190fc690a34_rle_crop_3753341685_0.png', 1350958176: '1744953313_3760034_1350957340_f0500b8a01521719a820e190fc690a34_rle_crop_3753341689_0.png', 1350958177: '1744953313_3760034_1350957322_44ad990dd96c551257ffddacfff8d2ed_rle_crop_3753341725_0.png', 1350958178: '1744953313_3760034_1350957322_44ad990dd96c551257ffddacfff8d2ed_rle_crop_3753341731_0.png', 1350955989: '1744952623_2106363_1350955282_2d1e878d9d7ce220d9b9583213bcb6f1_rle_crop_3753328445_0.png', 1350956708: '1744952893_3755845_1350956543_8c64a6bc056bf57e4d9cef227b9f45df_rle_crop_3753333344_0.png', 1350956707: '1744952893_3755845_1350956558_9c314d51c4ef3f12806f67aa73b90b06_rle_crop_3753333329_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/a42cd1e20475bcd7595a72d28afedfb9_29612047.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/1d3b31b5bcec098278f2fbfe32c5b2ce_1821757.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f8fe38cb6c1eb2d4c11d1683b194b271_83840869.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b57f94b295a5f79b82faeb28790c42e7_35649187.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/af3f1ea9f930bf01c71d6d034ff0744e_19427133.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/3fd531fb2108dbfcc7fe33932dd5fa75_92449978.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/1aa5df5e4bedc2d08d6337d82e88c994_31440463.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/3ae175bcf5af8b8751f88e897c1a626a_65612889.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/20b5af5b1dfd0f4f0a9c0ed7222936d7_15279364.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/8da2b228efc41dd8a730eccf73ac5a7e_24441432.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/a9b519d427c0b80a535d6864b61d850a_92567820.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/3a38db4255a744e0c40b658521e364f0_85326217.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/42517dabd8c880e77148394676d8065f_33601154.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/895a7c3e0536f736913a084414988000_2823901.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/4e206e587d65007441a92167684b051a_84167612.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/5e8d0f551d4265bb7d1973488848154b_79737945.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/95a0b6a9dd861fb27ec8e9ef48bb68ae_76078532.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/23ce4471a5ccdc39ddb47f00e2a58e09_18110604.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/e00580882ec10940f5953f6c1fdf2524_76276743.png change filename to text .imagette221744611744953425/ imagette221744611744953425/1744952893_3755845_1350956543_8c64a6bc056bf57e4d9cef227b9f45df_rle_crop_3753333344_0.png.png imagette221744611744953425/1744953313_3760034_1350957340_f0500b8a01521719a820e190fc690a34_rle_crop_3753341689_0.png.png imagette221744611744953425/1744952951_3756600_1350956584_9770f996378f2e16dd794887bcd5f0d1_rle_crop_3753334373_0.png.png imagette221744611744953425/1744952951_3756600_1350956263_d36eb54ca2c8976024b633a9a8be8250_rle_crop_3753334396_0.png.png imagette221744611744953425/1744952951_3756600_1350956584_9770f996378f2e16dd794887bcd5f0d1_rle_crop_3753334376_0.png.png imagette221744611744953425/1744953313_3760034_1350957322_44ad990dd96c551257ffddacfff8d2ed_rle_crop_3753341725_0.png.png imagette221744611744953425/1744953313_3760034_1350957340_f0500b8a01521719a820e190fc690a34_rle_crop_3753341685_0.png.png imagette221744611744953425/1744952951_3756600_1350956584_9770f996378f2e16dd794887bcd5f0d1_rle_crop_3753334378_0.png.png imagette221744611744953425/1744953313_3760034_1350957365_a8f79bde64c05607f64437a9c7b2764d_rle_crop_3753341659_0.png.png imagette221744611744953425/1744953107_2115507_1350956316_3702c4af43fb4e07302b55eb23f89a37_rle_crop_3753338666_0.png.png imagette221744611744953425/1744953107_2115507_1350955993_00b8de6bbf15e092127919a8a3c9f74d_rle_crop_3753338857_0.png.png imagette221744611744953425/1744953107_2115507_1350956002_714e225f3b63be2f62dfa1018bc6e859_rle_crop_3753338761_0.png.png imagette221744611744953425/1744953107_2115507_1350955995_78a47994dc34c29fe044d3b102d9504c_rle_crop_3753338823_0.png.png imagette221744611744953425/1744953107_2115507_1350956316_3702c4af43fb4e07302b55eb23f89a37_rle_crop_3753338668_0.png.png imagette221744611744953425/1744953107_2115507_1350955999_5c6dd20caa6659af9898c4ffc7bba444_rle_crop_3753338789_0.png.png imagette221744611744953425/1744952893_3755845_1350956558_9c314d51c4ef3f12806f67aa73b90b06_rle_crop_3753333329_0.png.png imagette221744611744953425/1744953313_3760034_1350957322_44ad990dd96c551257ffddacfff8d2ed_rle_crop_3753341731_0.png.png imagette221744611744953425/1744953107_2115507_1350956005_84c8218de330865144c98f2e8adc976e_rle_crop_3753338720_0.png.png imagette221744611744953425/1744952951_3756600_1350956584_9770f996378f2e16dd794887bcd5f0d1_rle_crop_3753334381_0.png.png imagette221744611744953425/1744952623_2106363_1350955282_2d1e878d9d7ce220d9b9583213bcb6f1_rle_crop_3753328445_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/c4cccdfd4ed3d5557e28367ff2428183_82050738.png imagette221744611744953425 22174465 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=22174465 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350956564: '1744952743_2109388_1350955889_fb64ea8a05c841b8e2f0c4191a277875_rle_crop_3753330353_0.png', 1350956566: '1744952743_2109388_1350955885_20693a17f7ac4de4fba473a26ac24653_rle_crop_3753330368_0.png', 1350956568: '1744952743_2109388_1350955885_20693a17f7ac4de4fba473a26ac24653_rle_crop_3753330372_0.png', 1350956570: '1744952743_2109388_1350955875_48ee2982a09a9b43e3ee230608a42686_rle_crop_3753330395_0.png', 1350956718: '1744952893_3755845_1350956558_9c314d51c4ef3f12806f67aa73b90b06_rle_crop_3753333333_0.png', 1350956754: '1744952951_3756600_1350956584_9770f996378f2e16dd794887bcd5f0d1_rle_crop_3753334372_0.png', 1350956755: '1744952951_3756600_1350956263_d36eb54ca2c8976024b633a9a8be8250_rle_crop_3753334394_0.png', 1350957152: '1744953074_3757775_1350956723_cc6b761291a61249ae824308a79031c4_rle_crop_3753338006_0.png', 1350957195: '1744953107_2115507_1350956316_3702c4af43fb4e07302b55eb23f89a37_rle_crop_3753338667_0.png', 1350957196: '1744953107_2115507_1350956002_714e225f3b63be2f62dfa1018bc6e859_rle_crop_3753338750_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f5ac36f8b86a237b2ecf2056f379d389_41315994.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/32c67ed90b3195bfd4e388cb60a1e439_97916185.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/9e54d403bbcda74190a66eee9d0087b7_99046071.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/af41646e5329859595eada6d9cebf958_98341123.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/a71fa1744203d546b9b94a2c1f52177f_73505437.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/5f0c900f1fa1ff77211c3e1e01eaa591_5602993.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/0863dcd6a438211417c1a67fa9357538_27517354.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/81400faac4434d26853f66c890a88140_20236836.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/0d683824ebdb494ec91c1aed810b33b8_15666895.png change filename to text .imagette221744651744953426/ imagette221744651744953426/1744953107_2115507_1350956316_3702c4af43fb4e07302b55eb23f89a37_rle_crop_3753338667_0.png.png imagette221744651744953426/1744952743_2109388_1350955875_48ee2982a09a9b43e3ee230608a42686_rle_crop_3753330395_0.png.png imagette221744651744953426/1744953107_2115507_1350956002_714e225f3b63be2f62dfa1018bc6e859_rle_crop_3753338750_0.png.png imagette221744651744953426/1744952951_3756600_1350956263_d36eb54ca2c8976024b633a9a8be8250_rle_crop_3753334394_0.png.png imagette221744651744953426/1744952743_2109388_1350955889_fb64ea8a05c841b8e2f0c4191a277875_rle_crop_3753330353_0.png.png imagette221744651744953426/1744952951_3756600_1350956584_9770f996378f2e16dd794887bcd5f0d1_rle_crop_3753334372_0.png.png imagette221744651744953426/1744952893_3755845_1350956558_9c314d51c4ef3f12806f67aa73b90b06_rle_crop_3753333333_0.png.png imagette221744651744953426/1744952743_2109388_1350955885_20693a17f7ac4de4fba473a26ac24653_rle_crop_3753330372_0.png.png imagette221744651744953426/1744952743_2109388_1350955885_20693a17f7ac4de4fba473a26ac24653_rle_crop_3753330368_0.png.png imagette221744651744953426/1744953074_3757775_1350956723_cc6b761291a61249ae824308a79031c4_rle_crop_3753338006_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/146025c2d930db45b72c8c1511a716c9_37188477.png imagette221744651744953426 22174471 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=22174471 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350956577: '1744952743_2109388_1350955889_fb64ea8a05c841b8e2f0c4191a277875_rle_crop_3753330354_0.png', 1350956578: '1744952743_2109388_1350955875_48ee2982a09a9b43e3ee230608a42686_rle_crop_3753330402_0.png', 1350956757: '1744952951_3756600_1350956584_9770f996378f2e16dd794887bcd5f0d1_rle_crop_3753334377_0.png', 1350957200: '1744953107_2115507_1350956316_3702c4af43fb4e07302b55eb23f89a37_rle_crop_3753338665_0.png', 1350957201: '1744953107_2115507_1350956005_84c8218de330865144c98f2e8adc976e_rle_crop_3753338717_0.png', 1350957202: '1744953107_2115507_1350956002_714e225f3b63be2f62dfa1018bc6e859_rle_crop_3753338756_0.png', 1350957203: '1744953107_2115507_1350955995_78a47994dc34c29fe044d3b102d9504c_rle_crop_3753338820_0.png', 1350957204: '1744953107_2115507_1350955993_00b8de6bbf15e092127919a8a3c9f74d_rle_crop_3753338854_0.png', 1350957609: '1744953252_3759457_1350957172_225c52e46bfc58950d69ff48914dfdaa_rle_crop_3753341409_0.png', 1350958185: '1744953313_3760034_1350957365_a8f79bde64c05607f64437a9c7b2764d_rle_crop_3753341662_0.png', 1350958186: '1744953313_3760034_1350957365_a8f79bde64c05607f64437a9c7b2764d_rle_crop_3753341658_0.png', 1350958187: '1744953313_3760034_1350957340_f0500b8a01521719a820e190fc690a34_rle_crop_3753341692_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/1bf30269ebf28590e77a9d8563498166_45023878.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/d67fd3ca48898b4ae7f3d3c3ef1ae3f3_11970801.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/c9c947d1801ce13d0801900224265418_52786870.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/46341ccfb9abf331d0ac5962c7860924_14353154.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/dfc0346438cd50576f295a779181efac_86404172.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f0b7166add0d8b04b1e5986f01a33f4e_18251291.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/e1638383a834c55214329c79a73880ad_49725561.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/9fb8ef4b721389349ad008e299f768aa_1746977.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/37c95e0637acadefc170c5227b9ef310_25137419.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/44e5e0d6cc4589c885edc2a96921a4f6_63668407.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/561c8feb56ff9f71e7144dc342365f18_22189533.png change filename to text .imagette221744711744953427/ imagette221744711744953427/1744953252_3759457_1350957172_225c52e46bfc58950d69ff48914dfdaa_rle_crop_3753341409_0.png.png imagette221744711744953427/1744952743_2109388_1350955875_48ee2982a09a9b43e3ee230608a42686_rle_crop_3753330402_0.png.png imagette221744711744953427/1744953107_2115507_1350956005_84c8218de330865144c98f2e8adc976e_rle_crop_3753338717_0.png.png imagette221744711744953427/1744953107_2115507_1350955993_00b8de6bbf15e092127919a8a3c9f74d_rle_crop_3753338854_0.png.png imagette221744711744953427/1744953313_3760034_1350957365_a8f79bde64c05607f64437a9c7b2764d_rle_crop_3753341658_0.png.png imagette221744711744953427/1744953313_3760034_1350957340_f0500b8a01521719a820e190fc690a34_rle_crop_3753341692_0.png.png imagette221744711744953427/1744952951_3756600_1350956584_9770f996378f2e16dd794887bcd5f0d1_rle_crop_3753334377_0.png.png imagette221744711744953427/1744953313_3760034_1350957365_a8f79bde64c05607f64437a9c7b2764d_rle_crop_3753341662_0.png.png imagette221744711744953427/1744953107_2115507_1350956002_714e225f3b63be2f62dfa1018bc6e859_rle_crop_3753338756_0.png.png imagette221744711744953427/1744953107_2115507_1350955995_78a47994dc34c29fe044d3b102d9504c_rle_crop_3753338820_0.png.png imagette221744711744953427/1744952743_2109388_1350955889_fb64ea8a05c841b8e2f0c4191a277875_rle_crop_3753330354_0.png.png imagette221744711744953427/1744953107_2115507_1350956316_3702c4af43fb4e07302b55eb23f89a37_rle_crop_3753338665_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/9d4353999fdf3ce2621af5d007e3565f_26808289.png imagette221744711744953427 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22174430 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22174473,22174474,22174475,22174476,22174477,22174478,22174479,22174480,22174481,22174482,22174483,22174484?tags=Teint_Dans_La_Masse,cartonnette,flou,metal,Carton_gris,plastique,kraft,autre_refus,papier,mal_croppe,Carton_brun,environnement your option no_mail is active, we will not send the real mail to your client args[1350958285] : ('0.09001200735003627',) no score found for photo 1350958285 We are sending mail with results at report@fotonower.com args[1350958014] : ('0.09001200735003627',) no score found for photo 1350958014 We are sending mail with results at report@fotonower.com args[1350957979] : ('0.09001200735003627',) no score found for photo 1350957979 We are sending mail with results at report@fotonower.com args[1350957957] : ('0.09001200735003627',) no score found for photo 1350957957 We are sending mail with results at report@fotonower.com args[1350957952] : ('0.09001200735003627',) no score found for photo 1350957952 We are sending mail with results at report@fotonower.com args[1350957939] : ('0.09001200735003627',) no score found for photo 1350957939 We are sending mail with results at report@fotonower.com refus_total : 0.09001200735003627 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=22174430 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_P22174430_18-04-2025_07_17_03.pdf results_Auto_P22174430_18-04-2025_07_17_03.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22174430_18-04-2025_07_17_03.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','22174430','results_Auto_P22174430_18-04-2025_07_17_03.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22174430_18-04-2025_07_17_03.pdf','pdf','','0.28','0.09001200735003627') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22174430]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350958285, 1350958014, 1350957979, 1350957957, 1350957952, 1350957939] map_info['map_portfolio_photo'] : {22174430: [1350958285, 1350958014, 1350957979, 1350957957, 1350957952, 1350957939, 1350957391, 1350957365, 1350957340, 1350957322, 1350957268, 1350957266, 1350957263, 1350957255, 1350957247, 1350957175, 1350957174, 1350957172, 1350957141, 1350957134, 1350957126, 1350957120, 1350957116, 1350956823, 1350956808, 1350956803, 1350956795, 1350956789, 1350956786, 1350956726, 1350956724, 1350956723, 1350956668, 1350956665, 1350956662, 1350956659, 1350956584, 1350956582, 1350956576, 1350956558, 1350956543, 1350956316, 1350956288, 1350956263, 1350956007, 1350956005, 1350956002, 1350955999, 1350955995, 1350955993, 1350955899, 1350955892, 1350955889, 1350955885, 1350955875, 1350955282, 1350955230, 1350955194, 1350954467]} final : False mtd_id 4302 list_pids : [1350958285, 1350958014, 1350957979, 1350957957, 1350957952, 1350957939] 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, '2734525') ('4302', '22174430', '1350958285', None, None, None, None, None, '2734525') ('4302', None, None, None, None, None, None, None, '2734525') ('4302', '22174430', '1350958014', None, None, None, None, None, '2734525') ('4302', None, None, None, None, None, None, None, '2734525') ('4302', '22174430', '1350957979', None, None, None, None, None, '2734525') ('4302', None, None, None, None, None, None, None, '2734525') ('4302', '22174430', '1350957957', None, None, None, None, None, '2734525') ('4302', None, None, None, None, None, None, None, '2734525') ('4302', '22174430', '1350957952', None, None, None, None, None, '2734525') ('4302', None, None, None, None, None, None, None, '2734525') ('4302', '22174430', '1350957939', None, None, None, None, None, '2734525') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '22174430', '1350958285', None, None, None, None, None, '2734525'), ('4302', '22174430', '1350958014', None, None, None, None, None, '2734525'), ('4302', '22174430', '1350957979', None, None, None, None, None, '2734525'), ('4302', '22174430', '1350957957', None, None, None, None, None, '2734525'), ('4302', '22174430', '1350957952', None, None, None, None, None, '2734525'), ('4302', '22174430', '1350957939', None, None, None, None, None, '2734525')] time used for this insertion : 0.07297873497009277 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.926009178161621 time spend to save output : 0.07320880889892578 total time spend for step 4 : 6.999217987060547 step5:split_time_score Fri Apr 18 07:17:08 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22174430'] 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 : [('22174430',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22174430) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350958014: {'path': 'temp/1744953421_878459_1350958014_3741ceed32718891c8b16bde54337ef4.jpg', 'extension': 'jpg'}, 1350958285: {'path': 'temp/1744953421_878459_1350958285_1376f668219bb074d3b8db71a68a481b.jpg', 'extension': 'jpg'}, 1350957957: {'path': 'temp/1744953421_878459_1350957957_fe771b14feb4cb137f2d3b282dd5256a.jpg', 'extension': 'jpg'}, 1350957979: {'path': 'temp/1744953421_878459_1350957979_8ae4ff4bdaee460bd763cafae0ed65cf.jpg', 'extension': 'jpg'}, 1350957939: {'path': 'temp/1744953421_878459_1350957939_977e8a60dac53d8f6dd805f90ad80e73.jpg', 'extension': 'jpg'}, 1350957952: {'path': 'temp/1744953421_878459_1350957952_a0575dc996d5d395bfba42cdea7b8609.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 = 22174430; (('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 = 22174430 group by h (('07', 59),) 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=22174430 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 (22174430) 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 (22174430) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18042025 22174430 Nombre de photos uploadées : 59 / 23040 (0%) 18042025 22174430 Nombre de photos taguées (types de déchets): 0 / 59 (0%) 18042025 22174430 Nombre de photos taguées (volume) : 0 / 59 (0%) [{'photo_id': 1350954467, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/9d8bd71e8df29b91dbb9ebd1e2b3a3a1.jpg', 'username': None, 'uploaded_at': 1744952467, 'text': 'image_18042025_07_00_04_010138m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350955282, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/2d1e878d9d7ce220d9b9583213bcb6f1.jpg', 'username': None, 'uploaded_at': 1744952527, 'text': 'image_18042025_07_00_34_010135m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1350955230, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/e1df2057661914249e19eb3fd37e29c1.jpg', 'username': None, 'uploaded_at': 1744952527, 'text': 'image_18042025_07_01_24_10134.jpg'}, {'photo_id': 1350955194, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/59fdfe243419dbb9079b71d03f004cfd.jpg', 'username': None, 'uploaded_at': 1744952527, 'text': 'image_18042025_07_01_34_10149.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 3.5762786865234375e-06 ??????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002246379852294922 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22174430, '2025-04-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1725253,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.027072429656982422 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= 1725253 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1725253, 'dashboard_run_id': 1733532, 'mtr_portfolio_id': 22173579, 'dashboard_result_id': 9967781, '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_P22173579_18-04-2025_06_49_27.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22173605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173615, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173616, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1733532, 'mtr_portfolio_id': 22173940, 'dashboard_result_id': 9967782, '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_P22173940_18-04-2025_07_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173952, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1733532, 'mtr_portfolio_id': 22174430, 'dashboard_result_id': 9967783, '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_P22174430_18-04-2025_07_14_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22174461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22174462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22174463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22174464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22174465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22174466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22174467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22174468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22174469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22174470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22174471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22174472, '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 = 22173579 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': 2734401, 'mtr_portfolio_id': 22173579, 'created_at': datetime.datetime(2025, 4, 18, 6, 49, 27), 'result': '0.051226485004484054', 'result_long': None, 'result_double': None}] Qualite : 0.051226485004484054 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22173579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173579_18-04-2025_06_49_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22173579 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_P22173579_18-04-2025_06_49_27.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22173605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173615, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173616, 'pht': 3726}}" where mtr_portfolio_id = 22173579 and dashboard_run_id = 1733532 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`=22173579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9967781, 0.051226485004484054, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173579_18-04-2025_06_49_27.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22173605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173615, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173616, '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 = 22173940 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': 2734429, 'mtr_portfolio_id': 22173940, 'created_at': datetime.datetime(2025, 4, 18, 7, 2, 57), 'result': '0.04302277740257137', 'result_long': None, 'result_double': None}] Qualite : 0.04302277740257137 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22173940 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173940_18-04-2025_07_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22173940 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_P22173940_18-04-2025_07_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173952, 'pht': 3726}}" where mtr_portfolio_id = 22173940 and dashboard_run_id = 1733532 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`=22173940 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9967782, 0.04302277740257137, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173940_18-04-2025_07_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173952, '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 = 22174430 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': 2734525, 'mtr_portfolio_id': 22174430, 'created_at': datetime.datetime(2025, 4, 18, 7, 17, 1), 'result': '0.09001200735003627', 'result_long': None, 'result_double': None}] Qualite : 0.09001200735003627 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22174430 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22174430_18-04-2025_07_17_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22174430 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_P22174430_18-04-2025_07_17_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22174461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22174462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22174463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22174464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22174465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22174466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22174467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22174468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22174469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22174470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22174471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22174472, 'pht': 3726}}" where mtr_portfolio_id = 22174430 and dashboard_run_id = 1733532 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`=22174430 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9967783, 0.09001200735003627, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22174430_18-04-2025_07_17_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22174461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22174462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22174463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22174464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22174465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22174466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22174467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22174468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22174469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22174470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22174471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22174472, '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 (22173579,22173940,22174430) result : ((1350951948,), (1350951951,), (1350951952,), (1350951955,), (1350951988,), (1350951990,), (1350951992,), (1350952000,), (1350952004,), (1350952008,), (1350952039,), (1350952040,), (1350952041,), (1350952063,), (1350952065,), (1350952066,), (1350952067,), (1350952069,), (1350952071,), (1350952100,), (1350952102,), (1350952103,), (1350952104,), (1350952105,), (1350952139,), (1350952141,), (1350952167,), (1350952170,), (1350952173,), (1350952176,), (1350952180,), (1350952215,), (1350952216,), (1350952217,), (1350952218,), (1350952249,), (1350952250,), (1350952253,), (1350952254,), (1350952256,), (1350952258,), (1350952275,), (1350952277,), (1350952284,), (1350952285,), (1350952321,), (1350952323,), (1350952324,), (1350952325,), (1350952326,), (1350952328,), (1350952350,), (1350952353,), (1350952521,), (1350952468,), (1350952513,), (1350952515,), (1350952518,), (1350952519,), (1350952541,), (1350952543,), (1350952544,), (1350952567,), (1350952569,), (1350952570,), (1350952596,), (1350952601,), (1350952602,), (1350952605,), (1350952607,), (1350952628,), (1350952630,), (1350952631,), (1350952660,), (1350952663,), (1350952664,), (1350952665,), (1350952690,), (1350952693,), (1350952694,), (1350952695,), (1350952736,), (1350952741,), (1350952773,), (1350952812,), (1350952813,), (1350952870,), (1350952872,), (1350952873,), (1350952874,), (1350952876,), (1350953573,), (1350953627,), (1350953667,), (1350953697,), (1350953858,), (1350953906,), (1350953954,), (1350954009,), (1350954567,), (1350954467,), (1350955194,), (1350955230,), (1350955282,), (1350955875,), (1350955885,), (1350955889,), (1350955892,), (1350955899,), (1350955993,), (1350955995,), (1350955999,), (1350956002,), (1350956005,), (1350956007,), (1350956263,), (1350956288,), (1350956316,), (1350956543,), (1350956558,), (1350956576,), (1350956582,), (1350956584,), (1350956659,), (1350956662,), (1350956665,), (1350956668,), (1350956723,), (1350956724,), (1350956726,), (1350956786,), (1350956789,), (1350956795,), (1350956803,), (1350956808,), (1350956823,), (1350957116,), (1350957120,), (1350957126,), (1350957134,), (1350957141,), (1350957172,), (1350957174,), (1350957175,), (1350957247,), (1350957255,), (1350957263,), (1350957266,), (1350957268,), (1350957322,), (1350957340,), (1350957365,), (1350957391,), (1350957939,), (1350957952,), (1350957957,), (1350957979,), (1350958014,), (1350958285,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18042025': {'nb_upload': 59, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22174430]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350958285, 1350958014, 1350957979, 1350957957, 1350957952, 1350957939] map_info['map_portfolio_photo'] : {22174430: [1350958285, 1350958014, 1350957979, 1350957957, 1350957952, 1350957939, 1350957391, 1350957365, 1350957340, 1350957322, 1350957268, 1350957266, 1350957263, 1350957255, 1350957247, 1350957175, 1350957174, 1350957172, 1350957141, 1350957134, 1350957126, 1350957120, 1350957116, 1350956823, 1350956808, 1350956803, 1350956795, 1350956789, 1350956786, 1350956726, 1350956724, 1350956723, 1350956668, 1350956665, 1350956662, 1350956659, 1350956584, 1350956582, 1350956576, 1350956558, 1350956543, 1350956316, 1350956288, 1350956263, 1350956007, 1350956005, 1350956002, 1350955999, 1350955995, 1350955993, 1350955899, 1350955892, 1350955889, 1350955885, 1350955875, 1350955282, 1350955230, 1350955194, 1350954467]} final : True mtd_id 4302 list_pids : [1350958285, 1350958014, 1350957979, 1350957957, 1350957952, 1350957939] Looping around the photos to save general results len do output : 1 /22174430Didn'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, '2734525') ('4302', '22174430', '1350958285', None, None, None, None, None, '2734525') ('4302', None, None, None, None, None, None, None, '2734525') ('4302', '22174430', '1350958014', None, None, None, None, None, '2734525') ('4302', None, None, None, None, None, None, None, '2734525') ('4302', '22174430', '1350957979', None, None, None, None, None, '2734525') ('4302', None, None, None, None, None, None, None, '2734525') ('4302', '22174430', '1350957957', None, None, None, None, None, '2734525') ('4302', None, None, None, None, None, None, None, '2734525') ('4302', '22174430', '1350957952', None, None, None, None, None, '2734525') ('4302', None, None, None, None, None, None, None, '2734525') ('4302', '22174430', '1350957939', None, None, None, None, None, '2734525') 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', None, '22174430', 'None', None, None, None, None, '2734525'), ('4302', '22174430', '1350958285', None, None, None, None, None, '2734525'), ('4302', '22174430', '1350958014', None, None, None, None, None, '2734525'), ('4302', '22174430', '1350957979', None, None, None, None, None, '2734525'), ('4302', '22174430', '1350957957', None, None, None, None, None, '2734525'), ('4302', '22174430', '1350957952', None, None, None, None, None, '2734525'), ('4302', '22174430', '1350957939', None, None, None, None, None, '2734525')] time used for this insertion : 0.15084338188171387 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.30068540573120117 time spend to save output : 0.1510937213897705 total time spend for step 5 : 0.4517791271209717 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 (2734525) 2.03user 2.71system 0:13.33elapsed 35%CPU (0avgtext+0avgdata 158680maxresident)k 72inputs+13784outputs (20major+63796minor)pagefaults 0swaps