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 : 3131897 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 (2743500) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2743500) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22266161 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2743500'] with mtr_portfolio_ids : ['22266161'] and first list_photo_ids : [] new path : /proc/3131897/ Name: python3 Umask: 0002 State: R (running) Tgid: 3131897 Ngid: 0 Pid: 3131897 PPid: 3131896 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3131897 NSpid: 3131897 NSpgid: 3128527 NSsid: 3128527 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98140 kB VmRSS: 98140 kB RssAnon: 59760 kB RssFile: 38380 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 564 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: 48 nonvoluntary_ctxt_switches: 104 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3131897', 'Ngid': '0', 'Pid': '3131897', 'PPid': '3131896', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3131897', 'NSpid': '3131897', 'NSpgid': '3128527', 'NSsid': '3128527', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98140 kB', 'VmRSS': '98140 kB', 'RssAnon': '59760 kB', 'RssFile': '38380 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '564 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': '48', 'nonvoluntary_ctxt_switches': '104'} ('datou_batch_current', '3131897', '1106928', '0', '1106928', '865676', '98140', b'', 'marlene', '2743500') 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 (22266161) 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 (2743500 ) ) 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 (22266161) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1351576637, 'portfolio_id': 22266161}, {'photo_id': 1351575858, 'portfolio_id': 22266161}, {'photo_id': 1351575339, 'portfolio_id': 22266161}, {'photo_id': 1351575241, 'portfolio_id': 22266161}, {'photo_id': 1351574318, 'portfolio_id': 22266161}, {'photo_id': 1351574289, 'portfolio_id': 22266161}, {'photo_id': 1351574260, 'portfolio_id': 22266161}, {'photo_id': 1351574235, 'portfolio_id': 22266161}, {'photo_id': 1351574141, 'portfolio_id': 22266161}, {'photo_id': 1351573934, 'portfolio_id': 22266161}, {'photo_id': 1351573921, 'portfolio_id': 22266161}, {'photo_id': 1351573894, 'portfolio_id': 22266161}, {'photo_id': 1351573674, 'portfolio_id': 22266161}, {'photo_id': 1351573641, 'portfolio_id': 22266161}, {'photo_id': 1351573611, 'portfolio_id': 22266161}, {'photo_id': 1351573605, 'portfolio_id': 22266161}, {'photo_id': 1351573601, 'portfolio_id': 22266161}, {'photo_id': 1351573596, 'portfolio_id': 22266161}, {'photo_id': 1351573150, 'portfolio_id': 22266161}, {'photo_id': 1351573084, 'portfolio_id': 22266161}, {'photo_id': 1351573034, 'portfolio_id': 22266161}, {'photo_id': 1351572695, 'portfolio_id': 22266161}, {'photo_id': 1351572624, 'portfolio_id': 22266161}, {'photo_id': 1351572575, 'portfolio_id': 22266161}, {'photo_id': 1351572520, 'portfolio_id': 22266161}, {'photo_id': 1351572430, 'portfolio_id': 22266161}, {'photo_id': 1351572417, 'portfolio_id': 22266161}, {'photo_id': 1351572252, 'portfolio_id': 22266161}, {'photo_id': 1351572229, 'portfolio_id': 22266161}, {'photo_id': 1351572100, 'portfolio_id': 22266161}, {'photo_id': 1351572049, 'portfolio_id': 22266161}, {'photo_id': 1351571811, 'portfolio_id': 22266161}, {'photo_id': 1351571262, 'portfolio_id': 22266161}, {'photo_id': 1351571233, 'portfolio_id': 22266161}, {'photo_id': 1351571134, 'portfolio_id': 22266161}, {'photo_id': 1351571056, 'portfolio_id': 22266161}, {'photo_id': 1351570909, 'portfolio_id': 22266161}, {'photo_id': 1351570552, 'portfolio_id': 22266161}, {'photo_id': 1351570446, 'portfolio_id': 22266161}, {'photo_id': 1351570256, 'portfolio_id': 22266161}, {'photo_id': 1351570192, 'portfolio_id': 22266161}, {'photo_id': 1351570128, 'portfolio_id': 22266161}, {'photo_id': 1351570052, 'portfolio_id': 22266161}, {'photo_id': 1351569763, 'portfolio_id': 22266161}, {'photo_id': 1351569621, 'portfolio_id': 22266161}, {'photo_id': 1351569367, 'portfolio_id': 22266161}, {'photo_id': 1351569177, 'portfolio_id': 22266161}, {'photo_id': 1351569152, 'portfolio_id': 22266161}, {'photo_id': 1351569116, 'portfolio_id': 22266161}, {'photo_id': 1351569080, 'portfolio_id': 22266161}, {'photo_id': 1351569051, 'portfolio_id': 22266161}, {'photo_id': 1351569010, 'portfolio_id': 22266161}, {'photo_id': 1351568826, 'portfolio_id': 22266161}, {'photo_id': 1351568728, 'portfolio_id': 22266161}, {'photo_id': 1351568568, 'portfolio_id': 22266161}, {'photo_id': 1351568439, 'portfolio_id': 22266161}, {'photo_id': 1351568286, 'portfolio_id': 22266161}] map_portfolio_id_photo_id: {22266161: [1351576637, 1351575858, 1351575339, 1351575241, 1351574318, 1351574289, 1351574260, 1351574235, 1351574141, 1351573934, 1351573921, 1351573894, 1351573674, 1351573641, 1351573611, 1351573605, 1351573601, 1351573596, 1351573150, 1351573084, 1351573034, 1351572695, 1351572624, 1351572575, 1351572520, 1351572430, 1351572417, 1351572252, 1351572229, 1351572100, 1351572049, 1351571811, 1351571262, 1351571233, 1351571134, 1351571056, 1351570909, 1351570552, 1351570446, 1351570256, 1351570192, 1351570128, 1351570052, 1351569763, 1351569621, 1351569367, 1351569177, 1351569152, 1351569116, 1351569080, 1351569051, 1351569010, 1351568826, 1351568728, 1351568568, 1351568439, 1351568286]} ##### 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.017009258270263672 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Apr 11 10:48:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22266161) 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 : 22266161 get user id for portfolio 22266161 get sub ptf for main ptf 22266161, type 3726 and hashtags ['Teint_Dans_La_Masse', 'flou', 'Carton_gris', 'kraft', 'autre_refus', 'mal_croppe', 'environnement', 'cartonnette', 'metal', 'plastique', 'Carton_brun', 'papier'] 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`=22266161 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','Carton_gris','kraft','autre_refus','mal_croppe','environnement','cartonnette','metal','plastique','Carton_brun','papier')) 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`=22266161 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','Carton_gris','kraft','autre_refus','mal_croppe','environnement','cartonnette','metal','plastique','Carton_brun','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22266161, 'sub_port_id': 22266210, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733558, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 58)}, 'autre_refus': {'main_port_id': 22266161, 'sub_port_id': 22266211, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733559, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 58)}, 'kraft': {'main_port_id': 22266161, 'sub_port_id': 22266212, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733560, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 58)}, 'flou': {'main_port_id': 22266161, 'sub_port_id': 22266213, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733561, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 58)}, 'Carton_gris': {'main_port_id': 22266161, 'sub_port_id': 22266214, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733562, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 58)}, 'papier': {'main_port_id': 22266161, 'sub_port_id': 22266215, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733563, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 58)}, 'mal_croppe': {'main_port_id': 22266161, 'sub_port_id': 22266216, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733564, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 58)}, 'Carton_brun': {'main_port_id': 22266161, 'sub_port_id': 22266217, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733565, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 58)}, 'plastique': {'main_port_id': 22266161, 'sub_port_id': 22266218, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733566, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 58)}, 'environnement': {'main_port_id': 22266161, 'sub_port_id': 22266219, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733567, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 58)}, 'metal': {'main_port_id': 22266161, 'sub_port_id': 22266220, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733568, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 58)}, 'cartonnette': {'main_port_id': 22266161, 'sub_port_id': 22266221, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733569, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22266210 , 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=22266161 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 (22266210) result : ((1351573165,), (1351573167,), (1351573168,), (1351573386,), (1351573855,), (1351574357,), (1351574358,), (1351574359,), (1351574488,), (1351574513,), (1351574586,), (1351574588,), (1351574590,), (1351574592,), (1351574594,), (1351574596,), (1351574598,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22266161) result : ((1351568286,), (1351568439,), (1351568568,), (1351568728,), (1351568826,), (1351569010,), (1351569051,), (1351569080,), (1351569116,), (1351569152,), (1351569177,), (1351569367,), (1351569621,), (1351569763,), (1351570052,), (1351570128,), (1351570192,), (1351570256,), (1351570446,), (1351570552,), (1351570909,), (1351571056,), (1351571134,), (1351571233,), (1351571262,), (1351571811,), (1351572049,), (1351572100,), (1351572229,), (1351572252,), (1351572417,), (1351572430,), (1351572520,), (1351572575,), (1351572624,), (1351572695,), (1351573034,), (1351573084,), (1351573150,), (1351573596,), (1351573601,), (1351573605,), (1351573611,), (1351573641,), (1351573674,), (1351573894,), (1351573921,), (1351573934,), (1351574141,), (1351574235,), (1351574260,), (1351574289,), (1351574318,), (1351575241,), (1351575339,), (1351575858,), (1351576637,)) 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 (1351572100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22266211 , 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=22266161 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 (22266211) result : ((1351573397,), (1351574607,), (1351575720,), (1351575728,), (1351575734,), (1351575740,), (1351575775,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22266161) result : ((1351568286,), (1351568439,), (1351568568,), (1351568728,), (1351568826,), (1351569010,), (1351569051,), (1351569080,), (1351569116,), (1351569152,), (1351569177,), (1351569367,), (1351569621,), (1351569763,), (1351570052,), (1351570128,), (1351570192,), (1351570256,), (1351570446,), (1351570552,), (1351570909,), (1351571056,), (1351571134,), (1351571233,), (1351571262,), (1351571811,), (1351572049,), (1351572100,), (1351572229,), (1351572252,), (1351572417,), (1351572430,), (1351572520,), (1351572575,), (1351572624,), (1351572695,), (1351573034,), (1351573084,), (1351573150,), (1351573596,), (1351573601,), (1351573605,), (1351573611,), (1351573641,), (1351573674,), (1351573894,), (1351573921,), (1351573934,), (1351574141,), (1351574235,), (1351574260,), (1351574289,), (1351574318,), (1351575241,), (1351575339,), (1351575858,), (1351576637,)) 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 (1351572100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22266212 , 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=22266161 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 (22266212) result : ((1351573875,), (1351573876,), (1351574564,), (1351574565,), (1351574566,), (1351574567,), (1351575890,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22266161) result : ((1351568286,), (1351568439,), (1351568568,), (1351568728,), (1351568826,), (1351569010,), (1351569051,), (1351569080,), (1351569116,), (1351569152,), (1351569177,), (1351569367,), (1351569621,), (1351569763,), (1351570052,), (1351570128,), (1351570192,), (1351570256,), (1351570446,), (1351570552,), (1351570909,), (1351571056,), (1351571134,), (1351571233,), (1351571262,), (1351571811,), (1351572049,), (1351572100,), (1351572229,), (1351572252,), (1351572417,), (1351572430,), (1351572520,), (1351572575,), (1351572624,), (1351572695,), (1351573034,), (1351573084,), (1351573150,), (1351573596,), (1351573601,), (1351573605,), (1351573611,), (1351573641,), (1351573674,), (1351573894,), (1351573921,), (1351573934,), (1351574141,), (1351574235,), (1351574260,), (1351574289,), (1351574318,), (1351575241,), (1351575339,), (1351575858,), (1351576637,)) 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 (1351572100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22266213 , 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=22266161 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 (22266213) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22266161) result : ((1351568286,), (1351568439,), (1351568568,), (1351568728,), (1351568826,), (1351569010,), (1351569051,), (1351569080,), (1351569116,), (1351569152,), (1351569177,), (1351569367,), (1351569621,), (1351569763,), (1351570052,), (1351570128,), (1351570192,), (1351570256,), (1351570446,), (1351570552,), (1351570909,), (1351571056,), (1351571134,), (1351571233,), (1351571262,), (1351571811,), (1351572049,), (1351572100,), (1351572229,), (1351572252,), (1351572417,), (1351572430,), (1351572520,), (1351572575,), (1351572624,), (1351572695,), (1351573034,), (1351573084,), (1351573150,), (1351573596,), (1351573601,), (1351573605,), (1351573611,), (1351573641,), (1351573674,), (1351573894,), (1351573921,), (1351573934,), (1351574141,), (1351574235,), (1351574260,), (1351574289,), (1351574318,), (1351575241,), (1351575339,), (1351575858,), (1351576637,)) 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 (1351572100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22266214 , 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=22266161 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 (22266214) result : ((1351573177,), (1351573179,), (1351573182,), (1351573184,), (1351573186,), (1351573409,), (1351573858,), (1351573859,), (1351573860,), (1351574362,), (1351574363,), (1351574364,), (1351574365,), (1351574366,), (1351574507,), (1351574508,), (1351574539,), (1351574540,), (1351574541,), (1351574624,), (1351575779,), (1351575785,), (1351575791,), (1351575832,), (1351575833,), (1351575835,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22266161) result : ((1351568286,), (1351568439,), (1351568568,), (1351568728,), (1351568826,), (1351569010,), (1351569051,), (1351569080,), (1351569116,), (1351569152,), (1351569177,), (1351569367,), (1351569621,), (1351569763,), (1351570052,), (1351570128,), (1351570192,), (1351570256,), (1351570446,), (1351570552,), (1351570909,), (1351571056,), (1351571134,), (1351571233,), (1351571262,), (1351571811,), (1351572049,), (1351572100,), (1351572229,), (1351572252,), (1351572417,), (1351572430,), (1351572520,), (1351572575,), (1351572624,), (1351572695,), (1351573034,), (1351573084,), (1351573150,), (1351573596,), (1351573601,), (1351573605,), (1351573611,), (1351573641,), (1351573674,), (1351573894,), (1351573921,), (1351573934,), (1351574141,), (1351574235,), (1351574260,), (1351574289,), (1351574318,), (1351575241,), (1351575339,), (1351575858,), (1351576637,)) 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 (1351572100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22266215 , 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=22266161 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 (22266215) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22266161) result : ((1351568286,), (1351568439,), (1351568568,), (1351568728,), (1351568826,), (1351569010,), (1351569051,), (1351569080,), (1351569116,), (1351569152,), (1351569177,), (1351569367,), (1351569621,), (1351569763,), (1351570052,), (1351570128,), (1351570192,), (1351570256,), (1351570446,), (1351570552,), (1351570909,), (1351571056,), (1351571134,), (1351571233,), (1351571262,), (1351571811,), (1351572049,), (1351572100,), (1351572229,), (1351572252,), (1351572417,), (1351572430,), (1351572520,), (1351572575,), (1351572624,), (1351572695,), (1351573034,), (1351573084,), (1351573150,), (1351573596,), (1351573601,), (1351573605,), (1351573611,), (1351573641,), (1351573674,), (1351573894,), (1351573921,), (1351573934,), (1351574141,), (1351574235,), (1351574260,), (1351574289,), (1351574318,), (1351575241,), (1351575339,), (1351575858,), (1351576637,)) 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 (1351572100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22266216 , 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=22266161 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 (22266216) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22266161) result : ((1351568286,), (1351568439,), (1351568568,), (1351568728,), (1351568826,), (1351569010,), (1351569051,), (1351569080,), (1351569116,), (1351569152,), (1351569177,), (1351569367,), (1351569621,), (1351569763,), (1351570052,), (1351570128,), (1351570192,), (1351570256,), (1351570446,), (1351570552,), (1351570909,), (1351571056,), (1351571134,), (1351571233,), (1351571262,), (1351571811,), (1351572049,), (1351572100,), (1351572229,), (1351572252,), (1351572417,), (1351572430,), (1351572520,), (1351572575,), (1351572624,), (1351572695,), (1351573034,), (1351573084,), (1351573150,), (1351573596,), (1351573601,), (1351573605,), (1351573611,), (1351573641,), (1351573674,), (1351573894,), (1351573921,), (1351573934,), (1351574141,), (1351574235,), (1351574260,), (1351574289,), (1351574318,), (1351575241,), (1351575339,), (1351575858,), (1351576637,)) 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 (1351572100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22266217 , 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=22266161 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 (22266217) result : ((1351573209,), (1351573210,), (1351573863,), (1351573868,), (1351573871,), (1351574370,), (1351574371,), (1351574372,), (1351574533,), (1351574534,), (1351574535,), (1351574554,), (1351574556,), (1351574558,), (1351574652,), (1351574653,), (1351574654,), (1351575848,), (1351575853,), (1351575857,), (1351575870,), (1351575871,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22266161) result : ((1351568286,), (1351568439,), (1351568568,), (1351568728,), (1351568826,), (1351569010,), (1351569051,), (1351569080,), (1351569116,), (1351569152,), (1351569177,), (1351569367,), (1351569621,), (1351569763,), (1351570052,), (1351570128,), (1351570192,), (1351570256,), (1351570446,), (1351570552,), (1351570909,), (1351571056,), (1351571134,), (1351571233,), (1351571262,), (1351571811,), (1351572049,), (1351572100,), (1351572229,), (1351572252,), (1351572417,), (1351572430,), (1351572520,), (1351572575,), (1351572624,), (1351572695,), (1351573034,), (1351573084,), (1351573150,), (1351573596,), (1351573601,), (1351573605,), (1351573611,), (1351573641,), (1351573674,), (1351573894,), (1351573921,), (1351573934,), (1351574141,), (1351574235,), (1351574260,), (1351574289,), (1351574318,), (1351575241,), (1351575339,), (1351575858,), (1351576637,)) 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 (1351572100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22266218 , 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=22266161 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 (22266218) result : ((1351573239,), (1351573240,), (1351573241,), (1351574377,), (1351574378,), (1351574379,), (1351574380,), (1351574552,), (1351574553,), (1351574555,), (1351574557,), (1351574657,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22266161) result : ((1351568286,), (1351568439,), (1351568568,), (1351568728,), (1351568826,), (1351569010,), (1351569051,), (1351569080,), (1351569116,), (1351569152,), (1351569177,), (1351569367,), (1351569621,), (1351569763,), (1351570052,), (1351570128,), (1351570192,), (1351570256,), (1351570446,), (1351570552,), (1351570909,), (1351571056,), (1351571134,), (1351571233,), (1351571262,), (1351571811,), (1351572049,), (1351572100,), (1351572229,), (1351572252,), (1351572417,), (1351572430,), (1351572520,), (1351572575,), (1351572624,), (1351572695,), (1351573034,), (1351573084,), (1351573150,), (1351573596,), (1351573601,), (1351573605,), (1351573611,), (1351573641,), (1351573674,), (1351573894,), (1351573921,), (1351573934,), (1351574141,), (1351574235,), (1351574260,), (1351574289,), (1351574318,), (1351575241,), (1351575339,), (1351575858,), (1351576637,)) 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 (1351572100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22266219 , 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=22266161 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 (22266219) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22266161) result : ((1351568286,), (1351568439,), (1351568568,), (1351568728,), (1351568826,), (1351569010,), (1351569051,), (1351569080,), (1351569116,), (1351569152,), (1351569177,), (1351569367,), (1351569621,), (1351569763,), (1351570052,), (1351570128,), (1351570192,), (1351570256,), (1351570446,), (1351570552,), (1351570909,), (1351571056,), (1351571134,), (1351571233,), (1351571262,), (1351571811,), (1351572049,), (1351572100,), (1351572229,), (1351572252,), (1351572417,), (1351572430,), (1351572520,), (1351572575,), (1351572624,), (1351572695,), (1351573034,), (1351573084,), (1351573150,), (1351573596,), (1351573601,), (1351573605,), (1351573611,), (1351573641,), (1351573674,), (1351573894,), (1351573921,), (1351573934,), (1351574141,), (1351574235,), (1351574260,), (1351574289,), (1351574318,), (1351575241,), (1351575339,), (1351575858,), (1351576637,)) 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 (1351572100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22266220 , 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=22266161 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 (22266220) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22266161) result : ((1351568286,), (1351568439,), (1351568568,), (1351568728,), (1351568826,), (1351569010,), (1351569051,), (1351569080,), (1351569116,), (1351569152,), (1351569177,), (1351569367,), (1351569621,), (1351569763,), (1351570052,), (1351570128,), (1351570192,), (1351570256,), (1351570446,), (1351570552,), (1351570909,), (1351571056,), (1351571134,), (1351571233,), (1351571262,), (1351571811,), (1351572049,), (1351572100,), (1351572229,), (1351572252,), (1351572417,), (1351572430,), (1351572520,), (1351572575,), (1351572624,), (1351572695,), (1351573034,), (1351573084,), (1351573150,), (1351573596,), (1351573601,), (1351573605,), (1351573611,), (1351573641,), (1351573674,), (1351573894,), (1351573921,), (1351573934,), (1351574141,), (1351574235,), (1351574260,), (1351574289,), (1351574318,), (1351575241,), (1351575339,), (1351575858,), (1351576637,)) 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 (1351572100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22266221 , 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=22266161 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 (22266221) result : ((1351573198,), (1351574369,), (1351574511,), (1351574516,), (1351574518,), (1351574519,), (1351574520,), (1351574633,), (1351574635,), (1351574637,), (1351575838,), (1351575841,), (1351575845,), (1351575855,), (1351575859,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22266161) result : ((1351568286,), (1351568439,), (1351568568,), (1351568728,), (1351568826,), (1351569010,), (1351569051,), (1351569080,), (1351569116,), (1351569152,), (1351569177,), (1351569367,), (1351569621,), (1351569763,), (1351570052,), (1351570128,), (1351570192,), (1351570256,), (1351570446,), (1351570552,), (1351570909,), (1351571056,), (1351571134,), (1351571233,), (1351571262,), (1351571811,), (1351572049,), (1351572100,), (1351572229,), (1351572252,), (1351572417,), (1351572430,), (1351572520,), (1351572575,), (1351572624,), (1351572695,), (1351573034,), (1351573084,), (1351573150,), (1351573596,), (1351573601,), (1351573605,), (1351573611,), (1351573641,), (1351573674,), (1351573894,), (1351573921,), (1351573934,), (1351574141,), (1351574235,), (1351574260,), (1351574289,), (1351574318,), (1351575241,), (1351575339,), (1351575858,), (1351576637,)) 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 (1351572100) and cspi.crop_hashtag_id = chi.id; 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`=22266161 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','Carton_gris','kraft','autre_refus','mal_croppe','environnement','cartonnette','metal','plastique','Carton_brun','papier')) 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`=22266161 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','Carton_gris','kraft','autre_refus','mal_croppe','environnement','cartonnette','metal','plastique','Carton_brun','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22266161, 'sub_port_id': 22266222, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733570, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 59)}, 'autre_refus': {'main_port_id': 22266161, 'sub_port_id': 22266223, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733571, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 59)}, 'kraft': {'main_port_id': 22266161, 'sub_port_id': 22266224, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733572, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 59)}, 'flou': {'main_port_id': 22266161, 'sub_port_id': 22266225, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733573, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 59)}, 'Carton_gris': {'main_port_id': 22266161, 'sub_port_id': 22266226, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733574, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 59)}, 'papier': {'main_port_id': 22266161, 'sub_port_id': 22266227, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733575, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 59)}, 'mal_croppe': {'main_port_id': 22266161, 'sub_port_id': 22266228, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733576, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 59)}, 'Carton_brun': {'main_port_id': 22266161, 'sub_port_id': 22266229, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733577, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 59)}, 'plastique': {'main_port_id': 22266161, 'sub_port_id': 22266230, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733578, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 59)}, 'environnement': {'main_port_id': 22266161, 'sub_port_id': 22266231, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733579, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 59)}, 'metal': {'main_port_id': 22266161, 'sub_port_id': 22266232, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733580, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 59)}, 'cartonnette': {'main_port_id': 22266161, 'sub_port_id': 22266233, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14733581, 'last_updated_at': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 10, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 10, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22266222,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22266210 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22266223,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22266211 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22266224,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22266212 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22266225,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22266213 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22266226,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22266214 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22266227,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22266215 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22266228,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22266216 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22266229,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22266217 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22266230,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22266218 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22266231,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22266219 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22266232,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22266220 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22266233,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22266221 lien utilise dans velours : https://www.fotonower.com/velours/22266222,22266223,22266224,22266225,22266226,22266227,22266228,22266229,22266230,22266231,22266232,22266233?tags=Teint_Dans_La_Masse,autre_refus,kraft,flou,Carton_gris,papier,mal_croppe,Carton_brun,plastique,environnement,metal,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22266161]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351576637] map_info['map_portfolio_photo'] : {22266161: [1351576637, 1351575858, 1351575339, 1351575241, 1351574318, 1351574289, 1351574260, 1351574235, 1351574141, 1351573934, 1351573921, 1351573894, 1351573674, 1351573641, 1351573611, 1351573605, 1351573601, 1351573596, 1351573150, 1351573084, 1351573034, 1351572695, 1351572624, 1351572575, 1351572520, 1351572430, 1351572417, 1351572252, 1351572229, 1351572100, 1351572049, 1351571811, 1351571262, 1351571233, 1351571134, 1351571056, 1351570909, 1351570552, 1351570446, 1351570256, 1351570192, 1351570128, 1351570052, 1351569763, 1351569621, 1351569367, 1351569177, 1351569152, 1351569116, 1351569080, 1351569051, 1351569010, 1351568826, 1351568728, 1351568568, 1351568439, 1351568286]} final : False mtd_id 4302 list_pids : [1351576637] Looping around the photos to save general results len do output : 1 /22266161. 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, '2743500') ('4302', '22266161', '1351576637', None, None, None, None, None, '2743500') 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, '22266161', "{'Teint_Dans_La_Masse': 22266210, 'autre_refus': 22266211, 'kraft': 22266212, 'flou': 22266213, 'Carton_gris': 22266214, 'papier': 22266215, 'mal_croppe': 22266216, 'Carton_brun': 22266217, 'plastique': 22266218, 'environnement': 22266219, 'metal': 22266220, 'cartonnette': 22266221}", None, None, None, None, '2743500'), ('4302', '22266161', '1351576637', None, None, None, None, None, '2743500')] time used for this insertion : 0.01693105697631836 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1539654731750488 time spend to save output : 0.01711440086364746 total time spend for step 1 : 1.1710798740386963 step2:final Fri Apr 11 10:48:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22266161) 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 22266161 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351568826,1351568728,1351568568,1351568439,1351568286,1351569080,1351571262,1351569051,1351571233,1351569010,1351570552,1351569763,1351569621,1351569367,1351569177,1351569152,1351569116,1351570446,1351570256,1351570192,1351570128,1351570052,1351571134,1351571056,1351570909,1351572252,1351572229,1351571811,1351572100,1351572049,1351572695,1351572624,1351572575,1351572520,1351572430,1351572417,1351573150,1351573084,1351573034,1351573674,1351573641,1351573611,1351573605,1351573601,1351573596,1351573934,1351573921,1351573894,1351574318,1351574289,1351574260,1351574235,1351574141,1351575339,1351575241,1351576637,1351575858); 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([22266161]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351576637: ('0.056119854541209095',)} new output for save of step final : {1351576637: ('0.056119854541209095',)} [1351576637] map_info['map_portfolio_photo'] : {22266161: [1351576637, 1351575858, 1351575339, 1351575241, 1351574318, 1351574289, 1351574260, 1351574235, 1351574141, 1351573934, 1351573921, 1351573894, 1351573674, 1351573641, 1351573611, 1351573605, 1351573601, 1351573596, 1351573150, 1351573084, 1351573034, 1351572695, 1351572624, 1351572575, 1351572520, 1351572430, 1351572417, 1351572252, 1351572229, 1351572100, 1351572049, 1351571811, 1351571262, 1351571233, 1351571134, 1351571056, 1351570909, 1351570552, 1351570446, 1351570256, 1351570192, 1351570128, 1351570052, 1351569763, 1351569621, 1351569367, 1351569177, 1351569152, 1351569116, 1351569080, 1351569051, 1351569010, 1351568826, 1351568728, 1351568568, 1351568439, 1351568286]} final : False mtd_id 4302 list_pids : [1351576637] Looping around the photos to save general results len do output : 1 /1351576637.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, '2743500') ('4302', '22266161', '1351576637', None, None, None, None, None, '2743500') 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', '22266161', '1351576637', '0.056119854541209095', None, None, None, None, '2743500')] time used for this insertion : 0.014629364013671875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06787109375 time spend to save output : 0.014799833297729492 total time spend for step 2 : 0.08267092704772949 step3:velours_tree Fri Apr 11 10:48:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22266161: [{'Teint_Dans_La_Masse': 22266210, 'autre_refus': 22266211, 'kraft': 22266212, 'flou': 22266213, 'Carton_gris': 22266214, 'papier': 22266215, 'mal_croppe': 22266216, 'Carton_brun': 22266217, 'plastique': 22266218, 'environnement': 22266219, 'metal': 22266220, 'cartonnette': 22266221}]} input_args_next_step : {22266161: ()} output_args : {22266161: [{'Teint_Dans_La_Masse': 22266210, 'autre_refus': 22266211, 'kraft': 22266212, 'flou': 22266213, 'Carton_gris': 22266214, 'papier': 22266215, 'mal_croppe': 22266216, 'Carton_brun': 22266217, 'plastique': 22266218, 'environnement': 22266219, 'metal': 22266220, 'cartonnette': 22266221}]} args : 22266161 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Teint_Dans_La_Masse': 22266210, 'autre_refus': 22266211, 'kraft': 22266212, 'flou': 22266213, 'Carton_gris': 22266214, 'papier': 22266215, 'mal_croppe': 22266216, 'Carton_brun': 22266217, 'plastique': 22266218, 'environnement': 22266219, 'metal': 22266220, 'cartonnette': 22266221},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22266161) 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([22266161]) 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.321331262588501 time spend to save output : 6.818771362304688e-05 total time spend for step 3 : 0.321399450302124 step4:send_mail_cod Fri Apr 11 10:48:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1351576637: ('0.056119854541209095',)} input_args_next_step : {1351576637: ()} output_args : {1351576637: ('0.056119854541209095',)} args : 1351576637 depend.output_id : 0 complete output_args for input 3 : {22266161: [{'Teint_Dans_La_Masse': 22266210, 'autre_refus': 22266211, 'kraft': 22266212, 'flou': 22266213, 'Carton_gris': 22266214, 'papier': 22266215, 'mal_croppe': 22266216, 'Carton_brun': 22266217, 'plastique': 22266218, 'environnement': 22266219, 'metal': 22266220, 'cartonnette': 22266221}]} input_args_next_step : {1351576637: ('0.056119854541209095',), 22266161: ()} output_args : {22266161: [{'Teint_Dans_La_Masse': 22266210, 'autre_refus': 22266211, 'kraft': 22266212, 'flou': 22266213, 'Carton_gris': 22266214, 'papier': 22266215, 'mal_croppe': 22266216, 'Carton_brun': 22266217, 'plastique': 22266218, 'environnement': 22266219, 'metal': 22266220, 'cartonnette': 22266221}]} args : 22266161 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.056119854541209095',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22266161) 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 (1351576637) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351576637 download finish for photo 1351576637 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_P22266161_11-04-2025_10_48_59.pdf 22266211 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=22266211 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351573397: '1744360671_1360936_1351571056_9872e43256b3b1e15ffcc12693645463_rle_crop_3756683066_0.png', 1351574607: '1744360766_1656378_1351572695_9143f2c698eda899e1a9304b7ca18042_rle_crop_3756689677_0.png', 1351575720: '1744361005_1661841_1351574318_8701fd8c620c138c256e4564818ec6b4_rle_crop_3756696009_0.png', 1351575728: '1744361005_1661841_1351573921_df23819790d07df930ac6ed31fa5cbc2_rle_crop_3756696054_0.png', 1351575734: '1744361005_1661841_1351573921_df23819790d07df930ac6ed31fa5cbc2_rle_crop_3756696052_0.png', 1351575740: '1744361005_1661841_1351573894_a1c14288e9940c545da290f5affc4035_rle_crop_3756696113_0.png', 1351575775: '1744361012_1366512_1351574289_c803ee23f07000f3dd1da3d660be1db4_rle_crop_3756696038_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/35eb639a9d7a7967ceee373239b09a32_61895115.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/58334fac1f33c696d8e6d060096e4610_74568281.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f2c1350e93707d5ab4ca04b541bbb77d_8302960.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/50c01c6396b7521aa303296e3f071195_83271175.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2068db5a3984983ae9f369980dbd1bc9_29048432.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/20ade977e8b1771ba22bd8d70d26ae4a_32117207.png change filename to text .imagette222662111744361339/ imagette222662111744361339/1744361005_1661841_1351573921_df23819790d07df930ac6ed31fa5cbc2_rle_crop_3756696054_0.png.png imagette222662111744361339/1744361005_1661841_1351574318_8701fd8c620c138c256e4564818ec6b4_rle_crop_3756696009_0.png.png imagette222662111744361339/1744361005_1661841_1351573921_df23819790d07df930ac6ed31fa5cbc2_rle_crop_3756696052_0.png.png imagette222662111744361339/1744360766_1656378_1351572695_9143f2c698eda899e1a9304b7ca18042_rle_crop_3756689677_0.png.png imagette222662111744361339/1744361005_1661841_1351573894_a1c14288e9940c545da290f5affc4035_rle_crop_3756696113_0.png.png imagette222662111744361339/1744360671_1360936_1351571056_9872e43256b3b1e15ffcc12693645463_rle_crop_3756683066_0.png.png imagette222662111744361339/1744361012_1366512_1351574289_c803ee23f07000f3dd1da3d660be1db4_rle_crop_3756696038_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/d979946468249dbca5254d4010bd2a64_61917343.png imagette222662111744361339 22266212 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=22266212 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351573875: '1744360693_1361163_1351570192_878428fb109ff68beb88c9d455f46281_rle_crop_3756685627_0.png', 1351573876: '1744360693_1361163_1351570052_5851de4aa192c6bd9de676bd1ec623b1_rle_crop_3756685706_0.png', 1351574564: '1744360813_1363025_1351570192_878428fb109ff68beb88c9d455f46281_rle_crop_3756685627_0.png', 1351574565: '1744360813_1363025_1351570052_5851de4aa192c6bd9de676bd1ec623b1_rle_crop_3756685706_0.png', 1351574566: '1744360775_1362359_1351572430_8192cbde656b62065847adbe252def5f_rle_crop_3756690465_0.png', 1351574567: '1744360775_1362359_1351572417_6d408cdb11a48a42241a47c84393a179_rle_crop_3756691607_0.png', 1351575890: '1744361005_1661841_1351574318_8701fd8c620c138c256e4564818ec6b4_rle_crop_3756696010_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ab277a2e2629e74301b319c8249e6daf_79001743.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/115e098fff66d4f3c6f1fd50f9e8e6c6_38345195.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ab277a2e2629e74301b319c8249e6daf_20614683.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/115e098fff66d4f3c6f1fd50f9e8e6c6_75681396.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/4099d529f106763ae72a3d407ef84b17_27666687.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8adcd71e8d4941b75aff7e214ee99e08_49030616.png change filename to text .imagette222662121744361340/ imagette222662121744361340/1744360693_1361163_1351570192_878428fb109ff68beb88c9d455f46281_rle_crop_3756685627_0.png.png imagette222662121744361340/1744360693_1361163_1351570052_5851de4aa192c6bd9de676bd1ec623b1_rle_crop_3756685706_0.png.png imagette222662121744361340/1744361005_1661841_1351574318_8701fd8c620c138c256e4564818ec6b4_rle_crop_3756696010_0.png.png imagette222662121744361340/1744360775_1362359_1351572417_6d408cdb11a48a42241a47c84393a179_rle_crop_3756691607_0.png.png imagette222662121744361340/1744360775_1362359_1351572430_8192cbde656b62065847adbe252def5f_rle_crop_3756690465_0.png.png imagette222662121744361340/1744360813_1363025_1351570192_878428fb109ff68beb88c9d455f46281_rle_crop_3756685627_0.png.png imagette222662121744361340/1744360813_1363025_1351570052_5851de4aa192c6bd9de676bd1ec623b1_rle_crop_3756685706_0.png.png imagette222662131744361340/ imagette222662161744361340/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/a004f8357ccce8dbb2d17cddd8aa41fa_53135893.png imagette222662121744361340 22266213 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=22266213 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222662131744361340 22266216 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=22266216 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222662161744361340 22266218 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=22266218 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351573239: '1744360574_1357875_1351569080_11751e6df93a6f3c9399b15455cf3015_rle_crop_3756679191_0.png', 1351573240: '1744360574_1357875_1351568826_e36fae7b6902d726de5ac19f3d8a2715_rle_crop_3756679662_0.png', 1351573241: '1744360574_1357875_1351568728_436b4fa86d7cb54d4c61447c17bccdf8_rle_crop_3756681591_0.png', 1351574377: '1744360712_1361478_1351571262_31adf4e50ba227365161af664dbd08e3_bib_crop_3756686214_0.jpg', 1351574378: '1744360712_1361478_1351569080_11751e6df93a6f3c9399b15455cf3015_rle_crop_3756679191_0.png', 1351574379: '1744360712_1361478_1351568826_e36fae7b6902d726de5ac19f3d8a2715_rle_crop_3756679662_0.png', 1351574380: '1744360712_1361478_1351568728_436b4fa86d7cb54d4c61447c17bccdf8_rle_crop_3756681591_0.png', 1351574552: '1744360775_1362359_1351573150_56615093dae73d68dc8433e0e91c51a6_rle_crop_3756687461_0.png', 1351574553: '1744360775_1362359_1351572520_c36a2277f7e09b23670f6642b4bc378c_rle_crop_3756689972_0.png', 1351574555: '1744360775_1362359_1351572520_c36a2277f7e09b23670f6642b4bc378c_rle_crop_3756689965_0.png', 1351574557: '1744360775_1362359_1351572430_8192cbde656b62065847adbe252def5f_rle_crop_3756690466_0.png', 1351574657: '1744360766_1656378_1351572100_9c4cfe5ba0ea5f312d32bd97d79cfdfa_rle_crop_3756691747_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ca01ddb6432377e7a81978b7a5b71aca_31374519.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/28f88c1b0989608d6bc8de0e6e7ea332_14189879.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/cd8856531c21afe9939502bd85783b2f_90253636.png change filename to text .wget -O 4.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3104fad9972db80266155c6b8c04a3f1_32702527.jpg change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ca01ddb6432377e7a81978b7a5b71aca_10665295.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/28f88c1b0989608d6bc8de0e6e7ea332_17778923.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/cd8856531c21afe9939502bd85783b2f_34065034.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/fe3687515df22430b344a2d279ddbb64_21936310.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/cc3481a8610f90345f9a66ed86cea459_42101691.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e8cee9bb80a5bd53f92d88acf898d4d0_36397553.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f434bb2e1b6fb8a32f5d01ec1b7b536c_91090435.png change filename to text .imagette222662181744361340/ imagette222662181744361340/1744360775_1362359_1351572520_c36a2277f7e09b23670f6642b4bc378c_rle_crop_3756689965_0.png.png imagette222662181744361340/1744360574_1357875_1351568728_436b4fa86d7cb54d4c61447c17bccdf8_rle_crop_3756681591_0.png.png imagette222662181744361340/1744360574_1357875_1351568826_e36fae7b6902d726de5ac19f3d8a2715_rle_crop_3756679662_0.png.png imagette222662181744361340/1744360712_1361478_1351568728_436b4fa86d7cb54d4c61447c17bccdf8_rle_crop_3756681591_0.png.png imagette222662181744361340/1744360712_1361478_1351569080_11751e6df93a6f3c9399b15455cf3015_rle_crop_3756679191_0.png.png imagette222662181744361340/1744360775_1362359_1351573150_56615093dae73d68dc8433e0e91c51a6_rle_crop_3756687461_0.png.png imagette222662181744361340/1744360574_1357875_1351569080_11751e6df93a6f3c9399b15455cf3015_rle_crop_3756679191_0.png.png imagette222662181744361340/1744360712_1361478_1351568826_e36fae7b6902d726de5ac19f3d8a2715_rle_crop_3756679662_0.png.png imagette222662181744361340/1744360766_1656378_1351572100_9c4cfe5ba0ea5f312d32bd97d79cfdfa_rle_crop_3756691747_0.png.png imagette222662181744361340/1744360712_1361478_1351571262_31adf4e50ba227365161af664dbd08e3_bib_crop_3756686214_0.jpg.jpg imagette222662181744361340/1744360775_1362359_1351572520_c36a2277f7e09b23670f6642b4bc378c_rle_crop_3756689972_0.png.png imagette222662181744361340/1744360775_1362359_1351572430_8192cbde656b62065847adbe252def5f_rle_crop_3756690466_0.png.png imagette222662201744361341/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8e6cbd588d1c4faebcda8364b67a551f_57381377.png imagette222662181744361340 22266220 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=22266220 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222662201744361341 22266221 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=22266221 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351573198: '1744360574_1357875_1351568439_64d2bb58b1a46d0fc5a3acf24543c688_rle_crop_3756682028_0.png', 1351574369: '1744360712_1361478_1351568439_64d2bb58b1a46d0fc5a3acf24543c688_rle_crop_3756682028_0.png', 1351574511: '1744360775_1362359_1351572575_0a986c06c848a5ea8498f2caaecba558_rle_crop_3756689012_0.png', 1351574516: '1744360775_1362359_1351572520_c36a2277f7e09b23670f6642b4bc378c_rle_crop_3756689971_0.png', 1351574518: '1744360775_1362359_1351572417_6d408cdb11a48a42241a47c84393a179_rle_crop_3756691602_0.png', 1351574519: '1744360775_1362359_1351572417_6d408cdb11a48a42241a47c84393a179_rle_crop_3756691603_0.png', 1351574520: '1744360775_1362359_1351572417_6d408cdb11a48a42241a47c84393a179_rle_crop_3756691605_0.png', 1351574633: '1744360766_1656378_1351572695_9143f2c698eda899e1a9304b7ca18042_rle_crop_3756689681_0.png', 1351574635: '1744360766_1656378_1351572229_a2e127c382293c302d0cdcb61325bfdd_rle_crop_3756690026_0.png', 1351574637: '1744360766_1656378_1351572049_9e228cdf7c3f9b96c3016a39ba499fef_rle_crop_3756692262_0.png', 1351575838: '1744361012_1366512_1351574141_957a71bea49918b2e79a79db9f580c62_rle_crop_3756696151_0.png', 1351575841: '1744361005_1661841_1351573921_df23819790d07df930ac6ed31fa5cbc2_rle_crop_3756696055_0.png', 1351575845: '1744361005_1661841_1351573894_a1c14288e9940c545da290f5affc4035_rle_crop_3756696111_0.png', 1351575855: '1744361005_1661841_1351573894_a1c14288e9940c545da290f5affc4035_rle_crop_3756696108_0.png', 1351575859: '1744361005_1661841_1351573894_a1c14288e9940c545da290f5affc4035_rle_crop_3756696122_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/dcadae385bc0b415aebb96d34587f132_55493372.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/dcadae385bc0b415aebb96d34587f132_17987214.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/0abdb587fd6bbd7d7b17b127fa1e21a9_11202212.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b5b61a9fccbedd7027ed7e41899caedb_4522662.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e21f5f99edf90c4873c6065817b38473_87830641.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/302438c3960f6260c0049ce6c71ade72_41874530.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/723776316ee34b990d352f6b251e93af_35331979.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/9f7de9eb5c55b62d8918668b57b7cfe8_65225352.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/d347ca44154ab78c524a6a8ab35e45c4_6440555.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/65fef4f7f708a6504e6a0f98d6735553_78286428.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ad184f11daf5e6307338cc026a8d5cf4_61463644.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/994afb74a54fd8fb359e3432ac4a623b_26272216.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/7e0c3ea7bf972063394df7b5ef29589d_56466058.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8810e1f8ba916419d5cd121921167b05_92276149.png change filename to text .imagette222662211744361341/ imagette222662211744361341/1744360775_1362359_1351572417_6d408cdb11a48a42241a47c84393a179_rle_crop_3756691605_0.png.png imagette222662211744361341/1744360775_1362359_1351572417_6d408cdb11a48a42241a47c84393a179_rle_crop_3756691602_0.png.png imagette222662211744361341/1744361005_1661841_1351573894_a1c14288e9940c545da290f5affc4035_rle_crop_3756696122_0.png.png imagette222662211744361341/1744361012_1366512_1351574141_957a71bea49918b2e79a79db9f580c62_rle_crop_3756696151_0.png.png imagette222662211744361341/1744360775_1362359_1351572575_0a986c06c848a5ea8498f2caaecba558_rle_crop_3756689012_0.png.png imagette222662211744361341/1744360775_1362359_1351572520_c36a2277f7e09b23670f6642b4bc378c_rle_crop_3756689971_0.png.png imagette222662211744361341/1744360766_1656378_1351572695_9143f2c698eda899e1a9304b7ca18042_rle_crop_3756689681_0.png.png imagette222662211744361341/1744360712_1361478_1351568439_64d2bb58b1a46d0fc5a3acf24543c688_rle_crop_3756682028_0.png.png imagette222662211744361341/1744360775_1362359_1351572417_6d408cdb11a48a42241a47c84393a179_rle_crop_3756691603_0.png.png imagette222662211744361341/1744361005_1661841_1351573921_df23819790d07df930ac6ed31fa5cbc2_rle_crop_3756696055_0.png.png imagette222662211744361341/1744360766_1656378_1351572049_9e228cdf7c3f9b96c3016a39ba499fef_rle_crop_3756692262_0.png.png imagette222662211744361341/1744361005_1661841_1351573894_a1c14288e9940c545da290f5affc4035_rle_crop_3756696108_0.png.png imagette222662211744361341/1744360766_1656378_1351572229_a2e127c382293c302d0cdcb61325bfdd_rle_crop_3756690026_0.png.png imagette222662211744361341/1744360574_1357875_1351568439_64d2bb58b1a46d0fc5a3acf24543c688_rle_crop_3756682028_0.png.png imagette222662211744361341/1744361005_1661841_1351573894_a1c14288e9940c545da290f5affc4035_rle_crop_3756696111_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/c5b749db55efd2580d6f7cc0595d0d28_43824023.png imagette222662211744361341 22266210 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=22266210 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351574488: '1744360775_1362359_1351572575_0a986c06c848a5ea8498f2caaecba558_rle_crop_3756689007_0.png', 1351574598: '1744360766_1656378_1351571811_4a8e723daf212e37892c8bb27500ae65_rle_crop_3756692529_0.png', 1351574596: '1744360766_1656378_1351571811_4a8e723daf212e37892c8bb27500ae65_rle_crop_3756692531_0.png', 1351574594: '1744360766_1656378_1351572049_9e228cdf7c3f9b96c3016a39ba499fef_rle_crop_3756692269_0.png', 1351574592: '1744360766_1656378_1351572049_9e228cdf7c3f9b96c3016a39ba499fef_rle_crop_3756692267_0.png', 1351574590: '1744360766_1656378_1351572100_9c4cfe5ba0ea5f312d32bd97d79cfdfa_rle_crop_3756691741_0.png', 1351574588: '1744360766_1656378_1351572100_9c4cfe5ba0ea5f312d32bd97d79cfdfa_rle_crop_3756691744_0.png', 1351574586: '1744360766_1656378_1351572695_9143f2c698eda899e1a9304b7ca18042_rle_crop_3756689685_0.png', 1351574513: '1744360813_1363025_1351570256_04957dbd6fcdb167232e748100f14139_rle_crop_3756685530_0.png', 1351573165: '1744360574_1357875_1351568826_e36fae7b6902d726de5ac19f3d8a2715_rle_crop_3756679665_0.png', 1351574359: '1744360712_1361478_1351568286_351995c223f5ea614aac39d93dda9879_rle_crop_3756682349_0.png', 1351574358: '1744360712_1361478_1351568439_64d2bb58b1a46d0fc5a3acf24543c688_rle_crop_3756682031_0.png', 1351574357: '1744360712_1361478_1351568826_e36fae7b6902d726de5ac19f3d8a2715_rle_crop_3756679665_0.png', 1351573855: '1744360693_1361163_1351570256_04957dbd6fcdb167232e748100f14139_rle_crop_3756685530_0.png', 1351573386: '1744360671_1360936_1351571056_9872e43256b3b1e15ffcc12693645463_rle_crop_3756683069_0.png', 1351573168: '1744360574_1357875_1351568286_351995c223f5ea614aac39d93dda9879_rle_crop_3756682349_0.png', 1351573167: '1744360574_1357875_1351568439_64d2bb58b1a46d0fc5a3acf24543c688_rle_crop_3756682031_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/6bfecefa2b5b1dcddaedc2a5d902b6d5_77852992.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/96c86798a3bdce66c7ab438cf9f8bbdf_73340791.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/af8d3329967dc41a584cddec052ac361_77426495.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/45c158c3d8daed0cec42beb90c10e1a8_91010511.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/1980b18bfb9fedb0770d5116c3ab4c04_97389230.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/70c76b7361694e528f1490c5a494c40c_87494871.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8ea8f301f6d4d872e9c91ca6b69e89f9_3835627.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e9dd71c2cfcb73fc1578c401b9dd446d_69692219.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2a71141e06c4a8cba678b5f280556309_79919100.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b628b4f02c97982eee0e8ae109e01d91_53012349.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/72925fcb46cd65142ea8da43e4795d53_82629054.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/5e5c1a5be0231b2752d34a0119effcea_14645353.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b628b4f02c97982eee0e8ae109e01d91_18577294.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2a71141e06c4a8cba678b5f280556309_13756225.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/029f94f376a275a53a3c9f925d5a9c9e_43446836.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/72925fcb46cd65142ea8da43e4795d53_6432783.png change filename to text .imagette222662101744361342/ imagette222662101744361342/1744360693_1361163_1351570256_04957dbd6fcdb167232e748100f14139_rle_crop_3756685530_0.png.png imagette222662101744361342/1744360574_1357875_1351568286_351995c223f5ea614aac39d93dda9879_rle_crop_3756682349_0.png.png imagette222662101744361342/1744360775_1362359_1351572575_0a986c06c848a5ea8498f2caaecba558_rle_crop_3756689007_0.png.png imagette222662101744361342/1744360766_1656378_1351572100_9c4cfe5ba0ea5f312d32bd97d79cfdfa_rle_crop_3756691741_0.png.png imagette222662101744361342/1744360766_1656378_1351572049_9e228cdf7c3f9b96c3016a39ba499fef_rle_crop_3756692269_0.png.png imagette222662101744361342/1744360574_1357875_1351568439_64d2bb58b1a46d0fc5a3acf24543c688_rle_crop_3756682031_0.png.png imagette222662101744361342/1744360813_1363025_1351570256_04957dbd6fcdb167232e748100f14139_rle_crop_3756685530_0.png.png imagette222662101744361342/1744360712_1361478_1351568439_64d2bb58b1a46d0fc5a3acf24543c688_rle_crop_3756682031_0.png.png imagette222662101744361342/1744360766_1656378_1351572100_9c4cfe5ba0ea5f312d32bd97d79cfdfa_rle_crop_3756691744_0.png.png imagette222662101744361342/1744360712_1361478_1351568286_351995c223f5ea614aac39d93dda9879_rle_crop_3756682349_0.png.png imagette222662101744361342/1744360671_1360936_1351571056_9872e43256b3b1e15ffcc12693645463_rle_crop_3756683069_0.png.png imagette222662101744361342/1744360766_1656378_1351572695_9143f2c698eda899e1a9304b7ca18042_rle_crop_3756689685_0.png.png imagette222662101744361342/1744360712_1361478_1351568826_e36fae7b6902d726de5ac19f3d8a2715_rle_crop_3756679665_0.png.png imagette222662101744361342/1744360574_1357875_1351568826_e36fae7b6902d726de5ac19f3d8a2715_rle_crop_3756679665_0.png.png imagette222662101744361342/1744360766_1656378_1351571811_4a8e723daf212e37892c8bb27500ae65_rle_crop_3756692531_0.png.png imagette222662101744361342/1744360766_1656378_1351572049_9e228cdf7c3f9b96c3016a39ba499fef_rle_crop_3756692267_0.png.png imagette222662101744361342/1744360766_1656378_1351571811_4a8e723daf212e37892c8bb27500ae65_rle_crop_3756692529_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/5e5c1a5be0231b2752d34a0119effcea_93272517.png imagette222662101744361342 22266214 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=22266214 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351574366: '1744360712_1361478_1351568286_351995c223f5ea614aac39d93dda9879_rle_crop_3756682352_0.png', 1351575835: '1744361012_1366512_1351574141_957a71bea49918b2e79a79db9f580c62_rle_crop_3756696152_0.png', 1351575833: '1744361012_1366512_1351574260_a912525592722fb90c39a73d7407fd95_rle_crop_3756696082_0.png', 1351575832: '1744361012_1366512_1351574289_c803ee23f07000f3dd1da3d660be1db4_rle_crop_3756696036_0.png', 1351575791: '1744361005_1661841_1351573921_df23819790d07df930ac6ed31fa5cbc2_rle_crop_3756696053_0.png', 1351575785: '1744361005_1661841_1351574318_8701fd8c620c138c256e4564818ec6b4_rle_crop_3756696006_0.png', 1351575779: '1744361005_1661841_1351574318_8701fd8c620c138c256e4564818ec6b4_rle_crop_3756696007_0.png', 1351574624: '1744360766_1656378_1351572100_9c4cfe5ba0ea5f312d32bd97d79cfdfa_rle_crop_3756691739_0.png', 1351574541: '1744360813_1363025_1351570052_5851de4aa192c6bd9de676bd1ec623b1_rle_crop_3756685701_0.png', 1351574540: '1744360813_1363025_1351570256_04957dbd6fcdb167232e748100f14139_rle_crop_3756685527_0.png', 1351574539: '1744360813_1363025_1351571134_c0480bc095ddd6473a776304b4d29b7e_rle_crop_3756684906_0.png', 1351574508: '1744360775_1362359_1351572417_6d408cdb11a48a42241a47c84393a179_rle_crop_3756691606_0.png', 1351574507: '1744360775_1362359_1351572520_c36a2277f7e09b23670f6642b4bc378c_rle_crop_3756689964_0.png', 1351573177: '1744360574_1357875_1351568826_e36fae7b6902d726de5ac19f3d8a2715_rle_crop_3756679655_0.png', 1351574365: '1744360712_1361478_1351568568_120f376a5e73f0f95e14f9a32873984b_bib_crop_3756681683_0.jpg', 1351574364: '1744360712_1361478_1351568728_436b4fa86d7cb54d4c61447c17bccdf8_rle_crop_3756681586_0.png', 1351574363: '1744360712_1361478_1351568826_e36fae7b6902d726de5ac19f3d8a2715_rle_crop_3756679661_0.png', 1351574362: '1744360712_1361478_1351568826_e36fae7b6902d726de5ac19f3d8a2715_rle_crop_3756679655_0.png', 1351573860: '1744360693_1361163_1351570052_5851de4aa192c6bd9de676bd1ec623b1_rle_crop_3756685701_0.png', 1351573859: '1744360693_1361163_1351570256_04957dbd6fcdb167232e748100f14139_rle_crop_3756685527_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/40e2fab62bc3565232a895ff220a0a09_35509303.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/1f2921b954114cc67d11a6a4d1ff3ece_65914740.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/7e6720bdd50817c4fc3a22447674e8d8_51104254.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e3e4dc0b8709ce1ff0659903ff1dcb7e_69386282.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/c9a5b40599ccde298001e951f6bea598_3714375.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f1752748a7c84ca16b0fa0cf21026bd7_93572249.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e2265aca1c2ebb34d2a90daeda9cfba8_16046468.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/bc2d1fdccd4e96f80e3afaab78646ad2_53819029.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ab0637ea12f2e6b11fd68f38d0522f66_48509796.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/815c0f1fb234bd4d1f431c1da348edd2_7826420.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/7461e58297d34dd8251ad853df2e7146_77906711.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/5cd256b74e527baf55182c2f25bad6a3_35031414.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2061aca3f355ddf5eb9d313d14b9f025_83938201.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2ea9c8983fd5431075d0734cca9feccd_21232716.png change filename to text .wget -O 15.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/c4926bb113e58f1beda1ba77d716d307_591964.jpg change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b2f24eb7d830bd0c6e9f1abe36d93270_66185679.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2f48c30c0ea43a437a3773e87429f438_70361414.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2ea9c8983fd5431075d0734cca9feccd_67273378.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ab0637ea12f2e6b11fd68f38d0522f66_53596537.png change filename to text .imagette222662141744361342/ imagette222662141744361342/1744361005_1661841_1351573921_df23819790d07df930ac6ed31fa5cbc2_rle_crop_3756696053_0.png.png imagette222662141744361342/1744360712_1361478_1351568728_436b4fa86d7cb54d4c61447c17bccdf8_rle_crop_3756681586_0.png.png imagette222662141744361342/1744360775_1362359_1351572417_6d408cdb11a48a42241a47c84393a179_rle_crop_3756691606_0.png.png imagette222662141744361342/1744360712_1361478_1351568286_351995c223f5ea614aac39d93dda9879_rle_crop_3756682352_0.png.png imagette222662141744361342/1744360574_1357875_1351568826_e36fae7b6902d726de5ac19f3d8a2715_rle_crop_3756679655_0.png.png imagette222662141744361342/1744360712_1361478_1351568826_e36fae7b6902d726de5ac19f3d8a2715_rle_crop_3756679661_0.png.png imagette222662141744361342/1744360766_1656378_1351572100_9c4cfe5ba0ea5f312d32bd97d79cfdfa_rle_crop_3756691739_0.png.png imagette222662141744361342/1744361005_1661841_1351574318_8701fd8c620c138c256e4564818ec6b4_rle_crop_3756696006_0.png.png imagette222662141744361342/1744360712_1361478_1351568568_120f376a5e73f0f95e14f9a32873984b_bib_crop_3756681683_0.jpg.jpg imagette222662141744361342/1744361005_1661841_1351574318_8701fd8c620c138c256e4564818ec6b4_rle_crop_3756696007_0.png.png imagette222662141744361342/1744360775_1362359_1351572520_c36a2277f7e09b23670f6642b4bc378c_rle_crop_3756689964_0.png.png imagette222662141744361342/1744360693_1361163_1351570256_04957dbd6fcdb167232e748100f14139_rle_crop_3756685527_0.png.png imagette222662141744361342/1744360693_1361163_1351570052_5851de4aa192c6bd9de676bd1ec623b1_rle_crop_3756685701_0.png.png imagette222662141744361342/1744360813_1363025_1351570052_5851de4aa192c6bd9de676bd1ec623b1_rle_crop_3756685701_0.png.png imagette222662141744361342/1744361012_1366512_1351574141_957a71bea49918b2e79a79db9f580c62_rle_crop_3756696152_0.png.png imagette222662141744361342/1744360813_1363025_1351571134_c0480bc095ddd6473a776304b4d29b7e_rle_crop_3756684906_0.png.png imagette222662141744361342/1744360712_1361478_1351568826_e36fae7b6902d726de5ac19f3d8a2715_rle_crop_3756679655_0.png.png imagette222662141744361342/1744360813_1363025_1351570256_04957dbd6fcdb167232e748100f14139_rle_crop_3756685527_0.png.png imagette222662141744361342/1744361012_1366512_1351574260_a912525592722fb90c39a73d7407fd95_rle_crop_3756696082_0.png.png imagette222662141744361342/1744361012_1366512_1351574289_c803ee23f07000f3dd1da3d660be1db4_rle_crop_3756696036_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/815c0f1fb234bd4d1f431c1da348edd2_46836528.png imagette222662141744361342 22266217 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=22266217 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351574554: '1744360813_1363025_1351570128_3dade6f11fe7a44ebc3576ccc30ec6ea_rle_crop_3756685652_0.png', 1351575871: '1744361005_1661841_1351573894_a1c14288e9940c545da290f5affc4035_rle_crop_3756696116_0.png', 1351575870: '1744361005_1661841_1351573921_df23819790d07df930ac6ed31fa5cbc2_rle_crop_3756696062_0.png', 1351575857: '1744361012_1366512_1351574260_a912525592722fb90c39a73d7407fd95_rle_crop_3756696086_0.png', 1351575853: '1744361012_1366512_1351574289_c803ee23f07000f3dd1da3d660be1db4_rle_crop_3756696041_0.png', 1351575848: '1744361012_1366512_1351574289_c803ee23f07000f3dd1da3d660be1db4_rle_crop_3756696039_0.png', 1351574654: '1744360766_1656378_1351571811_4a8e723daf212e37892c8bb27500ae65_rle_crop_3756692533_0.png', 1351574653: '1744360766_1656378_1351572100_9c4cfe5ba0ea5f312d32bd97d79cfdfa_rle_crop_3756691737_0.png', 1351574652: '1744360766_1656378_1351572229_a2e127c382293c302d0cdcb61325bfdd_rle_crop_3756690031_0.png', 1351574558: '1744360813_1363025_1351570052_5851de4aa192c6bd9de676bd1ec623b1_rle_crop_3756685704_0.png', 1351574556: '1744360813_1363025_1351570128_3dade6f11fe7a44ebc3576ccc30ec6ea_rle_crop_3756685657_0.png', 1351573209: '1744360574_1357875_1351569080_11751e6df93a6f3c9399b15455cf3015_rle_crop_3756679193_0.png', 1351574535: '1744360775_1362359_1351572430_8192cbde656b62065847adbe252def5f_rle_crop_3756690458_0.png', 1351574534: '1744360775_1362359_1351572520_c36a2277f7e09b23670f6642b4bc378c_rle_crop_3756689969_0.png', 1351574533: '1744360775_1362359_1351573150_56615093dae73d68dc8433e0e91c51a6_rle_crop_3756687460_0.png', 1351574372: '1744360712_1361478_1351568826_e36fae7b6902d726de5ac19f3d8a2715_rle_crop_3756679659_0.png', 1351574371: '1744360712_1361478_1351569080_11751e6df93a6f3c9399b15455cf3015_rle_crop_3756679193_0.png', 1351574370: '1744360712_1361478_1351571262_31adf4e50ba227365161af664dbd08e3_bib_crop_3756686216_0.jpg', 1351573871: '1744360693_1361163_1351570052_5851de4aa192c6bd9de676bd1ec623b1_rle_crop_3756685704_0.png', 1351573868: '1744360693_1361163_1351570128_3dade6f11fe7a44ebc3576ccc30ec6ea_rle_crop_3756685657_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/af01f416771a35592ac6a88267840818_33099239.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/020d1e53977b367106d350368f0f6673_56201643.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/7834e610fae10c2746aed4b1648ecbe2_39127549.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/bfddb69ec261821698539da88766734a_71965809.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/53c005c57e64105d9e4959c23cfe0f9b_97927649.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b4d4ec22f662dc8792e836f372e6ea2a_98564316.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/04b10cb61d45648f1b1ef24f9c7c95cb_44041994.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/c8db030a8516c336ec772337bd330a5d_59573603.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2462709d19c732307be7714b0f7ba9da_55977217.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/fc979e7af02095bbe98ac2c3ae726b0a_61830247.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/24d6d61d843817d7b3a16fe709a6067e_56226965.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f0dc7ffd5811555d82c3fe8968172d1a_60699276.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/763a84ec8dfb5f710f2f452110921db9_8158016.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/087a3e25e905c7e3510e4a777b8953fc_45383225.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ee7203f50c1d923951c98094eb0ea5d0_2057096.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/7cdb4b95da0ae3c61b3b2ff55c1c181c_7116102.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f0dc7ffd5811555d82c3fe8968172d1a_2236692.png change filename to text .wget -O 18.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/5d501eaee691ee36d9b1423a9173e68b_63408308.jpg change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/fc979e7af02095bbe98ac2c3ae726b0a_36110549.png change filename to text .imagette222662171744361344/ imagette222662171744361344/1744360775_1362359_1351572430_8192cbde656b62065847adbe252def5f_rle_crop_3756690458_0.png.png imagette222662171744361344/1744361005_1661841_1351573921_df23819790d07df930ac6ed31fa5cbc2_rle_crop_3756696062_0.png.png imagette222662171744361344/1744361012_1366512_1351574260_a912525592722fb90c39a73d7407fd95_rle_crop_3756696086_0.png.png imagette222662171744361344/1744360766_1656378_1351572100_9c4cfe5ba0ea5f312d32bd97d79cfdfa_rle_crop_3756691737_0.png.png imagette222662171744361344/1744360813_1363025_1351570128_3dade6f11fe7a44ebc3576ccc30ec6ea_rle_crop_3756685652_0.png.png imagette222662171744361344/1744360712_1361478_1351568826_e36fae7b6902d726de5ac19f3d8a2715_rle_crop_3756679659_0.png.png imagette222662171744361344/1744360775_1362359_1351572520_c36a2277f7e09b23670f6642b4bc378c_rle_crop_3756689969_0.png.png imagette222662171744361344/1744360693_1361163_1351570052_5851de4aa192c6bd9de676bd1ec623b1_rle_crop_3756685704_0.png.png imagette222662171744361344/1744361012_1366512_1351574289_c803ee23f07000f3dd1da3d660be1db4_rle_crop_3756696039_0.png.png imagette222662171744361344/1744361005_1661841_1351573894_a1c14288e9940c545da290f5affc4035_rle_crop_3756696116_0.png.png imagette222662171744361344/1744360712_1361478_1351569080_11751e6df93a6f3c9399b15455cf3015_rle_crop_3756679193_0.png.png imagette222662171744361344/1744360766_1656378_1351572229_a2e127c382293c302d0cdcb61325bfdd_rle_crop_3756690031_0.png.png imagette222662171744361344/1744360574_1357875_1351569080_11751e6df93a6f3c9399b15455cf3015_rle_crop_3756679193_0.png.png imagette222662171744361344/1744360775_1362359_1351573150_56615093dae73d68dc8433e0e91c51a6_rle_crop_3756687460_0.png.png imagette222662171744361344/1744361012_1366512_1351574289_c803ee23f07000f3dd1da3d660be1db4_rle_crop_3756696041_0.png.png imagette222662171744361344/1744360813_1363025_1351570052_5851de4aa192c6bd9de676bd1ec623b1_rle_crop_3756685704_0.png.png imagette222662171744361344/1744360693_1361163_1351570128_3dade6f11fe7a44ebc3576ccc30ec6ea_rle_crop_3756685657_0.png.png imagette222662171744361344/1744360766_1656378_1351571811_4a8e723daf212e37892c8bb27500ae65_rle_crop_3756692533_0.png.png imagette222662171744361344/1744360712_1361478_1351571262_31adf4e50ba227365161af664dbd08e3_bib_crop_3756686216_0.jpg.jpg imagette222662171744361344/1744360813_1363025_1351570128_3dade6f11fe7a44ebc3576ccc30ec6ea_rle_crop_3756685657_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/24d6d61d843817d7b3a16fe709a6067e_21720861.png imagette222662171744361344 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22266161 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22266222,22266223,22266224,22266225,22266226,22266227,22266228,22266229,22266230,22266231,22266232,22266233?tags=Teint_Dans_La_Masse,autre_refus,kraft,flou,Carton_gris,papier,mal_croppe,Carton_brun,plastique,environnement,metal,cartonnette your option no_mail is active, we will not send the real mail to your client args[1351576637] : ('0.056119854541209095',) no score found for photo 1351576637 We are sending mail with results at report@fotonower.com refus_total : 0.056119854541209095 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=22266161 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_P22266161_11-04-2025_10_48_59.pdf results_Auto_P22266161_11-04-2025_10_48_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22266161_11-04-2025_10_48_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22266161','results_Auto_P22266161_11-04-2025_10_48_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22266161_11-04-2025_10_48_59.pdf','pdf','','0.23','0.056119854541209095') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22266161]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351576637] map_info['map_portfolio_photo'] : {22266161: [1351576637, 1351575858, 1351575339, 1351575241, 1351574318, 1351574289, 1351574260, 1351574235, 1351574141, 1351573934, 1351573921, 1351573894, 1351573674, 1351573641, 1351573611, 1351573605, 1351573601, 1351573596, 1351573150, 1351573084, 1351573034, 1351572695, 1351572624, 1351572575, 1351572520, 1351572430, 1351572417, 1351572252, 1351572229, 1351572100, 1351572049, 1351571811, 1351571262, 1351571233, 1351571134, 1351571056, 1351570909, 1351570552, 1351570446, 1351570256, 1351570192, 1351570128, 1351570052, 1351569763, 1351569621, 1351569367, 1351569177, 1351569152, 1351569116, 1351569080, 1351569051, 1351569010, 1351568826, 1351568728, 1351568568, 1351568439, 1351568286]} final : False mtd_id 4302 list_pids : [1351576637] 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, '2743500') ('4302', '22266161', '1351576637', None, None, None, None, None, '2743500') 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', '22266161', '1351576637', None, None, None, None, None, '2743500')] time used for this insertion : 0.013972997665405273 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.655699729919434 time spend to save output : 0.014138460159301758 total time spend for step 4 : 6.669838190078735 step5:split_time_score Fri Apr 11 10:49:06 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 : ['22266161'] 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 : [('22266161',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22266161) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351576637: {'path': 'temp/1744361339_3131897_1351576637_8d474fed88212d221dd060554a807119.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 = 22266161; (('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 = 22266161 group by h (('10', 57),) 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=22266161 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 (22266161) 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 (22266161) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11042025 22266161 Nombre de photos uploadées : 57 / 23040 (0%) 11042025 22266161 Nombre de photos taguées (types de déchets): 0 / 57 (0%) 11042025 22266161 Nombre de photos taguées (volume) : 0 / 57 (0%) [{'photo_id': 1351568826, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e36fae7b6902d726de5ac19f3d8a2715.jpg', 'username': None, 'uploaded_at': 1744360267, 'text': 'image_11042025_10_30_05_010145m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1351568728, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/436b4fa86d7cb54d4c61447c17bccdf8.jpg', 'username': None, 'uploaded_at': 1744360267, 'text': 'image_11042025_10_30_15_010135m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1351568568, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/120f376a5e73f0f95e14f9a32873984b.jpg', 'username': None, 'uploaded_at': 1744360267, 'text': 'image_11042025_10_30_24_009127m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1351568439, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/64d2bb58b1a46d0fc5a3acf24543c688.jpg', 'username': None, 'uploaded_at': 1744360267, 'text': 'image_11042025_10_30_34_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 6.67572021484375e-06 ????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0022568702697753906 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22266161, '2025-04-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1733453,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.1505131721496582 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= 1733453 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1733453, 'dashboard_run_id': 1742858, 'mtr_portfolio_id': 22264476, 'dashboard_result_id': 10019105, '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_P22264476_11-04-2025_10_19_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22264495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22264496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22264497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22264498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22264499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22264500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22264501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22264502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22264503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22264504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22264505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22264506, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1742858, 'mtr_portfolio_id': 22264886, 'dashboard_result_id': 10019106, '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_P22264886_11-04-2025_10_23_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22264889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22264890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22264891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22264892, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22264893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22264894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22264895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22264896, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22264897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22264898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22264899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22264900, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1742858, 'mtr_portfolio_id': 22266161, 'dashboard_result_id': 10019107, '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_P22266161_11-04-2025_10_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22266210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22266211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22266212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22266213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22266214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22266215, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22266216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22266217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22266218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22266219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22266220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22266221, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1742858, 'mtr_portfolio_id': 22267667, 'dashboard_result_id': 10019108, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] 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 = 22264476 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': 2743380, 'mtr_portfolio_id': 22264476, 'created_at': datetime.datetime(2025, 4, 11, 10, 19, 35), 'result': '0.07702518066141709', 'result_long': None, 'result_double': None}] Qualite : 0.07702518066141709 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22264476 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22264476_11-04-2025_10_19_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22264476 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_P22264476_11-04-2025_10_19_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22264495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22264496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22264497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22264498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22264499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22264500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22264501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22264502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22264503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22264504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22264505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22264506, 'pht': 3726}}" where mtr_portfolio_id = 22264476 and dashboard_run_id = 1742858 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`=22264476 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10019105, 0.07702518066141709, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22264476_11-04-2025_10_19_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22264495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22264496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22264497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22264498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22264499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22264500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22264501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22264502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22264503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22264504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22264505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22264506, '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 = 22264886 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': 2743425, 'mtr_portfolio_id': 22264886, 'created_at': datetime.datetime(2025, 4, 11, 10, 23, 2), 'result': '0.08060248174506653', 'result_long': None, 'result_double': None}] Qualite : 0.08060248174506653 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22264886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22264886_11-04-2025_10_23_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22264886 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_P22264886_11-04-2025_10_23_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22264889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22264890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22264891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22264892, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22264893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22264894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22264895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22264896, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22264897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22264898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22264899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22264900, 'pht': 3726}}" where mtr_portfolio_id = 22264886 and dashboard_run_id = 1742858 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`=22264886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10019106, 0.08060248174506653, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22264886_11-04-2025_10_23_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22264889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22264890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22264891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22264892, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22264893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22264894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22264895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22264896, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22264897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22264898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22264899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22264900, '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 = 22266161 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': 2743500, 'mtr_portfolio_id': 22266161, 'created_at': datetime.datetime(2025, 4, 11, 10, 48, 59), 'result': '0.056119854541209095', 'result_long': None, 'result_double': None}] Qualite : 0.056119854541209095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22266161 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22266161_11-04-2025_10_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22266161 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_P22266161_11-04-2025_10_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22266210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22266211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22266212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22266213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22266214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22266215, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22266216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22266217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22266218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22266219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22266220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22266221, 'pht': 3726}}" where mtr_portfolio_id = 22266161 and dashboard_run_id = 1742858 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`=22266161 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10019107, 0.056119854541209095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22266161_11-04-2025_10_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22266210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22266211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22266212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22266213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22266214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22266215, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22266216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22266217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22266218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22266219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22266220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22266221, '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 = 22267667 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 22267667 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22267667 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%22267667%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22267667 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 22267667 and dashboard_run_id = 1742858 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22264476,22264886,22266161,22267667) result : ((1351548638,), (1351548682,), (1351548701,), (1351548743,), (1351548936,), (1351549049,), (1351549789,), (1351551455,), (1351551547,), (1351551573,), (1351551747,), (1351551802,), (1351551843,), (1351551910,), (1351552300,), (1351552346,), (1351552844,), (1351552873,), (1351552927,), (1351552976,), (1351553493,), (1351553563,), (1351553617,), (1351553649,), (1351553675,), (1351554396,), (1351554474,), (1351554527,), (1351554608,), (1351555046,), (1351555093,), (1351555151,), (1351555205,), (1351555254,), (1351555289,), (1351555554,), (1351555593,), (1351555655,), (1351555708,), (1351555767,), (1351556418,), (1351556533,), (1351556627,), (1351557382,), (1351557418,), (1351557460,), (1351557492,), (1351557532,), (1351557570,), (1351558204,), (1351558361,), (1351558394,), (1351558450,), (1351558495,), (1351558545,), (1351558580,), (1351558872,), (1351558927,), (1351557930,), (1351558014,), (1351558059,), (1351558114,), (1351558192,), (1351558677,), (1351558723,), (1351558770,), (1351558805,), (1351559096,), (1351559169,), (1351559296,), (1351559416,), (1351559461,), (1351559988,), (1351560046,), (1351560157,), (1351560219,), (1351560941,), (1351560986,), (1351561150,), (1351561248,), (1351561996,), (1351562062,), (1351562116,), (1351562246,), (1351562377,), (1351562752,), (1351562837,), (1351562868,), (1351562921,), (1351562962,), (1351563278,), (1351563322,), (1351563392,), (1351563446,), (1351563915,), (1351563960,), (1351564005,), (1351564031,), (1351564055,), (1351564089,), (1351564211,), (1351564238,), (1351564255,), (1351564265,), (1351564490,), (1351564529,), (1351564569,), (1351564597,), (1351564609,), (1351564706,), (1351564984,), (1351565025,), (1351565033,), (1351565120,), (1351565442,), (1351565542,), (1351565628,), (1351565689,), (1351565764,), (1351565853,), (1351566556,), (1351566630,), (1351566713,), (1351567028,), (1351567132,), (1351567246,), (1351567637,), (1351567670,), (1351567778,), (1351567828,), (1351568870,), (1351568286,), (1351568439,), (1351568568,), (1351568728,), (1351568826,), (1351569010,), (1351569051,), (1351569080,), (1351569116,), (1351569152,), (1351569177,), (1351569367,), (1351569621,), (1351569763,), (1351570052,), (1351570128,), (1351570192,), (1351570256,), (1351570446,), (1351570552,), (1351570909,), (1351571056,), (1351571134,), (1351571233,), (1351571262,), (1351571811,), (1351572049,), (1351572100,), (1351572229,), (1351572252,), (1351572417,), (1351572430,), (1351572520,), (1351572575,), (1351572624,), (1351572695,), (1351573034,), (1351573084,), (1351573150,), (1351573596,), (1351573601,), (1351573605,), (1351573611,), (1351573641,), (1351573674,), (1351573894,), (1351573921,), (1351573934,), (1351574141,), (1351574235,), (1351574260,), (1351574289,), (1351574318,), (1351575241,), (1351575339,), (1351575858,), (1351576637,), (1351576421,), (1351576499,), (1351576560,), (1351576615,), (1351577069,), (1351577136,), (1351577202,), (1351577384,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11042025': {'nb_upload': 57, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22266161]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351576637] map_info['map_portfolio_photo'] : {22266161: [1351576637, 1351575858, 1351575339, 1351575241, 1351574318, 1351574289, 1351574260, 1351574235, 1351574141, 1351573934, 1351573921, 1351573894, 1351573674, 1351573641, 1351573611, 1351573605, 1351573601, 1351573596, 1351573150, 1351573084, 1351573034, 1351572695, 1351572624, 1351572575, 1351572520, 1351572430, 1351572417, 1351572252, 1351572229, 1351572100, 1351572049, 1351571811, 1351571262, 1351571233, 1351571134, 1351571056, 1351570909, 1351570552, 1351570446, 1351570256, 1351570192, 1351570128, 1351570052, 1351569763, 1351569621, 1351569367, 1351569177, 1351569152, 1351569116, 1351569080, 1351569051, 1351569010, 1351568826, 1351568728, 1351568568, 1351568439, 1351568286]} final : True mtd_id 4302 list_pids : [1351576637] Looping around the photos to save general results len do output : 1 /22266161Didn'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, '2743500') ('4302', '22266161', '1351576637', None, None, None, None, None, '2743500') 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, '22266161', 'None', None, None, None, None, '2743500'), ('4302', '22266161', '1351576637', None, None, None, None, None, '2743500')] time used for this insertion : 0.014876604080200195 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8186898231506348 time spend to save output : 0.015079975128173828 total time spend for step 5 : 1.8337697982788086 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 (2743500) 1.97user 2.03system 0:13.42elapsed 29%CPU (0avgtext+0avgdata 154988maxresident)k 160inputs+12248outputs (15major+61845minor)pagefaults 0swaps