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 : 69301 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 (2721140) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2721140) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22027723 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2721140'] with mtr_portfolio_ids : ['22027723'] and first list_photo_ids : [] new path : /proc/69301/ Name: python3 Umask: 0002 State: R (running) Tgid: 69301 Ngid: 0 Pid: 69301 PPid: 69300 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 69301 NSpid: 69301 NSpgid: 67082 NSsid: 67082 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99400 kB VmRSS: 99400 kB RssAnon: 59796 kB RssFile: 39604 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/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: 49 nonvoluntary_ctxt_switches: 104 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '69301', 'Ngid': '0', 'Pid': '69301', 'PPid': '69300', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '69301', 'NSpid': '69301', 'NSpgid': '67082', 'NSsid': '67082', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99400 kB', 'VmRSS': '99400 kB', 'RssAnon': '59796 kB', 'RssFile': '39604 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/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': '49', 'nonvoluntary_ctxt_switches': '104'} ('datou_batch_current', '69301', '1106928', '0', '1106928', '865676', '99400', b'', 'marlene', '2721140') 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 (22027723) 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 (2721140 ) ) 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 (22027723) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349836129, 'portfolio_id': 22027723}, {'photo_id': 1349836098, 'portfolio_id': 22027723}, {'photo_id': 1349836093, 'portfolio_id': 22027723}, {'photo_id': 1349836085, 'portfolio_id': 22027723}, {'photo_id': 1349835873, 'portfolio_id': 22027723}, {'photo_id': 1349835825, 'portfolio_id': 22027723}, {'photo_id': 1349835796, 'portfolio_id': 22027723}, {'photo_id': 1349835613, 'portfolio_id': 22027723}, {'photo_id': 1349835609, 'portfolio_id': 22027723}, {'photo_id': 1349835608, 'portfolio_id': 22027723}, {'photo_id': 1349835598, 'portfolio_id': 22027723}, {'photo_id': 1349835596, 'portfolio_id': 22027723}, {'photo_id': 1349835593, 'portfolio_id': 22027723}, {'photo_id': 1349835591, 'portfolio_id': 22027723}, {'photo_id': 1349835589, 'portfolio_id': 22027723}, {'photo_id': 1349835588, 'portfolio_id': 22027723}, {'photo_id': 1349835585, 'portfolio_id': 22027723}, {'photo_id': 1349835584, 'portfolio_id': 22027723}, {'photo_id': 1349835582, 'portfolio_id': 22027723}, {'photo_id': 1349835495, 'portfolio_id': 22027723}, {'photo_id': 1349835490, 'portfolio_id': 22027723}, {'photo_id': 1349835486, 'portfolio_id': 22027723}, {'photo_id': 1349835482, 'portfolio_id': 22027723}, {'photo_id': 1349835478, 'portfolio_id': 22027723}, {'photo_id': 1349835451, 'portfolio_id': 22027723}, {'photo_id': 1349835444, 'portfolio_id': 22027723}, {'photo_id': 1349835441, 'portfolio_id': 22027723}, {'photo_id': 1349835427, 'portfolio_id': 22027723}, {'photo_id': 1349835411, 'portfolio_id': 22027723}, {'photo_id': 1349835406, 'portfolio_id': 22027723}, {'photo_id': 1349835398, 'portfolio_id': 22027723}, {'photo_id': 1349835384, 'portfolio_id': 22027723}, {'photo_id': 1349835358, 'portfolio_id': 22027723}, {'photo_id': 1349835052, 'portfolio_id': 22027723}, {'photo_id': 1349835048, 'portfolio_id': 22027723}, {'photo_id': 1349835041, 'portfolio_id': 22027723}, {'photo_id': 1349835036, 'portfolio_id': 22027723}, {'photo_id': 1349835007, 'portfolio_id': 22027723}, {'photo_id': 1349834999, 'portfolio_id': 22027723}, {'photo_id': 1349834952, 'portfolio_id': 22027723}, {'photo_id': 1349834946, 'portfolio_id': 22027723}, {'photo_id': 1349834944, 'portfolio_id': 22027723}, {'photo_id': 1349834940, 'portfolio_id': 22027723}, {'photo_id': 1349834938, 'portfolio_id': 22027723}, {'photo_id': 1349834933, 'portfolio_id': 22027723}, {'photo_id': 1349834931, 'portfolio_id': 22027723}, {'photo_id': 1349834926, 'portfolio_id': 22027723}, {'photo_id': 1349834911, 'portfolio_id': 22027723}, {'photo_id': 1349834905, 'portfolio_id': 22027723}, {'photo_id': 1349834899, 'portfolio_id': 22027723}, {'photo_id': 1349834884, 'portfolio_id': 22027723}, {'photo_id': 1349834869, 'portfolio_id': 22027723}, {'photo_id': 1349834526, 'portfolio_id': 22027723}, {'photo_id': 1349834495, 'portfolio_id': 22027723}, {'photo_id': 1349834476, 'portfolio_id': 22027723}, {'photo_id': 1349834462, 'portfolio_id': 22027723}, {'photo_id': 1349834132, 'portfolio_id': 22027723}, {'photo_id': 1349834090, 'portfolio_id': 22027723}] map_portfolio_id_photo_id: {22027723: [1349836129, 1349836098, 1349836093, 1349836085, 1349835873, 1349835825, 1349835796, 1349835613, 1349835609, 1349835608, 1349835598, 1349835596, 1349835593, 1349835591, 1349835589, 1349835588, 1349835585, 1349835584, 1349835582, 1349835495, 1349835490, 1349835486, 1349835482, 1349835478, 1349835451, 1349835444, 1349835441, 1349835427, 1349835411, 1349835406, 1349835398, 1349835384, 1349835358, 1349835052, 1349835048, 1349835041, 1349835036, 1349835007, 1349834999, 1349834952, 1349834946, 1349834944, 1349834940, 1349834938, 1349834933, 1349834931, 1349834926, 1349834911, 1349834905, 1349834899, 1349834884, 1349834869, 1349834526, 1349834495, 1349834476, 1349834462, 1349834132, 1349834090]} ##### 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.057924747467041016 #### 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 Thu Apr 3 18:32:57 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 (22027723) 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 : 22027723 get user id for portfolio 22027723 get sub ptf for main ptf 22027723, type 3726 and hashtags ['Carton_gris', 'autre_refus', 'mal_croppe', 'plastique', 'flou', 'cartonnette', 'environnement', 'Carton_brun', 'metal', 'papier', 'Teint_Dans_La_Masse', 'kraft'] 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`=22027723 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','mal_croppe','plastique','flou','cartonnette','environnement','Carton_brun','metal','papier','Teint_Dans_La_Masse','kraft')) 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`=22027723 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','mal_croppe','plastique','flou','cartonnette','environnement','Carton_brun','metal','papier','Teint_Dans_La_Masse','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22027723, 'sub_port_id': 22027726, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520950, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 20, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22027723, 'sub_port_id': 22027727, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520951, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 20, 59)}, 'environnement': {'main_port_id': 22027723, 'sub_port_id': 22027728, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520952, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 20, 59)}, 'mal_croppe': {'main_port_id': 22027723, 'sub_port_id': 22027729, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520953, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 20, 59)}, 'cartonnette': {'main_port_id': 22027723, 'sub_port_id': 22027730, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520954, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 20, 59)}, 'papier': {'main_port_id': 22027723, 'sub_port_id': 22027731, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520955, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 20, 59)}, 'autre_refus': {'main_port_id': 22027723, 'sub_port_id': 22027732, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520956, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 20, 59)}, 'plastique': {'main_port_id': 22027723, 'sub_port_id': 22027733, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520957, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 20, 59)}, 'Carton_brun': {'main_port_id': 22027723, 'sub_port_id': 22027734, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520958, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 20, 59)}, 'Carton_gris': {'main_port_id': 22027723, 'sub_port_id': 22027735, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520959, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 20, 59)}, 'metal': {'main_port_id': 22027723, 'sub_port_id': 22027736, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520960, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 20, 59)}, 'flou': {'main_port_id': 22027723, 'sub_port_id': 22027737, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520961, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 29, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 20, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22027726 , 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=22027723 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 (22027726) result : ((1349835559,), (1349835570,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22027723) result : ((1349834090,), (1349834132,), (1349834462,), (1349834476,), (1349834495,), (1349834526,), (1349834869,), (1349834884,), (1349834899,), (1349834905,), (1349834911,), (1349834926,), (1349834931,), (1349834933,), (1349834938,), (1349834940,), (1349834944,), (1349834946,), (1349834952,), (1349834999,), (1349835007,), (1349835036,), (1349835041,), (1349835048,), (1349835052,), (1349835358,), (1349835384,), (1349835398,), (1349835406,), (1349835411,), (1349835427,), (1349835441,), (1349835444,), (1349835451,), (1349835478,), (1349835482,), (1349835486,), (1349835490,), (1349835495,), (1349835582,), (1349835584,), (1349835585,), (1349835588,), (1349835589,), (1349835591,), (1349835593,), (1349835596,), (1349835598,), (1349835608,), (1349835609,), (1349835613,), (1349835796,), (1349835825,), (1349835873,), (1349836085,), (1349836093,), (1349836098,), (1349836129,)) 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 22027727 , 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=22027723 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 (22027727) result : ((1349835026,), (1349835027,), (1349835413,), (1349835414,), (1349835415,), (1349835416,), (1349835417,), (1349835418,), (1349835526,), (1349835527,), (1349835543,), (1349835757,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22027723) result : ((1349834090,), (1349834132,), (1349834462,), (1349834476,), (1349834495,), (1349834526,), (1349834869,), (1349834884,), (1349834899,), (1349834905,), (1349834911,), (1349834926,), (1349834931,), (1349834933,), (1349834938,), (1349834940,), (1349834944,), (1349834946,), (1349834952,), (1349834999,), (1349835007,), (1349835036,), (1349835041,), (1349835048,), (1349835052,), (1349835358,), (1349835384,), (1349835398,), (1349835406,), (1349835411,), (1349835427,), (1349835441,), (1349835444,), (1349835451,), (1349835478,), (1349835482,), (1349835486,), (1349835490,), (1349835495,), (1349835582,), (1349835584,), (1349835585,), (1349835588,), (1349835589,), (1349835591,), (1349835593,), (1349835596,), (1349835598,), (1349835608,), (1349835609,), (1349835613,), (1349835796,), (1349835825,), (1349835873,), (1349836085,), (1349836093,), (1349836098,), (1349836129,)) 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 22027728 , 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=22027723 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 (22027728) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22027723) result : ((1349834090,), (1349834132,), (1349834462,), (1349834476,), (1349834495,), (1349834526,), (1349834869,), (1349834884,), (1349834899,), (1349834905,), (1349834911,), (1349834926,), (1349834931,), (1349834933,), (1349834938,), (1349834940,), (1349834944,), (1349834946,), (1349834952,), (1349834999,), (1349835007,), (1349835036,), (1349835041,), (1349835048,), (1349835052,), (1349835358,), (1349835384,), (1349835398,), (1349835406,), (1349835411,), (1349835427,), (1349835441,), (1349835444,), (1349835451,), (1349835478,), (1349835482,), (1349835486,), (1349835490,), (1349835495,), (1349835582,), (1349835584,), (1349835585,), (1349835588,), (1349835589,), (1349835591,), (1349835593,), (1349835596,), (1349835598,), (1349835608,), (1349835609,), (1349835613,), (1349835796,), (1349835825,), (1349835873,), (1349836085,), (1349836093,), (1349836098,), (1349836129,)) 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 22027729 , 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=22027723 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 (22027729) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22027723) result : ((1349834090,), (1349834132,), (1349834462,), (1349834476,), (1349834495,), (1349834526,), (1349834869,), (1349834884,), (1349834899,), (1349834905,), (1349834911,), (1349834926,), (1349834931,), (1349834933,), (1349834938,), (1349834940,), (1349834944,), (1349834946,), (1349834952,), (1349834999,), (1349835007,), (1349835036,), (1349835041,), (1349835048,), (1349835052,), (1349835358,), (1349835384,), (1349835398,), (1349835406,), (1349835411,), (1349835427,), (1349835441,), (1349835444,), (1349835451,), (1349835478,), (1349835482,), (1349835486,), (1349835490,), (1349835495,), (1349835582,), (1349835584,), (1349835585,), (1349835588,), (1349835589,), (1349835591,), (1349835593,), (1349835596,), (1349835598,), (1349835608,), (1349835609,), (1349835613,), (1349835796,), (1349835825,), (1349835873,), (1349836085,), (1349836093,), (1349836098,), (1349836129,)) 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 22027730 , 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=22027723 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 (22027730) result : ((1349835420,), (1349835421,), (1349835422,), (1349835534,), (1349835535,), (1349835553,), (1349835554,), (1349835555,), (1349835556,), (1349835558,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22027723) result : ((1349834090,), (1349834132,), (1349834462,), (1349834476,), (1349834495,), (1349834526,), (1349834869,), (1349834884,), (1349834899,), (1349834905,), (1349834911,), (1349834926,), (1349834931,), (1349834933,), (1349834938,), (1349834940,), (1349834944,), (1349834946,), (1349834952,), (1349834999,), (1349835007,), (1349835036,), (1349835041,), (1349835048,), (1349835052,), (1349835358,), (1349835384,), (1349835398,), (1349835406,), (1349835411,), (1349835427,), (1349835441,), (1349835444,), (1349835451,), (1349835478,), (1349835482,), (1349835486,), (1349835490,), (1349835495,), (1349835582,), (1349835584,), (1349835585,), (1349835588,), (1349835589,), (1349835591,), (1349835593,), (1349835596,), (1349835598,), (1349835608,), (1349835609,), (1349835613,), (1349835796,), (1349835825,), (1349835873,), (1349836085,), (1349836093,), (1349836098,), (1349836129,)) 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 22027731 , 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=22027723 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 (22027731) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22027723) result : ((1349834090,), (1349834132,), (1349834462,), (1349834476,), (1349834495,), (1349834526,), (1349834869,), (1349834884,), (1349834899,), (1349834905,), (1349834911,), (1349834926,), (1349834931,), (1349834933,), (1349834938,), (1349834940,), (1349834944,), (1349834946,), (1349834952,), (1349834999,), (1349835007,), (1349835036,), (1349835041,), (1349835048,), (1349835052,), (1349835358,), (1349835384,), (1349835398,), (1349835406,), (1349835411,), (1349835427,), (1349835441,), (1349835444,), (1349835451,), (1349835478,), (1349835482,), (1349835486,), (1349835490,), (1349835495,), (1349835582,), (1349835584,), (1349835585,), (1349835588,), (1349835589,), (1349835591,), (1349835593,), (1349835596,), (1349835598,), (1349835608,), (1349835609,), (1349835613,), (1349835796,), (1349835825,), (1349835873,), (1349836085,), (1349836093,), (1349836098,), (1349836129,)) 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 22027732 , 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=22027723 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 (22027732) result : ((1349835529,), (1349835759,), (1349835760,), (1349836024,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22027723) result : ((1349834090,), (1349834132,), (1349834462,), (1349834476,), (1349834495,), (1349834526,), (1349834869,), (1349834884,), (1349834899,), (1349834905,), (1349834911,), (1349834926,), (1349834931,), (1349834933,), (1349834938,), (1349834940,), (1349834944,), (1349834946,), (1349834952,), (1349834999,), (1349835007,), (1349835036,), (1349835041,), (1349835048,), (1349835052,), (1349835358,), (1349835384,), (1349835398,), (1349835406,), (1349835411,), (1349835427,), (1349835441,), (1349835444,), (1349835451,), (1349835478,), (1349835482,), (1349835486,), (1349835490,), (1349835495,), (1349835582,), (1349835584,), (1349835585,), (1349835588,), (1349835589,), (1349835591,), (1349835593,), (1349835596,), (1349835598,), (1349835608,), (1349835609,), (1349835613,), (1349835796,), (1349835825,), (1349835873,), (1349836085,), (1349836093,), (1349836098,), (1349836129,)) 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 22027733 , 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=22027723 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 (22027733) result : ((1349835029,), (1349835429,), (1349835430,), (1349835431,), (1349835566,), (1349835567,), (1349835568,), (1349835767,), (1349835768,), (1349835959,), (1349835960,), (1349835961,), (1349835962,), (1349835963,), (1349835964,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22027723) result : ((1349834090,), (1349834132,), (1349834462,), (1349834476,), (1349834495,), (1349834526,), (1349834869,), (1349834884,), (1349834899,), (1349834905,), (1349834911,), (1349834926,), (1349834931,), (1349834933,), (1349834938,), (1349834940,), (1349834944,), (1349834946,), (1349834952,), (1349834999,), (1349835007,), (1349835036,), (1349835041,), (1349835048,), (1349835052,), (1349835358,), (1349835384,), (1349835398,), (1349835406,), (1349835411,), (1349835427,), (1349835441,), (1349835444,), (1349835451,), (1349835478,), (1349835482,), (1349835486,), (1349835490,), (1349835495,), (1349835582,), (1349835584,), (1349835585,), (1349835588,), (1349835589,), (1349835591,), (1349835593,), (1349835596,), (1349835598,), (1349835608,), (1349835609,), (1349835613,), (1349835796,), (1349835825,), (1349835873,), (1349836085,), (1349836093,), (1349836098,), (1349836129,)) 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 22027734 , 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=22027723 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 (22027734) result : ((1349835002,), (1349835006,), (1349835425,), (1349835426,), (1349835537,), (1349835538,), (1349835539,), (1349835562,), (1349835563,), (1349835711,), (1349835765,), (1349835766,), (1349835952,), (1349835953,), (1349835954,), (1349835955,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22027723) result : ((1349834090,), (1349834132,), (1349834462,), (1349834476,), (1349834495,), (1349834526,), (1349834869,), (1349834884,), (1349834899,), (1349834905,), (1349834911,), (1349834926,), (1349834931,), (1349834933,), (1349834938,), (1349834940,), (1349834944,), (1349834946,), (1349834952,), (1349834999,), (1349835007,), (1349835036,), (1349835041,), (1349835048,), (1349835052,), (1349835358,), (1349835384,), (1349835398,), (1349835406,), (1349835411,), (1349835427,), (1349835441,), (1349835444,), (1349835451,), (1349835478,), (1349835482,), (1349835486,), (1349835490,), (1349835495,), (1349835582,), (1349835584,), (1349835585,), (1349835588,), (1349835589,), (1349835591,), (1349835593,), (1349835596,), (1349835598,), (1349835608,), (1349835609,), (1349835613,), (1349835796,), (1349835825,), (1349835873,), (1349836085,), (1349836093,), (1349836098,), (1349836129,)) 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 22027735 , 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=22027723 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 (22027735) result : ((1349834982,), (1349834983,), (1349835531,), (1349835545,), (1349835547,), (1349835548,), (1349835549,), (1349835707,), (1349835762,), (1349835949,), (1349835950,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22027723) result : ((1349834090,), (1349834132,), (1349834462,), (1349834476,), (1349834495,), (1349834526,), (1349834869,), (1349834884,), (1349834899,), (1349834905,), (1349834911,), (1349834926,), (1349834931,), (1349834933,), (1349834938,), (1349834940,), (1349834944,), (1349834946,), (1349834952,), (1349834999,), (1349835007,), (1349835036,), (1349835041,), (1349835048,), (1349835052,), (1349835358,), (1349835384,), (1349835398,), (1349835406,), (1349835411,), (1349835427,), (1349835441,), (1349835444,), (1349835451,), (1349835478,), (1349835482,), (1349835486,), (1349835490,), (1349835495,), (1349835582,), (1349835584,), (1349835585,), (1349835588,), (1349835589,), (1349835591,), (1349835593,), (1349835596,), (1349835598,), (1349835608,), (1349835609,), (1349835613,), (1349835796,), (1349835825,), (1349835873,), (1349836085,), (1349836093,), (1349836098,), (1349836129,)) 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 22027736 , 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=22027723 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 (22027736) result : ((1349835560,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22027723) result : ((1349834090,), (1349834132,), (1349834462,), (1349834476,), (1349834495,), (1349834526,), (1349834869,), (1349834884,), (1349834899,), (1349834905,), (1349834911,), (1349834926,), (1349834931,), (1349834933,), (1349834938,), (1349834940,), (1349834944,), (1349834946,), (1349834952,), (1349834999,), (1349835007,), (1349835036,), (1349835041,), (1349835048,), (1349835052,), (1349835358,), (1349835384,), (1349835398,), (1349835406,), (1349835411,), (1349835427,), (1349835441,), (1349835444,), (1349835451,), (1349835478,), (1349835482,), (1349835486,), (1349835490,), (1349835495,), (1349835582,), (1349835584,), (1349835585,), (1349835588,), (1349835589,), (1349835591,), (1349835593,), (1349835596,), (1349835598,), (1349835608,), (1349835609,), (1349835613,), (1349835796,), (1349835825,), (1349835873,), (1349836085,), (1349836093,), (1349836098,), (1349836129,)) 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 22027737 , 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=22027723 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 (22027737) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22027723) result : ((1349834090,), (1349834132,), (1349834462,), (1349834476,), (1349834495,), (1349834526,), (1349834869,), (1349834884,), (1349834899,), (1349834905,), (1349834911,), (1349834926,), (1349834931,), (1349834933,), (1349834938,), (1349834940,), (1349834944,), (1349834946,), (1349834952,), (1349834999,), (1349835007,), (1349835036,), (1349835041,), (1349835048,), (1349835052,), (1349835358,), (1349835384,), (1349835398,), (1349835406,), (1349835411,), (1349835427,), (1349835441,), (1349835444,), (1349835451,), (1349835478,), (1349835482,), (1349835486,), (1349835490,), (1349835495,), (1349835582,), (1349835584,), (1349835585,), (1349835588,), (1349835589,), (1349835591,), (1349835593,), (1349835596,), (1349835598,), (1349835608,), (1349835609,), (1349835613,), (1349835796,), (1349835825,), (1349835873,), (1349836085,), (1349836093,), (1349836098,), (1349836129,)) 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`=22027723 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','mal_croppe','plastique','flou','cartonnette','environnement','Carton_brun','metal','papier','Teint_Dans_La_Masse','kraft')) 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`=22027723 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','mal_croppe','plastique','flou','cartonnette','environnement','Carton_brun','metal','papier','Teint_Dans_La_Masse','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22027723, 'sub_port_id': 22027738, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520962, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 21, 3)}, 'Teint_Dans_La_Masse': {'main_port_id': 22027723, 'sub_port_id': 22027739, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520963, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 21, 3)}, 'environnement': {'main_port_id': 22027723, 'sub_port_id': 22027740, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520964, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 21, 3)}, 'mal_croppe': {'main_port_id': 22027723, 'sub_port_id': 22027741, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520965, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 21, 3)}, 'cartonnette': {'main_port_id': 22027723, 'sub_port_id': 22027742, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520966, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 21, 3)}, 'papier': {'main_port_id': 22027723, 'sub_port_id': 22027743, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520967, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 21, 3)}, 'autre_refus': {'main_port_id': 22027723, 'sub_port_id': 22027744, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520968, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 21, 3)}, 'plastique': {'main_port_id': 22027723, 'sub_port_id': 22027745, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520969, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 21, 3)}, 'Carton_brun': {'main_port_id': 22027723, 'sub_port_id': 22027746, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520970, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 21, 3)}, 'Carton_gris': {'main_port_id': 22027723, 'sub_port_id': 22027747, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520971, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 21, 3)}, 'metal': {'main_port_id': 22027723, 'sub_port_id': 22027748, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520972, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 21, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 21, 3)}, 'flou': {'main_port_id': 22027723, 'sub_port_id': 22027749, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14520973, 'last_updated_at': datetime.datetime(2025, 4, 3, 18, 29, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 18, 29, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 18, 21, 3)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22027738,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22027726 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22027739,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22027727 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22027740,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22027728 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22027741,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22027729 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22027742,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22027730 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22027743,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22027731 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22027744,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22027732 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22027745,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22027733 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22027746,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22027734 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22027747,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22027735 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22027748,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22027736 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22027749,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22027737 lien utilise dans velours : https://www.fotonower.com/velours/22027738,22027739,22027740,22027741,22027742,22027743,22027744,22027745,22027746,22027747,22027748,22027749?tags=kraft,Teint_Dans_La_Masse,environnement,mal_croppe,cartonnette,papier,autre_refus,plastique,Carton_brun,Carton_gris,metal,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22027723]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349836129, 1349836098, 1349836093, 1349836085] map_info['map_portfolio_photo'] : {22027723: [1349836129, 1349836098, 1349836093, 1349836085, 1349835873, 1349835825, 1349835796, 1349835613, 1349835609, 1349835608, 1349835598, 1349835596, 1349835593, 1349835591, 1349835589, 1349835588, 1349835585, 1349835584, 1349835582, 1349835495, 1349835490, 1349835486, 1349835482, 1349835478, 1349835451, 1349835444, 1349835441, 1349835427, 1349835411, 1349835406, 1349835398, 1349835384, 1349835358, 1349835052, 1349835048, 1349835041, 1349835036, 1349835007, 1349834999, 1349834952, 1349834946, 1349834944, 1349834940, 1349834938, 1349834933, 1349834931, 1349834926, 1349834911, 1349834905, 1349834899, 1349834884, 1349834869, 1349834526, 1349834495, 1349834476, 1349834462, 1349834132, 1349834090]} final : False mtd_id 4302 list_pids : [1349836129, 1349836098, 1349836093, 1349836085] Looping around the photos to save general results len do output : 1 /22027723. 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, '2721140') ('4302', '22027723', '1349836129', None, None, None, None, None, '2721140') ('4302', None, None, None, None, None, None, None, '2721140') ('4302', '22027723', '1349836098', None, None, None, None, None, '2721140') ('4302', None, None, None, None, None, None, None, '2721140') ('4302', '22027723', '1349836093', None, None, None, None, None, '2721140') ('4302', None, None, None, None, None, None, None, '2721140') ('4302', '22027723', '1349836085', None, None, None, None, None, '2721140') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '22027723', "{'kraft': 22027726, 'Teint_Dans_La_Masse': 22027727, 'environnement': 22027728, 'mal_croppe': 22027729, 'cartonnette': 22027730, 'papier': 22027731, 'autre_refus': 22027732, 'plastique': 22027733, 'Carton_brun': 22027734, 'Carton_gris': 22027735, 'metal': 22027736, 'flou': 22027737}", None, None, None, None, '2721140'), ('4302', '22027723', '1349836129', None, None, None, None, None, '2721140'), ('4302', '22027723', '1349836098', None, None, None, None, None, '2721140'), ('4302', '22027723', '1349836093', None, None, None, None, None, '2721140'), ('4302', '22027723', '1349836085', None, None, None, None, None, '2721140')] time used for this insertion : 0.02889561653137207 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.3099684715270996 time spend to save output : 0.029178619384765625 total time spend for step 1 : 3.3391470909118652 step2:final Thu Apr 3 18:33: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 (22027723) 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 22027723 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349834132,1349834090,1349834526,1349834495,1349834476,1349834462,1349834911,1349834905,1349834899,1349834884,1349834869,1349835007,1349834999,1349834952,1349834946,1349834940,1349834944,1349834938,1349834933,1349834931,1349834926,1349835052,1349835048,1349835041,1349835036,1349835427,1349835411,1349835406,1349835398,1349835384,1349835358,1349835451,1349835444,1349835441,1349835495,1349835490,1349835486,1349835482,1349835478,1349835613,1349835608,1349835609,1349835596,1349835598,1349835591,1349835588,1349835593,1349835589,1349835585,1349835584,1349835582,1349835873,1349835825,1349835796,1349836098,1349836093,1349836085,1349836129); 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([22027723]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349836129: ('0.052984148345078697',), 1349836098: ('0.052984148345078697',), 1349836093: ('0.052984148345078697',), 1349836085: ('0.052984148345078697',)} new output for save of step final : {1349836129: ('0.052984148345078697',), 1349836098: ('0.052984148345078697',), 1349836093: ('0.052984148345078697',), 1349836085: ('0.052984148345078697',)} [1349836129, 1349836098, 1349836093, 1349836085] map_info['map_portfolio_photo'] : {22027723: [1349836129, 1349836098, 1349836093, 1349836085, 1349835873, 1349835825, 1349835796, 1349835613, 1349835609, 1349835608, 1349835598, 1349835596, 1349835593, 1349835591, 1349835589, 1349835588, 1349835585, 1349835584, 1349835582, 1349835495, 1349835490, 1349835486, 1349835482, 1349835478, 1349835451, 1349835444, 1349835441, 1349835427, 1349835411, 1349835406, 1349835398, 1349835384, 1349835358, 1349835052, 1349835048, 1349835041, 1349835036, 1349835007, 1349834999, 1349834952, 1349834946, 1349834944, 1349834940, 1349834938, 1349834933, 1349834931, 1349834926, 1349834911, 1349834905, 1349834899, 1349834884, 1349834869, 1349834526, 1349834495, 1349834476, 1349834462, 1349834132, 1349834090]} final : False mtd_id 4302 list_pids : [1349836129, 1349836098, 1349836093, 1349836085] Looping around the photos to save general results len do output : 4 /1349836129.Didn't retrieve data . /1349836098.Didn't retrieve data . /1349836093.Didn't retrieve data . /1349836085.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, '2721140') ('4302', '22027723', '1349836129', None, None, None, None, None, '2721140') ('4302', None, None, None, None, None, None, None, '2721140') ('4302', '22027723', '1349836098', None, None, None, None, None, '2721140') ('4302', None, None, None, None, None, None, None, '2721140') ('4302', '22027723', '1349836093', None, None, None, None, None, '2721140') ('4302', None, None, None, None, None, None, None, '2721140') ('4302', '22027723', '1349836085', None, None, None, None, None, '2721140') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22027723', '1349836129', '0.052984148345078697', None, None, None, None, '2721140'), ('4302', '22027723', '1349836098', '0.052984148345078697', None, None, None, None, '2721140'), ('4302', '22027723', '1349836093', '0.052984148345078697', None, None, None, None, '2721140'), ('4302', '22027723', '1349836085', '0.052984148345078697', None, None, None, None, '2721140')] time used for this insertion : 0.028696775436401367 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2033846378326416 time spend to save output : 0.02899909019470215 total time spend for step 2 : 0.23238372802734375 step3:velours_tree Thu Apr 3 18:33: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 : {22027723: [{'kraft': 22027726, 'Teint_Dans_La_Masse': 22027727, 'environnement': 22027728, 'mal_croppe': 22027729, 'cartonnette': 22027730, 'papier': 22027731, 'autre_refus': 22027732, 'plastique': 22027733, 'Carton_brun': 22027734, 'Carton_gris': 22027735, 'metal': 22027736, 'flou': 22027737}]} input_args_next_step : {22027723: ()} output_args : {22027723: [{'kraft': 22027726, 'Teint_Dans_La_Masse': 22027727, 'environnement': 22027728, 'mal_croppe': 22027729, 'cartonnette': 22027730, 'papier': 22027731, 'autre_refus': 22027732, 'plastique': 22027733, 'Carton_brun': 22027734, 'Carton_gris': 22027735, 'metal': 22027736, 'flou': 22027737}]} args : 22027723 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 : ({'kraft': 22027726, 'Teint_Dans_La_Masse': 22027727, 'environnement': 22027728, 'mal_croppe': 22027729, 'cartonnette': 22027730, 'papier': 22027731, 'autre_refus': 22027732, 'plastique': 22027733, 'Carton_brun': 22027734, 'Carton_gris': 22027735, 'metal': 22027736, 'flou': 22027737},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22027723) 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([22027723]) 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.3314080238342285 time spend to save output : 5.4836273193359375e-05 total time spend for step 3 : 0.3314628601074219 step4:send_mail_cod Thu Apr 3 18:33: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 : {1349836129: ('0.052984148345078697',), 1349836098: ('0.052984148345078697',), 1349836093: ('0.052984148345078697',), 1349836085: ('0.052984148345078697',)} input_args_next_step : {1349836129: ()} output_args : {1349836129: ('0.052984148345078697',), 1349836098: ('0.052984148345078697',), 1349836093: ('0.052984148345078697',), 1349836085: ('0.052984148345078697',)} args : 1349836129 depend.output_id : 0 input_args_next_step : {1349836129: ('0.052984148345078697',), 1349836098: ()} output_args : {1349836129: ('0.052984148345078697',), 1349836098: ('0.052984148345078697',), 1349836093: ('0.052984148345078697',), 1349836085: ('0.052984148345078697',)} args : 1349836098 depend.output_id : 0 input_args_next_step : {1349836129: ('0.052984148345078697',), 1349836098: ('0.052984148345078697',), 1349836093: ()} output_args : {1349836129: ('0.052984148345078697',), 1349836098: ('0.052984148345078697',), 1349836093: ('0.052984148345078697',), 1349836085: ('0.052984148345078697',)} args : 1349836093 depend.output_id : 0 input_args_next_step : {1349836129: ('0.052984148345078697',), 1349836098: ('0.052984148345078697',), 1349836093: ('0.052984148345078697',), 1349836085: ()} output_args : {1349836129: ('0.052984148345078697',), 1349836098: ('0.052984148345078697',), 1349836093: ('0.052984148345078697',), 1349836085: ('0.052984148345078697',)} args : 1349836085 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 : {22027723: [{'kraft': 22027726, 'Teint_Dans_La_Masse': 22027727, 'environnement': 22027728, 'mal_croppe': 22027729, 'cartonnette': 22027730, 'papier': 22027731, 'autre_refus': 22027732, 'plastique': 22027733, 'Carton_brun': 22027734, 'Carton_gris': 22027735, 'metal': 22027736, 'flou': 22027737}]} input_args_next_step : {1349836129: ('0.052984148345078697',), 1349836098: ('0.052984148345078697',), 1349836093: ('0.052984148345078697',), 1349836085: ('0.052984148345078697',), 22027723: ()} output_args : {22027723: [{'kraft': 22027726, 'Teint_Dans_La_Masse': 22027727, 'environnement': 22027728, 'mal_croppe': 22027729, 'cartonnette': 22027730, 'papier': 22027731, 'autre_refus': 22027732, 'plastique': 22027733, 'Carton_brun': 22027734, 'Carton_gris': 22027735, 'metal': 22027736, 'flou': 22027737}]} args : 22027723 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 :5, first value : ('0.052984148345078697',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22027723) 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 (1349836129,1349836098,1349836093,1349836085) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349836085 begin to download photo : 1349836093 begin to download photo : 1349836098 begin to download photo : 1349836129 download finish for photo 1349836085 download finish for photo 1349836093 download finish for photo 1349836129 download finish for photo 1349836098 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 : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P22027723_03-04-2025_18_33_01.pdf 22027726 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=22027726 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349835559: '1743697392_2436884_1349835036_004b3127fa3eb1ae9179112f302cb4c3_rle_crop_3746352668_0.png', 1349835570: '1743697408_850005_1349835398_830a2c0900ffc5e9fae63cf4ea177d64_rle_crop_3746352714_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/370e51444cdf0572842d26770eda9213_95371304.png change filename to text .imagette220277261743697981/ imagette220277261743697981/1743697408_850005_1349835398_830a2c0900ffc5e9fae63cf4ea177d64_rle_crop_3746352714_0.png.png imagette220277261743697981/1743697392_2436884_1349835036_004b3127fa3eb1ae9179112f302cb4c3_rle_crop_3746352668_0.png.png imagette220277291743697982/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/33b82592bb443059caef911217aaf5a9_98401425.png imagette220277261743697981 22027729 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=22027729 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220277291743697982 22027730 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=22027730 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349835420: '1743697274_2435782_1349835007_36657629576c0c5496882753c9ccfb94_rle_crop_3746351814_0.png', 1349835421: '1743697274_2435782_1349834999_82f6944eb02f99bb1b8aec7ca0f5531e_rle_crop_3746351829_0.png', 1349835422: '1743697274_2435782_1349834899_eb7c92bca0bc9920aa7525be3bb00692_rle_crop_3746351855_0.png', 1349835534: '1743697392_2436884_1349835427_c10c1ff48eb854708f21160a080da7f2_rle_crop_3746352618_0.png', 1349835535: '1743697392_2436884_1349835048_dda1fd6b1e16fb2170abbc09cd2d316f_rle_crop_3746352634_0.png', 1349835553: '1743697408_850005_1349835411_0dec60a865909a9d579fdaa90972bea5_rle_crop_3746352694_0.png', 1349835554: '1743697408_850005_1349835398_830a2c0900ffc5e9fae63cf4ea177d64_rle_crop_3746352718_0.png', 1349835555: '1743697408_850005_1349835384_13630c3daf06af63d2a7bffe0d12b22b_rle_crop_3746352726_0.png', 1349835556: '1743697408_850005_1349835384_13630c3daf06af63d2a7bffe0d12b22b_rle_crop_3746352729_0.png', 1349835558: '1743697408_850005_1349835358_d79be18e96dae3aa40dc13a07fef5900_rle_crop_3746352738_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/4760180f3baa62d6c450943bf17b373a_31559298.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/4760180f3baa62d6c450943bf17b373a_13413082.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5af6322e141e5c693b25906602def8ee_71870462.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e41f664b3fe379575186abceae706490_75389028.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8a1f21f79a706f64ab8e0a28d569696b_79504331.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e3ffec0edba02a20eedc3f4d84dddcd3_15864716.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/25ebd59d8d00e2d90542376f69baf728_26985169.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f4331b25535286f9ad755dd18d69cb70_13844065.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8a2f6ec5d6f39ad2f812770e87e4251a_16924118.png change filename to text .imagette220277301743697982/ imagette220277301743697982/1743697408_850005_1349835384_13630c3daf06af63d2a7bffe0d12b22b_rle_crop_3746352729_0.png.png imagette220277301743697982/1743697408_850005_1349835398_830a2c0900ffc5e9fae63cf4ea177d64_rle_crop_3746352718_0.png.png imagette220277301743697982/1743697274_2435782_1349834899_eb7c92bca0bc9920aa7525be3bb00692_rle_crop_3746351855_0.png.png imagette220277301743697982/1743697408_850005_1349835358_d79be18e96dae3aa40dc13a07fef5900_rle_crop_3746352738_0.png.png imagette220277301743697982/1743697392_2436884_1349835048_dda1fd6b1e16fb2170abbc09cd2d316f_rle_crop_3746352634_0.png.png imagette220277301743697982/1743697274_2435782_1349834999_82f6944eb02f99bb1b8aec7ca0f5531e_rle_crop_3746351829_0.png.png imagette220277301743697982/1743697408_850005_1349835384_13630c3daf06af63d2a7bffe0d12b22b_rle_crop_3746352726_0.png.png imagette220277301743697982/1743697392_2436884_1349835427_c10c1ff48eb854708f21160a080da7f2_rle_crop_3746352618_0.png.png imagette220277301743697982/1743697408_850005_1349835411_0dec60a865909a9d579fdaa90972bea5_rle_crop_3746352694_0.png.png imagette220277301743697982/1743697274_2435782_1349835007_36657629576c0c5496882753c9ccfb94_rle_crop_3746351814_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/fcd0bee3a9523a1efffb6fd5d723e052_33987494.png imagette220277301743697982 22027732 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=22027732 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349835529: '1743697392_2436884_1349835048_dda1fd6b1e16fb2170abbc09cd2d316f_rle_crop_3746352636_0.png', 1349835759: '1743697531_2438120_1349835482_a677ad7385b1a65434f1687cda521967_rle_crop_3746353544_0.png', 1349835760: '1743697531_2438120_1349835478_b3b6e0052f3748fafd75ab6ab476f7f9_rle_crop_3746353560_0.png', 1349836024: '1743697752_2439774_1349835796_fb196d7d7bd3657efaf8641f0f675b46_rle_crop_3746354496_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/02b777bad9af32820d3254bb18d2d83a_76638499.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e73c9f3d7a3d1e93e5ed921e24859491_33227188.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e48641e708d39854d7b14f568155889b_10375454.png change filename to text .imagette220277321743697982/ imagette220277321743697982/1743697531_2438120_1349835478_b3b6e0052f3748fafd75ab6ab476f7f9_rle_crop_3746353560_0.png.png imagette220277321743697982/1743697392_2436884_1349835048_dda1fd6b1e16fb2170abbc09cd2d316f_rle_crop_3746352636_0.png.png imagette220277321743697982/1743697752_2439774_1349835796_fb196d7d7bd3657efaf8641f0f675b46_rle_crop_3746354496_0.png.png imagette220277321743697982/1743697531_2438120_1349835482_a677ad7385b1a65434f1687cda521967_rle_crop_3746353544_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ce1e71f310cc84212ee5ae749d2a1dd8_83111297.png imagette220277321743697982 22027733 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=22027733 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349835029: '1743697152_2433944_1349834476_d2dfcdbba50763c91d562211eaa25034_rle_crop_3746350917_0.png', 1349835429: '1743697274_2435782_1349834899_eb7c92bca0bc9920aa7525be3bb00692_rle_crop_3746351854_0.png', 1349835430: '1743697274_2435782_1349834884_940fb1331757d532727bc12f8a791f42_rle_crop_3746351868_0.png', 1349835431: '1743697274_2435782_1349834884_940fb1331757d532727bc12f8a791f42_rle_crop_3746351864_0.png', 1349835566: '1743697408_850005_1349835411_0dec60a865909a9d579fdaa90972bea5_rle_crop_3746352690_0.png', 1349835567: '1743697408_850005_1349835406_24518b567563dcd3fb0211bda99e6ec7_rle_crop_3746352710_0.png', 1349835568: '1743697408_850005_1349835384_13630c3daf06af63d2a7bffe0d12b22b_rle_crop_3746352725_0.png', 1349835767: '1743697531_2438120_1349835490_1cbc83319bda295fdd031646ed22528f_rle_crop_3746353516_0.png', 1349835768: '1743697531_2438120_1349835486_9f16dbf033f8bf98e21c1609945977d6_rle_crop_3746353536_0.png', 1349835959: '1743697634_2438875_1349835598_7b38f192c0e46956f68f6cfbdbc3507c_rle_crop_3746354321_0.png', 1349835960: '1743697634_2438875_1349835593_65256be8a65af05e8882471ae3aa522e_rle_crop_3746354346_0.png', 1349835961: '1743697634_2438875_1349835591_09d40f5ba6fa8d49ec196eb3cca84080_rle_crop_3746354355_0.png', 1349835962: '1743697634_2438875_1349835589_ab1aa65829ab4cdde2ad39a57f5eab58_rle_crop_3746354370_0.png', 1349835963: '1743697634_2438875_1349835588_b988a8cd14ef4556880c54b825c936b6_rle_crop_3746354383_0.png', 1349835964: '1743697634_2438875_1349835585_e5dc268b2a7fefd9c46fdc92ecef384c_rle_crop_3746354395_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/08ecffeccc9309fa695b2dced0f5f280_24153184.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/23c2762362ae9ef9f5e2eb01b3b804f8_67357364.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7691970f0550fbba65d7cba45370f2c2_55429905.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/2bcc6366f7e3147ce7ca64cef8c4feea_72073599.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/49d8525f7ae70e316dfbeec658dc43f9_18129139.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/412b93030c293073b61d52cab7f7dfe9_24823759.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ebcb31fd40e1ba50968c7afdf8246d44_75079804.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/62a0d4e44c63564ab8018e7d9fce3a9b_94185140.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6191e9f0cef3128be7b6a739a15ca127_91749063.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a5011ba40ff58386b0f5012480dd9bf2_98387914.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b84dbc5f272fb68e6a607c9e78168789_43552913.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a5011ba40ff58386b0f5012480dd9bf2_84701186.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/54d7cc942e0c0abc2cfc3561d30d4b32_83710598.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b84dbc5f272fb68e6a607c9e78168789_60348220.png change filename to text .imagette220277331743697982/ imagette220277331743697982/1743697634_2438875_1349835585_e5dc268b2a7fefd9c46fdc92ecef384c_rle_crop_3746354395_0.png.png imagette220277331743697982/1743697274_2435782_1349834899_eb7c92bca0bc9920aa7525be3bb00692_rle_crop_3746351854_0.png.png imagette220277331743697982/1743697634_2438875_1349835598_7b38f192c0e46956f68f6cfbdbc3507c_rle_crop_3746354321_0.png.png imagette220277331743697982/1743697274_2435782_1349834884_940fb1331757d532727bc12f8a791f42_rle_crop_3746351864_0.png.png imagette220277331743697982/1743697152_2433944_1349834476_d2dfcdbba50763c91d562211eaa25034_rle_crop_3746350917_0.png.png imagette220277331743697982/1743697408_850005_1349835406_24518b567563dcd3fb0211bda99e6ec7_rle_crop_3746352710_0.png.png imagette220277331743697982/1743697408_850005_1349835411_0dec60a865909a9d579fdaa90972bea5_rle_crop_3746352690_0.png.png imagette220277331743697982/1743697634_2438875_1349835593_65256be8a65af05e8882471ae3aa522e_rle_crop_3746354346_0.png.png imagette220277331743697982/1743697634_2438875_1349835589_ab1aa65829ab4cdde2ad39a57f5eab58_rle_crop_3746354370_0.png.png imagette220277331743697982/1743697634_2438875_1349835588_b988a8cd14ef4556880c54b825c936b6_rle_crop_3746354383_0.png.png imagette220277331743697982/1743697531_2438120_1349835490_1cbc83319bda295fdd031646ed22528f_rle_crop_3746353516_0.png.png imagette220277331743697982/1743697634_2438875_1349835591_09d40f5ba6fa8d49ec196eb3cca84080_rle_crop_3746354355_0.png.png imagette220277331743697982/1743697274_2435782_1349834884_940fb1331757d532727bc12f8a791f42_rle_crop_3746351868_0.png.png imagette220277331743697982/1743697408_850005_1349835384_13630c3daf06af63d2a7bffe0d12b22b_rle_crop_3746352725_0.png.png imagette220277331743697982/1743697531_2438120_1349835486_9f16dbf033f8bf98e21c1609945977d6_rle_crop_3746353536_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/54d7cc942e0c0abc2cfc3561d30d4b32_88168942.png imagette220277331743697982 22027736 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=22027736 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349835560: '1743697392_2436884_1349835427_c10c1ff48eb854708f21160a080da7f2_rle_crop_3746352615_0.png'} change filename to text .imagette220277361743697983/ imagette220277361743697983/1743697392_2436884_1349835427_c10c1ff48eb854708f21160a080da7f2_rle_crop_3746352615_0.png.png imagette220277371743697983/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/1bad15f21db70a1642cd059ccf28fba3_4732165.png imagette220277361743697983 22027737 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=22027737 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220277371743697983 22027727 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=22027727 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349835026: '1743697152_2433944_1349834495_699cc2f0275a47474d6cf1a05688257a_rle_crop_3746350910_0.png', 1349835027: '1743697152_2433944_1349834476_d2dfcdbba50763c91d562211eaa25034_rle_crop_3746350918_0.png', 1349835413: '1743697274_2435782_1349834899_eb7c92bca0bc9920aa7525be3bb00692_rle_crop_3746351859_0.png', 1349835414: '1743697274_2435782_1349834899_eb7c92bca0bc9920aa7525be3bb00692_rle_crop_3746351856_0.png', 1349835415: '1743697274_2435782_1349834884_940fb1331757d532727bc12f8a791f42_rle_crop_3746351871_0.png', 1349835416: '1743697274_2435782_1349834884_940fb1331757d532727bc12f8a791f42_rle_crop_3746351866_0.png', 1349835417: '1743697274_2435782_1349834884_940fb1331757d532727bc12f8a791f42_rle_crop_3746351867_0.png', 1349835418: '1743697274_2435782_1349834869_712b4eb7c93484d946b895c896f02777_rle_crop_3746351885_0.png', 1349835526: '1743697392_2436884_1349835048_dda1fd6b1e16fb2170abbc09cd2d316f_rle_crop_3746352637_0.png', 1349835527: '1743697392_2436884_1349835048_dda1fd6b1e16fb2170abbc09cd2d316f_rle_crop_3746352641_0.png', 1349835543: '1743697408_850005_1349835398_830a2c0900ffc5e9fae63cf4ea177d64_rle_crop_3746352719_0.png', 1349835757: '1743697531_2438120_1349835486_9f16dbf033f8bf98e21c1609945977d6_rle_crop_3746353526_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/67615a34f268e132bece8ecddbf25c78_76237259.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6801cd8a75b1575d76838a4b5727bfa9_51114872.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/49e03d4eb5f0abc1388da9fbc7636a9f_4940260.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/336c10016b48394f26c0390ff419786c_9099094.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/af87ebcd18dab670bb92a77cabfa3074_83974671.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/542f05572176006651a4422beace9edd_79483613.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ffc629cebf4763b4d0031e168ca89b3e_75402913.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7b22c34e0d3b4524dd9294cdb901d2f6_60033560.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/00ce8f46b79bca20d7595ececf5663d5_151463.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/903e5e4f6f85be2d336ff0e89f44f89d_91131672.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/617185ad0c061ec6021c581d9c06279b_19914057.png change filename to text .imagette220277271743697983/ imagette220277271743697983/1743697274_2435782_1349834884_940fb1331757d532727bc12f8a791f42_rle_crop_3746351871_0.png.png imagette220277271743697983/1743697274_2435782_1349834884_940fb1331757d532727bc12f8a791f42_rle_crop_3746351866_0.png.png imagette220277271743697983/1743697152_2433944_1349834495_699cc2f0275a47474d6cf1a05688257a_rle_crop_3746350910_0.png.png imagette220277271743697983/1743697274_2435782_1349834884_940fb1331757d532727bc12f8a791f42_rle_crop_3746351867_0.png.png imagette220277271743697983/1743697531_2438120_1349835486_9f16dbf033f8bf98e21c1609945977d6_rle_crop_3746353526_0.png.png imagette220277271743697983/1743697274_2435782_1349834869_712b4eb7c93484d946b895c896f02777_rle_crop_3746351885_0.png.png imagette220277271743697983/1743697274_2435782_1349834899_eb7c92bca0bc9920aa7525be3bb00692_rle_crop_3746351859_0.png.png imagette220277271743697983/1743697392_2436884_1349835048_dda1fd6b1e16fb2170abbc09cd2d316f_rle_crop_3746352641_0.png.png imagette220277271743697983/1743697152_2433944_1349834476_d2dfcdbba50763c91d562211eaa25034_rle_crop_3746350918_0.png.png imagette220277271743697983/1743697408_850005_1349835398_830a2c0900ffc5e9fae63cf4ea177d64_rle_crop_3746352719_0.png.png imagette220277271743697983/1743697392_2436884_1349835048_dda1fd6b1e16fb2170abbc09cd2d316f_rle_crop_3746352637_0.png.png imagette220277271743697983/1743697274_2435782_1349834899_eb7c92bca0bc9920aa7525be3bb00692_rle_crop_3746351856_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/04b40bde929ebdf7cec54bd6a7d8e4a3_20666931.png imagette220277271743697983 22027734 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=22027734 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349835002: '1743697166_846440_1349834132_1bb5315920a6fe0bf38861a15e811a6a_rle_crop_3746350829_0.png', 1349835006: '1743697166_846440_1349834132_1bb5315920a6fe0bf38861a15e811a6a_rle_crop_3746350830_0.png', 1349835425: '1743697274_2435782_1349835007_36657629576c0c5496882753c9ccfb94_rle_crop_3746351816_0.png', 1349835426: '1743697274_2435782_1349834999_82f6944eb02f99bb1b8aec7ca0f5531e_rle_crop_3746351831_0.png', 1349835537: '1743697392_2436884_1349835041_535e5911be019e39a82546b39c38d654_rle_crop_3746352654_0.png', 1349835538: '1743697392_2436884_1349835036_004b3127fa3eb1ae9179112f302cb4c3_rle_crop_3746352673_0.png', 1349835539: '1743697392_2436884_1349835036_004b3127fa3eb1ae9179112f302cb4c3_rle_crop_3746352672_0.png', 1349835562: '1743697408_850005_1349835411_0dec60a865909a9d579fdaa90972bea5_rle_crop_3746352696_0.png', 1349835563: '1743697408_850005_1349835411_0dec60a865909a9d579fdaa90972bea5_rle_crop_3746352692_0.png', 1349835711: '1743697527_852784_1349835444_26cc6c8a2bee32758729a35ee6dafbc7_rle_crop_3746353372_0.png', 1349835765: '1743697531_2438120_1349835486_9f16dbf033f8bf98e21c1609945977d6_rle_crop_3746353531_0.png', 1349835766: '1743697531_2438120_1349835482_a677ad7385b1a65434f1687cda521967_rle_crop_3746353550_0.png', 1349835952: '1743697634_2438875_1349835598_7b38f192c0e46956f68f6cfbdbc3507c_rle_crop_3746354319_0.png', 1349835953: '1743697634_2438875_1349835591_09d40f5ba6fa8d49ec196eb3cca84080_rle_crop_3746354353_0.png', 1349835954: '1743697634_2438875_1349835584_b736ab164263a714414699d3861861e0_rle_crop_3746354404_0.png', 1349835955: '1743697634_2438875_1349835582_c5fc24abd6317a05e87ed4443a4769e4_rle_crop_3746354416_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/bd42d1dbb7f3f5f9a99cd630948d8e9a_88911993.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/fa2ec1d703fbb05e6a8f821f857bab81_11146070.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/76fa15df414ee95b22c606996456333d_91712298.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/76fa15df414ee95b22c606996456333d_24903447.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/16c6b7416a1d88b336bbdc9a31517e39_12686137.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/eabf5425eb7ae6d711e5c0e20e71f2d2_14183481.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/14ece68496c98846a50da43e291afdc1_96174081.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/542a914057a116a3846bd5a336217093_79278770.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/73fb4922ed2b7567fad3ede11103a7a9_89294524.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/332d5a0ad9d5efe18914c3909c2a5c8c_55878428.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/604b2e50811f6ce837e9c93d7441e844_63048494.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8d71328642af773af392fba4345a16bc_46117750.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6fd3a6f3c0929cf05cb265167bf09b31_7652818.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6fd3a6f3c0929cf05cb265167bf09b31_39448865.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8e4cb1c3f2a9424c64fc292fff65bc94_7343170.png change filename to text .imagette220277341743697984/ imagette220277341743697984/1743697166_846440_1349834132_1bb5315920a6fe0bf38861a15e811a6a_rle_crop_3746350829_0.png.png imagette220277341743697984/1743697634_2438875_1349835591_09d40f5ba6fa8d49ec196eb3cca84080_rle_crop_3746354353_0.png.png imagette220277341743697984/1743697392_2436884_1349835041_535e5911be019e39a82546b39c38d654_rle_crop_3746352654_0.png.png imagette220277341743697984/1743697274_2435782_1349834999_82f6944eb02f99bb1b8aec7ca0f5531e_rle_crop_3746351831_0.png.png imagette220277341743697984/1743697274_2435782_1349835007_36657629576c0c5496882753c9ccfb94_rle_crop_3746351816_0.png.png imagette220277341743697984/1743697531_2438120_1349835486_9f16dbf033f8bf98e21c1609945977d6_rle_crop_3746353531_0.png.png imagette220277341743697984/1743697408_850005_1349835411_0dec60a865909a9d579fdaa90972bea5_rle_crop_3746352696_0.png.png imagette220277341743697984/1743697392_2436884_1349835036_004b3127fa3eb1ae9179112f302cb4c3_rle_crop_3746352673_0.png.png imagette220277341743697984/1743697527_852784_1349835444_26cc6c8a2bee32758729a35ee6dafbc7_rle_crop_3746353372_0.png.png imagette220277341743697984/1743697634_2438875_1349835598_7b38f192c0e46956f68f6cfbdbc3507c_rle_crop_3746354319_0.png.png imagette220277341743697984/1743697392_2436884_1349835036_004b3127fa3eb1ae9179112f302cb4c3_rle_crop_3746352672_0.png.png imagette220277341743697984/1743697531_2438120_1349835482_a677ad7385b1a65434f1687cda521967_rle_crop_3746353550_0.png.png imagette220277341743697984/1743697166_846440_1349834132_1bb5315920a6fe0bf38861a15e811a6a_rle_crop_3746350830_0.png.png imagette220277341743697984/1743697634_2438875_1349835584_b736ab164263a714414699d3861861e0_rle_crop_3746354404_0.png.png imagette220277341743697984/1743697408_850005_1349835411_0dec60a865909a9d579fdaa90972bea5_rle_crop_3746352692_0.png.png imagette220277341743697984/1743697634_2438875_1349835582_c5fc24abd6317a05e87ed4443a4769e4_rle_crop_3746354416_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8e4cb1c3f2a9424c64fc292fff65bc94_2304646.png imagette220277341743697984 22027735 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=22027735 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349834982: '1743697166_846440_1349834132_1bb5315920a6fe0bf38861a15e811a6a_rle_crop_3746350826_0.png', 1349834983: '1743697166_846440_1349834090_b32d5b28d9e77fb677b2eda938b77c89_rle_crop_3746350846_0.png', 1349835531: '1743697392_2436884_1349835427_c10c1ff48eb854708f21160a080da7f2_rle_crop_3746352616_0.png', 1349835545: '1743697408_850005_1349835411_0dec60a865909a9d579fdaa90972bea5_rle_crop_3746352695_0.png', 1349835547: '1743697408_850005_1349835406_24518b567563dcd3fb0211bda99e6ec7_rle_crop_3746352704_0.png', 1349835548: '1743697408_850005_1349835398_830a2c0900ffc5e9fae63cf4ea177d64_rle_crop_3746352720_0.png', 1349835549: '1743697408_850005_1349835384_13630c3daf06af63d2a7bffe0d12b22b_rle_crop_3746352733_0.png', 1349835707: '1743697527_852784_1349835444_26cc6c8a2bee32758729a35ee6dafbc7_rle_crop_3746353364_0.png', 1349835762: '1743697531_2438120_1349835478_b3b6e0052f3748fafd75ab6ab476f7f9_rle_crop_3746353563_0.png', 1349835949: '1743697634_2438875_1349835598_7b38f192c0e46956f68f6cfbdbc3507c_rle_crop_3746354320_0.png', 1349835950: '1743697634_2438875_1349835591_09d40f5ba6fa8d49ec196eb3cca84080_rle_crop_3746354354_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/254d6f223a7d8d68fd270eb4962f8373_89182997.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/1b7fc52348f5102fcccb85907a255cbf_27852204.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c7b1f31423bdb59555af5d89dbef90fd_49637154.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d5660b82a752798414058b3feb23b54a_85139586.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5f3d3328208ad30889bea79e252b01eb_36757658.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b3f97ae239d11cd293f7a132097ee443_23012.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/4629c27222983620ee726b5ab0932d72_84937644.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7aec557f43f2cb76d28dd125f5a0fdff_83479968.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/895e858aa138f7fd7086b737cbd9d00a_27945453.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/488bc1f6edf2e14cc080a82213a0f6d8_90345164.png change filename to text .imagette220277351743697985/ imagette220277351743697985/1743697531_2438120_1349835478_b3b6e0052f3748fafd75ab6ab476f7f9_rle_crop_3746353563_0.png.png imagette220277351743697985/1743697408_850005_1349835384_13630c3daf06af63d2a7bffe0d12b22b_rle_crop_3746352733_0.png.png imagette220277351743697985/1743697408_850005_1349835406_24518b567563dcd3fb0211bda99e6ec7_rle_crop_3746352704_0.png.png imagette220277351743697985/1743697392_2436884_1349835427_c10c1ff48eb854708f21160a080da7f2_rle_crop_3746352616_0.png.png imagette220277351743697985/1743697166_846440_1349834090_b32d5b28d9e77fb677b2eda938b77c89_rle_crop_3746350846_0.png.png imagette220277351743697985/1743697408_850005_1349835398_830a2c0900ffc5e9fae63cf4ea177d64_rle_crop_3746352720_0.png.png imagette220277351743697985/1743697527_852784_1349835444_26cc6c8a2bee32758729a35ee6dafbc7_rle_crop_3746353364_0.png.png imagette220277351743697985/1743697166_846440_1349834132_1bb5315920a6fe0bf38861a15e811a6a_rle_crop_3746350826_0.png.png imagette220277351743697985/1743697634_2438875_1349835591_09d40f5ba6fa8d49ec196eb3cca84080_rle_crop_3746354354_0.png.png imagette220277351743697985/1743697634_2438875_1349835598_7b38f192c0e46956f68f6cfbdbc3507c_rle_crop_3746354320_0.png.png imagette220277351743697985/1743697408_850005_1349835411_0dec60a865909a9d579fdaa90972bea5_rle_crop_3746352695_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/488bc1f6edf2e14cc080a82213a0f6d8_90546160.png imagette220277351743697985 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22027723 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22027738,22027739,22027740,22027741,22027742,22027743,22027744,22027745,22027746,22027747,22027748,22027749?tags=kraft,Teint_Dans_La_Masse,environnement,mal_croppe,cartonnette,papier,autre_refus,plastique,Carton_brun,Carton_gris,metal,flou your option no_mail is active, we will not send the real mail to your client args[1349836129] : ('0.052984148345078697',) no score found for photo 1349836129 We are sending mail with results at report@fotonower.com args[1349836098] : ('0.052984148345078697',) no score found for photo 1349836098 We are sending mail with results at report@fotonower.com args[1349836093] : ('0.052984148345078697',) no score found for photo 1349836093 We are sending mail with results at report@fotonower.com args[1349836085] : ('0.052984148345078697',) no score found for photo 1349836085 We are sending mail with results at report@fotonower.com refus_total : 0.052984148345078697 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=22027723 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_P22027723_03-04-2025_18_33_01.pdf results_Auto_P22027723_03-04-2025_18_33_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22027723_03-04-2025_18_33_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22027723','results_Auto_P22027723_03-04-2025_18_33_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22027723_03-04-2025_18_33_01.pdf','pdf','','0.24','0.052984148345078697') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22027723]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349836129, 1349836098, 1349836093, 1349836085] map_info['map_portfolio_photo'] : {22027723: [1349836129, 1349836098, 1349836093, 1349836085, 1349835873, 1349835825, 1349835796, 1349835613, 1349835609, 1349835608, 1349835598, 1349835596, 1349835593, 1349835591, 1349835589, 1349835588, 1349835585, 1349835584, 1349835582, 1349835495, 1349835490, 1349835486, 1349835482, 1349835478, 1349835451, 1349835444, 1349835441, 1349835427, 1349835411, 1349835406, 1349835398, 1349835384, 1349835358, 1349835052, 1349835048, 1349835041, 1349835036, 1349835007, 1349834999, 1349834952, 1349834946, 1349834944, 1349834940, 1349834938, 1349834933, 1349834931, 1349834926, 1349834911, 1349834905, 1349834899, 1349834884, 1349834869, 1349834526, 1349834495, 1349834476, 1349834462, 1349834132, 1349834090]} final : False mtd_id 4302 list_pids : [1349836129, 1349836098, 1349836093, 1349836085] 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, '2721140') ('4302', '22027723', '1349836129', None, None, None, None, None, '2721140') ('4302', None, None, None, None, None, None, None, '2721140') ('4302', '22027723', '1349836098', None, None, None, None, None, '2721140') ('4302', None, None, None, None, None, None, None, '2721140') ('4302', '22027723', '1349836093', None, None, None, None, None, '2721140') ('4302', None, None, None, None, None, None, None, '2721140') ('4302', '22027723', '1349836085', None, None, None, None, None, '2721140') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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', '22027723', '1349836129', None, None, None, None, None, '2721140'), ('4302', '22027723', '1349836098', None, None, None, None, None, '2721140'), ('4302', '22027723', '1349836093', None, None, None, None, None, '2721140'), ('4302', '22027723', '1349836085', None, None, None, None, None, '2721140')] time used for this insertion : 0.02995920181274414 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.484975576400757 time spend to save output : 0.030129671096801758 total time spend for step 4 : 5.515105247497559 step5:split_time_score Thu Apr 3 18:33:07 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22027723'] 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 : [('22027723',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22027723) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349836085: {'path': 'temp/1743697981_69301_1349836085_989dff6a59756437463036a04161b24a.jpg', 'extension': 'jpg'}, 1349836093: {'path': 'temp/1743697981_69301_1349836093_46ae72dfc8a11761406d88475c5da9b7.jpg', 'extension': 'jpg'}, 1349836129: {'path': 'temp/1743697981_69301_1349836129_5f14df478ff2ea162298d17b54f97739.jpg', 'extension': 'jpg'}, 1349836098: {'path': 'temp/1743697981_69301_1349836098_146378e50aba39e87ef355c093821287.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 = 22027723; (('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 = 22027723 group by h (('18', 58),) 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=22027723 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 (22027723) 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 (22027723) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03042025 22027723 Nombre de photos uploadées : 58 / 23040 (0%) 03042025 22027723 Nombre de photos taguées (types de déchets): 0 / 58 (0%) 03042025 22027723 Nombre de photos taguées (volume) : 0 / 58 (0%) [{'photo_id': 1349834132, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/1bb5315920a6fe0bf38861a15e811a6a.jpg', 'username': None, 'uploaded_at': 1743696973, 'text': 'image_03042025_18_15_14_10135.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1349834090, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b32d5b28d9e77fb677b2eda938b77c89.jpg', 'username': None, 'uploaded_at': 1743696973, 'text': 'image_03042025_18_15_34_10145.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349834526, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/05a5528adb30ba87b4c26c2590f136e4.jpg', 'username': None, 'uploaded_at': 1743697038, 'text': 'image_03042025_18_15_44_10138.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349834495, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/699cc2f0275a47474d6cf1a05688257a.jpg', 'username': None, 'uploaded_at': 1743697038, 'text': 'image_03042025_18_16_24_10133.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ?????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0025475025177001953 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22027723, '2025-04-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1712161,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.061580657958984375 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= 1712161 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1712161, 'dashboard_run_id': 1722162, 'mtr_portfolio_id': 22027156, 'dashboard_result_id': 9851034, '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_P22027156_03-04-2025_18_19_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22027184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22027185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22027186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22027187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22027188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22027189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22027190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22027191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22027192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22027193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22027194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22027195, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1722162, 'mtr_portfolio_id': 22027723, 'dashboard_result_id': 9851035, '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_P22027723_03-04-2025_18_29_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22027726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22027727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22027728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22027729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22027730, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22027731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22027732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22027733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22027734, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22027735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22027736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22027737, '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 = 22027156 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': 2721092, 'mtr_portfolio_id': 22027156, 'created_at': datetime.datetime(2025, 4, 3, 18, 19, 1), 'result': '0.05517224166982827', 'result_long': None, 'result_double': None}] Qualite : 0.05517224166982827 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22027156 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22027156_03-04-2025_18_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22027156 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_P22027156_03-04-2025_18_19_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22027184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22027185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22027186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22027187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22027188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22027189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22027190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22027191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22027192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22027193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22027194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22027195, 'pht': 3726}}" where mtr_portfolio_id = 22027156 and dashboard_run_id = 1722162 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`=22027156 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9851034, 0.05517224166982827, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22027156_03-04-2025_18_19_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22027184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22027185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22027186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22027187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22027188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22027189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22027190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22027191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22027192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22027193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22027194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22027195, '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 = 22027723 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': 2721140, 'mtr_portfolio_id': 22027723, 'created_at': datetime.datetime(2025, 4, 3, 18, 33, 1), 'result': '0.052984148345078697', 'result_long': None, 'result_double': None}] Qualite : 0.052984148345078697 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22027723 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22027723_03-04-2025_18_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22027723 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_P22027723_03-04-2025_18_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22027726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22027727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22027728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22027729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22027730, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22027731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22027732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22027733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22027734, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22027735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22027736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22027737, 'pht': 3726}}" where mtr_portfolio_id = 22027723 and dashboard_run_id = 1722162 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`=22027723 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9851035, 0.052984148345078697, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22027723_03-04-2025_18_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22027726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22027727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22027728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22027729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22027730, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22027731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22027732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22027733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22027734, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22027735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22027736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22027737, '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 (22027156,22027723) result : ((1349832087,), (1349832145,), (1349832153,), (1349832167,), (1349832188,), (1349832198,), (1349832287,), (1349832345,), (1349832660,), (1349832665,), (1349832669,), (1349832674,), (1349832677,), (1349832685,), (1349832701,), (1349832710,), (1349832717,), (1349832726,), (1349832734,), (1349832737,), (1349832746,), (1349832752,), (1349832760,), (1349832776,), (1349832841,), (1349832845,), (1349832849,), (1349832857,), (1349832893,), (1349832899,), (1349832907,), (1349832924,), (1349832930,), (1349833072,), (1349833091,), (1349833096,), (1349833112,), (1349833161,), (1349833162,), (1349833181,), (1349833182,), (1349833198,), (1349833200,), (1349833201,), (1349833207,), (1349833213,), (1349833219,), (1349833231,), (1349833244,), (1349833267,), (1349833272,), (1349833275,), (1349833280,), (1349833310,), (1349833319,), (1349833325,), (1349833330,), (1349833337,), (1349833576,), (1349833604,), (1349833640,), (1349833687,), (1349833823,), (1349833853,), (1349833882,), (1349833908,), (1349834184,), (1349834090,), (1349834132,), (1349834462,), (1349834476,), (1349834495,), (1349834526,), (1349834869,), (1349834884,), (1349834899,), (1349834905,), (1349834911,), (1349834926,), (1349834931,), (1349834933,), (1349834938,), (1349834940,), (1349834944,), (1349834946,), (1349834952,), (1349834999,), (1349835007,), (1349835036,), (1349835041,), (1349835048,), (1349835052,), (1349835358,), (1349835384,), (1349835398,), (1349835406,), (1349835411,), (1349835427,), (1349835441,), (1349835444,), (1349835451,), (1349835478,), (1349835482,), (1349835486,), (1349835490,), (1349835495,), (1349835582,), (1349835584,), (1349835585,), (1349835588,), (1349835589,), (1349835591,), (1349835593,), (1349835596,), (1349835598,), (1349835608,), (1349835609,), (1349835613,), (1349835796,), (1349835825,), (1349835873,), (1349836085,), (1349836093,), (1349836098,), (1349836129,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03042025': {'nb_upload': 58, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22027723]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349836129, 1349836098, 1349836093, 1349836085] map_info['map_portfolio_photo'] : {22027723: [1349836129, 1349836098, 1349836093, 1349836085, 1349835873, 1349835825, 1349835796, 1349835613, 1349835609, 1349835608, 1349835598, 1349835596, 1349835593, 1349835591, 1349835589, 1349835588, 1349835585, 1349835584, 1349835582, 1349835495, 1349835490, 1349835486, 1349835482, 1349835478, 1349835451, 1349835444, 1349835441, 1349835427, 1349835411, 1349835406, 1349835398, 1349835384, 1349835358, 1349835052, 1349835048, 1349835041, 1349835036, 1349835007, 1349834999, 1349834952, 1349834946, 1349834944, 1349834940, 1349834938, 1349834933, 1349834931, 1349834926, 1349834911, 1349834905, 1349834899, 1349834884, 1349834869, 1349834526, 1349834495, 1349834476, 1349834462, 1349834132, 1349834090]} final : True mtd_id 4302 list_pids : [1349836129, 1349836098, 1349836093, 1349836085] Looping around the photos to save general results len do output : 1 /22027723Didn'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, '2721140') ('4302', '22027723', '1349836129', None, None, None, None, None, '2721140') ('4302', None, None, None, None, None, None, None, '2721140') ('4302', '22027723', '1349836098', None, None, None, None, None, '2721140') ('4302', None, None, None, None, None, None, None, '2721140') ('4302', '22027723', '1349836093', None, None, None, None, None, '2721140') ('4302', None, None, None, None, None, None, None, '2721140') ('4302', '22027723', '1349836085', None, None, None, None, None, '2721140') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '22027723', 'None', None, None, None, None, '2721140'), ('4302', '22027723', '1349836129', None, None, None, None, None, '2721140'), ('4302', '22027723', '1349836098', None, None, None, None, None, '2721140'), ('4302', '22027723', '1349836093', None, None, None, None, None, '2721140'), ('4302', '22027723', '1349836085', None, None, None, None, None, '2721140')] time used for this insertion : 0.03274726867675781 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6567108631134033 time spend to save output : 0.03296184539794922 total time spend for step 5 : 0.6896727085113525 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 (2721140) 2.04user 2.13system 0:12.52elapsed 33%CPU (0avgtext+0avgdata 159836maxresident)k 200inputs+12568outputs (2major+63840minor)pagefaults 0swaps