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 : 3105485 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 (2668556) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2668556) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21417994 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2668556'] with mtr_portfolio_ids : ['21417994'] and first list_photo_ids : [] new path : /proc/3105485/ Name: python3 Umask: 0002 State: R (running) Tgid: 3105485 Ngid: 0 Pid: 3105485 PPid: 3105484 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3105485 NSpid: 3105485 NSpgid: 3102374 NSsid: 3102374 VmPeak: 1106836 kB VmSize: 1106836 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99388 kB VmRSS: 99388 kB RssAnon: 59752 kB RssFile: 39636 kB RssShmem: 0 kB VmData: 865588 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 592 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 52 nonvoluntary_ctxt_switches: 117 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3105485', 'Ngid': '0', 'Pid': '3105485', 'PPid': '3105484', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3105485', 'NSpid': '3105485', 'NSpgid': '3102374', 'NSsid': '3102374', 'VmPeak': '1106836 kB', 'VmSize': '1106836 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99388 kB', 'VmRSS': '99388 kB', 'RssAnon': '59752 kB', 'RssFile': '39636 kB', 'RssShmem': '0 kB', 'VmData': '865588 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '592 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '52', 'nonvoluntary_ctxt_switches': '117'} ('datou_batch_current', '3105485', '1106836', '0', '1106836', '865588', '99388', b'', 'marlene', '2668556') 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 (21417994) 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 (2668556 ) ) 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 (21417994) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1344107767, 'portfolio_id': 21417994}, {'photo_id': 1344107375, 'portfolio_id': 21417994}, {'photo_id': 1344107052, 'portfolio_id': 21417994}, {'photo_id': 1344106924, 'portfolio_id': 21417994}, {'photo_id': 1344106892, 'portfolio_id': 21417994}, {'photo_id': 1344106863, 'portfolio_id': 21417994}, {'photo_id': 1344106836, 'portfolio_id': 21417994}, {'photo_id': 1344106630, 'portfolio_id': 21417994}, {'photo_id': 1344106621, 'portfolio_id': 21417994}, {'photo_id': 1344106617, 'portfolio_id': 21417994}, {'photo_id': 1344106614, 'portfolio_id': 21417994}, {'photo_id': 1344106611, 'portfolio_id': 21417994}, {'photo_id': 1344106607, 'portfolio_id': 21417994}, {'photo_id': 1344106583, 'portfolio_id': 21417994}, {'photo_id': 1344106581, 'portfolio_id': 21417994}, {'photo_id': 1344106578, 'portfolio_id': 21417994}, {'photo_id': 1344106576, 'portfolio_id': 21417994}, {'photo_id': 1344106572, 'portfolio_id': 21417994}, {'photo_id': 1344106559, 'portfolio_id': 21417994}, {'photo_id': 1344106556, 'portfolio_id': 21417994}, {'photo_id': 1344106553, 'portfolio_id': 21417994}, {'photo_id': 1344106551, 'portfolio_id': 21417994}, {'photo_id': 1344106549, 'portfolio_id': 21417994}, {'photo_id': 1344106539, 'portfolio_id': 21417994}, {'photo_id': 1344106538, 'portfolio_id': 21417994}, {'photo_id': 1344106533, 'portfolio_id': 21417994}, {'photo_id': 1344106520, 'portfolio_id': 21417994}, {'photo_id': 1344106513, 'portfolio_id': 21417994}, {'photo_id': 1344106470, 'portfolio_id': 21417994}, {'photo_id': 1344106463, 'portfolio_id': 21417994}, {'photo_id': 1344106460, 'portfolio_id': 21417994}, {'photo_id': 1344106454, 'portfolio_id': 21417994}, {'photo_id': 1344106436, 'portfolio_id': 21417994}, {'photo_id': 1344106426, 'portfolio_id': 21417994}, {'photo_id': 1344106418, 'portfolio_id': 21417994}, {'photo_id': 1344106414, 'portfolio_id': 21417994}, {'photo_id': 1344106413, 'portfolio_id': 21417994}, {'photo_id': 1344106410, 'portfolio_id': 21417994}, {'photo_id': 1344106408, 'portfolio_id': 21417994}, {'photo_id': 1344106406, 'portfolio_id': 21417994}, {'photo_id': 1344106328, 'portfolio_id': 21417994}, {'photo_id': 1344106288, 'portfolio_id': 21417994}, {'photo_id': 1344106285, 'portfolio_id': 21417994}, {'photo_id': 1344106283, 'portfolio_id': 21417994}, {'photo_id': 1344106271, 'portfolio_id': 21417994}, {'photo_id': 1344106266, 'portfolio_id': 21417994}, {'photo_id': 1344106212, 'portfolio_id': 21417994}, {'photo_id': 1344106209, 'portfolio_id': 21417994}, {'photo_id': 1344106204, 'portfolio_id': 21417994}, {'photo_id': 1344106199, 'portfolio_id': 21417994}, {'photo_id': 1344106181, 'portfolio_id': 21417994}, {'photo_id': 1344106176, 'portfolio_id': 21417994}, {'photo_id': 1344106171, 'portfolio_id': 21417994}, {'photo_id': 1344106167, 'portfolio_id': 21417994}, {'photo_id': 1344106163, 'portfolio_id': 21417994}, {'photo_id': 1344106161, 'portfolio_id': 21417994}, {'photo_id': 1344106132, 'portfolio_id': 21417994}, {'photo_id': 1344106128, 'portfolio_id': 21417994}, {'photo_id': 1344106116, 'portfolio_id': 21417994}, {'photo_id': 1344106074, 'portfolio_id': 21417994}, {'photo_id': 1344105815, 'portfolio_id': 21417994}, {'photo_id': 1344105719, 'portfolio_id': 21417994}, {'photo_id': 1344105618, 'portfolio_id': 21417994}, {'photo_id': 1344105505, 'portfolio_id': 21417994}, {'photo_id': 1344105427, 'portfolio_id': 21417994}, {'photo_id': 1344105396, 'portfolio_id': 21417994}, {'photo_id': 1344105314, 'portfolio_id': 21417994}, {'photo_id': 1344105225, 'portfolio_id': 21417994}, {'photo_id': 1344105210, 'portfolio_id': 21417994}, {'photo_id': 1344105202, 'portfolio_id': 21417994}, {'photo_id': 1344105160, 'portfolio_id': 21417994}, {'photo_id': 1344105104, 'portfolio_id': 21417994}, {'photo_id': 1344105062, 'portfolio_id': 21417994}, {'photo_id': 1344105029, 'portfolio_id': 21417994}, {'photo_id': 1344104992, 'portfolio_id': 21417994}, {'photo_id': 1344104896, 'portfolio_id': 21417994}, {'photo_id': 1344104526, 'portfolio_id': 21417994}, {'photo_id': 1344104499, 'portfolio_id': 21417994}, {'photo_id': 1344104467, 'portfolio_id': 21417994}, {'photo_id': 1344104367, 'portfolio_id': 21417994}, {'photo_id': 1344103811, 'portfolio_id': 21417994}, {'photo_id': 1344103782, 'portfolio_id': 21417994}, {'photo_id': 1344103738, 'portfolio_id': 21417994}, {'photo_id': 1344103680, 'portfolio_id': 21417994}, {'photo_id': 1344103625, 'portfolio_id': 21417994}, {'photo_id': 1344103416, 'portfolio_id': 21417994}, {'photo_id': 1344103395, 'portfolio_id': 21417994}, {'photo_id': 1344103371, 'portfolio_id': 21417994}] map_portfolio_id_photo_id: {21417994: [1344107767, 1344107375, 1344107052, 1344106924, 1344106892, 1344106863, 1344106836, 1344106630, 1344106621, 1344106617, 1344106614, 1344106611, 1344106607, 1344106583, 1344106581, 1344106578, 1344106576, 1344106572, 1344106559, 1344106556, 1344106553, 1344106551, 1344106549, 1344106539, 1344106538, 1344106533, 1344106520, 1344106513, 1344106470, 1344106463, 1344106460, 1344106454, 1344106436, 1344106426, 1344106418, 1344106414, 1344106413, 1344106410, 1344106408, 1344106406, 1344106328, 1344106288, 1344106285, 1344106283, 1344106271, 1344106266, 1344106212, 1344106209, 1344106204, 1344106199, 1344106181, 1344106176, 1344106171, 1344106167, 1344106163, 1344106161, 1344106132, 1344106128, 1344106116, 1344106074, 1344105815, 1344105719, 1344105618, 1344105505, 1344105427, 1344105396, 1344105314, 1344105225, 1344105210, 1344105202, 1344105160, 1344105104, 1344105062, 1344105029, 1344104992, 1344104896, 1344104526, 1344104499, 1344104467, 1344104367, 1344103811, 1344103782, 1344103738, 1344103680, 1344103625, 1344103416, 1344103395, 1344103371]} ##### 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.014741659164428711 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Mar 14 10:22: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 (21417994) 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 : 21417994 get user id for portfolio 21417994 get sub ptf for main ptf 21417994, type 3726 and hashtags ['kraft', 'environnement', 'papier', 'Teint_Dans_La_Masse', 'plastique', 'mal_croppe', 'autre_refus', 'metal', 'cartonnette', 'Carton_brun', 'Carton_gris', 'flou'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21417994 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','papier','Teint_Dans_La_Masse','plastique','mal_croppe','autre_refus','metal','cartonnette','Carton_brun','Carton_gris','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21417994 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','papier','Teint_Dans_La_Masse','plastique','mal_croppe','autre_refus','metal','cartonnette','Carton_brun','Carton_gris','flou')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 21417994, 'sub_port_id': 21418039, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990132, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 26)}, 'papier': {'main_port_id': 21417994, 'sub_port_id': 21418040, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990133, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 26)}, 'kraft': {'main_port_id': 21417994, 'sub_port_id': 21418041, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990134, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 26)}, 'metal': {'main_port_id': 21417994, 'sub_port_id': 21418042, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990135, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 26)}, 'plastique': {'main_port_id': 21417994, 'sub_port_id': 21418043, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990136, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 26)}, 'mal_croppe': {'main_port_id': 21417994, 'sub_port_id': 21418044, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990137, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 26)}, 'environnement': {'main_port_id': 21417994, 'sub_port_id': 21418045, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990138, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 26)}, 'Carton_gris': {'main_port_id': 21417994, 'sub_port_id': 21418046, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990139, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 26)}, 'autre_refus': {'main_port_id': 21417994, 'sub_port_id': 21418047, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990140, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 26)}, 'cartonnette': {'main_port_id': 21417994, 'sub_port_id': 21418048, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990141, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 21417994, 'sub_port_id': 21418049, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990142, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 26)}, 'flou': {'main_port_id': 21417994, 'sub_port_id': 21418050, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990143, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21418039 , 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=21417994 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 (21418039) result : ((1344104762,), (1344104763,), (1344104764,), (1344104766,), (1344105675,), (1344105676,), (1344106114,), (1344106115,), (1344106227,), (1344106228,), (1344106356,), (1344106518,), (1344107112,), (1344107194,), (1344107195,), (1344107196,), (1344107276,), (1344107277,), (1344107339,), (1344107340,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417994) result : ((1344103371,), (1344103395,), (1344103416,), (1344103625,), (1344103680,), (1344103738,), (1344103782,), (1344103811,), (1344104367,), (1344104467,), (1344104499,), (1344104526,), (1344104896,), (1344104992,), (1344105029,), (1344105062,), (1344105104,), (1344105160,), (1344105202,), (1344105210,), (1344105225,), (1344105314,), (1344105396,), (1344105427,), (1344105505,), (1344105618,), (1344105719,), (1344105815,), (1344106074,), (1344106116,), (1344106128,), (1344106132,), (1344106161,), (1344106163,), (1344106167,), (1344106171,), (1344106176,), (1344106181,), (1344106199,), (1344106204,), (1344106209,), (1344106212,), (1344106266,), (1344106271,), (1344106283,), (1344106285,), (1344106288,), (1344106328,), (1344106406,), (1344106408,), (1344106410,), (1344106413,), (1344106414,), (1344106418,), (1344106426,), (1344106436,), (1344106454,), (1344106460,), (1344106463,), (1344106470,), (1344106513,), (1344106520,), (1344106533,), (1344106538,), (1344106539,), (1344106549,), (1344106551,), (1344106553,), (1344106556,), (1344106559,), (1344106572,), (1344106576,), (1344106578,), (1344106581,), (1344106583,), (1344106607,), (1344106611,), (1344106614,), (1344106617,), (1344106621,), (1344106630,), (1344106836,), (1344106863,), (1344106892,), (1344106924,), (1344107052,), (1344107375,), (1344107767,)) 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 21418040 , 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=21417994 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 (21418040) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417994) result : ((1344103371,), (1344103395,), (1344103416,), (1344103625,), (1344103680,), (1344103738,), (1344103782,), (1344103811,), (1344104367,), (1344104467,), (1344104499,), (1344104526,), (1344104896,), (1344104992,), (1344105029,), (1344105062,), (1344105104,), (1344105160,), (1344105202,), (1344105210,), (1344105225,), (1344105314,), (1344105396,), (1344105427,), (1344105505,), (1344105618,), (1344105719,), (1344105815,), (1344106074,), (1344106116,), (1344106128,), (1344106132,), (1344106161,), (1344106163,), (1344106167,), (1344106171,), (1344106176,), (1344106181,), (1344106199,), (1344106204,), (1344106209,), (1344106212,), (1344106266,), (1344106271,), (1344106283,), (1344106285,), (1344106288,), (1344106328,), (1344106406,), (1344106408,), (1344106410,), (1344106413,), (1344106414,), (1344106418,), (1344106426,), (1344106436,), (1344106454,), (1344106460,), (1344106463,), (1344106470,), (1344106513,), (1344106520,), (1344106533,), (1344106538,), (1344106539,), (1344106549,), (1344106551,), (1344106553,), (1344106556,), (1344106559,), (1344106572,), (1344106576,), (1344106578,), (1344106581,), (1344106583,), (1344106607,), (1344106611,), (1344106614,), (1344106617,), (1344106621,), (1344106630,), (1344106836,), (1344106863,), (1344106892,), (1344106924,), (1344107052,), (1344107375,), (1344107767,)) 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 21418041 , 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=21417994 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 (21418041) result : ((1344106077,), (1344106230,), (1344106534,), (1344107376,), (1344107377,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417994) result : ((1344103371,), (1344103395,), (1344103416,), (1344103625,), (1344103680,), (1344103738,), (1344103782,), (1344103811,), (1344104367,), (1344104467,), (1344104499,), (1344104526,), (1344104896,), (1344104992,), (1344105029,), (1344105062,), (1344105104,), (1344105160,), (1344105202,), (1344105210,), (1344105225,), (1344105314,), (1344105396,), (1344105427,), (1344105505,), (1344105618,), (1344105719,), (1344105815,), (1344106074,), (1344106116,), (1344106128,), (1344106132,), (1344106161,), (1344106163,), (1344106167,), (1344106171,), (1344106176,), (1344106181,), (1344106199,), (1344106204,), (1344106209,), (1344106212,), (1344106266,), (1344106271,), (1344106283,), (1344106285,), (1344106288,), (1344106328,), (1344106406,), (1344106408,), (1344106410,), (1344106413,), (1344106414,), (1344106418,), (1344106426,), (1344106436,), (1344106454,), (1344106460,), (1344106463,), (1344106470,), (1344106513,), (1344106520,), (1344106533,), (1344106538,), (1344106539,), (1344106549,), (1344106551,), (1344106553,), (1344106556,), (1344106559,), (1344106572,), (1344106576,), (1344106578,), (1344106581,), (1344106583,), (1344106607,), (1344106611,), (1344106614,), (1344106617,), (1344106621,), (1344106630,), (1344106836,), (1344106863,), (1344106892,), (1344106924,), (1344107052,), (1344107375,), (1344107767,)) 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 21418042 , 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=21417994 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 (21418042) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417994) result : ((1344103371,), (1344103395,), (1344103416,), (1344103625,), (1344103680,), (1344103738,), (1344103782,), (1344103811,), (1344104367,), (1344104467,), (1344104499,), (1344104526,), (1344104896,), (1344104992,), (1344105029,), (1344105062,), (1344105104,), (1344105160,), (1344105202,), (1344105210,), (1344105225,), (1344105314,), (1344105396,), (1344105427,), (1344105505,), (1344105618,), (1344105719,), (1344105815,), (1344106074,), (1344106116,), (1344106128,), (1344106132,), (1344106161,), (1344106163,), (1344106167,), (1344106171,), (1344106176,), (1344106181,), (1344106199,), (1344106204,), (1344106209,), (1344106212,), (1344106266,), (1344106271,), (1344106283,), (1344106285,), (1344106288,), (1344106328,), (1344106406,), (1344106408,), (1344106410,), (1344106413,), (1344106414,), (1344106418,), (1344106426,), (1344106436,), (1344106454,), (1344106460,), (1344106463,), (1344106470,), (1344106513,), (1344106520,), (1344106533,), (1344106538,), (1344106539,), (1344106549,), (1344106551,), (1344106553,), (1344106556,), (1344106559,), (1344106572,), (1344106576,), (1344106578,), (1344106581,), (1344106583,), (1344106607,), (1344106611,), (1344106614,), (1344106617,), (1344106621,), (1344106630,), (1344106836,), (1344106863,), (1344106892,), (1344106924,), (1344107052,), (1344107375,), (1344107767,)) 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 21418043 , 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=21417994 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 (21418043) result : ((1344106066,), (1344106068,), (1344106070,), (1344106120,), (1344106229,), (1344106362,), (1344106667,), (1344107197,), (1344107279,), (1344107280,), (1344107342,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417994) result : ((1344103371,), (1344103395,), (1344103416,), (1344103625,), (1344103680,), (1344103738,), (1344103782,), (1344103811,), (1344104367,), (1344104467,), (1344104499,), (1344104526,), (1344104896,), (1344104992,), (1344105029,), (1344105062,), (1344105104,), (1344105160,), (1344105202,), (1344105210,), (1344105225,), (1344105314,), (1344105396,), (1344105427,), (1344105505,), (1344105618,), (1344105719,), (1344105815,), (1344106074,), (1344106116,), (1344106128,), (1344106132,), (1344106161,), (1344106163,), (1344106167,), (1344106171,), (1344106176,), (1344106181,), (1344106199,), (1344106204,), (1344106209,), (1344106212,), (1344106266,), (1344106271,), (1344106283,), (1344106285,), (1344106288,), (1344106328,), (1344106406,), (1344106408,), (1344106410,), (1344106413,), (1344106414,), (1344106418,), (1344106426,), (1344106436,), (1344106454,), (1344106460,), (1344106463,), (1344106470,), (1344106513,), (1344106520,), (1344106533,), (1344106538,), (1344106539,), (1344106549,), (1344106551,), (1344106553,), (1344106556,), (1344106559,), (1344106572,), (1344106576,), (1344106578,), (1344106581,), (1344106583,), (1344106607,), (1344106611,), (1344106614,), (1344106617,), (1344106621,), (1344106630,), (1344106836,), (1344106863,), (1344106892,), (1344106924,), (1344107052,), (1344107375,), (1344107767,)) 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 21418044 , 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=21417994 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 (21418044) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417994) result : ((1344103371,), (1344103395,), (1344103416,), (1344103625,), (1344103680,), (1344103738,), (1344103782,), (1344103811,), (1344104367,), (1344104467,), (1344104499,), (1344104526,), (1344104896,), (1344104992,), (1344105029,), (1344105062,), (1344105104,), (1344105160,), (1344105202,), (1344105210,), (1344105225,), (1344105314,), (1344105396,), (1344105427,), (1344105505,), (1344105618,), (1344105719,), (1344105815,), (1344106074,), (1344106116,), (1344106128,), (1344106132,), (1344106161,), (1344106163,), (1344106167,), (1344106171,), (1344106176,), (1344106181,), (1344106199,), (1344106204,), (1344106209,), (1344106212,), (1344106266,), (1344106271,), (1344106283,), (1344106285,), (1344106288,), (1344106328,), (1344106406,), (1344106408,), (1344106410,), (1344106413,), (1344106414,), (1344106418,), (1344106426,), (1344106436,), (1344106454,), (1344106460,), (1344106463,), (1344106470,), (1344106513,), (1344106520,), (1344106533,), (1344106538,), (1344106539,), (1344106549,), (1344106551,), (1344106553,), (1344106556,), (1344106559,), (1344106572,), (1344106576,), (1344106578,), (1344106581,), (1344106583,), (1344106607,), (1344106611,), (1344106614,), (1344106617,), (1344106621,), (1344106630,), (1344106836,), (1344106863,), (1344106892,), (1344106924,), (1344107052,), (1344107375,), (1344107767,)) 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 21418045 , 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=21417994 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 (21418045) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417994) result : ((1344103371,), (1344103395,), (1344103416,), (1344103625,), (1344103680,), (1344103738,), (1344103782,), (1344103811,), (1344104367,), (1344104467,), (1344104499,), (1344104526,), (1344104896,), (1344104992,), (1344105029,), (1344105062,), (1344105104,), (1344105160,), (1344105202,), (1344105210,), (1344105225,), (1344105314,), (1344105396,), (1344105427,), (1344105505,), (1344105618,), (1344105719,), (1344105815,), (1344106074,), (1344106116,), (1344106128,), (1344106132,), (1344106161,), (1344106163,), (1344106167,), (1344106171,), (1344106176,), (1344106181,), (1344106199,), (1344106204,), (1344106209,), (1344106212,), (1344106266,), (1344106271,), (1344106283,), (1344106285,), (1344106288,), (1344106328,), (1344106406,), (1344106408,), (1344106410,), (1344106413,), (1344106414,), (1344106418,), (1344106426,), (1344106436,), (1344106454,), (1344106460,), (1344106463,), (1344106470,), (1344106513,), (1344106520,), (1344106533,), (1344106538,), (1344106539,), (1344106549,), (1344106551,), (1344106553,), (1344106556,), (1344106559,), (1344106572,), (1344106576,), (1344106578,), (1344106581,), (1344106583,), (1344106607,), (1344106611,), (1344106614,), (1344106617,), (1344106621,), (1344106630,), (1344106836,), (1344106863,), (1344106892,), (1344106924,), (1344107052,), (1344107375,), (1344107767,)) 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 21418046 , 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=21417994 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 (21418046) result : ((1344104731,), (1344104732,), (1344106041,), (1344106220,), (1344106221,), (1344106222,), (1344106516,), (1344106527,), (1344106528,), (1344106529,), (1344106663,), (1344106664,), (1344106665,), (1344106666,), (1344107142,), (1344107143,), (1344107144,), (1344107190,), (1344107191,), (1344107192,), (1344107193,), (1344107275,), (1344107330,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417994) result : ((1344103371,), (1344103395,), (1344103416,), (1344103625,), (1344103680,), (1344103738,), (1344103782,), (1344103811,), (1344104367,), (1344104467,), (1344104499,), (1344104526,), (1344104896,), (1344104992,), (1344105029,), (1344105062,), (1344105104,), (1344105160,), (1344105202,), (1344105210,), (1344105225,), (1344105314,), (1344105396,), (1344105427,), (1344105505,), (1344105618,), (1344105719,), (1344105815,), (1344106074,), (1344106116,), (1344106128,), (1344106132,), (1344106161,), (1344106163,), (1344106167,), (1344106171,), (1344106176,), (1344106181,), (1344106199,), (1344106204,), (1344106209,), (1344106212,), (1344106266,), (1344106271,), (1344106283,), (1344106285,), (1344106288,), (1344106328,), (1344106406,), (1344106408,), (1344106410,), (1344106413,), (1344106414,), (1344106418,), (1344106426,), (1344106436,), (1344106454,), (1344106460,), (1344106463,), (1344106470,), (1344106513,), (1344106520,), (1344106533,), (1344106538,), (1344106539,), (1344106549,), (1344106551,), (1344106553,), (1344106556,), (1344106559,), (1344106572,), (1344106576,), (1344106578,), (1344106581,), (1344106583,), (1344106607,), (1344106611,), (1344106614,), (1344106617,), (1344106621,), (1344106630,), (1344106836,), (1344106863,), (1344106892,), (1344106924,), (1344107052,), (1344107375,), (1344107767,)) 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 21418047 , 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=21417994 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 (21418047) result : ((1344104712,), (1344104713,), (1344104714,), (1344104716,), (1344104717,), (1344105656,), (1344106011,), (1344106015,), (1344106112,), (1344106113,), (1344106200,), (1344106214,), (1344106215,), (1344106216,), (1344106217,), (1344106218,), (1344106219,), (1344106272,), (1344106273,), (1344106274,), (1344106275,), (1344106276,), (1344106344,), (1344106345,), (1344106346,), (1344106347,), (1344106348,), (1344106511,), (1344106512,), (1344106519,), (1344106522,), (1344106523,), (1344106524,), (1344106525,), (1344106526,), (1344106622,), (1344106623,), (1344106624,), (1344106625,), (1344106626,), (1344106627,), (1344106658,), (1344106659,), (1344106660,), (1344107100,), (1344107139,), (1344107140,), (1344107141,), (1344107271,), (1344107272,), (1344107273,), (1344107323,), (1344107324,), (1344107325,), (1344107326,), (1344107327,), (1344107328,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417994) result : ((1344103371,), (1344103395,), (1344103416,), (1344103625,), (1344103680,), (1344103738,), (1344103782,), (1344103811,), (1344104367,), (1344104467,), (1344104499,), (1344104526,), (1344104896,), (1344104992,), (1344105029,), (1344105062,), (1344105104,), (1344105160,), (1344105202,), (1344105210,), (1344105225,), (1344105314,), (1344105396,), (1344105427,), (1344105505,), (1344105618,), (1344105719,), (1344105815,), (1344106074,), (1344106116,), (1344106128,), (1344106132,), (1344106161,), (1344106163,), (1344106167,), (1344106171,), (1344106176,), (1344106181,), (1344106199,), (1344106204,), (1344106209,), (1344106212,), (1344106266,), (1344106271,), (1344106283,), (1344106285,), (1344106288,), (1344106328,), (1344106406,), (1344106408,), (1344106410,), (1344106413,), (1344106414,), (1344106418,), (1344106426,), (1344106436,), (1344106454,), (1344106460,), (1344106463,), (1344106470,), (1344106513,), (1344106520,), (1344106533,), (1344106538,), (1344106539,), (1344106549,), (1344106551,), (1344106553,), (1344106556,), (1344106559,), (1344106572,), (1344106576,), (1344106578,), (1344106581,), (1344106583,), (1344106607,), (1344106611,), (1344106614,), (1344106617,), (1344106621,), (1344106630,), (1344106836,), (1344106863,), (1344106892,), (1344106924,), (1344107052,), (1344107375,), (1344107767,)) 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 21418048 , 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=21417994 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 (21418048) result : ((1344104744,), (1344106055,), (1344106278,), (1344106279,), (1344106280,), (1344106281,), (1344106351,), (1344106352,), (1344106353,), (1344106517,), (1344106530,), (1344107108,), (1344107153,), (1344107154,), (1344107155,), (1344107333,), (1344107334,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417994) result : ((1344103371,), (1344103395,), (1344103416,), (1344103625,), (1344103680,), (1344103738,), (1344103782,), (1344103811,), (1344104367,), (1344104467,), (1344104499,), (1344104526,), (1344104896,), (1344104992,), (1344105029,), (1344105062,), (1344105104,), (1344105160,), (1344105202,), (1344105210,), (1344105225,), (1344105314,), (1344105396,), (1344105427,), (1344105505,), (1344105618,), (1344105719,), (1344105815,), (1344106074,), (1344106116,), (1344106128,), (1344106132,), (1344106161,), (1344106163,), (1344106167,), (1344106171,), (1344106176,), (1344106181,), (1344106199,), (1344106204,), (1344106209,), (1344106212,), (1344106266,), (1344106271,), (1344106283,), (1344106285,), (1344106288,), (1344106328,), (1344106406,), (1344106408,), (1344106410,), (1344106413,), (1344106414,), (1344106418,), (1344106426,), (1344106436,), (1344106454,), (1344106460,), (1344106463,), (1344106470,), (1344106513,), (1344106520,), (1344106533,), (1344106538,), (1344106539,), (1344106549,), (1344106551,), (1344106553,), (1344106556,), (1344106559,), (1344106572,), (1344106576,), (1344106578,), (1344106581,), (1344106583,), (1344106607,), (1344106611,), (1344106614,), (1344106617,), (1344106621,), (1344106630,), (1344106836,), (1344106863,), (1344106892,), (1344106924,), (1344107052,), (1344107375,), (1344107767,)) 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 21418049 , 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=21417994 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 (21418049) result : ((1344104688,), (1344105640,), (1344105978,), (1344105983,), (1344106106,), (1344106210,), (1344106269,), (1344106270,), (1344106342,), (1344106618,), (1344106619,), (1344106620,), (1344106651,), (1344106652,), (1344106653,), (1344106654,), (1344106656,), (1344106657,), (1344107098,), (1344107137,), (1344107270,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417994) result : ((1344103371,), (1344103395,), (1344103416,), (1344103625,), (1344103680,), (1344103738,), (1344103782,), (1344103811,), (1344104367,), (1344104467,), (1344104499,), (1344104526,), (1344104896,), (1344104992,), (1344105029,), (1344105062,), (1344105104,), (1344105160,), (1344105202,), (1344105210,), (1344105225,), (1344105314,), (1344105396,), (1344105427,), (1344105505,), (1344105618,), (1344105719,), (1344105815,), (1344106074,), (1344106116,), (1344106128,), (1344106132,), (1344106161,), (1344106163,), (1344106167,), (1344106171,), (1344106176,), (1344106181,), (1344106199,), (1344106204,), (1344106209,), (1344106212,), (1344106266,), (1344106271,), (1344106283,), (1344106285,), (1344106288,), (1344106328,), (1344106406,), (1344106408,), (1344106410,), (1344106413,), (1344106414,), (1344106418,), (1344106426,), (1344106436,), (1344106454,), (1344106460,), (1344106463,), (1344106470,), (1344106513,), (1344106520,), (1344106533,), (1344106538,), (1344106539,), (1344106549,), (1344106551,), (1344106553,), (1344106556,), (1344106559,), (1344106572,), (1344106576,), (1344106578,), (1344106581,), (1344106583,), (1344106607,), (1344106611,), (1344106614,), (1344106617,), (1344106621,), (1344106630,), (1344106836,), (1344106863,), (1344106892,), (1344106924,), (1344107052,), (1344107375,), (1344107767,)) 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 21418050 , 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=21417994 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 (21418050) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417994) result : ((1344103371,), (1344103395,), (1344103416,), (1344103625,), (1344103680,), (1344103738,), (1344103782,), (1344103811,), (1344104367,), (1344104467,), (1344104499,), (1344104526,), (1344104896,), (1344104992,), (1344105029,), (1344105062,), (1344105104,), (1344105160,), (1344105202,), (1344105210,), (1344105225,), (1344105314,), (1344105396,), (1344105427,), (1344105505,), (1344105618,), (1344105719,), (1344105815,), (1344106074,), (1344106116,), (1344106128,), (1344106132,), (1344106161,), (1344106163,), (1344106167,), (1344106171,), (1344106176,), (1344106181,), (1344106199,), (1344106204,), (1344106209,), (1344106212,), (1344106266,), (1344106271,), (1344106283,), (1344106285,), (1344106288,), (1344106328,), (1344106406,), (1344106408,), (1344106410,), (1344106413,), (1344106414,), (1344106418,), (1344106426,), (1344106436,), (1344106454,), (1344106460,), (1344106463,), (1344106470,), (1344106513,), (1344106520,), (1344106533,), (1344106538,), (1344106539,), (1344106549,), (1344106551,), (1344106553,), (1344106556,), (1344106559,), (1344106572,), (1344106576,), (1344106578,), (1344106581,), (1344106583,), (1344106607,), (1344106611,), (1344106614,), (1344106617,), (1344106621,), (1344106630,), (1344106836,), (1344106863,), (1344106892,), (1344106924,), (1344107052,), (1344107375,), (1344107767,)) 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`=21417994 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','papier','Teint_Dans_La_Masse','plastique','mal_croppe','autre_refus','metal','cartonnette','Carton_brun','Carton_gris','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21417994 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','papier','Teint_Dans_La_Masse','plastique','mal_croppe','autre_refus','metal','cartonnette','Carton_brun','Carton_gris','flou')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 21417994, 'sub_port_id': 21418052, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990144, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 32)}, 'papier': {'main_port_id': 21417994, 'sub_port_id': 21418053, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990145, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 32)}, 'kraft': {'main_port_id': 21417994, 'sub_port_id': 21418054, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990146, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 32)}, 'metal': {'main_port_id': 21417994, 'sub_port_id': 21418055, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990147, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 32)}, 'plastique': {'main_port_id': 21417994, 'sub_port_id': 21418056, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990148, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 32)}, 'mal_croppe': {'main_port_id': 21417994, 'sub_port_id': 21418057, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990149, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 32)}, 'environnement': {'main_port_id': 21417994, 'sub_port_id': 21418058, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990150, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 32)}, 'Carton_gris': {'main_port_id': 21417994, 'sub_port_id': 21418059, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990151, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 32)}, 'autre_refus': {'main_port_id': 21417994, 'sub_port_id': 21418060, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990152, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 32)}, 'cartonnette': {'main_port_id': 21417994, 'sub_port_id': 21418061, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990153, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 21417994, 'sub_port_id': 21418062, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990154, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 4, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 32)}, 'flou': {'main_port_id': 21417994, 'sub_port_id': 21418063, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13990155, 'last_updated_at': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 10, 4, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21418052,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21418039 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21418053,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21418040 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21418054,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21418041 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21418055,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21418042 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21418056,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21418043 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21418057,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21418044 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21418058,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21418045 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21418059,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21418046 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21418060,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21418047 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21418061,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21418048 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21418062,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21418049 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21418063,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21418050 lien utilise dans velours : https://www.fotonower.com/velours/21418052,21418053,21418054,21418055,21418056,21418057,21418058,21418059,21418060,21418061,21418062,21418063?tags=Carton_brun,papier,kraft,metal,plastique,mal_croppe,environnement,Carton_gris,autre_refus,cartonnette,Teint_Dans_La_Masse,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21417994]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1344107767] map_info['map_portfolio_photo'] : {21417994: [1344107767, 1344107375, 1344107052, 1344106924, 1344106892, 1344106863, 1344106836, 1344106630, 1344106621, 1344106617, 1344106614, 1344106611, 1344106607, 1344106583, 1344106581, 1344106578, 1344106576, 1344106572, 1344106559, 1344106556, 1344106553, 1344106551, 1344106549, 1344106539, 1344106538, 1344106533, 1344106520, 1344106513, 1344106470, 1344106463, 1344106460, 1344106454, 1344106436, 1344106426, 1344106418, 1344106414, 1344106413, 1344106410, 1344106408, 1344106406, 1344106328, 1344106288, 1344106285, 1344106283, 1344106271, 1344106266, 1344106212, 1344106209, 1344106204, 1344106199, 1344106181, 1344106176, 1344106171, 1344106167, 1344106163, 1344106161, 1344106132, 1344106128, 1344106116, 1344106074, 1344105815, 1344105719, 1344105618, 1344105505, 1344105427, 1344105396, 1344105314, 1344105225, 1344105210, 1344105202, 1344105160, 1344105104, 1344105062, 1344105029, 1344104992, 1344104896, 1344104526, 1344104499, 1344104467, 1344104367, 1344103811, 1344103782, 1344103738, 1344103680, 1344103625, 1344103416, 1344103395, 1344103371]} final : False mtd_id 4302 list_pids : [1344107767] Looping around the photos to save general results len do output : 1 /21417994. 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, '2668556') ('4302', '21417994', '1344107767', None, None, None, None, None, '2668556') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '21417994', "{'Carton_brun': 21418039, 'papier': 21418040, 'kraft': 21418041, 'metal': 21418042, 'plastique': 21418043, 'mal_croppe': 21418044, 'environnement': 21418045, 'Carton_gris': 21418046, 'autre_refus': 21418047, 'cartonnette': 21418048, 'Teint_Dans_La_Masse': 21418049, 'flou': 21418050}", None, None, None, None, '2668556'), ('4302', '21417994', '1344107767', None, None, None, None, None, '2668556')] time used for this insertion : 0.011640310287475586 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4568724632263184 time spend to save output : 0.011949300765991211 total time spend for step 1 : 1.4688217639923096 step2:final Fri Mar 14 10:22:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (21417994) 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 21417994 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1344103416,1344103395,1344103371,1344103811,1344103782,1344103738,1344103680,1344103625,1344104526,1344104499,1344104467,1344104367,1344105815,1344105427,1344105719,1344105314,1344105618,1344105225,1344105505,1344105210,1344105396,1344104896,1344105202,1344105160,1344105104,1344105062,1344105029,1344104992,1344106132,1344106128,1344106116,1344106074,1344106181,1344106176,1344106171,1344106167,1344106163,1344106161,1344106212,1344106209,1344106204,1344106199,1344106288,1344106285,1344106283,1344106271,1344106266,1344106559,1344106418,1344106556,1344106414,1344106553,1344106410,1344106551,1344106408,1344106406,1344106549,1344106463,1344106328,1344106460,1344106454,1344106436,1344106426,1344106413,1344106539,1344106538,1344106533,1344106520,1344106513,1344106470,1344106583,1344106581,1344106578,1344106576,1344106572,1344106630,1344106621,1344106617,1344106614,1344106611,1344106607,1344107052,1344106924,1344106892,1344106863,1344106836,1344107375,1344107767); 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([21417994]) Inside saveOutput : final : False verbose : True original output for save of step final : {1344107767: ('0.08443786554269565',)} new output for save of step final : {1344107767: ('0.08443786554269565',)} [1344107767] map_info['map_portfolio_photo'] : {21417994: [1344107767, 1344107375, 1344107052, 1344106924, 1344106892, 1344106863, 1344106836, 1344106630, 1344106621, 1344106617, 1344106614, 1344106611, 1344106607, 1344106583, 1344106581, 1344106578, 1344106576, 1344106572, 1344106559, 1344106556, 1344106553, 1344106551, 1344106549, 1344106539, 1344106538, 1344106533, 1344106520, 1344106513, 1344106470, 1344106463, 1344106460, 1344106454, 1344106436, 1344106426, 1344106418, 1344106414, 1344106413, 1344106410, 1344106408, 1344106406, 1344106328, 1344106288, 1344106285, 1344106283, 1344106271, 1344106266, 1344106212, 1344106209, 1344106204, 1344106199, 1344106181, 1344106176, 1344106171, 1344106167, 1344106163, 1344106161, 1344106132, 1344106128, 1344106116, 1344106074, 1344105815, 1344105719, 1344105618, 1344105505, 1344105427, 1344105396, 1344105314, 1344105225, 1344105210, 1344105202, 1344105160, 1344105104, 1344105062, 1344105029, 1344104992, 1344104896, 1344104526, 1344104499, 1344104467, 1344104367, 1344103811, 1344103782, 1344103738, 1344103680, 1344103625, 1344103416, 1344103395, 1344103371]} final : False mtd_id 4302 list_pids : [1344107767] Looping around the photos to save general results len do output : 1 /1344107767.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, '2668556') ('4302', '21417994', '1344107767', None, None, None, None, None, '2668556') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '21417994', '1344107767', '0.08443786554269565', None, None, None, None, '2668556')] time used for this insertion : 0.011869192123413086 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0691380500793457 time spend to save output : 0.012081384658813477 total time spend for step 2 : 0.08121943473815918 step3:velours_tree Fri Mar 14 10:22:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {21417994: [{'Carton_brun': 21418039, 'papier': 21418040, 'kraft': 21418041, 'metal': 21418042, 'plastique': 21418043, 'mal_croppe': 21418044, 'environnement': 21418045, 'Carton_gris': 21418046, 'autre_refus': 21418047, 'cartonnette': 21418048, 'Teint_Dans_La_Masse': 21418049, 'flou': 21418050}]} input_args_next_step : {21417994: ()} output_args : {21417994: [{'Carton_brun': 21418039, 'papier': 21418040, 'kraft': 21418041, 'metal': 21418042, 'plastique': 21418043, 'mal_croppe': 21418044, 'environnement': 21418045, 'Carton_gris': 21418046, 'autre_refus': 21418047, 'cartonnette': 21418048, 'Teint_Dans_La_Masse': 21418049, 'flou': 21418050}]} args : 21417994 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 : ({'Carton_brun': 21418039, 'papier': 21418040, 'kraft': 21418041, 'metal': 21418042, 'plastique': 21418043, 'mal_croppe': 21418044, 'environnement': 21418045, 'Carton_gris': 21418046, 'autre_refus': 21418047, 'cartonnette': 21418048, 'Teint_Dans_La_Masse': 21418049, 'flou': 21418050},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21417994) 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([21417994]) 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.33002495765686035 time spend to save output : 6.270408630371094e-05 total time spend for step 3 : 0.33008766174316406 step4:send_mail_cod Fri Mar 14 10:22:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1344107767: ('0.08443786554269565',)} input_args_next_step : {1344107767: ()} output_args : {1344107767: ('0.08443786554269565',)} args : 1344107767 depend.output_id : 0 complete output_args for input 3 : {21417994: [{'Carton_brun': 21418039, 'papier': 21418040, 'kraft': 21418041, 'metal': 21418042, 'plastique': 21418043, 'mal_croppe': 21418044, 'environnement': 21418045, 'Carton_gris': 21418046, 'autre_refus': 21418047, 'cartonnette': 21418048, 'Teint_Dans_La_Masse': 21418049, 'flou': 21418050}]} input_args_next_step : {1344107767: ('0.08443786554269565',), 21417994: ()} output_args : {21417994: [{'Carton_brun': 21418039, 'papier': 21418040, 'kraft': 21418041, 'metal': 21418042, 'plastique': 21418043, 'mal_croppe': 21418044, 'environnement': 21418045, 'Carton_gris': 21418046, 'autre_refus': 21418047, 'cartonnette': 21418048, 'Teint_Dans_La_Masse': 21418049, 'flou': 21418050}]} args : 21417994 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 :2, first value : ('0.08443786554269565',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21417994) 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 (1344107767) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1344107767 download finish for photo 1344107767 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 : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P21417994_14-03-2025_10_22_59.pdf 21418041 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=21418041 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344106077: '1741943187_1211512_1344104467_9cbd684b5737fd43b69141069ee9b331_rle_crop_3711708805_0.png', 1344106230: '1741943307_1214595_1344105160_494171ec729edff964645a6db2e7c0a1_rle_crop_3711710842_0.png', 1344106534: '1741943545_1218610_1344106271_45169e4ffef9cf15af2d983709b84ed6_rle_crop_3711713188_0.png', 1344107376: '1741943851_360418_1344106924_72368d5a972671f10d70ab2aba09e552_rle_crop_3711716624_0.png', 1344107377: '1741943851_360418_1344106924_72368d5a972671f10d70ab2aba09e552_rle_crop_3711716613_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e347082a2d4213eaffc8f9f923c80482_73044901.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0317b7c71bb63db31fcec416b059e643_4978736.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e899d90657fd323c45077c4453649683_99426005.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/36f6147bfd861374f990ac58b79756e9_20303015.png change filename to text .imagette214180411741944179/ imagette214180411741944179/1741943307_1214595_1344105160_494171ec729edff964645a6db2e7c0a1_rle_crop_3711710842_0.png.png imagette214180411741944179/1741943545_1218610_1344106271_45169e4ffef9cf15af2d983709b84ed6_rle_crop_3711713188_0.png.png imagette214180411741944179/1741943851_360418_1344106924_72368d5a972671f10d70ab2aba09e552_rle_crop_3711716613_0.png.png imagette214180411741944179/1741943187_1211512_1344104467_9cbd684b5737fd43b69141069ee9b331_rle_crop_3711708805_0.png.png imagette214180411741944179/1741943851_360418_1344106924_72368d5a972671f10d70ab2aba09e552_rle_crop_3711716624_0.png.png imagette214180421741944180/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/4dff1d2b5a6f830c4ae685a9a7426002_52878530.png imagette214180411741944179 21418042 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=21418042 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214180421741944180 21418043 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=21418043 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344106066: '1741943187_1211512_1344104499_939ce30a4f0985798b147ec11e114a10_rle_crop_3711708799_0.png', 1344106068: '1741943187_1211512_1344104467_9cbd684b5737fd43b69141069ee9b331_rle_crop_3711708818_0.png', 1344106070: '1741943187_1211512_1344104467_9cbd684b5737fd43b69141069ee9b331_rle_crop_3711708806_0.png', 1344106120: '1741943190_353432_1344103395_dad25da913ed2bac3116391316de5cc3_rle_crop_3711708857_0.png', 1344106229: '1741943307_1214595_1344105029_f5f2177b29cdd7ba50e8f649eed76413_rle_crop_3711711099_0.png', 1344106362: '1741943393_355409_1344106176_1b58c3c20828dd385e6592c250ddd802_rle_crop_3711711823_0.png', 1344106667: '1741943671_358253_1344106454_4868c4f19e24153802daa71da76be0bf_rle_crop_3711713843_0.png', 1344107197: '1741943666_1220627_1344106410_ca564155af5372c980608f9e1a106bbe_rle_crop_3711713743_0.png', 1344107279: '1741943652_357870_1344106470_78901ebaccb7a301e6eb7eea97fdaf83_rle_crop_3711715001_0.png', 1344107280: '1741943652_357870_1344106470_78901ebaccb7a301e6eb7eea97fdaf83_rle_crop_3711714996_0.png', 1344107342: '1741943851_360418_1344106924_72368d5a972671f10d70ab2aba09e552_rle_crop_3711716617_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ff7ab940344c129f37f39b173c6ddddb_83315292.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/955119f2753e81a1030f93817956bb25_25872236.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/cb44757fc507107adc17bbce88000fa9_93735483.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/abd9a5f4ee596a226dd9be1e9e6249f7_11929976.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/78a4daec9868975bb2f1cd66e93be2ac_46455487.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/fe40ffa119c19fb2b9bf251ef8f66cb1_37528324.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/dff6c3bfcd86fcca5c49c05d79d5b926_44770160.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8beb5ab5a27563e39fcb8c34ec201162_25315541.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d6f07e631fc4b3bfa9b3cedc350b1a6a_85349367.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/958036fd222e6c66d9f5a54f2ebb6572_9824516.png change filename to text .imagette214180431741944180/ imagette214180431741944180/1741943652_357870_1344106470_78901ebaccb7a301e6eb7eea97fdaf83_rle_crop_3711714996_0.png.png imagette214180431741944180/1741943307_1214595_1344105029_f5f2177b29cdd7ba50e8f649eed76413_rle_crop_3711711099_0.png.png imagette214180431741944180/1741943393_355409_1344106176_1b58c3c20828dd385e6592c250ddd802_rle_crop_3711711823_0.png.png imagette214180431741944180/1741943652_357870_1344106470_78901ebaccb7a301e6eb7eea97fdaf83_rle_crop_3711715001_0.png.png imagette214180431741944180/1741943187_1211512_1344104499_939ce30a4f0985798b147ec11e114a10_rle_crop_3711708799_0.png.png imagette214180431741944180/1741943671_358253_1344106454_4868c4f19e24153802daa71da76be0bf_rle_crop_3711713843_0.png.png imagette214180431741944180/1741943190_353432_1344103395_dad25da913ed2bac3116391316de5cc3_rle_crop_3711708857_0.png.png imagette214180431741944180/1741943851_360418_1344106924_72368d5a972671f10d70ab2aba09e552_rle_crop_3711716617_0.png.png imagette214180431741944180/1741943187_1211512_1344104467_9cbd684b5737fd43b69141069ee9b331_rle_crop_3711708806_0.png.png imagette214180431741944180/1741943666_1220627_1344106410_ca564155af5372c980608f9e1a106bbe_rle_crop_3711713743_0.png.png imagette214180431741944180/1741943187_1211512_1344104467_9cbd684b5737fd43b69141069ee9b331_rle_crop_3711708818_0.png.png imagette214180441741944180/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/18e767364ee69f0d7213d7818ff86939_28419574.png imagette214180431741944180 21418044 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=21418044 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214180441741944180 21418047 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=21418047 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344106660: '1741943671_358253_1344106413_e5919b4b0dbd13be2cb106ad0cf7076f_rle_crop_3711713889_0.png', 1344106519: '1741943545_1218610_1344106285_e1f1d1c101f5d4e36d58c14d3466870f_rle_crop_3711713046_0.png', 1344106522: '1741943545_1218610_1344106283_8e9323ca9847757fc3fb93aaf245ce77_rle_crop_3711713153_0.png', 1344106523: '1741943545_1218610_1344106271_45169e4ffef9cf15af2d983709b84ed6_rle_crop_3711713191_0.png', 1344106524: '1741943545_1218610_1344106271_45169e4ffef9cf15af2d983709b84ed6_rle_crop_3711713184_0.png', 1344106525: '1741943545_1218610_1344106266_ade305234b6d1dbcee9bae5e6c7bf1c4_rle_crop_3711713207_0.png', 1344106526: '1741943545_1218610_1344106266_ade305234b6d1dbcee9bae5e6c7bf1c4_rle_crop_3711713212_0.png', 1344106622: '1741943666_1220627_1344106463_aa12fa749d6c34638c450982725e55ed_rle_crop_3711713690_0.png', 1344106623: '1741943666_1220627_1344106460_0ae008249a320441824dd6f71ea45b51_rle_crop_3711713707_0.png', 1344106624: '1741943666_1220627_1344106410_ca564155af5372c980608f9e1a106bbe_rle_crop_3711713744_0.png', 1344106625: '1741943666_1220627_1344106408_79b07390c9ae4436aad68fd051c38114_rle_crop_3711713755_0.png', 1344106626: '1741943666_1220627_1344106406_254df62be8237d1dad2ad7f91ea6739c_rle_crop_3711713790_0.png', 1344106627: '1741943666_1220627_1344106328_963c8520d8865d5db8fde5d430be0f19_rle_crop_3711713797_0.png', 1344106658: '1741943671_358253_1344106436_6f129b94f454bff648256541799df794_rle_crop_3711713852_0.png', 1344106659: '1741943671_358253_1344106426_7fc0dabe5823696abcbce4ff1670e893_rle_crop_3711713872_0.png', 1344106512: '1741943533_356941_1344106199_a9c23c35d6eb3c6109ddcd9e0a62eaf0_rle_crop_3711713176_0.png', 1344107100: '1741943786_1221328_1344106583_e226d835c9da1f46e47a3fba018c91d5_rle_crop_3711714766_0.png', 1344107139: '1741943792_359686_1344106578_711da9300ceae274a2c0453df712f442_rle_crop_3711715419_0.png', 1344107140: '1741943792_359686_1344106576_637e86f909702e5e9900b6998381b70e_rle_crop_3711715452_0.png', 1344107141: '1741943792_359686_1344106572_4a99a577418a1d6eef352139490fc119_rle_crop_3711715481_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/77fa997a94e0e193c39de62b38baf3a7_40272741.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/80c3812c908efb5a50c9ca583bcf9274_32247851.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ef447539620e65e293b9e2cedbe74ac5_50089409.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d4c5a508780c68b0cb18d2e6bf8c9ce6_47153525.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/227e25c7695cf9c993cea9ad649a448b_37708616.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/1cb59ce672add429c5e8daf3e4cdbc0f_27932410.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/23f932e9dee0acb4bf0d5ba0aa32b92c_89562382.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/fc095477e468aef1e2ba66111cfff85b_50436985.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/775fdaa5e58cee4a98ea6edd3bc2bf72_36297982.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f61efc163f455f2804f18dad66439549_87130660.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e80d4843e08d497cc570b77aaf72bc66_86959646.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/69e0bbbd22767cf01dd896a5827cea75_92195005.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/fc095477e468aef1e2ba66111cfff85b_25256317.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/24ce7f98ecdf713862c33d2c8a97c7f8_97320565.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/1dfe4674f66fd91539f46e74761729e8_73241513.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/892d9ec52392a67a56f179a7d1c34a9c_54351614.png -- Missing : http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8e8834cf79454b25f56bc1fb64996a6e_80330312.png retrying : HTTP Error 503: Service Unavailable change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0e0290748dbc84c287776e69d6a3ba4e_65629659.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7e66d1709bec1852eb4b967cc2db19eb_58969109.png change filename to text .imagette214180471741944180/ imagette214180471741944180/1741943666_1220627_1344106460_0ae008249a320441824dd6f71ea45b51_rle_crop_3711713707_0.png.png imagette214180471741944180/1741943792_359686_1344106578_711da9300ceae274a2c0453df712f442_rle_crop_3711715419_0.png.png imagette214180471741944180/1741943533_356941_1344106199_a9c23c35d6eb3c6109ddcd9e0a62eaf0_rle_crop_3711713176_0.png.png imagette214180471741944180/1741943545_1218610_1344106283_8e9323ca9847757fc3fb93aaf245ce77_rle_crop_3711713153_0.png.png imagette214180471741944180/1741943792_359686_1344106572_4a99a577418a1d6eef352139490fc119_rle_crop_3711715481_0.png.png imagette214180471741944180/1741943666_1220627_1344106328_963c8520d8865d5db8fde5d430be0f19_rle_crop_3711713797_0.png.png imagette214180471741944180/1741943671_358253_1344106413_e5919b4b0dbd13be2cb106ad0cf7076f_rle_crop_3711713889_0.png.png imagette214180471741944180/1741943666_1220627_1344106463_aa12fa749d6c34638c450982725e55ed_rle_crop_3711713690_0.png.png imagette214180471741944180/1741943545_1218610_1344106271_45169e4ffef9cf15af2d983709b84ed6_rle_crop_3711713184_0.png.png imagette214180471741944180/1741943671_358253_1344106436_6f129b94f454bff648256541799df794_rle_crop_3711713852_0.png.png imagette214180471741944180/1741943545_1218610_1344106285_e1f1d1c101f5d4e36d58c14d3466870f_rle_crop_3711713046_0.png.png imagette214180471741944180/1741943545_1218610_1344106271_45169e4ffef9cf15af2d983709b84ed6_rle_crop_3711713191_0.png.png imagette214180471741944180/1741943792_359686_1344106576_637e86f909702e5e9900b6998381b70e_rle_crop_3711715452_0.png.png imagette214180471741944180/1741943545_1218610_1344106266_ade305234b6d1dbcee9bae5e6c7bf1c4_rle_crop_3711713207_0.png.png imagette214180471741944180/1741943545_1218610_1344106266_ade305234b6d1dbcee9bae5e6c7bf1c4_rle_crop_3711713212_0.png.png imagette214180471741944180/1741943671_358253_1344106426_7fc0dabe5823696abcbce4ff1670e893_rle_crop_3711713872_0.png.png imagette214180471741944180/1741943666_1220627_1344106410_ca564155af5372c980608f9e1a106bbe_rle_crop_3711713744_0.png.png imagette214180471741944180/1741943666_1220627_1344106406_254df62be8237d1dad2ad7f91ea6739c_rle_crop_3711713790_0.png.png imagette214180471741944180/1741943666_1220627_1344106408_79b07390c9ae4436aad68fd051c38114_rle_crop_3711713755_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/53599d173999f8459a95d229f4fb41cf_71191017.png imagette214180471741944180 21418048 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=21418048 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344106353: '1741943393_355409_1344106161_e71c02c90d137ffa0221018e39d40a35_rle_crop_3711712331_0.png', 1344107334: '1741943851_360418_1344106892_be364c2297af0a5b141d7cf435daacb6_rle_crop_3711716661_0.png', 1344107333: '1741943851_360418_1344106924_72368d5a972671f10d70ab2aba09e552_rle_crop_3711716620_0.png', 1344107155: '1741943792_359686_1344106576_637e86f909702e5e9900b6998381b70e_rle_crop_3711715443_0.png', 1344107154: '1741943792_359686_1344106581_8357d7d878c9ebbee12f9a9374bb97a4_rle_crop_3711715143_0.png', 1344107153: '1741943792_359686_1344106581_8357d7d878c9ebbee12f9a9374bb97a4_rle_crop_3711715152_0.png', 1344107108: '1741943786_1221328_1344106583_e226d835c9da1f46e47a3fba018c91d5_rle_crop_3711714762_0.png', 1344106530: '1741943545_1218610_1344106271_45169e4ffef9cf15af2d983709b84ed6_rle_crop_3711713183_0.png', 1344106517: '1741943533_356941_1344106204_84fb7c8e471da98c8aa853edd6df5d61_rle_crop_3711713162_0.png', 1344104744: '1741943030_352007_1344103782_874572a8e0f0b0381a2352dbc90fba7d_rle_crop_3711708515_0.png', 1344106352: '1741943393_355409_1344106161_e71c02c90d137ffa0221018e39d40a35_rle_crop_3711712335_0.png', 1344106351: '1741943393_355409_1344106167_0b8c07961f3aa7cf89a26a0cd8e2c89c_rle_crop_3711712061_0.png', 1344106281: '1741943313_354513_1344105202_d7ccdc679e7eb3319ef1f12281e5e81e_rle_crop_3711711404_0.png', 1344106280: '1741943313_354513_1344105202_d7ccdc679e7eb3319ef1f12281e5e81e_rle_crop_3711711408_0.png', 1344106279: '1741943313_354513_1344105210_1a990e6fcf6b57493ad697528bea2eb6_rle_crop_3711711386_0.png', 1344106278: '1741943313_354513_1344105505_c116cac194f80f74cee021447c3f089e_rle_crop_3711711347_0.png', 1344106055: '1741943187_1211512_1344104499_939ce30a4f0985798b147ec11e114a10_rle_crop_3711708796_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/4f822087609f9be28a41ca7bd0853c36_78365130.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8b1d6540d30478fbc49b28c3062aba93_60787578.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b59eae3d6584b49b00c4f603a4b1a5d2_74003037.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/aafa816368f722d4d25609d8f770b7e9_33623249.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/72ac15317cd43b9f61a765844ec2c79b_93533396.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/92cdc8a3c97a1e255f8b98937ed907fb_33393534.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e2efebf0b7555e0a7518f7bd5230b7bf_7667379.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/2e37e3df6f7d9b8564465b7aaf2d53fa_34170841.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/bf8279aeee028b171c69ded2718699dd_94601222.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ba4365ce3b7f3b39ca522be425b2e03b_55537992.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/717dafff241cae1554a825d327927296_63459541.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7611602f3022fc76abce493d8fd64c9e_44825083.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7bb21e01e0e97175cfcaf24c4d274d08_54426711.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9eb3097af7a5da7ffe03ade3a59543ed_56015784.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/646b946633e42e3695d568ed92a6bdfb_22629939.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/646b946633e42e3695d568ed92a6bdfb_69548039.png change filename to text .imagette214180481741944213/ imagette214180481741944213/1741943533_356941_1344106204_84fb7c8e471da98c8aa853edd6df5d61_rle_crop_3711713162_0.png.png imagette214180481741944213/1741943851_360418_1344106924_72368d5a972671f10d70ab2aba09e552_rle_crop_3711716620_0.png.png imagette214180481741944213/1741943313_354513_1344105210_1a990e6fcf6b57493ad697528bea2eb6_rle_crop_3711711386_0.png.png imagette214180481741944213/1741943792_359686_1344106581_8357d7d878c9ebbee12f9a9374bb97a4_rle_crop_3711715152_0.png.png imagette214180481741944213/1741943786_1221328_1344106583_e226d835c9da1f46e47a3fba018c91d5_rle_crop_3711714762_0.png.png imagette214180481741944213/1741943792_359686_1344106576_637e86f909702e5e9900b6998381b70e_rle_crop_3711715443_0.png.png imagette214180481741944213/1741943851_360418_1344106892_be364c2297af0a5b141d7cf435daacb6_rle_crop_3711716661_0.png.png imagette214180481741944213/1741943545_1218610_1344106271_45169e4ffef9cf15af2d983709b84ed6_rle_crop_3711713183_0.png.png imagette214180481741944213/1741943313_354513_1344105505_c116cac194f80f74cee021447c3f089e_rle_crop_3711711347_0.png.png imagette214180481741944213/1741943393_355409_1344106167_0b8c07961f3aa7cf89a26a0cd8e2c89c_rle_crop_3711712061_0.png.png imagette214180481741944213/1741943187_1211512_1344104499_939ce30a4f0985798b147ec11e114a10_rle_crop_3711708796_0.png.png imagette214180481741944213/1741943393_355409_1344106161_e71c02c90d137ffa0221018e39d40a35_rle_crop_3711712335_0.png.png imagette214180481741944213/1741943792_359686_1344106581_8357d7d878c9ebbee12f9a9374bb97a4_rle_crop_3711715143_0.png.png imagette214180481741944213/1741943313_354513_1344105202_d7ccdc679e7eb3319ef1f12281e5e81e_rle_crop_3711711408_0.png.png imagette214180481741944213/1741943313_354513_1344105202_d7ccdc679e7eb3319ef1f12281e5e81e_rle_crop_3711711404_0.png.png imagette214180481741944213/1741943393_355409_1344106161_e71c02c90d137ffa0221018e39d40a35_rle_crop_3711712331_0.png.png imagette214180481741944213/1741943030_352007_1344103782_874572a8e0f0b0381a2352dbc90fba7d_rle_crop_3711708515_0.png.png imagette214180501741944214/ wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/488cb5ad2b20b8befda63942bd50cfcd_43530151.png imagette214180481741944213 21418050 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=21418050 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214180501741944214 21418039 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=21418039 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344106356: '1741943393_355409_1344106176_1b58c3c20828dd385e6592c250ddd802_rle_crop_3711711816_0.png', 1344107340: '1741943851_360418_1344106863_79b127fefb04ee29d8398004a4f638b6_rle_crop_3711716691_0.png', 1344107339: '1741943851_360418_1344106924_72368d5a972671f10d70ab2aba09e552_rle_crop_3711716618_0.png', 1344107277: '1741943652_357870_1344106470_78901ebaccb7a301e6eb7eea97fdaf83_rle_crop_3711714997_0.png', 1344107276: '1741943652_357870_1344106533_389a8e27a15d7f2ff7825e027cbb2a72_rle_crop_3711714781_0.png', 1344107196: '1741943666_1220627_1344106328_963c8520d8865d5db8fde5d430be0f19_rle_crop_3711713798_0.png', 1344107195: '1741943666_1220627_1344106414_aca30cb43e98a17d8e93e1cf38570085_rle_crop_3711713720_0.png', 1344107194: '1741943666_1220627_1344106463_aa12fa749d6c34638c450982725e55ed_rle_crop_3711713691_0.png', 1344107112: '1741943786_1221328_1344106583_e226d835c9da1f46e47a3fba018c91d5_rle_crop_3711714765_0.png', 1344106518: '1741943533_356941_1344106204_84fb7c8e471da98c8aa853edd6df5d61_rle_crop_3711713165_0.png', 1344104762: '1741943030_352007_1344103738_912a2b4e09f051cddd65a6c75d5521ba_rle_crop_3711708531_0.png', 1344106228: '1741943307_1214595_1344105104_bce20cfe72161770c87bbf5f35a7df56_rle_crop_3711710867_0.png', 1344106227: '1741943307_1214595_1344105104_bce20cfe72161770c87bbf5f35a7df56_rle_crop_3711710863_0.png', 1344106115: '1741943190_353432_1344103395_dad25da913ed2bac3116391316de5cc3_rle_crop_3711708855_0.png', 1344106114: '1741943190_353432_1344103811_4a0131726c2ca3a94ea7994d3e551d7a_rle_crop_3711708842_0.png', 1344105676: '1741943172_353154_1344104526_033b1646d3c14aeb25d5d5b63919e0e7_rle_crop_3711708624_0.png', 1344105675: '1741943172_353154_1344104526_033b1646d3c14aeb25d5d5b63919e0e7_rle_crop_3711708623_0.png', 1344104766: '1741943030_352007_1344103625_3a0283dab4e9eae5dee26592b7cf5f0e_rle_crop_3711708563_0.png', 1344104764: '1741943030_352007_1344103625_3a0283dab4e9eae5dee26592b7cf5f0e_rle_crop_3711708561_0.png', 1344104763: '1741943030_352007_1344103680_fe38791b445072a7cbe7d97a11f20da9_rle_crop_3711708546_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e33592a2ce34ae66dba4cf8cde228801_87697801.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c3b6396e2c56c70cb2ff3c8622077304_59803976.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/a095c2abca413997d732d67c73f99124_74545310.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0d6514c77d07594898b893c8c73d1d6f_85207547.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/830bffe7672fe81a5dea5984d72a9f47_85469913.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7df2976d8d36da2a19b5a17ac837d62b_86054576.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/49e0eda0a589cf18eeae675405627d2a_31155903.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7df2976d8d36da2a19b5a17ac837d62b_52058101.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d817b7217d5faf31c3671ae915e1ba92_12012437.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/335de592d11741bc7959c3d630905019_30136277.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/2700843c777d30ad4c7692b580a5bc12_23090829.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ff653fc790beb641bfc5542adba53e6e_99405738.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/51a1413dc7cfd33ab11cb2adc6caa78d_28398591.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/4380de4b50ea16af7cc10b0072e38ec9_34469433.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e3f4bafb82ac46af8cadadefc9776720_76033013.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8ebb751bcf78e89f8940c8b529ab957c_97218349.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/4c255c399073377daab1c17ee15f318f_9062934.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/64379a5f37ebaa0e5f51cde4bada20d5_22129368.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/fc30738fe8dc3bc8f970cfe5f8eae6f0_58936658.png change filename to text .imagette214180391741944214/ imagette214180391741944214/1741943172_353154_1344104526_033b1646d3c14aeb25d5d5b63919e0e7_rle_crop_3711708623_0.png.png imagette214180391741944214/1741943786_1221328_1344106583_e226d835c9da1f46e47a3fba018c91d5_rle_crop_3711714765_0.png.png imagette214180391741944214/1741943030_352007_1344103680_fe38791b445072a7cbe7d97a11f20da9_rle_crop_3711708546_0.png.png imagette214180391741944214/1741943652_357870_1344106470_78901ebaccb7a301e6eb7eea97fdaf83_rle_crop_3711714997_0.png.png imagette214180391741944214/1741943307_1214595_1344105104_bce20cfe72161770c87bbf5f35a7df56_rle_crop_3711710867_0.png.png imagette214180391741944214/1741943666_1220627_1344106328_963c8520d8865d5db8fde5d430be0f19_rle_crop_3711713798_0.png.png imagette214180391741944214/1741943307_1214595_1344105104_bce20cfe72161770c87bbf5f35a7df56_rle_crop_3711710863_0.png.png imagette214180391741944214/1741943666_1220627_1344106463_aa12fa749d6c34638c450982725e55ed_rle_crop_3711713691_0.png.png imagette214180391741944214/1741943666_1220627_1344106414_aca30cb43e98a17d8e93e1cf38570085_rle_crop_3711713720_0.png.png imagette214180391741944214/1741943030_352007_1344103625_3a0283dab4e9eae5dee26592b7cf5f0e_rle_crop_3711708561_0.png.png imagette214180391741944214/1741943030_352007_1344103625_3a0283dab4e9eae5dee26592b7cf5f0e_rle_crop_3711708563_0.png.png imagette214180391741944214/1741943851_360418_1344106924_72368d5a972671f10d70ab2aba09e552_rle_crop_3711716618_0.png.png imagette214180391741944214/1741943190_353432_1344103395_dad25da913ed2bac3116391316de5cc3_rle_crop_3711708855_0.png.png imagette214180391741944214/1741943851_360418_1344106863_79b127fefb04ee29d8398004a4f638b6_rle_crop_3711716691_0.png.png imagette214180391741944214/1741943172_353154_1344104526_033b1646d3c14aeb25d5d5b63919e0e7_rle_crop_3711708624_0.png.png imagette214180391741944214/1741943030_352007_1344103738_912a2b4e09f051cddd65a6c75d5521ba_rle_crop_3711708531_0.png.png imagette214180391741944214/1741943533_356941_1344106204_84fb7c8e471da98c8aa853edd6df5d61_rle_crop_3711713165_0.png.png imagette214180391741944214/1741943652_357870_1344106533_389a8e27a15d7f2ff7825e027cbb2a72_rle_crop_3711714781_0.png.png imagette214180391741944214/1741943190_353432_1344103811_4a0131726c2ca3a94ea7994d3e551d7a_rle_crop_3711708842_0.png.png imagette214180391741944214/1741943393_355409_1344106176_1b58c3c20828dd385e6592c250ddd802_rle_crop_3711711816_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ecc376195ee86dfa1fd0b977b689f1f0_5567052.png imagette214180391741944214 21418046 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=21418046 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344106664: '1741943671_358253_1344106436_6f129b94f454bff648256541799df794_rle_crop_3711713848_0.png', 1344107330: '1741943851_360418_1344106863_79b127fefb04ee29d8398004a4f638b6_rle_crop_3711716688_0.png', 1344107275: '1741943652_357870_1344106538_6ebd99de6c86b709803983f040789148_rle_crop_3711716565_0.png', 1344107193: '1741943666_1220627_1344106328_963c8520d8865d5db8fde5d430be0f19_rle_crop_3711713794_0.png', 1344107192: '1741943666_1220627_1344106406_254df62be8237d1dad2ad7f91ea6739c_rle_crop_3711713787_0.png', 1344107191: '1741943666_1220627_1344106460_0ae008249a320441824dd6f71ea45b51_rle_crop_3711713705_0.png', 1344107190: '1741943666_1220627_1344106463_aa12fa749d6c34638c450982725e55ed_rle_crop_3711713687_0.png', 1344107144: '1741943792_359686_1344106576_637e86f909702e5e9900b6998381b70e_rle_crop_3711715451_0.png', 1344107143: '1741943792_359686_1344106578_711da9300ceae274a2c0453df712f442_rle_crop_3711715412_0.png', 1344107142: '1741943792_359686_1344106581_8357d7d878c9ebbee12f9a9374bb97a4_rle_crop_3711715149_0.png', 1344106666: '1741943671_358253_1344106426_7fc0dabe5823696abcbce4ff1670e893_rle_crop_3711713878_0.png', 1344106665: '1741943671_358253_1344106436_6f129b94f454bff648256541799df794_rle_crop_3711713856_0.png', 1344104731: '1741943030_352007_1344103782_874572a8e0f0b0381a2352dbc90fba7d_rle_crop_3711708514_0.png', 1344106663: '1741943671_358253_1344106539_ba1976e6f1eb67c6e51c8e50001454d4_rle_crop_3711713834_0.png', 1344106529: '1741943545_1218610_1344106271_45169e4ffef9cf15af2d983709b84ed6_rle_crop_3711713192_0.png', 1344106528: '1741943545_1218610_1344106283_8e9323ca9847757fc3fb93aaf245ce77_rle_crop_3711713151_0.png', 1344106527: '1741943545_1218610_1344106285_e1f1d1c101f5d4e36d58c14d3466870f_rle_crop_3711713041_0.png', 1344106516: '1741943533_356941_1344106288_98cf3e45044ac09ed3dc43abf37718db_rle_crop_3711713058_0.png', 1344106222: '1741943307_1214595_1344105104_bce20cfe72161770c87bbf5f35a7df56_rle_crop_3711710868_0.png', 1344106221: '1741943307_1214595_1344105160_494171ec729edff964645a6db2e7c0a1_rle_crop_3711710832_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/6df296cc40015c8124b310ab9fbcf47d_94147446.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9de163dc9ca4aebfe32b0a69a8cafbac_70381258.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0dc31661100c853b5ce698796e5aa7d8_61889682.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7b986a2dbdc14b7ae58629c40ee442c9_97844686.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c13449a989c89fe818e47c5dc4d83379_77803315.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/4bd07ff69311cb811d24287fb1c1169b_7827154.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7b986a2dbdc14b7ae58629c40ee442c9_42740158.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/882e11d05bde223f506867e52c0f0194_67622698.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e47a0febe3116e005ed8a893ef7d9287_65945137.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/48c3208edafd2ec76b3493a89f6f72f5_74718343.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8f9e47f65d984893c3f32e825f885f4a_76020599.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/559022c82702c367a14448a4fb9c2fdf_83668645.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/25c8be3bba35fa3cc85d7982cc62e67e_632545.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/3a5cde323837bdfb72a568da9c406a3f_9323462.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/09bfdebff73b9b021e948a94dddc67e8_59274590.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/4f4c5717b050a129df56c8f1c4ce8cd9_22933141.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/758b413673ae6d2a7a15e4c0a9bee506_96835339.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9aac7e2563e43c43b326b90e54121a7a_67823520.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/925b2ec2cde47bdaa4137a20558bb280_95423515.png change filename to text .imagette214180461741944215/ imagette214180461741944215/1741943792_359686_1344106581_8357d7d878c9ebbee12f9a9374bb97a4_rle_crop_3711715149_0.png.png imagette214180461741944215/1741943666_1220627_1344106406_254df62be8237d1dad2ad7f91ea6739c_rle_crop_3711713787_0.png.png imagette214180461741944215/1741943792_359686_1344106576_637e86f909702e5e9900b6998381b70e_rle_crop_3711715451_0.png.png imagette214180461741944215/1741943671_358253_1344106436_6f129b94f454bff648256541799df794_rle_crop_3711713848_0.png.png imagette214180461741944215/1741943666_1220627_1344106460_0ae008249a320441824dd6f71ea45b51_rle_crop_3711713705_0.png.png imagette214180461741944215/1741943671_358253_1344106539_ba1976e6f1eb67c6e51c8e50001454d4_rle_crop_3711713834_0.png.png imagette214180461741944215/1741943851_360418_1344106863_79b127fefb04ee29d8398004a4f638b6_rle_crop_3711716688_0.png.png imagette214180461741944215/1741943545_1218610_1344106283_8e9323ca9847757fc3fb93aaf245ce77_rle_crop_3711713151_0.png.png imagette214180461741944215/1741943307_1214595_1344105104_bce20cfe72161770c87bbf5f35a7df56_rle_crop_3711710868_0.png.png imagette214180461741944215/1741943545_1218610_1344106285_e1f1d1c101f5d4e36d58c14d3466870f_rle_crop_3711713041_0.png.png imagette214180461741944215/1741943307_1214595_1344105160_494171ec729edff964645a6db2e7c0a1_rle_crop_3711710832_0.png.png imagette214180461741944215/1741943666_1220627_1344106463_aa12fa749d6c34638c450982725e55ed_rle_crop_3711713687_0.png.png imagette214180461741944215/1741943671_358253_1344106436_6f129b94f454bff648256541799df794_rle_crop_3711713856_0.png.png imagette214180461741944215/1741943545_1218610_1344106271_45169e4ffef9cf15af2d983709b84ed6_rle_crop_3711713192_0.png.png imagette214180461741944215/1741943652_357870_1344106538_6ebd99de6c86b709803983f040789148_rle_crop_3711716565_0.png.png imagette214180461741944215/1741943671_358253_1344106426_7fc0dabe5823696abcbce4ff1670e893_rle_crop_3711713878_0.png.png imagette214180461741944215/1741943792_359686_1344106578_711da9300ceae274a2c0453df712f442_rle_crop_3711715412_0.png.png imagette214180461741944215/1741943030_352007_1344103782_874572a8e0f0b0381a2352dbc90fba7d_rle_crop_3711708514_0.png.png imagette214180461741944215/1741943666_1220627_1344106328_963c8520d8865d5db8fde5d430be0f19_rle_crop_3711713794_0.png.png imagette214180461741944215/1741943533_356941_1344106288_98cf3e45044ac09ed3dc43abf37718db_rle_crop_3711713058_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/01990139585f41bef263f6cbd547b5ce_6953507.png imagette214180461741944215 21418049 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=21418049 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344106619: '1741943666_1220627_1344106460_0ae008249a320441824dd6f71ea45b51_rle_crop_3711713716_0.png', 1344107270: '1741943851_360418_1344106836_4e33128766b4ebd87f5dd134d1cae648_rle_crop_3711716747_0.png', 1344107137: '1741943792_359686_1344106578_711da9300ceae274a2c0453df712f442_rle_crop_3711715418_0.png', 1344107098: '1741943786_1221328_1344106583_e226d835c9da1f46e47a3fba018c91d5_rle_crop_3711714767_0.png', 1344106657: '1741943671_358253_1344106426_7fc0dabe5823696abcbce4ff1670e893_rle_crop_3711713870_0.png', 1344106656: '1741943671_358253_1344106426_7fc0dabe5823696abcbce4ff1670e893_rle_crop_3711713879_0.png', 1344106654: '1741943671_358253_1344106426_7fc0dabe5823696abcbce4ff1670e893_rle_crop_3711713873_0.png', 1344106653: '1741943671_358253_1344106436_6f129b94f454bff648256541799df794_rle_crop_3711713854_0.png', 1344106652: '1741943671_358253_1344106454_4868c4f19e24153802daa71da76be0bf_rle_crop_3711713839_0.png', 1344106651: '1741943671_358253_1344106454_4868c4f19e24153802daa71da76be0bf_rle_crop_3711713842_0.png', 1344106620: '1741943666_1220627_1344106410_ca564155af5372c980608f9e1a106bbe_rle_crop_3711713746_0.png', 1344104688: '1741943030_352007_1344103625_3a0283dab4e9eae5dee26592b7cf5f0e_rle_crop_3711708566_0.png', 1344106618: '1741943666_1220627_1344106460_0ae008249a320441824dd6f71ea45b51_rle_crop_3711713713_0.png', 1344106342: '1741943393_355409_1344106167_0b8c07961f3aa7cf89a26a0cd8e2c89c_rle_crop_3711712065_0.png', 1344106270: '1741943313_354513_1344104896_5c4c6400e1c3921c21ea28964e8b64ea_rle_crop_3711711419_0.png', 1344106269: '1741943313_354513_1344105396_e87e29df423e32d804ad1e5a74323f46_rle_crop_3711711366_0.png', 1344106210: '1741943307_1214595_1344105104_bce20cfe72161770c87bbf5f35a7df56_rle_crop_3711710865_0.png', 1344106106: '1741943190_353432_1344103371_45bf54b28b9b2708c98d701e4886509c_rle_crop_3711708861_0.png', 1344105983: '1741943187_1211512_1344104367_ba9d3a5e421939fdec1130347eeecad5_rle_crop_3711708825_0.png', 1344105978: '1741943187_1211512_1344104467_9cbd684b5737fd43b69141069ee9b331_rle_crop_3711708817_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c341ff76bff907e9a8234e92d6ed4c36_14822206.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/5ebe92e9840a8fc725518fe95571bf83_19925672.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/3dec2af085a935871723c46c47ca04c4_12142602.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/a68a6e2d7a710893590329dd08896ee9_87859559.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/32ff527cf2114fbc11ec6a0cd66c3591_18373032.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0d24dec026757c24ae444df35d491d79_88430686.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e38f42a97bd53ccc5f189fb59c1a646a_51844008.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/485bc6f6aab9e28120db38792e66b6be_69542397.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e88fcbb7f9907087b178cd3344a49a9a_41552225.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/359f7c80df6844ac97f5c9ebd8ac7405_54101192.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b12830711634e15df67f469a11aa3a23_83752750.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e57a660e7be0fa11ef730b551581c716_98501360.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8038d1f28525b8a139e760cfda39e81e_80068694.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/329dd8052a78b165ac0fe31cb8609350_64884577.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/07cf5e8524dbfc9c155796e4fdb8893e_9740854.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/07cf5e8524dbfc9c155796e4fdb8893e_36100491.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f95e4f4adab66f750043067a237c6f35_81053679.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/a10317e4fc05c21e0c8e7873ee1d6a85_97068148.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9a4ea96a468a7fb1b826d3dc3be59c5b_75543915.png change filename to text .imagette214180491741944216/ imagette214180491741944216/1741943393_355409_1344106167_0b8c07961f3aa7cf89a26a0cd8e2c89c_rle_crop_3711712065_0.png.png imagette214180491741944216/1741943851_360418_1344106836_4e33128766b4ebd87f5dd134d1cae648_rle_crop_3711716747_0.png.png imagette214180491741944216/1741943307_1214595_1344105104_bce20cfe72161770c87bbf5f35a7df56_rle_crop_3711710865_0.png.png imagette214180491741944216/1741943666_1220627_1344106460_0ae008249a320441824dd6f71ea45b51_rle_crop_3711713716_0.png.png imagette214180491741944216/1741943671_358253_1344106454_4868c4f19e24153802daa71da76be0bf_rle_crop_3711713839_0.png.png imagette214180491741944216/1741943666_1220627_1344106460_0ae008249a320441824dd6f71ea45b51_rle_crop_3711713713_0.png.png imagette214180491741944216/1741943030_352007_1344103625_3a0283dab4e9eae5dee26592b7cf5f0e_rle_crop_3711708566_0.png.png imagette214180491741944216/1741943671_358253_1344106426_7fc0dabe5823696abcbce4ff1670e893_rle_crop_3711713879_0.png.png imagette214180491741944216/1741943190_353432_1344103371_45bf54b28b9b2708c98d701e4886509c_rle_crop_3711708861_0.png.png imagette214180491741944216/1741943313_354513_1344105396_e87e29df423e32d804ad1e5a74323f46_rle_crop_3711711366_0.png.png imagette214180491741944216/1741943187_1211512_1344104467_9cbd684b5737fd43b69141069ee9b331_rle_crop_3711708817_0.png.png imagette214180491741944216/1741943671_358253_1344106436_6f129b94f454bff648256541799df794_rle_crop_3711713854_0.png.png imagette214180491741944216/1741943671_358253_1344106426_7fc0dabe5823696abcbce4ff1670e893_rle_crop_3711713870_0.png.png imagette214180491741944216/1741943313_354513_1344104896_5c4c6400e1c3921c21ea28964e8b64ea_rle_crop_3711711419_0.png.png imagette214180491741944216/1741943671_358253_1344106454_4868c4f19e24153802daa71da76be0bf_rle_crop_3711713842_0.png.png imagette214180491741944216/1741943187_1211512_1344104367_ba9d3a5e421939fdec1130347eeecad5_rle_crop_3711708825_0.png.png imagette214180491741944216/1741943792_359686_1344106578_711da9300ceae274a2c0453df712f442_rle_crop_3711715418_0.png.png imagette214180491741944216/1741943786_1221328_1344106583_e226d835c9da1f46e47a3fba018c91d5_rle_crop_3711714767_0.png.png imagette214180491741944216/1741943666_1220627_1344106410_ca564155af5372c980608f9e1a106bbe_rle_crop_3711713746_0.png.png imagette214180491741944216/1741943671_358253_1344106426_7fc0dabe5823696abcbce4ff1670e893_rle_crop_3711713873_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/1db9b431360df306fff395c392b801a5_18773138.png imagette214180491741944216 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21417994 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21418052,21418053,21418054,21418055,21418056,21418057,21418058,21418059,21418060,21418061,21418062,21418063?tags=Carton_brun,papier,kraft,metal,plastique,mal_croppe,environnement,Carton_gris,autre_refus,cartonnette,Teint_Dans_La_Masse,flou your option no_mail is active, we will not send the real mail to your client args[1344107767] : ('0.08443786554269565',) no score found for photo 1344107767 We are sending mail with results at report@fotonower.com refus_total : 0.08443786554269565 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=21417994 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_P21417994_14-03-2025_10_22_59.pdf results_Auto_P21417994_14-03-2025_10_22_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21417994_14-03-2025_10_22_59.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','21417994','results_Auto_P21417994_14-03-2025_10_22_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21417994_14-03-2025_10_22_59.pdf','pdf','','0.4','0.08443786554269565') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21417994]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1344107767] map_info['map_portfolio_photo'] : {21417994: [1344107767, 1344107375, 1344107052, 1344106924, 1344106892, 1344106863, 1344106836, 1344106630, 1344106621, 1344106617, 1344106614, 1344106611, 1344106607, 1344106583, 1344106581, 1344106578, 1344106576, 1344106572, 1344106559, 1344106556, 1344106553, 1344106551, 1344106549, 1344106539, 1344106538, 1344106533, 1344106520, 1344106513, 1344106470, 1344106463, 1344106460, 1344106454, 1344106436, 1344106426, 1344106418, 1344106414, 1344106413, 1344106410, 1344106408, 1344106406, 1344106328, 1344106288, 1344106285, 1344106283, 1344106271, 1344106266, 1344106212, 1344106209, 1344106204, 1344106199, 1344106181, 1344106176, 1344106171, 1344106167, 1344106163, 1344106161, 1344106132, 1344106128, 1344106116, 1344106074, 1344105815, 1344105719, 1344105618, 1344105505, 1344105427, 1344105396, 1344105314, 1344105225, 1344105210, 1344105202, 1344105160, 1344105104, 1344105062, 1344105029, 1344104992, 1344104896, 1344104526, 1344104499, 1344104467, 1344104367, 1344103811, 1344103782, 1344103738, 1344103680, 1344103625, 1344103416, 1344103395, 1344103371]} final : False mtd_id 4302 list_pids : [1344107767] 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, '2668556') ('4302', '21417994', '1344107767', None, None, None, None, None, '2668556') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '21417994', '1344107767', None, None, None, None, None, '2668556')] time used for this insertion : 0.011564254760742188 save_final save missing photos in datou_result : time spend for datou_step_exec : 38.739482164382935 time spend to save output : 0.011780023574829102 total time spend for step 4 : 38.751262187957764 step5:split_time_score Fri Mar 14 10:23:38 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 : ['21417994'] 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 : [('21417994',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21417994) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1344107767: {'path': 'temp/1741944179_3105485_1344107767_a4d847defd620beb95d9205b86ed9142.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 = 21417994; (('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 = 21417994 group by h (('10', 88),) 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=21417994 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 (21417994) 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 (21417994) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14032025 21417994 Nombre de photos uploadées : 88 / 23040 (0%) 14032025 21417994 Nombre de photos taguées (types de déchets): 0 / 88 (0%) 14032025 21417994 Nombre de photos taguées (volume) : 0 / 88 (0%) [{'photo_id': 1344103416, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/484d5fdde1ccc16fb5aa80149f482c23.jpg', 'username': None, 'uploaded_at': 1741942905, 'text': 'image_14032025_10_00_04_010138m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1344103395, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/dad25da913ed2bac3116391316de5cc3.jpg', 'username': None, 'uploaded_at': 1741942905, 'text': 'image_14032025_10_00_33_009123m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1344103371, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/45bf54b28b9b2708c98d701e4886509c.jpg', 'username': None, 'uploaded_at': 1741942905, 'text': 'image_14032025_10_00_43_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1344103811, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/4a0131726c2ca3a94ea7994d3e551d7a.jpg', 'username': None, 'uploaded_at': 1741942966, 'text': 'image_14032025_10_00_53_010140m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 7.152557373046875e-06 ???????????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003956317901611328 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21417994, '2025-03-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1667162,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02430868148803711 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= 1667162 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1667162, 'dashboard_run_id': 1675906, 'mtr_portfolio_id': 21417119, 'dashboard_result_id': 9441944, '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_P21417119_14-03-2025_09_50_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21417140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21417141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21417142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21417143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21417144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21417145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21417146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21417147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21417148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21417149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21417150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21417151, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1675906, 'mtr_portfolio_id': 21417582, 'dashboard_result_id': 9441945, '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_P21417582_14-03-2025_10_03_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21417610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21417611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21417612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21417613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21417614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21417615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21417616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21417617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21417618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21417619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21417620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21417621, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1675906, 'mtr_portfolio_id': 21417994, 'dashboard_result_id': 9441946, '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_P21417994_14-03-2025_10_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21418039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21418040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21418041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21418042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21418043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21418044, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21418045, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21418046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21418047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21418048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21418049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21418050, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1675906, 'mtr_portfolio_id': 21418677, 'dashboard_result_id': 9441947, '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_P21418677_14-03-2025_10_21_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21418758, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21418759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21418760, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21418761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21418762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21418763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21418764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21418765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21418766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21418767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21418768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21418769, '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 = 21417119 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': 2668476, 'mtr_portfolio_id': 21417119, 'created_at': datetime.datetime(2025, 3, 14, 9, 50, 56), 'result': '0.08474751945166847', 'result_long': None, 'result_double': None}] Qualite : 0.08474751945166847 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21417119 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21417119_14-03-2025_09_50_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21417119 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_P21417119_14-03-2025_09_50_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21417140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21417141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21417142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21417143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21417144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21417145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21417146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21417147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21417148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21417149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21417150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21417151, 'pht': 3726}}" where mtr_portfolio_id = 21417119 and dashboard_run_id = 1675906 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`=21417119 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9441944, 0.08474751945166847, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21417119_14-03-2025_09_50_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21417140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21417141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21417142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21417143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21417144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21417145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21417146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21417147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21417148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21417149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21417150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21417151, '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 = 21417582 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': 2668514, 'mtr_portfolio_id': 21417582, 'created_at': datetime.datetime(2025, 3, 14, 10, 3, 58), 'result': '0.06667504813946425', 'result_long': None, 'result_double': None}] Qualite : 0.06667504813946425 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21417582 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21417582_14-03-2025_10_03_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21417582 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_P21417582_14-03-2025_10_03_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21417610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21417611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21417612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21417613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21417614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21417615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21417616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21417617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21417618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21417619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21417620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21417621, 'pht': 3726}}" where mtr_portfolio_id = 21417582 and dashboard_run_id = 1675906 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`=21417582 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9441945, 0.06667504813946425, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21417582_14-03-2025_10_03_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21417610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21417611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21417612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21417613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21417614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21417615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21417616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21417617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21417618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21417619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21417620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21417621, '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 = 21417994 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': 2668556, 'mtr_portfolio_id': 21417994, 'created_at': datetime.datetime(2025, 3, 14, 10, 22, 59), 'result': '0.08443786554269565', 'result_long': None, 'result_double': None}] Qualite : 0.08443786554269565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21417994 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21417994_14-03-2025_10_22_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21417994 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_P21417994_14-03-2025_10_22_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21418039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21418040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21418041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21418042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21418043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21418044, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21418045, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21418046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21418047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21418048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21418049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21418050, 'pht': 3726}}" where mtr_portfolio_id = 21417994 and dashboard_run_id = 1675906 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`=21417994 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9441946, 0.08443786554269565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21417994_14-03-2025_10_22_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21418039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21418040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21418041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21418042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21418043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21418044, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21418045, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21418046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21418047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21418048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21418049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21418050, '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 = 21418677 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': 2668608, 'mtr_portfolio_id': 21418677, 'created_at': datetime.datetime(2025, 3, 14, 10, 23, 29), 'result': '0.07202049263835682', 'result_long': None, 'result_double': None}] Qualite : 0.07202049263835682 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21418677 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21418677_14-03-2025_10_21_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21418677 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_P21418677_14-03-2025_10_21_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21418758, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21418759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21418760, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21418761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21418762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21418763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21418764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21418765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21418766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21418767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21418768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21418769, 'pht': 3726}}" where mtr_portfolio_id = 21418677 and dashboard_run_id = 1675906 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`=21418677 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9441947, 0.07202049263835682, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21418677_14-03-2025_10_21_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21418758, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21418759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21418760, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21418761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21418762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21418763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21418764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21418765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21418766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21418767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21418768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21418769, '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 (21417119,21417582,21417994,21418677) result : ((1344100428,), (1344100529,), (1344100544,), (1344100549,), (1344100562,), (1344100580,), (1344100591,), (1344100612,), (1344100648,), (1344100672,), (1344100683,), (1344100691,), (1344100702,), (1344100726,), (1344100753,), (1344100757,), (1344100871,), (1344100916,), (1344100922,), (1344100929,), (1344100938,), (1344100955,), (1344100963,), (1344100980,), (1344100993,), (1344101005,), (1344101038,), (1344101090,), (1344101092,), (1344101097,), (1344101185,), (1344101192,), (1344101198,), (1344101202,), (1344101211,), (1344101213,), (1344101225,), (1344101228,), (1344101236,), (1344101238,), (1344101242,), (1344101252,), (1344101256,), (1344101261,), (1344101265,), (1344101268,), (1344101269,), (1344101323,), (1344101369,), (1344101376,), (1344101379,), (1344101390,), (1344101399,), (1344101400,), (1344101403,), (1344101404,), (1344101407,), (1344101409,), (1344101412,), (1344101453,), (1344101456,), (1344101458,), (1344101461,), (1344101462,), (1344101464,), (1344101467,), (1344101468,), (1344101472,), (1344101474,), (1344101476,), (1344101477,), (1344101494,), (1344101498,), (1344101502,), (1344101506,), (1344101509,), (1344101526,), (1344101530,), (1344101531,), (1344101534,), (1344101582,), (1344101583,), (1344101617,), (1344101618,), (1344101622,), (1344101630,), (1344101636,), (1344101638,), (1344101643,), (1344101645,), (1344101646,), (1344101647,), (1344101668,), (1344101685,), (1344101711,), (1344101712,), (1344101718,), (1344101722,), (1344101725,), (1344101728,), (1344101730,), (1344101746,), (1344101749,), (1344101756,), (1344101757,), (1344101761,), (1344101765,), (1344101771,), (1344101775,), (1344101778,), (1344101780,), (1344101783,), (1344101786,), (1344101983,), (1344101999,), (1344102184,), (1344102188,), (1344101657,), (1344101659,), (1344101660,), (1344101664,), (1344101736,), (1344101742,), (1344101811,), (1344101836,), (1344101841,), (1344101851,), (1344101855,), (1344101859,), (1344101930,), (1344101942,), (1344101956,), (1344101979,), (1344101994,), (1344102010,), (1344102030,), (1344102045,), (1344102056,), (1344102063,), (1344102103,), (1344102108,), (1344102114,), (1344102120,), (1344102125,), (1344102132,), (1344102142,), (1344102146,), (1344102149,), (1344102150,), (1344102161,), (1344102166,), (1344102244,), (1344102284,), (1344102318,), (1344102322,), (1344102357,), (1344102451,), (1344102467,), (1344102546,), (1344102554,), (1344102611,), (1344102738,), (1344102742,), (1344102746,), (1344102749,), (1344102752,), (1344102785,), (1344102788,), (1344102793,), (1344103075,), (1344103108,), (1344103186,), (1344103432,), (1344103371,), (1344103395,), (1344103416,), (1344103625,), (1344103680,), (1344103738,), (1344103782,), (1344103811,), (1344104367,), (1344104467,), (1344104499,), (1344104526,), (1344104896,), (1344104992,), (1344105029,), (1344105062,), (1344105104,), (1344105160,), (1344105202,), (1344105210,), (1344105225,), (1344105314,), (1344105396,), (1344105427,), (1344105505,), (1344105618,), (1344105719,), (1344105815,), (1344106074,), (1344106116,), (1344106128,), (1344106132,), (1344106161,), (1344106163,), (1344106167,), (1344106171,), (1344106176,), (1344106181,), (1344106199,), (1344106204,), (1344106209,), (1344106212,), (1344106266,), (1344106271,), (1344106283,), (1344106285,), (1344106288,), (1344106328,), (1344106406,), (1344106408,), (1344106410,), (1344106413,), (1344106414,), (1344106418,), (1344106426,), (1344106436,), (1344106454,), (1344106460,), (1344106463,), (1344106470,), (1344106513,), (1344106520,), (1344106533,), (1344106538,), (1344106539,), (1344106549,), (1344106551,), (1344106553,), (1344106556,), (1344106559,), (1344106572,), (1344106576,), (1344106578,), (1344106581,), (1344106583,), (1344106607,), (1344106611,), (1344106614,), (1344106617,), (1344106621,), (1344106630,), (1344106836,), (1344106863,), (1344106892,), (1344106924,), (1344107052,), (1344107375,), (1344107767,), (1344107183,), (1344107185,), (1344107187,), (1344107189,), (1344107210,), (1344107221,), (1344107239,), (1344107243,), (1344107261,), (1344107329,), (1344107349,), (1344107353,), (1344107631,), (1344107635,), (1344107656,), (1344107669,), (1344107695,), (1344107700,), (1344107706,), (1344107721,), (1344107729,), (1344107733,), (1344107739,), (1344107743,), (1344107752,), (1344107783,), (1344107785,), (1344107787,), (1344107790,), (1344107794,), (1344107810,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14032025': {'nb_upload': 88, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21417994]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1344107767] map_info['map_portfolio_photo'] : {21417994: [1344107767, 1344107375, 1344107052, 1344106924, 1344106892, 1344106863, 1344106836, 1344106630, 1344106621, 1344106617, 1344106614, 1344106611, 1344106607, 1344106583, 1344106581, 1344106578, 1344106576, 1344106572, 1344106559, 1344106556, 1344106553, 1344106551, 1344106549, 1344106539, 1344106538, 1344106533, 1344106520, 1344106513, 1344106470, 1344106463, 1344106460, 1344106454, 1344106436, 1344106426, 1344106418, 1344106414, 1344106413, 1344106410, 1344106408, 1344106406, 1344106328, 1344106288, 1344106285, 1344106283, 1344106271, 1344106266, 1344106212, 1344106209, 1344106204, 1344106199, 1344106181, 1344106176, 1344106171, 1344106167, 1344106163, 1344106161, 1344106132, 1344106128, 1344106116, 1344106074, 1344105815, 1344105719, 1344105618, 1344105505, 1344105427, 1344105396, 1344105314, 1344105225, 1344105210, 1344105202, 1344105160, 1344105104, 1344105062, 1344105029, 1344104992, 1344104896, 1344104526, 1344104499, 1344104467, 1344104367, 1344103811, 1344103782, 1344103738, 1344103680, 1344103625, 1344103416, 1344103395, 1344103371]} final : True mtd_id 4302 list_pids : [1344107767] Looping around the photos to save general results len do output : 1 /21417994Didn'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, '2668556') ('4302', '21417994', '1344107767', None, None, None, None, None, '2668556') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '21417994', 'None', None, None, None, None, '2668556'), ('4302', '21417994', '1344107767', None, None, None, None, None, '2668556')] time used for this insertion : 0.011968612670898438 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3380775451660156 time spend to save output : 0.012176036834716797 total time spend for step 5 : 0.3502535820007324 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 (2668556) 2.28user 2.58system 0:44.17elapsed 11%CPU (0avgtext+0avgdata 159680maxresident)k 440inputs+18952outputs (22major+74771minor)pagefaults 0swaps