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 : 2506564 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 (2847835) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2847835) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22957362 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2847835'] with mtr_portfolio_ids : ['22957362'] and first list_photo_ids : [] new path : /proc/2506564/ Name: python3 Umask: 0002 State: R (running) Tgid: 2506564 Ngid: 0 Pid: 2506564 PPid: 2506563 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2506564 NSpid: 2506564 NSpgid: 2503897 NSsid: 2503897 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98240 kB VmRSS: 98240 kB RssAnon: 60204 kB RssFile: 38036 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 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: 53 nonvoluntary_ctxt_switches: 111 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2506564', 'Ngid': '0', 'Pid': '2506564', 'PPid': '2506563', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2506564', 'NSpid': '2506564', 'NSpgid': '2503897', 'NSsid': '2503897', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98240 kB', 'VmRSS': '98240 kB', 'RssAnon': '60204 kB', 'RssFile': '38036 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 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': '53', 'nonvoluntary_ctxt_switches': '111'} ('datou_batch_current', '2506564', '1107228', '0', '1107228', '865976', '98240', b'', 'marlene', '2847835') 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 (22957362) 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 (2847835 ) ) 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 (22957362) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1358159889, 'portfolio_id': 22957362}, {'photo_id': 1358159521, 'portfolio_id': 22957362}, {'photo_id': 1358159447, 'portfolio_id': 22957362}, {'photo_id': 1358159434, 'portfolio_id': 22957362}, {'photo_id': 1358159086, 'portfolio_id': 22957362}, {'photo_id': 1358159067, 'portfolio_id': 22957362}, {'photo_id': 1358159066, 'portfolio_id': 22957362}, {'photo_id': 1358159064, 'portfolio_id': 22957362}, {'photo_id': 1358159062, 'portfolio_id': 22957362}, {'photo_id': 1358159060, 'portfolio_id': 22957362}, {'photo_id': 1358158856, 'portfolio_id': 22957362}, {'photo_id': 1358158832, 'portfolio_id': 22957362}, {'photo_id': 1358158806, 'portfolio_id': 22957362}, {'photo_id': 1358158781, 'portfolio_id': 22957362}, {'photo_id': 1358158747, 'portfolio_id': 22957362}, {'photo_id': 1358158722, 'portfolio_id': 22957362}, {'photo_id': 1358158682, 'portfolio_id': 22957362}, {'photo_id': 1358158624, 'portfolio_id': 22957362}, {'photo_id': 1358158585, 'portfolio_id': 22957362}, {'photo_id': 1358158252, 'portfolio_id': 22957362}, {'photo_id': 1358158189, 'portfolio_id': 22957362}, {'photo_id': 1358158139, 'portfolio_id': 22957362}, {'photo_id': 1358158088, 'portfolio_id': 22957362}, {'photo_id': 1358158035, 'portfolio_id': 22957362}, {'photo_id': 1358157990, 'portfolio_id': 22957362}, {'photo_id': 1358157654, 'portfolio_id': 22957362}, {'photo_id': 1358157633, 'portfolio_id': 22957362}, {'photo_id': 1358157609, 'portfolio_id': 22957362}, {'photo_id': 1358157146, 'portfolio_id': 22957362}, {'photo_id': 1358157119, 'portfolio_id': 22957362}, {'photo_id': 1358157092, 'portfolio_id': 22957362}, {'photo_id': 1358157052, 'portfolio_id': 22957362}, {'photo_id': 1358157028, 'portfolio_id': 22957362}, {'photo_id': 1358156995, 'portfolio_id': 22957362}, {'photo_id': 1358156641, 'portfolio_id': 22957362}, {'photo_id': 1358156592, 'portfolio_id': 22957362}, {'photo_id': 1358156540, 'portfolio_id': 22957362}, {'photo_id': 1358156480, 'portfolio_id': 22957362}, {'photo_id': 1358156418, 'portfolio_id': 22957362}, {'photo_id': 1358156383, 'portfolio_id': 22957362}, {'photo_id': 1358155935, 'portfolio_id': 22957362}, {'photo_id': 1358155932, 'portfolio_id': 22957362}, {'photo_id': 1358155929, 'portfolio_id': 22957362}, {'photo_id': 1358155926, 'portfolio_id': 22957362}, {'photo_id': 1358155767, 'portfolio_id': 22957362}, {'photo_id': 1358155732, 'portfolio_id': 22957362}, {'photo_id': 1358155706, 'portfolio_id': 22957362}, {'photo_id': 1358155681, 'portfolio_id': 22957362}, {'photo_id': 1358155634, 'portfolio_id': 22957362}, {'photo_id': 1358155585, 'portfolio_id': 22957362}, {'photo_id': 1358155109, 'portfolio_id': 22957362}, {'photo_id': 1358155085, 'portfolio_id': 22957362}, {'photo_id': 1358155060, 'portfolio_id': 22957362}, {'photo_id': 1358155035, 'portfolio_id': 22957362}, {'photo_id': 1358155013, 'portfolio_id': 22957362}, {'photo_id': 1358154222, 'portfolio_id': 22957362}, {'photo_id': 1358154131, 'portfolio_id': 22957362}, {'photo_id': 1358154074, 'portfolio_id': 22957362}, {'photo_id': 1358154024, 'portfolio_id': 22957362}, {'photo_id': 1358153979, 'portfolio_id': 22957362}, {'photo_id': 1358153618, 'portfolio_id': 22957362}, {'photo_id': 1358153542, 'portfolio_id': 22957362}, {'photo_id': 1358153486, 'portfolio_id': 22957362}, {'photo_id': 1358153434, 'portfolio_id': 22957362}, {'photo_id': 1358153377, 'portfolio_id': 22957362}, {'photo_id': 1358153318, 'portfolio_id': 22957362}, {'photo_id': 1358152812, 'portfolio_id': 22957362}, {'photo_id': 1358152810, 'portfolio_id': 22957362}, {'photo_id': 1358152808, 'portfolio_id': 22957362}, {'photo_id': 1358152806, 'portfolio_id': 22957362}, {'photo_id': 1358152176, 'portfolio_id': 22957362}, {'photo_id': 1358152103, 'portfolio_id': 22957362}, {'photo_id': 1358152028, 'portfolio_id': 22957362}, {'photo_id': 1358151981, 'portfolio_id': 22957362}] map_portfolio_id_photo_id: {22957362: [1358159889, 1358159521, 1358159447, 1358159434, 1358159086, 1358159067, 1358159066, 1358159064, 1358159062, 1358159060, 1358158856, 1358158832, 1358158806, 1358158781, 1358158747, 1358158722, 1358158682, 1358158624, 1358158585, 1358158252, 1358158189, 1358158139, 1358158088, 1358158035, 1358157990, 1358157654, 1358157633, 1358157609, 1358157146, 1358157119, 1358157092, 1358157052, 1358157028, 1358156995, 1358156641, 1358156592, 1358156540, 1358156480, 1358156418, 1358156383, 1358155935, 1358155932, 1358155929, 1358155926, 1358155767, 1358155732, 1358155706, 1358155681, 1358155634, 1358155585, 1358155109, 1358155085, 1358155060, 1358155035, 1358155013, 1358154222, 1358154131, 1358154074, 1358154024, 1358153979, 1358153618, 1358153542, 1358153486, 1358153434, 1358153377, 1358153318, 1358152812, 1358152810, 1358152808, 1358152806, 1358152176, 1358152103, 1358152028, 1358151981]} ##### 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.017558813095092773 #### 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 Wed May 14 11:48:56 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 (22957362) 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 : 22957362 get user id for portfolio 22957362 get sub ptf for main ptf 22957362, type 3726 and hashtags ['cartonnette', 'kraft', 'autre_refus', 'papier', 'Carton_gris', 'Carton_brun', 'Teint_Dans_La_Masse', 'metal', 'environnement', 'mal_croppe', 'plastique', '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`=22957362 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','autre_refus','papier','Carton_gris','Carton_brun','Teint_Dans_La_Masse','metal','environnement','mal_croppe','plastique','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`=22957362 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','autre_refus','papier','Carton_gris','Carton_brun','Teint_Dans_La_Masse','metal','environnement','mal_croppe','plastique','flou')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22957362, 'sub_port_id': 22957436, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327290, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 22957362, 'sub_port_id': 22957437, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327291, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 28)}, 'cartonnette': {'main_port_id': 22957362, 'sub_port_id': 22957438, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327292, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 28)}, 'metal': {'main_port_id': 22957362, 'sub_port_id': 22957439, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327293, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 28)}, 'plastique': {'main_port_id': 22957362, 'sub_port_id': 22957440, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327294, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 28)}, 'environnement': {'main_port_id': 22957362, 'sub_port_id': 22957441, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327295, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 28)}, 'Carton_gris': {'main_port_id': 22957362, 'sub_port_id': 22957442, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327296, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 28)}, 'mal_croppe': {'main_port_id': 22957362, 'sub_port_id': 22957443, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327297, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 28)}, 'Carton_brun': {'main_port_id': 22957362, 'sub_port_id': 22957444, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327298, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 28)}, 'autre_refus': {'main_port_id': 22957362, 'sub_port_id': 22957445, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327299, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 28)}, 'papier': {'main_port_id': 22957362, 'sub_port_id': 22957446, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327300, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 28)}, 'flou': {'main_port_id': 22957362, 'sub_port_id': 22957447, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327301, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22957436 , 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=22957362 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 (22957436) result : ((1358156524,), (1358156527,), (1358160314,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22957362) result : ((1358151981,), (1358152028,), (1358152103,), (1358152176,), (1358152806,), (1358152808,), (1358152810,), (1358152812,), (1358153318,), (1358153377,), (1358153434,), (1358153486,), (1358153542,), (1358153618,), (1358153979,), (1358154024,), (1358154074,), (1358154131,), (1358154222,), (1358155013,), (1358155035,), (1358155060,), (1358155085,), (1358155109,), (1358155585,), (1358155634,), (1358155681,), (1358155706,), (1358155732,), (1358155767,), (1358155926,), (1358155929,), (1358155932,), (1358155935,), (1358156383,), (1358156418,), (1358156480,), (1358156540,), (1358156592,), (1358156641,), (1358156995,), (1358157028,), (1358157052,), (1358157092,), (1358157119,), (1358157146,), (1358157609,), (1358157633,), (1358157654,), (1358157990,), (1358158035,), (1358158088,), (1358158139,), (1358158189,), (1358158252,), (1358158585,), (1358158624,), (1358158682,), (1358158722,), (1358158747,), (1358158781,), (1358158806,), (1358158832,), (1358158856,), (1358159060,), (1358159062,), (1358159064,), (1358159066,), (1358159067,), (1358159086,), (1358159434,), (1358159447,), (1358159521,), (1358159889,)) 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 22957437 , 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=22957362 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 (22957437) result : ((1358156296,), (1358156298,), (1358156381,), (1358156399,), (1358156401,), (1358158579,), (1358159392,), (1358160158,), (1358160216,), (1358160218,), (1358160219,), (1358160220,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22957362) result : ((1358151981,), (1358152028,), (1358152103,), (1358152176,), (1358152806,), (1358152808,), (1358152810,), (1358152812,), (1358153318,), (1358153377,), (1358153434,), (1358153486,), (1358153542,), (1358153618,), (1358153979,), (1358154024,), (1358154074,), (1358154131,), (1358154222,), (1358155013,), (1358155035,), (1358155060,), (1358155085,), (1358155109,), (1358155585,), (1358155634,), (1358155681,), (1358155706,), (1358155732,), (1358155767,), (1358155926,), (1358155929,), (1358155932,), (1358155935,), (1358156383,), (1358156418,), (1358156480,), (1358156540,), (1358156592,), (1358156641,), (1358156995,), (1358157028,), (1358157052,), (1358157092,), (1358157119,), (1358157146,), (1358157609,), (1358157633,), (1358157654,), (1358157990,), (1358158035,), (1358158088,), (1358158139,), (1358158189,), (1358158252,), (1358158585,), (1358158624,), (1358158682,), (1358158722,), (1358158747,), (1358158781,), (1358158806,), (1358158832,), (1358158856,), (1358159060,), (1358159062,), (1358159064,), (1358159066,), (1358159067,), (1358159086,), (1358159434,), (1358159447,), (1358159521,), (1358159889,)) 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 22957438 , 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=22957362 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 (22957438) result : ((1358156415,), (1358156457,), (1358156460,), (1358156463,), (1358156466,), (1358158619,), (1358158622,), (1358158626,), (1358158629,), (1358158632,), (1358158635,), (1358158638,), (1358158641,), (1358158645,), (1358158647,), (1358159416,), (1358160209,), (1358160210,), (1358160211,), (1358160233,), (1358160235,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22957362) result : ((1358151981,), (1358152028,), (1358152103,), (1358152176,), (1358152806,), (1358152808,), (1358152810,), (1358152812,), (1358153318,), (1358153377,), (1358153434,), (1358153486,), (1358153542,), (1358153618,), (1358153979,), (1358154024,), (1358154074,), (1358154131,), (1358154222,), (1358155013,), (1358155035,), (1358155060,), (1358155085,), (1358155109,), (1358155585,), (1358155634,), (1358155681,), (1358155706,), (1358155732,), (1358155767,), (1358155926,), (1358155929,), (1358155932,), (1358155935,), (1358156383,), (1358156418,), (1358156480,), (1358156540,), (1358156592,), (1358156641,), (1358156995,), (1358157028,), (1358157052,), (1358157092,), (1358157119,), (1358157146,), (1358157609,), (1358157633,), (1358157654,), (1358157990,), (1358158035,), (1358158088,), (1358158139,), (1358158189,), (1358158252,), (1358158585,), (1358158624,), (1358158682,), (1358158722,), (1358158747,), (1358158781,), (1358158806,), (1358158832,), (1358158856,), (1358159060,), (1358159062,), (1358159064,), (1358159066,), (1358159067,), (1358159086,), (1358159434,), (1358159447,), (1358159521,), (1358159889,)) 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 22957439 , 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=22957362 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 (22957439) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22957362) result : ((1358151981,), (1358152028,), (1358152103,), (1358152176,), (1358152806,), (1358152808,), (1358152810,), (1358152812,), (1358153318,), (1358153377,), (1358153434,), (1358153486,), (1358153542,), (1358153618,), (1358153979,), (1358154024,), (1358154074,), (1358154131,), (1358154222,), (1358155013,), (1358155035,), (1358155060,), (1358155085,), (1358155109,), (1358155585,), (1358155634,), (1358155681,), (1358155706,), (1358155732,), (1358155767,), (1358155926,), (1358155929,), (1358155932,), (1358155935,), (1358156383,), (1358156418,), (1358156480,), (1358156540,), (1358156592,), (1358156641,), (1358156995,), (1358157028,), (1358157052,), (1358157092,), (1358157119,), (1358157146,), (1358157609,), (1358157633,), (1358157654,), (1358157990,), (1358158035,), (1358158088,), (1358158139,), (1358158189,), (1358158252,), (1358158585,), (1358158624,), (1358158682,), (1358158722,), (1358158747,), (1358158781,), (1358158806,), (1358158832,), (1358158856,), (1358159060,), (1358159062,), (1358159064,), (1358159066,), (1358159067,), (1358159086,), (1358159434,), (1358159447,), (1358159521,), (1358159889,)) 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 22957440 , 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=22957362 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 (22957440) result : ((1358156337,), (1358156502,), (1358156506,), (1358160290,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22957362) result : ((1358151981,), (1358152028,), (1358152103,), (1358152176,), (1358152806,), (1358152808,), (1358152810,), (1358152812,), (1358153318,), (1358153377,), (1358153434,), (1358153486,), (1358153542,), (1358153618,), (1358153979,), (1358154024,), (1358154074,), (1358154131,), (1358154222,), (1358155013,), (1358155035,), (1358155060,), (1358155085,), (1358155109,), (1358155585,), (1358155634,), (1358155681,), (1358155706,), (1358155732,), (1358155767,), (1358155926,), (1358155929,), (1358155932,), (1358155935,), (1358156383,), (1358156418,), (1358156480,), (1358156540,), (1358156592,), (1358156641,), (1358156995,), (1358157028,), (1358157052,), (1358157092,), (1358157119,), (1358157146,), (1358157609,), (1358157633,), (1358157654,), (1358157990,), (1358158035,), (1358158088,), (1358158139,), (1358158189,), (1358158252,), (1358158585,), (1358158624,), (1358158682,), (1358158722,), (1358158747,), (1358158781,), (1358158806,), (1358158832,), (1358158856,), (1358159060,), (1358159062,), (1358159064,), (1358159066,), (1358159067,), (1358159086,), (1358159434,), (1358159447,), (1358159521,), (1358159889,)) 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 22957441 , 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=22957362 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 (22957441) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22957362) result : ((1358151981,), (1358152028,), (1358152103,), (1358152176,), (1358152806,), (1358152808,), (1358152810,), (1358152812,), (1358153318,), (1358153377,), (1358153434,), (1358153486,), (1358153542,), (1358153618,), (1358153979,), (1358154024,), (1358154074,), (1358154131,), (1358154222,), (1358155013,), (1358155035,), (1358155060,), (1358155085,), (1358155109,), (1358155585,), (1358155634,), (1358155681,), (1358155706,), (1358155732,), (1358155767,), (1358155926,), (1358155929,), (1358155932,), (1358155935,), (1358156383,), (1358156418,), (1358156480,), (1358156540,), (1358156592,), (1358156641,), (1358156995,), (1358157028,), (1358157052,), (1358157092,), (1358157119,), (1358157146,), (1358157609,), (1358157633,), (1358157654,), (1358157990,), (1358158035,), (1358158088,), (1358158139,), (1358158189,), (1358158252,), (1358158585,), (1358158624,), (1358158682,), (1358158722,), (1358158747,), (1358158781,), (1358158806,), (1358158832,), (1358158856,), (1358159060,), (1358159062,), (1358159064,), (1358159066,), (1358159067,), (1358159086,), (1358159434,), (1358159447,), (1358159521,), (1358159889,)) 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 22957442 , 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=22957362 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 (22957442) result : ((1358156322,), (1358156324,), (1358156408,), (1358156420,), (1358156422,), (1358156425,), (1358156428,), (1358156432,), (1358160204,), (1358160223,), (1358160224,), (1358160225,), (1358160226,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22957362) result : ((1358151981,), (1358152028,), (1358152103,), (1358152176,), (1358152806,), (1358152808,), (1358152810,), (1358152812,), (1358153318,), (1358153377,), (1358153434,), (1358153486,), (1358153542,), (1358153618,), (1358153979,), (1358154024,), (1358154074,), (1358154131,), (1358154222,), (1358155013,), (1358155035,), (1358155060,), (1358155085,), (1358155109,), (1358155585,), (1358155634,), (1358155681,), (1358155706,), (1358155732,), (1358155767,), (1358155926,), (1358155929,), (1358155932,), (1358155935,), (1358156383,), (1358156418,), (1358156480,), (1358156540,), (1358156592,), (1358156641,), (1358156995,), (1358157028,), (1358157052,), (1358157092,), (1358157119,), (1358157146,), (1358157609,), (1358157633,), (1358157654,), (1358157990,), (1358158035,), (1358158088,), (1358158139,), (1358158189,), (1358158252,), (1358158585,), (1358158624,), (1358158682,), (1358158722,), (1358158747,), (1358158781,), (1358158806,), (1358158832,), (1358158856,), (1358159060,), (1358159062,), (1358159064,), (1358159066,), (1358159067,), (1358159086,), (1358159434,), (1358159447,), (1358159521,), (1358159889,)) 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 22957443 , 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=22957362 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 (22957443) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22957362) result : ((1358151981,), (1358152028,), (1358152103,), (1358152176,), (1358152806,), (1358152808,), (1358152810,), (1358152812,), (1358153318,), (1358153377,), (1358153434,), (1358153486,), (1358153542,), (1358153618,), (1358153979,), (1358154024,), (1358154074,), (1358154131,), (1358154222,), (1358155013,), (1358155035,), (1358155060,), (1358155085,), (1358155109,), (1358155585,), (1358155634,), (1358155681,), (1358155706,), (1358155732,), (1358155767,), (1358155926,), (1358155929,), (1358155932,), (1358155935,), (1358156383,), (1358156418,), (1358156480,), (1358156540,), (1358156592,), (1358156641,), (1358156995,), (1358157028,), (1358157052,), (1358157092,), (1358157119,), (1358157146,), (1358157609,), (1358157633,), (1358157654,), (1358157990,), (1358158035,), (1358158088,), (1358158139,), (1358158189,), (1358158252,), (1358158585,), (1358158624,), (1358158682,), (1358158722,), (1358158747,), (1358158781,), (1358158806,), (1358158832,), (1358158856,), (1358159060,), (1358159062,), (1358159064,), (1358159066,), (1358159067,), (1358159086,), (1358159434,), (1358159447,), (1358159521,), (1358159889,)) 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 22957444 , 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=22957362 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 (22957444) result : ((1358156330,), (1358156435,), (1358156438,), (1358156483,), (1358159422,), (1358160213,), (1358160214,), (1358160215,), (1358160217,), (1358160247,), (1358160252,), (1358160257,), (1358160262,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22957362) result : ((1358151981,), (1358152028,), (1358152103,), (1358152176,), (1358152806,), (1358152808,), (1358152810,), (1358152812,), (1358153318,), (1358153377,), (1358153434,), (1358153486,), (1358153542,), (1358153618,), (1358153979,), (1358154024,), (1358154074,), (1358154131,), (1358154222,), (1358155013,), (1358155035,), (1358155060,), (1358155085,), (1358155109,), (1358155585,), (1358155634,), (1358155681,), (1358155706,), (1358155732,), (1358155767,), (1358155926,), (1358155929,), (1358155932,), (1358155935,), (1358156383,), (1358156418,), (1358156480,), (1358156540,), (1358156592,), (1358156641,), (1358156995,), (1358157028,), (1358157052,), (1358157092,), (1358157119,), (1358157146,), (1358157609,), (1358157633,), (1358157654,), (1358157990,), (1358158035,), (1358158088,), (1358158139,), (1358158189,), (1358158252,), (1358158585,), (1358158624,), (1358158682,), (1358158722,), (1358158747,), (1358158781,), (1358158806,), (1358158832,), (1358158856,), (1358159060,), (1358159062,), (1358159064,), (1358159066,), (1358159067,), (1358159086,), (1358159434,), (1358159447,), (1358159521,), (1358159889,)) 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 22957445 , 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=22957362 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 (22957445) result : ((1358156308,), (1358156391,), (1358156393,), (1358158592,), (1358158594,), (1358158596,), (1358159407,), (1358159409,), (1358160179,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22957362) result : ((1358151981,), (1358152028,), (1358152103,), (1358152176,), (1358152806,), (1358152808,), (1358152810,), (1358152812,), (1358153318,), (1358153377,), (1358153434,), (1358153486,), (1358153542,), (1358153618,), (1358153979,), (1358154024,), (1358154074,), (1358154131,), (1358154222,), (1358155013,), (1358155035,), (1358155060,), (1358155085,), (1358155109,), (1358155585,), (1358155634,), (1358155681,), (1358155706,), (1358155732,), (1358155767,), (1358155926,), (1358155929,), (1358155932,), (1358155935,), (1358156383,), (1358156418,), (1358156480,), (1358156540,), (1358156592,), (1358156641,), (1358156995,), (1358157028,), (1358157052,), (1358157092,), (1358157119,), (1358157146,), (1358157609,), (1358157633,), (1358157654,), (1358157990,), (1358158035,), (1358158088,), (1358158139,), (1358158189,), (1358158252,), (1358158585,), (1358158624,), (1358158682,), (1358158722,), (1358158747,), (1358158781,), (1358158806,), (1358158832,), (1358158856,), (1358159060,), (1358159062,), (1358159064,), (1358159066,), (1358159067,), (1358159086,), (1358159434,), (1358159447,), (1358159521,), (1358159889,)) 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 22957446 , 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=22957362 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 (22957446) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22957362) result : ((1358151981,), (1358152028,), (1358152103,), (1358152176,), (1358152806,), (1358152808,), (1358152810,), (1358152812,), (1358153318,), (1358153377,), (1358153434,), (1358153486,), (1358153542,), (1358153618,), (1358153979,), (1358154024,), (1358154074,), (1358154131,), (1358154222,), (1358155013,), (1358155035,), (1358155060,), (1358155085,), (1358155109,), (1358155585,), (1358155634,), (1358155681,), (1358155706,), (1358155732,), (1358155767,), (1358155926,), (1358155929,), (1358155932,), (1358155935,), (1358156383,), (1358156418,), (1358156480,), (1358156540,), (1358156592,), (1358156641,), (1358156995,), (1358157028,), (1358157052,), (1358157092,), (1358157119,), (1358157146,), (1358157609,), (1358157633,), (1358157654,), (1358157990,), (1358158035,), (1358158088,), (1358158139,), (1358158189,), (1358158252,), (1358158585,), (1358158624,), (1358158682,), (1358158722,), (1358158747,), (1358158781,), (1358158806,), (1358158832,), (1358158856,), (1358159060,), (1358159062,), (1358159064,), (1358159066,), (1358159067,), (1358159086,), (1358159434,), (1358159447,), (1358159521,), (1358159889,)) 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 22957447 , 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=22957362 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 (22957447) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22957362) result : ((1358151981,), (1358152028,), (1358152103,), (1358152176,), (1358152806,), (1358152808,), (1358152810,), (1358152812,), (1358153318,), (1358153377,), (1358153434,), (1358153486,), (1358153542,), (1358153618,), (1358153979,), (1358154024,), (1358154074,), (1358154131,), (1358154222,), (1358155013,), (1358155035,), (1358155060,), (1358155085,), (1358155109,), (1358155585,), (1358155634,), (1358155681,), (1358155706,), (1358155732,), (1358155767,), (1358155926,), (1358155929,), (1358155932,), (1358155935,), (1358156383,), (1358156418,), (1358156480,), (1358156540,), (1358156592,), (1358156641,), (1358156995,), (1358157028,), (1358157052,), (1358157092,), (1358157119,), (1358157146,), (1358157609,), (1358157633,), (1358157654,), (1358157990,), (1358158035,), (1358158088,), (1358158139,), (1358158189,), (1358158252,), (1358158585,), (1358158624,), (1358158682,), (1358158722,), (1358158747,), (1358158781,), (1358158806,), (1358158832,), (1358158856,), (1358159060,), (1358159062,), (1358159064,), (1358159066,), (1358159067,), (1358159086,), (1358159434,), (1358159447,), (1358159521,), (1358159889,)) 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`=22957362 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','autre_refus','papier','Carton_gris','Carton_brun','Teint_Dans_La_Masse','metal','environnement','mal_croppe','plastique','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`=22957362 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','autre_refus','papier','Carton_gris','Carton_brun','Teint_Dans_La_Masse','metal','environnement','mal_croppe','plastique','flou')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22957362, 'sub_port_id': 22957448, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327302, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 22957362, 'sub_port_id': 22957449, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327303, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 29)}, 'cartonnette': {'main_port_id': 22957362, 'sub_port_id': 22957450, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327304, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 29)}, 'metal': {'main_port_id': 22957362, 'sub_port_id': 22957451, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327305, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 29)}, 'plastique': {'main_port_id': 22957362, 'sub_port_id': 22957452, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327306, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 29)}, 'environnement': {'main_port_id': 22957362, 'sub_port_id': 22957453, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327307, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 29)}, 'Carton_gris': {'main_port_id': 22957362, 'sub_port_id': 22957454, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327308, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 29)}, 'mal_croppe': {'main_port_id': 22957362, 'sub_port_id': 22957455, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327309, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 29)}, 'Carton_brun': {'main_port_id': 22957362, 'sub_port_id': 22957456, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327310, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 29)}, 'autre_refus': {'main_port_id': 22957362, 'sub_port_id': 22957457, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327311, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 29)}, 'papier': {'main_port_id': 22957362, 'sub_port_id': 22957458, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327312, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 29)}, 'flou': {'main_port_id': 22957362, 'sub_port_id': 22957459, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15327313, 'last_updated_at': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 11, 46, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 11, 33, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22957448,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22957436 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22957449,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22957437 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22957450,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22957438 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22957451,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22957439 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22957452,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22957440 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22957453,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22957441 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22957454,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22957442 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22957455,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22957443 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22957456,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22957444 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22957457,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22957445 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22957458,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22957446 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22957459,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22957447 lien utilise dans velours : https://www.fotonower.com/velours/22957448,22957449,22957450,22957451,22957452,22957453,22957454,22957455,22957456,22957457,22957458,22957459?tags=kraft,Teint_Dans_La_Masse,cartonnette,metal,plastique,environnement,Carton_gris,mal_croppe,Carton_brun,autre_refus,papier,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22957362]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1358159889] map_info['map_portfolio_photo'] : {22957362: [1358159889, 1358159521, 1358159447, 1358159434, 1358159086, 1358159067, 1358159066, 1358159064, 1358159062, 1358159060, 1358158856, 1358158832, 1358158806, 1358158781, 1358158747, 1358158722, 1358158682, 1358158624, 1358158585, 1358158252, 1358158189, 1358158139, 1358158088, 1358158035, 1358157990, 1358157654, 1358157633, 1358157609, 1358157146, 1358157119, 1358157092, 1358157052, 1358157028, 1358156995, 1358156641, 1358156592, 1358156540, 1358156480, 1358156418, 1358156383, 1358155935, 1358155932, 1358155929, 1358155926, 1358155767, 1358155732, 1358155706, 1358155681, 1358155634, 1358155585, 1358155109, 1358155085, 1358155060, 1358155035, 1358155013, 1358154222, 1358154131, 1358154074, 1358154024, 1358153979, 1358153618, 1358153542, 1358153486, 1358153434, 1358153377, 1358153318, 1358152812, 1358152810, 1358152808, 1358152806, 1358152176, 1358152103, 1358152028, 1358151981]} final : False mtd_id 4302 list_pids : [1358159889] Looping around the photos to save general results len do output : 1 /22957362. 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, '2847835') ('4302', '22957362', '1358159889', None, None, None, None, None, '2847835') 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, '22957362', "{'kraft': 22957436, 'Teint_Dans_La_Masse': 22957437, 'cartonnette': 22957438, 'metal': 22957439, 'plastique': 22957440, 'environnement': 22957441, 'Carton_gris': 22957442, 'mal_croppe': 22957443, 'Carton_brun': 22957444, 'autre_refus': 22957445, 'papier': 22957446, 'flou': 22957447}", None, None, None, None, '2847835'), ('4302', '22957362', '1358159889', None, None, None, None, None, '2847835')] time used for this insertion : 0.020298004150390625 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6084980964660645 time spend to save output : 0.020562171936035156 total time spend for step 1 : 1.6290602684020996 step2:final Wed May 14 11:48:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (22957362) 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 22957362 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1358152176,1358152103,1358152028,1358151981,1358152812,1358152810,1358152808,1358152806,1358153618,1358153542,1358153486,1358153434,1358153377,1358153318,1358154222,1358154131,1358154074,1358154024,1358153979,1358155109,1358155085,1358155060,1358155035,1358155013,1358155767,1358155732,1358155706,1358155681,1358155634,1358155585,1358155935,1358155932,1358155929,1358155926,1358156641,1358156592,1358156540,1358156480,1358156418,1358156383,1358157146,1358157119,1358157092,1358157052,1358157028,1358156995,1358157654,1358157633,1358157609,1358158252,1358158189,1358158139,1358158088,1358158035,1358157990,1358158747,1358158722,1358158682,1358158624,1358158585,1358158856,1358158832,1358158806,1358158781,1358159086,1358159067,1358159066,1358159064,1358159062,1358159060,1358159521,1358159447,1358159434,1358159889); 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([22957362]) Inside saveOutput : final : False verbose : True original output for save of step final : {1358159889: ('0.04321604751298599',)} new output for save of step final : {1358159889: ('0.04321604751298599',)} [1358159889] map_info['map_portfolio_photo'] : {22957362: [1358159889, 1358159521, 1358159447, 1358159434, 1358159086, 1358159067, 1358159066, 1358159064, 1358159062, 1358159060, 1358158856, 1358158832, 1358158806, 1358158781, 1358158747, 1358158722, 1358158682, 1358158624, 1358158585, 1358158252, 1358158189, 1358158139, 1358158088, 1358158035, 1358157990, 1358157654, 1358157633, 1358157609, 1358157146, 1358157119, 1358157092, 1358157052, 1358157028, 1358156995, 1358156641, 1358156592, 1358156540, 1358156480, 1358156418, 1358156383, 1358155935, 1358155932, 1358155929, 1358155926, 1358155767, 1358155732, 1358155706, 1358155681, 1358155634, 1358155585, 1358155109, 1358155085, 1358155060, 1358155035, 1358155013, 1358154222, 1358154131, 1358154074, 1358154024, 1358153979, 1358153618, 1358153542, 1358153486, 1358153434, 1358153377, 1358153318, 1358152812, 1358152810, 1358152808, 1358152806, 1358152176, 1358152103, 1358152028, 1358151981]} final : False mtd_id 4302 list_pids : [1358159889] Looping around the photos to save general results len do output : 1 /1358159889.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, '2847835') ('4302', '22957362', '1358159889', None, None, None, None, None, '2847835') 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', '22957362', '1358159889', '0.04321604751298599', None, None, None, None, '2847835')] time used for this insertion : 0.016216039657592773 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0794377326965332 time spend to save output : 0.01641392707824707 total time spend for step 2 : 0.09585165977478027 step3:velours_tree Wed May 14 11:48:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {22957362: [{'kraft': 22957436, 'Teint_Dans_La_Masse': 22957437, 'cartonnette': 22957438, 'metal': 22957439, 'plastique': 22957440, 'environnement': 22957441, 'Carton_gris': 22957442, 'mal_croppe': 22957443, 'Carton_brun': 22957444, 'autre_refus': 22957445, 'papier': 22957446, 'flou': 22957447}]} input_args_next_step : {22957362: ()} output_args : {22957362: [{'kraft': 22957436, 'Teint_Dans_La_Masse': 22957437, 'cartonnette': 22957438, 'metal': 22957439, 'plastique': 22957440, 'environnement': 22957441, 'Carton_gris': 22957442, 'mal_croppe': 22957443, 'Carton_brun': 22957444, 'autre_refus': 22957445, 'papier': 22957446, 'flou': 22957447}]} args : 22957362 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 22957436, 'Teint_Dans_La_Masse': 22957437, 'cartonnette': 22957438, 'metal': 22957439, 'plastique': 22957440, 'environnement': 22957441, 'Carton_gris': 22957442, 'mal_croppe': 22957443, 'Carton_brun': 22957444, 'autre_refus': 22957445, 'papier': 22957446, 'flou': 22957447},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22957362) 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([22957362]) 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.3112800121307373 time spend to save output : 5.984306335449219e-05 total time spend for step 3 : 0.3113398551940918 step4:send_mail_cod Wed May 14 11:48:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1358159889: ('0.04321604751298599',)} input_args_next_step : {1358159889: ()} output_args : {1358159889: ('0.04321604751298599',)} args : 1358159889 depend.output_id : 0 complete output_args for input 3 : {22957362: [{'kraft': 22957436, 'Teint_Dans_La_Masse': 22957437, 'cartonnette': 22957438, 'metal': 22957439, 'plastique': 22957440, 'environnement': 22957441, 'Carton_gris': 22957442, 'mal_croppe': 22957443, 'Carton_brun': 22957444, 'autre_refus': 22957445, 'papier': 22957446, 'flou': 22957447}]} input_args_next_step : {1358159889: ('0.04321604751298599',), 22957362: ()} output_args : {22957362: [{'kraft': 22957436, 'Teint_Dans_La_Masse': 22957437, 'cartonnette': 22957438, 'metal': 22957439, 'plastique': 22957440, 'environnement': 22957441, 'Carton_gris': 22957442, 'mal_croppe': 22957443, 'Carton_brun': 22957444, 'autre_refus': 22957445, 'papier': 22957446, 'flou': 22957447}]} args : 22957362 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.04321604751298599',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22957362) 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 (1358159889) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1358159889 download finish for photo 1358159889 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_P22957362_14-05-2025_11_48_58.pdf 22957436 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=22957436 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358156524: '1747215387_2096415_1358154222_6b21020c988ed45e289767cffa556a56_rle_crop_3796906431_0.png', 1358156527: '1747215387_2096415_1358153318_bdd9398ef027ace005390e89537a4cec_rle_crop_3796907717_0.png', 1358160314: '1747215987_2118109_1358156480_1f0030b482cef29bc744785c605f50b6_rle_crop_3796919805_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/2ca983781d020ea7b6872b4b96950bab_86541846.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/b91ee58d498dfff2d9463058668f1ed5_14994572.png change filename to text .imagette229574361747216138/ imagette229574361747216138/1747215987_2118109_1358156480_1f0030b482cef29bc744785c605f50b6_rle_crop_3796919805_0.png.png imagette229574361747216138/1747215387_2096415_1358154222_6b21020c988ed45e289767cffa556a56_rle_crop_3796906431_0.png.png imagette229574361747216138/1747215387_2096415_1358153318_bdd9398ef027ace005390e89537a4cec_rle_crop_3796907717_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/30838350b28992090e5eff40eb3bf660_30781529.png imagette229574361747216138 22957438 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=22957438 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358158635: '1747215685_2107218_1358155681_a510cd5d06e02cdae2c9e010b9edaff9_rle_crop_3796913352_0.png', 1358160235: '1747215987_2118109_1358156480_1f0030b482cef29bc744785c605f50b6_rle_crop_3796919801_0.png', 1358160233: '1747215987_2118109_1358157146_ecf8df6dab5d0615486acde6b29f42fa_rle_crop_3796919722_0.png', 1358160211: '1747215985_3078039_1358155013_de4eecb094a86f02e45f5764d2e33a47_rle_crop_3796919777_0.png', 1358160210: '1747215985_3078039_1358155035_a1ac008359d0aa5eceefcbe0638bf9cc_rle_crop_3796919743_0.png', 1358160209: '1747215985_3078039_1358155767_c683fd106ae765ad34ac3cac1f444612_rle_crop_3796919696_0.png', 1358159416: '1747215866_2114936_1358158252_c767b83c0d800f7d36846a5961a3bcec_rle_crop_3796916415_0.png', 1358158647: '1747215685_2107218_1358155585_3d812a05793db191ccc583b7390758aa_rle_crop_3796913609_0.png', 1358158645: '1747215685_2107218_1358155585_3d812a05793db191ccc583b7390758aa_rle_crop_3796913613_0.png', 1358158641: '1747215685_2107218_1358155634_5ced58e02658adb2cc70b341dc5ac32e_rle_crop_3796913365_0.png', 1358158638: '1747215685_2107218_1358155634_5ced58e02658adb2cc70b341dc5ac32e_rle_crop_3796913364_0.png', 1358156415: '1747215446_3065694_1358151981_1c993de8ad936d147953a5c8882bf9da_rle_crop_3796907945_0.png', 1358158632: '1747215685_2107218_1358155706_739d874a204c0c4cfa753341961282b5_rle_crop_3796913220_0.png', 1358158629: '1747215685_2107218_1358155706_739d874a204c0c4cfa753341961282b5_rle_crop_3796913219_0.png', 1358158626: '1747215685_2107218_1358155732_2f183520cd7de55d983e33dc5b66c22b_rle_crop_3796913111_0.png', 1358158622: '1747215685_2107218_1358155732_2f183520cd7de55d983e33dc5b66c22b_rle_crop_3796913104_0.png', 1358158619: '1747215685_2107218_1358155935_c201de2dac076ae52a380ddd51f10e24_rle_crop_3796913091_0.png', 1358156466: '1747215387_2096415_1358153318_bdd9398ef027ace005390e89537a4cec_rle_crop_3796907718_0.png', 1358156463: '1747215387_2096415_1358153318_bdd9398ef027ace005390e89537a4cec_rle_crop_3796907721_0.png', 1358156460: '1747215387_2096415_1358153377_c2b01f55d1bf74d3ec9d343b32da979d_rle_crop_3796907678_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/6b9713f7ae824ceb09ed848e9a7d0af7_97298305.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/6d394de12c3f30a7d4e1e5c2f3724068_33552496.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/7d0bc5bc7f5abe81d98fddf10e476a76_15362223.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/9b9891de87b279e94564e757c9063d4c_72741633.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/9abadbb09c9d0557c3bb543d4e78f5e9_6491274.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/d51168e8e65545716a2fa5735ed9a5bb_47665678.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/efa19e14c0bf7f6dd5d48512bdba8c1f_88528474.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/30967375d4137d4b317bee425b264add_51166382.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/31e52a833eda7e72a0949722d114bce7_9436778.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/0b315cd405c5692073fbf773b0a8fbab_89180000.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/2759bba30d62ee4fb73b5cbbef190e4b_32467408.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/4a985bc46612a9d23d62e137fed3538b_10616051.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/a17e06b8f8d5a2366df32c39f991b31b_34543180.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/845a0b1f20cddf7ea445375831c235f2_28106798.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/2a7472873d0a96b02c94217511f85ebe_43312888.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/366c7a7e6a9f9fb9a2b4e25cadb75bad_60322950.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/1e0064f8b202c5b96fab372ea807e12f_62266856.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/12965a3fc054764584ecc93a6a9c9104_5327835.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/912b789a154ace9b65363a067bbb2d96_29368128.png change filename to text .imagette229574381747216138/ imagette229574381747216138/1747215446_3065694_1358151981_1c993de8ad936d147953a5c8882bf9da_rle_crop_3796907945_0.png.png imagette229574381747216138/1747215387_2096415_1358153318_bdd9398ef027ace005390e89537a4cec_rle_crop_3796907721_0.png.png imagette229574381747216138/1747215685_2107218_1358155681_a510cd5d06e02cdae2c9e010b9edaff9_rle_crop_3796913352_0.png.png imagette229574381747216138/1747215387_2096415_1358153377_c2b01f55d1bf74d3ec9d343b32da979d_rle_crop_3796907678_0.png.png imagette229574381747216138/1747215685_2107218_1358155634_5ced58e02658adb2cc70b341dc5ac32e_rle_crop_3796913364_0.png.png imagette229574381747216138/1747215685_2107218_1358155706_739d874a204c0c4cfa753341961282b5_rle_crop_3796913220_0.png.png imagette229574381747216138/1747215685_2107218_1358155585_3d812a05793db191ccc583b7390758aa_rle_crop_3796913609_0.png.png imagette229574381747216138/1747215685_2107218_1358155732_2f183520cd7de55d983e33dc5b66c22b_rle_crop_3796913104_0.png.png imagette229574381747216138/1747215685_2107218_1358155706_739d874a204c0c4cfa753341961282b5_rle_crop_3796913219_0.png.png imagette229574381747216138/1747215985_3078039_1358155013_de4eecb094a86f02e45f5764d2e33a47_rle_crop_3796919777_0.png.png imagette229574381747216138/1747215387_2096415_1358153318_bdd9398ef027ace005390e89537a4cec_rle_crop_3796907718_0.png.png imagette229574381747216138/1747215685_2107218_1358155732_2f183520cd7de55d983e33dc5b66c22b_rle_crop_3796913111_0.png.png imagette229574381747216138/1747215685_2107218_1358155935_c201de2dac076ae52a380ddd51f10e24_rle_crop_3796913091_0.png.png imagette229574381747216138/1747215987_2118109_1358157146_ecf8df6dab5d0615486acde6b29f42fa_rle_crop_3796919722_0.png.png imagette229574381747216138/1747215866_2114936_1358158252_c767b83c0d800f7d36846a5961a3bcec_rle_crop_3796916415_0.png.png imagette229574381747216138/1747215985_3078039_1358155767_c683fd106ae765ad34ac3cac1f444612_rle_crop_3796919696_0.png.png imagette229574381747216138/1747215685_2107218_1358155634_5ced58e02658adb2cc70b341dc5ac32e_rle_crop_3796913365_0.png.png imagette229574381747216138/1747215985_3078039_1358155035_a1ac008359d0aa5eceefcbe0638bf9cc_rle_crop_3796919743_0.png.png imagette229574381747216138/1747215987_2118109_1358156480_1f0030b482cef29bc744785c605f50b6_rle_crop_3796919801_0.png.png imagette229574381747216138/1747215685_2107218_1358155585_3d812a05793db191ccc583b7390758aa_rle_crop_3796913613_0.png.png imagette229574391747216140/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/918eadd87b56059e59d7d07797a307bd_79744385.png imagette229574381747216138 22957439 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=22957439 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229574391747216140 22957440 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=22957440 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358156337: '1747215445_2097259_1358153979_765ca8b18a5afe84fc59551089a22b6e_rle_crop_3796907176_0.png', 1358156502: '1747215387_2096415_1358153486_b47e13e46be6bcf5c98f04b8bffba643_rle_crop_3796907155_0.png', 1358156506: '1747215387_2096415_1358153486_b47e13e46be6bcf5c98f04b8bffba643_rle_crop_3796907151_0.png', 1358160290: '1747215987_2118109_1358156592_bb70d31ac743d5b47d1453a773a8ceb3_rle_crop_3796919754_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/59c373fa8b03e039bb1c999845c9e260_70445608.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/df491014aff6440ec9423bbf936f82b9_741574.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/5e9e70bd61498e1ea3e953a58ec95eca_51487105.png change filename to text .imagette229574401747216140/ imagette229574401747216140/1747215987_2118109_1358156592_bb70d31ac743d5b47d1453a773a8ceb3_rle_crop_3796919754_0.png.png imagette229574401747216140/1747215387_2096415_1358153486_b47e13e46be6bcf5c98f04b8bffba643_rle_crop_3796907151_0.png.png imagette229574401747216140/1747215387_2096415_1358153486_b47e13e46be6bcf5c98f04b8bffba643_rle_crop_3796907155_0.png.png imagette229574401747216140/1747215445_2097259_1358153979_765ca8b18a5afe84fc59551089a22b6e_rle_crop_3796907176_0.png.png imagette229574431747216140/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/ac96383c4248cbbb398e818d73f4a071_98953586.png imagette229574401747216140 22957443 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=22957443 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229574431747216140 22957445 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=22957445 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358156308: '1747215445_2097259_1358154131_aaac16868acf0b756f904b102036a4ae_rle_crop_3796906415_0.png', 1358156391: '1747215387_2096415_1358154222_6b21020c988ed45e289767cffa556a56_rle_crop_3796906425_0.png', 1358156393: '1747215387_2096415_1358154222_6b21020c988ed45e289767cffa556a56_rle_crop_3796906426_0.png', 1358158592: '1747215685_2107218_1358155935_c201de2dac076ae52a380ddd51f10e24_rle_crop_3796913088_0.png', 1358158594: '1747215685_2107218_1358155706_739d874a204c0c4cfa753341961282b5_rle_crop_3796913223_0.png', 1358158596: '1747215685_2107218_1358155585_3d812a05793db191ccc583b7390758aa_rle_crop_3796913610_0.png', 1358159407: '1747215866_2114936_1358157609_7b9c558058324ffd8e9fc6038a2c75e6_rle_crop_3796916436_0.png', 1358159409: '1747215866_2114936_1358157609_7b9c558058324ffd8e9fc6038a2c75e6_rle_crop_3796916431_0.png', 1358160179: '1747215985_3078039_1358155767_c683fd106ae765ad34ac3cac1f444612_rle_crop_3796919691_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/4482a67a26c81f6b43d32ef1434b84a1_86284721.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/fce4b709ef6e410b7d442a0cc219007a_6488710.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/e536fac50c3b51c5a8b633cb187527d4_20123019.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/e0fbd053983f039e0a4adf375fa17e3b_55364901.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/2e144f9f391a2834c329e94ed4d2e3a3_11154991.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/3c0fb9a1308f1ed9d2a888df3ca41b5a_92312632.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/300164a4b1795c79b0fa597fcff2a187_88463324.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/29dcdb0c70072325bedc3aab2a597301_55819481.png change filename to text .imagette229574451747216140/ imagette229574451747216140/1747215685_2107218_1358155585_3d812a05793db191ccc583b7390758aa_rle_crop_3796913610_0.png.png imagette229574451747216140/1747215387_2096415_1358154222_6b21020c988ed45e289767cffa556a56_rle_crop_3796906425_0.png.png imagette229574451747216140/1747215985_3078039_1358155767_c683fd106ae765ad34ac3cac1f444612_rle_crop_3796919691_0.png.png imagette229574451747216140/1747215685_2107218_1358155935_c201de2dac076ae52a380ddd51f10e24_rle_crop_3796913088_0.png.png imagette229574451747216140/1747215685_2107218_1358155706_739d874a204c0c4cfa753341961282b5_rle_crop_3796913223_0.png.png imagette229574451747216140/1747215387_2096415_1358154222_6b21020c988ed45e289767cffa556a56_rle_crop_3796906426_0.png.png imagette229574451747216140/1747215866_2114936_1358157609_7b9c558058324ffd8e9fc6038a2c75e6_rle_crop_3796916431_0.png.png imagette229574451747216140/1747215866_2114936_1358157609_7b9c558058324ffd8e9fc6038a2c75e6_rle_crop_3796916436_0.png.png imagette229574451747216140/1747215445_2097259_1358154131_aaac16868acf0b756f904b102036a4ae_rle_crop_3796906415_0.png.png imagette229574471747216140/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/0a0de5efae22e8483bcb800277f7c9ba_78141657.png imagette229574451747216140 22957447 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=22957447 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229574471747216140 22957437 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=22957437 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358156296: '1747215445_2097259_1358154131_aaac16868acf0b756f904b102036a4ae_rle_crop_3796906418_0.png', 1358156298: '1747215445_2097259_1358154074_6c12ddade53df3efc5b2dd3786e242b6_rle_crop_3796906649_0.png', 1358156381: '1747215387_2096415_1358153318_bdd9398ef027ace005390e89537a4cec_rle_crop_3796907720_0.png', 1358156399: '1747215446_3065694_1358152812_e52404c1f15bc301aacf277efa79ff98_rle_crop_3796906670_0.png', 1358156401: '1747215446_3065694_1358152812_e52404c1f15bc301aacf277efa79ff98_rle_crop_3796906671_0.png', 1358158579: '1747215685_2107218_1358155706_739d874a204c0c4cfa753341961282b5_rle_crop_3796913222_0.png', 1358159392: '1747215866_2114936_1358158252_c767b83c0d800f7d36846a5961a3bcec_rle_crop_3796916416_0.png', 1358160158: '1747215985_3078039_1358155035_a1ac008359d0aa5eceefcbe0638bf9cc_rle_crop_3796919742_0.png', 1358160216: '1747215987_2118109_1358157146_ecf8df6dab5d0615486acde6b29f42fa_rle_crop_3796919727_0.png', 1358160218: '1747215987_2118109_1358156540_7ed0fa9f077ed3aa3377946acf8f3512_rle_crop_3796919792_0.png', 1358160219: '1747215987_2118109_1358156480_1f0030b482cef29bc744785c605f50b6_rle_crop_3796919808_0.png', 1358160220: '1747215987_2118109_1358156383_fe23cfad1559c6c0841ec197f2c0d05f_rle_crop_3796919834_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/ff606ffe18f3aad2ea12a1602126ef58_84687436.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/811d54995d945a84c0e39b198d652ac4_66670635.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/f364e2928a9fe15628f3f38bff8f581d_22076366.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/f716ec060e6fd93be1aa16ebb8f3b839_26813943.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/6ca84baef8126d5aef5dcf84904108e8_20535666.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/352d7fc433ad50c56d946cb3eaba4611_23683988.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/80436d057c973fdc4eb8b0b3324d2551_83845792.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/b34df9600885192d39bebc20b82af149_59219247.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/038f3495ca5906da2101de5e6b25ee95_75603852.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/a10bc143a506d420d66f2d41b6894734_81300457.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/f7998af6248008ea7d2fe3850035a120_1996278.png change filename to text .imagette229574371747216140/ imagette229574371747216140/1747215445_2097259_1358154074_6c12ddade53df3efc5b2dd3786e242b6_rle_crop_3796906649_0.png.png imagette229574371747216140/1747215985_3078039_1358155035_a1ac008359d0aa5eceefcbe0638bf9cc_rle_crop_3796919742_0.png.png imagette229574371747216140/1747215987_2118109_1358156480_1f0030b482cef29bc744785c605f50b6_rle_crop_3796919808_0.png.png imagette229574371747216140/1747215685_2107218_1358155706_739d874a204c0c4cfa753341961282b5_rle_crop_3796913222_0.png.png imagette229574371747216140/1747215987_2118109_1358157146_ecf8df6dab5d0615486acde6b29f42fa_rle_crop_3796919727_0.png.png imagette229574371747216140/1747215387_2096415_1358153318_bdd9398ef027ace005390e89537a4cec_rle_crop_3796907720_0.png.png imagette229574371747216140/1747215445_2097259_1358154131_aaac16868acf0b756f904b102036a4ae_rle_crop_3796906418_0.png.png imagette229574371747216140/1747215987_2118109_1358156383_fe23cfad1559c6c0841ec197f2c0d05f_rle_crop_3796919834_0.png.png imagette229574371747216140/1747215866_2114936_1358158252_c767b83c0d800f7d36846a5961a3bcec_rle_crop_3796916416_0.png.png imagette229574371747216140/1747215446_3065694_1358152812_e52404c1f15bc301aacf277efa79ff98_rle_crop_3796906671_0.png.png imagette229574371747216140/1747215446_3065694_1358152812_e52404c1f15bc301aacf277efa79ff98_rle_crop_3796906670_0.png.png imagette229574371747216140/1747215987_2118109_1358156540_7ed0fa9f077ed3aa3377946acf8f3512_rle_crop_3796919792_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/e598dbd227ae855241fe7b0b9bad1096_59554744.png imagette229574371747216140 22957442 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=22957442 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358156322: '1747215445_2097259_1358154024_b5725704d8d8bee5cdd82d57cb20bb6c_rle_crop_3796906785_0.png', 1358156324: '1747215445_2097259_1358154024_b5725704d8d8bee5cdd82d57cb20bb6c_rle_crop_3796906786_0.png', 1358156408: '1747215446_3065694_1358152028_9d985fd10edca60d41500b87d2b88f27_rle_crop_3796907699_0.png', 1358156420: '1747215387_2096415_1358153486_b47e13e46be6bcf5c98f04b8bffba643_rle_crop_3796907147_0.png', 1358156422: '1747215387_2096415_1358153486_b47e13e46be6bcf5c98f04b8bffba643_rle_crop_3796907148_0.png', 1358156425: '1747215387_2096415_1358153377_c2b01f55d1bf74d3ec9d343b32da979d_rle_crop_3796907688_0.png', 1358156428: '1747215387_2096415_1358153377_c2b01f55d1bf74d3ec9d343b32da979d_rle_crop_3796907680_0.png', 1358156432: '1747215387_2096415_1358153377_c2b01f55d1bf74d3ec9d343b32da979d_rle_crop_3796907679_0.png', 1358160204: '1747215985_3078039_1358155767_c683fd106ae765ad34ac3cac1f444612_rle_crop_3796919693_0.png', 1358160223: '1747215987_2118109_1358156480_1f0030b482cef29bc744785c605f50b6_rle_crop_3796919803_0.png', 1358160224: '1747215987_2118109_1358156418_9132195fdcd9e80f679f5506c4336075_rle_crop_3796919817_0.png', 1358160225: '1747215987_2118109_1358156418_9132195fdcd9e80f679f5506c4336075_rle_crop_3796919816_0.png', 1358160226: '1747215987_2118109_1358156418_9132195fdcd9e80f679f5506c4336075_rle_crop_3796919823_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/58e7498055b15424994c4d261a0520ce_64035028.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/940ad1e4cd8259f2bbc3d7de543342f0_43682481.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/5333afa8abe6acbdafb9093fe4341016_75909932.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/c81cbf6bfc10d5832959b071cb0403dc_16228278.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/c5bca9d790ffde038dd120dfc5892959_81303270.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/de22bf12139979a1f4226c0c206ec736_55566837.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/126582b22a7821798e07c0dd1b63c939_23476723.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/8e3cb945971cadd754233905623d7131_93953710.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/6aaa9e761364086a36585d7485b5792d_74169509.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/408b41e2c9a2d23c303491f1f31de45e_29222434.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/198a4ca802a6bbb55b013840d812a6ab_84285329.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/6e5a6addfa7576107f34ba60940ebfa0_71484967.png change filename to text .imagette229574421747216141/ imagette229574421747216141/1747215987_2118109_1358156418_9132195fdcd9e80f679f5506c4336075_rle_crop_3796919816_0.png.png imagette229574421747216141/1747215445_2097259_1358154024_b5725704d8d8bee5cdd82d57cb20bb6c_rle_crop_3796906786_0.png.png imagette229574421747216141/1747215387_2096415_1358153486_b47e13e46be6bcf5c98f04b8bffba643_rle_crop_3796907148_0.png.png imagette229574421747216141/1747215387_2096415_1358153377_c2b01f55d1bf74d3ec9d343b32da979d_rle_crop_3796907679_0.png.png imagette229574421747216141/1747215987_2118109_1358156418_9132195fdcd9e80f679f5506c4336075_rle_crop_3796919823_0.png.png imagette229574421747216141/1747215987_2118109_1358156480_1f0030b482cef29bc744785c605f50b6_rle_crop_3796919803_0.png.png imagette229574421747216141/1747215387_2096415_1358153377_c2b01f55d1bf74d3ec9d343b32da979d_rle_crop_3796907688_0.png.png imagette229574421747216141/1747215387_2096415_1358153377_c2b01f55d1bf74d3ec9d343b32da979d_rle_crop_3796907680_0.png.png imagette229574421747216141/1747215387_2096415_1358153486_b47e13e46be6bcf5c98f04b8bffba643_rle_crop_3796907147_0.png.png imagette229574421747216141/1747215445_2097259_1358154024_b5725704d8d8bee5cdd82d57cb20bb6c_rle_crop_3796906785_0.png.png imagette229574421747216141/1747215446_3065694_1358152028_9d985fd10edca60d41500b87d2b88f27_rle_crop_3796907699_0.png.png imagette229574421747216141/1747215985_3078039_1358155767_c683fd106ae765ad34ac3cac1f444612_rle_crop_3796919693_0.png.png imagette229574421747216141/1747215987_2118109_1358156418_9132195fdcd9e80f679f5506c4336075_rle_crop_3796919817_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/57726ef2ca459529080c9d7933b8af58_1418406.png imagette229574421747216141 22957444 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=22957444 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358156330: '1747215445_2097259_1358154024_b5725704d8d8bee5cdd82d57cb20bb6c_rle_crop_3796906794_0.png', 1358156435: '1747215446_3065694_1358152103_8c5562a38fa2d8a4ae4fc2941a907cf0_rle_crop_3796907302_0.png', 1358156438: '1747215446_3065694_1358152028_9d985fd10edca60d41500b87d2b88f27_rle_crop_3796907700_0.png', 1358156483: '1747215387_2096415_1358153486_b47e13e46be6bcf5c98f04b8bffba643_rle_crop_3796907154_0.png', 1358159422: '1747215866_2114936_1358158252_c767b83c0d800f7d36846a5961a3bcec_rle_crop_3796916419_0.png', 1358160213: '1747215985_3078039_1358155035_a1ac008359d0aa5eceefcbe0638bf9cc_rle_crop_3796919745_0.png', 1358160214: '1747215985_3078039_1358155035_a1ac008359d0aa5eceefcbe0638bf9cc_rle_crop_3796919740_0.png', 1358160215: '1747215985_3078039_1358155013_de4eecb094a86f02e45f5764d2e33a47_rle_crop_3796919772_0.png', 1358160217: '1747215985_3078039_1358155013_de4eecb094a86f02e45f5764d2e33a47_rle_crop_3796919773_0.png', 1358160247: '1747215987_2118109_1358157146_ecf8df6dab5d0615486acde6b29f42fa_rle_crop_3796919730_0.png', 1358160252: '1747215987_2118109_1358156540_7ed0fa9f077ed3aa3377946acf8f3512_rle_crop_3796919793_0.png', 1358160257: '1747215987_2118109_1358156480_1f0030b482cef29bc744785c605f50b6_rle_crop_3796919809_0.png', 1358160262: '1747215987_2118109_1358156418_9132195fdcd9e80f679f5506c4336075_rle_crop_3796919819_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/a3d3778b55fb456e166f6e3ef3d75285_32709684.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/a00f6793999f07344f6ee8c58b44fa62_3430761.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/7fae6446de12c5df134ae2c82c93db53_56351719.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/da33e65acea1c415fdba6eeb409d65e4_90694141.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/22dce55007c9034da3fa8a8b57102273_81126116.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/4ff5b538c4a9b1b25d06ee388afa5fbd_12100092.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/b25f76fab9e058203c916344d4b632fb_75001396.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/aba879c5107af8f285cb62e9a91b3b4b_58655151.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/351a83502a3d9b9b14facaff88793848_51792775.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/1426985bc13b42e4dacb13a758f3b6e4_40993622.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/e0b3c7a42735d3a695a7dc3148e7c466_93745923.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/db3906a107a87b01f3b73737094a9078_93018633.png change filename to text .imagette229574441747216142/ imagette229574441747216142/1747215985_3078039_1358155013_de4eecb094a86f02e45f5764d2e33a47_rle_crop_3796919773_0.png.png imagette229574441747216142/1747215987_2118109_1358156418_9132195fdcd9e80f679f5506c4336075_rle_crop_3796919819_0.png.png imagette229574441747216142/1747215446_3065694_1358152103_8c5562a38fa2d8a4ae4fc2941a907cf0_rle_crop_3796907302_0.png.png imagette229574441747216142/1747215985_3078039_1358155013_de4eecb094a86f02e45f5764d2e33a47_rle_crop_3796919772_0.png.png imagette229574441747216142/1747215985_3078039_1358155035_a1ac008359d0aa5eceefcbe0638bf9cc_rle_crop_3796919745_0.png.png imagette229574441747216142/1747215987_2118109_1358156540_7ed0fa9f077ed3aa3377946acf8f3512_rle_crop_3796919793_0.png.png imagette229574441747216142/1747215987_2118109_1358156480_1f0030b482cef29bc744785c605f50b6_rle_crop_3796919809_0.png.png imagette229574441747216142/1747215985_3078039_1358155035_a1ac008359d0aa5eceefcbe0638bf9cc_rle_crop_3796919740_0.png.png imagette229574441747216142/1747215387_2096415_1358153486_b47e13e46be6bcf5c98f04b8bffba643_rle_crop_3796907154_0.png.png imagette229574441747216142/1747215987_2118109_1358157146_ecf8df6dab5d0615486acde6b29f42fa_rle_crop_3796919730_0.png.png imagette229574441747216142/1747215866_2114936_1358158252_c767b83c0d800f7d36846a5961a3bcec_rle_crop_3796916419_0.png.png imagette229574441747216142/1747215446_3065694_1358152028_9d985fd10edca60d41500b87d2b88f27_rle_crop_3796907700_0.png.png imagette229574441747216142/1747215445_2097259_1358154024_b5725704d8d8bee5cdd82d57cb20bb6c_rle_crop_3796906794_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/09ed82a4d9b4a737f912333692d303c5_63977443.png imagette229574441747216142 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22957362 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22957448,22957449,22957450,22957451,22957452,22957453,22957454,22957455,22957456,22957457,22957458,22957459?tags=kraft,Teint_Dans_La_Masse,cartonnette,metal,plastique,environnement,Carton_gris,mal_croppe,Carton_brun,autre_refus,papier,flou your option no_mail is active, we will not send the real mail to your client args[1358159889] : ('0.04321604751298599',) no score found for photo 1358159889 We are sending mail with results at report@fotonower.com refus_total : 0.04321604751298599 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=22957362 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_P22957362_14-05-2025_11_48_58.pdf results_Auto_P22957362_14-05-2025_11_48_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22957362_14-05-2025_11_48_58.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','22957362','results_Auto_P22957362_14-05-2025_11_48_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22957362_14-05-2025_11_48_58.pdf','pdf','','0.24','0.04321604751298599') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22957362]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1358159889] map_info['map_portfolio_photo'] : {22957362: [1358159889, 1358159521, 1358159447, 1358159434, 1358159086, 1358159067, 1358159066, 1358159064, 1358159062, 1358159060, 1358158856, 1358158832, 1358158806, 1358158781, 1358158747, 1358158722, 1358158682, 1358158624, 1358158585, 1358158252, 1358158189, 1358158139, 1358158088, 1358158035, 1358157990, 1358157654, 1358157633, 1358157609, 1358157146, 1358157119, 1358157092, 1358157052, 1358157028, 1358156995, 1358156641, 1358156592, 1358156540, 1358156480, 1358156418, 1358156383, 1358155935, 1358155932, 1358155929, 1358155926, 1358155767, 1358155732, 1358155706, 1358155681, 1358155634, 1358155585, 1358155109, 1358155085, 1358155060, 1358155035, 1358155013, 1358154222, 1358154131, 1358154074, 1358154024, 1358153979, 1358153618, 1358153542, 1358153486, 1358153434, 1358153377, 1358153318, 1358152812, 1358152810, 1358152808, 1358152806, 1358152176, 1358152103, 1358152028, 1358151981]} final : False mtd_id 4302 list_pids : [1358159889] 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, '2847835') ('4302', '22957362', '1358159889', None, None, None, None, None, '2847835') 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', '22957362', '1358159889', None, None, None, None, None, '2847835')] time used for this insertion : 0.01206660270690918 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.323940277099609 time spend to save output : 0.012260913848876953 total time spend for step 4 : 5.336201190948486 step5:split_time_score Wed May 14 11:49:03 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 : ['22957362'] 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 : [('22957362',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22957362) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1358159889: {'path': 'temp/1747216138_2506564_1358159889_0a77eb69312f8b1cd5577dfd900a57c5.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 = 22957362; (('arc_en_ciel_jrm_live',), ('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 = 22957362 group by h (('11', 74),) 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=22957362 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 (22957362) 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 (22957362) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14052025 22957362 Nombre de photos uploadées : 74 / 23040 (0%) 14052025 22957362 Nombre de photos taguées (types de déchets): 0 / 74 (0%) 14052025 22957362 Nombre de photos taguées (volume) : 0 / 74 (0%) [{'photo_id': 1358152176, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/7828f099f1945523658f3715404a507e.jpg', 'username': None, 'uploaded_at': 1747215068, 'text': 'image_14052025_11_30_14_010132m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1358152103, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/8c5562a38fa2d8a4ae4fc2941a907cf0.jpg', 'username': None, 'uploaded_at': 1747215068, 'text': 'image_14052025_11_30_24_010134m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1358152028, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/9d985fd10edca60d41500b87d2b88f27.jpg', 'username': None, 'uploaded_at': 1747215068, 'text': 'image_14052025_11_30_33_009128m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1358151981, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/1c993de8ad936d147953a5c8882bf9da.jpg', 'username': None, 'uploaded_at': 1747215068, 'text': 'image_14052025_11_30_44_010139m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 3.814697265625e-06 ?????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0020639896392822266 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22957362, '2025-05-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1803731,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.033204078674316406 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= 1803731 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1803731, 'dashboard_run_id': 1812696, 'mtr_portfolio_id': 22955774, 'dashboard_result_id': 10551839, '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_P22955774_14-05-2025_11_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22955829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22955830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22955831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22955832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22955833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22955834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22955835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22955836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22955837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22955838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22955839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22955841, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1812696, 'mtr_portfolio_id': 22956668, 'dashboard_result_id': 10551840, '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_P22956668_14-05-2025_11_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22956707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22956708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22956709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22956710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22956711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22956712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22956713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22956714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22956715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22956716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22956717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22956718, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1812696, 'mtr_portfolio_id': 22957362, 'dashboard_result_id': 10551841, '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_P22957362_14-05-2025_11_46_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22957436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22957437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22957438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22957439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22957440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22957441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22957442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22957443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22957444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22957445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22957446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22957447, '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 = 22955774 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': 2847469, 'mtr_portfolio_id': 22955774, 'created_at': datetime.datetime(2025, 5, 14, 11, 18, 59), 'result': '0.031212310210618033', 'result_long': None, 'result_double': None}] Qualite : 0.031212310210618033 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22955774 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22955774_14-05-2025_11_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22955774 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_P22955774_14-05-2025_11_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22955829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22955830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22955831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22955832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22955833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22955834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22955835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22955836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22955837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22955838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22955839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22955841, 'pht': 3726}}" where mtr_portfolio_id = 22955774 and dashboard_run_id = 1812698 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`=22955774 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10551839, 0.031212310210618033, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22955774_14-05-2025_11_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22955829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22955830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22955831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22955832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22955833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22955834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22955835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22955836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22955837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22955838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22955839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22955841, '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 = 22956668 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': 2847663, 'mtr_portfolio_id': 22956668, 'created_at': datetime.datetime(2025, 5, 14, 11, 33), 'result': '0.02820383460325975', 'result_long': None, 'result_double': None}] Qualite : 0.02820383460325975 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22956668 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22956668_14-05-2025_11_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22956668 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_P22956668_14-05-2025_11_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22956707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22956708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22956709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22956710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22956711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22956712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22956713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22956714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22956715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22956716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22956717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22956718, 'pht': 3726}}" where mtr_portfolio_id = 22956668 and dashboard_run_id = 1812698 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`=22956668 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10551840, 0.02820383460325975, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22956668_14-05-2025_11_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22956707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22956708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22956709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22956710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22956711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22956712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22956713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22956714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22956715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22956716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22956717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22956718, '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 = 22957362 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': 2847835, 'mtr_portfolio_id': 22957362, 'created_at': datetime.datetime(2025, 5, 14, 11, 48, 58), 'result': '0.04321604751298599', 'result_long': None, 'result_double': None}] Qualite : 0.04321604751298599 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22957362 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22957362_14-05-2025_11_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22957362 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_P22957362_14-05-2025_11_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22957436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22957437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22957438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22957439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22957440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22957441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22957442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22957443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22957444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22957445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22957446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22957447, 'pht': 3726}}" where mtr_portfolio_id = 22957362 and dashboard_run_id = 1812698 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`=22957362 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10551841, 0.04321604751298599, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22957362_14-05-2025_11_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22957436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22957437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22957438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22957439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22957440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22957441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22957442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22957443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22957444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22957445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22957446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22957447, '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 (22955774,22956668,22957362) result : ((1358138648,), (1358138660,), (1358138687,), (1358138759,), (1358139111,), (1358139114,), (1358139152,), (1358139197,), (1358139228,), (1358139472,), (1358139485,), (1358139488,), (1358139496,), (1358139524,), (1358139576,), (1358139580,), (1358139582,), (1358139584,), (1358139587,), (1358139591,), (1358139688,), (1358139712,), (1358139733,), (1358139747,), (1358139756,), (1358139822,), (1358139826,), (1358139829,), (1358139946,), (1358139979,), (1358139999,), (1358140065,), (1358140143,), (1358140434,), (1358140437,), (1358140505,), (1358140509,), (1358140511,), (1358140514,), (1358140711,), (1358140738,), (1358140749,), (1358140753,), (1358140756,), (1358140906,), (1358140909,), (1358140911,), (1358140913,), (1358140914,), (1358141130,), (1358141157,), (1358141174,), (1358141181,), (1358141427,), (1358141431,), (1358141433,), (1358141434,), (1358141439,), (1358141465,), (1358141545,), (1358141548,), (1358141551,), (1358141554,), (1358142139,), (1358142170,), (1358142199,), (1358142228,), (1358142253,), (1358142283,), (1358142370,), (1358142372,), (1358142389,), (1358142419,), (1358142446,), (1358142474,), (1358142667,), (1358142657,), (1358142660,), (1358142663,), (1358142665,), (1358142865,), (1358142868,), (1358142869,), (1358142870,), (1358142871,), (1358142976,), (1358143003,), (1358143027,), (1358143060,), (1358143110,), (1358143545,), (1358143571,), (1358143603,), (1358143675,), (1358143755,), (1358144442,), (1358144496,), (1358144552,), (1358144624,), (1358144700,), (1358144749,), (1358145051,), (1358145160,), (1358145258,), (1358145365,), (1358145455,), (1358146027,), (1358146080,), (1358146151,), (1358146218,), (1358146289,), (1358147241,), (1358147294,), (1358147330,), (1358147375,), (1358147399,), (1358147502,), (1358147982,), (1358148008,), (1358148057,), (1358148104,), (1358148775,), (1358148841,), (1358148911,), (1358148998,), (1358149073,), (1358149155,), (1358149658,), (1358149706,), (1358149739,), (1358149763,), (1358150214,), (1358150249,), (1358150317,), (1358150386,), (1358150485,), (1358150581,), (1358150990,), (1358151057,), (1358151126,), (1358151186,), (1358151566,), (1358151581,), (1358151607,), (1358151633,), (1358151668,), (1358151718,), (1358151923,), (1358151925,), (1358151928,), (1358152253,), (1358151981,), (1358152028,), (1358152103,), (1358152176,), (1358152806,), (1358152808,), (1358152810,), (1358152812,), (1358153318,), (1358153377,), (1358153434,), (1358153486,), (1358153542,), (1358153618,), (1358153979,), (1358154024,), (1358154074,), (1358154131,), (1358154222,), (1358155013,), (1358155035,), (1358155060,), (1358155085,), (1358155109,), (1358155585,), (1358155634,), (1358155681,), (1358155706,), (1358155732,), (1358155767,), (1358155926,), (1358155929,), (1358155932,), (1358155935,), (1358156383,), (1358156418,), (1358156480,), (1358156540,), (1358156592,), (1358156641,), (1358156995,), (1358157028,), (1358157052,), (1358157092,), (1358157119,), (1358157146,), (1358157609,), (1358157633,), (1358157654,), (1358157990,), (1358158035,), (1358158088,), (1358158139,), (1358158189,), (1358158252,), (1358158585,), (1358158624,), (1358158682,), (1358158722,), (1358158747,), (1358158781,), (1358158806,), (1358158832,), (1358158856,), (1358159060,), (1358159062,), (1358159064,), (1358159066,), (1358159067,), (1358159086,), (1358159434,), (1358159447,), (1358159521,), (1358159889,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14052025': {'nb_upload': 74, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22957362]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1358159889] map_info['map_portfolio_photo'] : {22957362: [1358159889, 1358159521, 1358159447, 1358159434, 1358159086, 1358159067, 1358159066, 1358159064, 1358159062, 1358159060, 1358158856, 1358158832, 1358158806, 1358158781, 1358158747, 1358158722, 1358158682, 1358158624, 1358158585, 1358158252, 1358158189, 1358158139, 1358158088, 1358158035, 1358157990, 1358157654, 1358157633, 1358157609, 1358157146, 1358157119, 1358157092, 1358157052, 1358157028, 1358156995, 1358156641, 1358156592, 1358156540, 1358156480, 1358156418, 1358156383, 1358155935, 1358155932, 1358155929, 1358155926, 1358155767, 1358155732, 1358155706, 1358155681, 1358155634, 1358155585, 1358155109, 1358155085, 1358155060, 1358155035, 1358155013, 1358154222, 1358154131, 1358154074, 1358154024, 1358153979, 1358153618, 1358153542, 1358153486, 1358153434, 1358153377, 1358153318, 1358152812, 1358152810, 1358152808, 1358152806, 1358152176, 1358152103, 1358152028, 1358151981]} final : True mtd_id 4302 list_pids : [1358159889] Looping around the photos to save general results len do output : 1 /22957362Didn'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, '2847835') ('4302', '22957362', '1358159889', None, None, None, None, None, '2847835') 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, '22957362', 'None', None, None, None, None, '2847835'), ('4302', '22957362', '1358159889', None, None, None, None, None, '2847835')] time used for this insertion : 0.012952804565429688 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3123316764831543 time spend to save output : 0.013128995895385742 total time spend for step 5 : 0.32546067237854004 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 (2847835) 2.08user 2.24system 0:09.48elapsed 45%CPU (0avgtext+0avgdata 155540maxresident)k 288inputs+10728outputs (11major+62824minor)pagefaults 0swaps