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 : 1067118 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 (4020797) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4020797) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28340539 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4020797'] with mtr_portfolio_ids : ['28340539'] and first list_photo_ids : [] new path : /proc/1067118/ Name: python3 Umask: 0002 State: R (running) Tgid: 1067118 Ngid: 0 Pid: 1067118 PPid: 1067117 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1067118 NSpid: 1067118 NSpgid: 1065773 NSsid: 1065773 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98660 kB VmRSS: 98660 kB RssAnon: 59912 kB RssFile: 38748 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 44 nonvoluntary_ctxt_switches: 86 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1067118', 'Ngid': '0', 'Pid': '1067118', 'PPid': '1067117', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1067118', 'NSpid': '1067118', 'NSpgid': '1065773', 'NSsid': '1065773', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98660 kB', 'VmRSS': '98660 kB', 'RssAnon': '59912 kB', 'RssFile': '38748 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '44', 'nonvoluntary_ctxt_switches': '86'} ('datou_batch_current', '1067118', '1106908', '0', '1106884', '865636', '98660', b'', 'marlene', '4020797') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28340539) 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 (4020797 ) ) 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 (28340539) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1393326462, 'portfolio_id': 28340539}, {'photo_id': 1393326436, 'portfolio_id': 28340539}, {'photo_id': 1393326435, 'portfolio_id': 28340539}, {'photo_id': 1393326417, 'portfolio_id': 28340539}, {'photo_id': 1393326309, 'portfolio_id': 28340539}, {'photo_id': 1393326306, 'portfolio_id': 28340539}, {'photo_id': 1393326303, 'portfolio_id': 28340539}, {'photo_id': 1393326139, 'portfolio_id': 28340539}, {'photo_id': 1393326131, 'portfolio_id': 28340539}, {'photo_id': 1393326120, 'portfolio_id': 28340539}, {'photo_id': 1393326108, 'portfolio_id': 28340539}, {'photo_id': 1393325721, 'portfolio_id': 28340539}, {'photo_id': 1393325659, 'portfolio_id': 28340539}, {'photo_id': 1393325437, 'portfolio_id': 28340539}, {'photo_id': 1393325404, 'portfolio_id': 28340539}, {'photo_id': 1393325371, 'portfolio_id': 28340539}, {'photo_id': 1393325300, 'portfolio_id': 28340539}, {'photo_id': 1393325242, 'portfolio_id': 28340539}, {'photo_id': 1393324978, 'portfolio_id': 28340539}, {'photo_id': 1393324975, 'portfolio_id': 28340539}, {'photo_id': 1393324971, 'portfolio_id': 28340539}, {'photo_id': 1393324939, 'portfolio_id': 28340539}, {'photo_id': 1393324908, 'portfolio_id': 28340539}, {'photo_id': 1393324879, 'portfolio_id': 28340539}, {'photo_id': 1393324719, 'portfolio_id': 28340539}, {'photo_id': 1393324712, 'portfolio_id': 28340539}, {'photo_id': 1393324701, 'portfolio_id': 28340539}, {'photo_id': 1393324698, 'portfolio_id': 28340539}, {'photo_id': 1393324696, 'portfolio_id': 28340539}, {'photo_id': 1393324680, 'portfolio_id': 28340539}, {'photo_id': 1393324678, 'portfolio_id': 28340539}, {'photo_id': 1393324672, 'portfolio_id': 28340539}, {'photo_id': 1393324669, 'portfolio_id': 28340539}, {'photo_id': 1393324666, 'portfolio_id': 28340539}, {'photo_id': 1393324621, 'portfolio_id': 28340539}, {'photo_id': 1393324620, 'portfolio_id': 28340539}, {'photo_id': 1393324616, 'portfolio_id': 28340539}, {'photo_id': 1393324612, 'portfolio_id': 28340539}, {'photo_id': 1393324609, 'portfolio_id': 28340539}, {'photo_id': 1393324607, 'portfolio_id': 28340539}, {'photo_id': 1393324587, 'portfolio_id': 28340539}, {'photo_id': 1393324583, 'portfolio_id': 28340539}, {'photo_id': 1393324581, 'portfolio_id': 28340539}, {'photo_id': 1393324580, 'portfolio_id': 28340539}, {'photo_id': 1393324579, 'portfolio_id': 28340539}, {'photo_id': 1393324324, 'portfolio_id': 28340539}, {'photo_id': 1393324310, 'portfolio_id': 28340539}, {'photo_id': 1393324279, 'portfolio_id': 28340539}, {'photo_id': 1393324278, 'portfolio_id': 28340539}, {'photo_id': 1393324276, 'portfolio_id': 28340539}, {'photo_id': 1393324274, 'portfolio_id': 28340539}, {'photo_id': 1393324191, 'portfolio_id': 28340539}, {'photo_id': 1393324168, 'portfolio_id': 28340539}, {'photo_id': 1393324153, 'portfolio_id': 28340539}, {'photo_id': 1393324151, 'portfolio_id': 28340539}, {'photo_id': 1393323867, 'portfolio_id': 28340539}, {'photo_id': 1393323824, 'portfolio_id': 28340539}, {'photo_id': 1393323805, 'portfolio_id': 28340539}, {'photo_id': 1393323761, 'portfolio_id': 28340539}, {'photo_id': 1393323726, 'portfolio_id': 28340539}, {'photo_id': 1393323688, 'portfolio_id': 28340539}, {'photo_id': 1393323413, 'portfolio_id': 28340539}, {'photo_id': 1393323411, 'portfolio_id': 28340539}, {'photo_id': 1393323409, 'portfolio_id': 28340539}, {'photo_id': 1393323406, 'portfolio_id': 28340539}] map_portfolio_id_photo_id: {28340539: [1393326462, 1393326436, 1393326435, 1393326417, 1393326309, 1393326306, 1393326303, 1393326139, 1393326131, 1393326120, 1393326108, 1393325721, 1393325659, 1393325437, 1393325404, 1393325371, 1393325300, 1393325242, 1393324978, 1393324975, 1393324971, 1393324939, 1393324908, 1393324879, 1393324719, 1393324712, 1393324701, 1393324698, 1393324696, 1393324680, 1393324678, 1393324672, 1393324669, 1393324666, 1393324621, 1393324620, 1393324616, 1393324612, 1393324609, 1393324607, 1393324587, 1393324583, 1393324581, 1393324580, 1393324579, 1393324324, 1393324310, 1393324279, 1393324278, 1393324276, 1393324274, 1393324191, 1393324168, 1393324153, 1393324151, 1393323867, 1393323824, 1393323805, 1393323761, 1393323726, 1393323688, 1393323413, 1393323411, 1393323409, 1393323406]} ##### 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.017203330993652344 #### 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 Sat Nov 8 02:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28340539) 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 : 28340539 get user id for portfolio 28340539 get sub ptf for main ptf 28340539, type 3726 and hashtags ['mal_croppe', 'cartonnette', 'papier', 'environnement', 'autre_refus', 'Teint_Dans_La_Masse', 'plastique', 'Carton_gris', 'kraft', 'metal', 'flou', 'Carton_brun'] 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`=28340539 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','cartonnette','papier','environnement','autre_refus','Teint_Dans_La_Masse','plastique','Carton_gris','kraft','metal','flou','Carton_brun')) 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`=28340539 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','cartonnette','papier','environnement','autre_refus','Teint_Dans_La_Masse','plastique','Carton_gris','kraft','metal','flou','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 28340539, 'sub_port_id': 28340546, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186662, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 28)}, 'cartonnette': {'main_port_id': 28340539, 'sub_port_id': 28340547, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186663, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 28)}, 'mal_croppe': {'main_port_id': 28340539, 'sub_port_id': 28340548, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186664, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 28)}, 'autre_refus': {'main_port_id': 28340539, 'sub_port_id': 28340549, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186665, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 28)}, 'flou': {'main_port_id': 28340539, 'sub_port_id': 28340550, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186666, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 28)}, 'kraft': {'main_port_id': 28340539, 'sub_port_id': 28340551, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186667, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 28340539, 'sub_port_id': 28340552, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186668, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 28)}, 'papier': {'main_port_id': 28340539, 'sub_port_id': 28340553, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186669, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 28)}, 'environnement': {'main_port_id': 28340539, 'sub_port_id': 28340554, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186670, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 28)}, 'metal': {'main_port_id': 28340539, 'sub_port_id': 28340555, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186671, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 28)}, 'Carton_gris': {'main_port_id': 28340539, 'sub_port_id': 28340556, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186672, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 28)}, 'plastique': {'main_port_id': 28340539, 'sub_port_id': 28340557, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186673, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28340546 , 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=28340539 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 (28340546) result : ((1393324694,), (1393325031,), (1393325033,), (1393325035,), (1393325973,), (1393325976,), (1393326165,), (1393326167,), (1393326169,), (1393326171,), (1393326173,), (1393326175,), (1393326401,), (1393326403,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28340539) result : ((1393323406,), (1393323409,), (1393323411,), (1393323413,), (1393323688,), (1393323726,), (1393323761,), (1393323805,), (1393323824,), (1393323867,), (1393324151,), (1393324153,), (1393324168,), (1393324191,), (1393324274,), (1393324276,), (1393324278,), (1393324279,), (1393324310,), (1393324324,), (1393324579,), (1393324580,), (1393324581,), (1393324583,), (1393324587,), (1393324607,), (1393324609,), (1393324612,), (1393324616,), (1393324620,), (1393324621,), (1393324666,), (1393324669,), (1393324672,), (1393324678,), (1393324680,), (1393324696,), (1393324698,), (1393324701,), (1393324712,), (1393324719,), (1393324879,), (1393324908,), (1393324939,), (1393324971,), (1393324975,), (1393324978,), (1393325242,), (1393325300,), (1393325371,), (1393325404,), (1393325437,), (1393325659,), (1393325721,), (1393326108,), (1393326120,), (1393326131,), (1393326139,), (1393326303,), (1393326306,), (1393326309,), (1393326417,), (1393326435,), (1393326436,), (1393326462,)) 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 (1393325300) 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 28340547 , 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=28340539 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 (28340547) result : ((1393324675,), (1393324676,), (1393324690,), (1393324691,), (1393325019,), (1393325020,), (1393325021,), (1393325022,), (1393325964,), (1393326140,), (1393326141,), (1393326142,), (1393326143,), (1393326146,), (1393326147,), (1393326148,), (1393326149,), (1393326151,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28340539) result : ((1393323406,), (1393323409,), (1393323411,), (1393323413,), (1393323688,), (1393323726,), (1393323761,), (1393323805,), (1393323824,), (1393323867,), (1393324151,), (1393324153,), (1393324168,), (1393324191,), (1393324274,), (1393324276,), (1393324278,), (1393324279,), (1393324310,), (1393324324,), (1393324579,), (1393324580,), (1393324581,), (1393324583,), (1393324587,), (1393324607,), (1393324609,), (1393324612,), (1393324616,), (1393324620,), (1393324621,), (1393324666,), (1393324669,), (1393324672,), (1393324678,), (1393324680,), (1393324696,), (1393324698,), (1393324701,), (1393324712,), (1393324719,), (1393324879,), (1393324908,), (1393324939,), (1393324971,), (1393324975,), (1393324978,), (1393325242,), (1393325300,), (1393325371,), (1393325404,), (1393325437,), (1393325659,), (1393325721,), (1393326108,), (1393326120,), (1393326131,), (1393326139,), (1393326303,), (1393326306,), (1393326309,), (1393326417,), (1393326435,), (1393326436,), (1393326462,)) 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 (1393325300) 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 28340548 , 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=28340539 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 (28340548) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28340539) result : ((1393323406,), (1393323409,), (1393323411,), (1393323413,), (1393323688,), (1393323726,), (1393323761,), (1393323805,), (1393323824,), (1393323867,), (1393324151,), (1393324153,), (1393324168,), (1393324191,), (1393324274,), (1393324276,), (1393324278,), (1393324279,), (1393324310,), (1393324324,), (1393324579,), (1393324580,), (1393324581,), (1393324583,), (1393324587,), (1393324607,), (1393324609,), (1393324612,), (1393324616,), (1393324620,), (1393324621,), (1393324666,), (1393324669,), (1393324672,), (1393324678,), (1393324680,), (1393324696,), (1393324698,), (1393324701,), (1393324712,), (1393324719,), (1393324879,), (1393324908,), (1393324939,), (1393324971,), (1393324975,), (1393324978,), (1393325242,), (1393325300,), (1393325371,), (1393325404,), (1393325437,), (1393325659,), (1393325721,), (1393326108,), (1393326120,), (1393326131,), (1393326139,), (1393326303,), (1393326306,), (1393326309,), (1393326417,), (1393326435,), (1393326436,), (1393326462,)) 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 (1393325300) 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 28340549 , 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=28340539 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 (28340549) result : ((1393324477,), (1393324673,), (1393324687,), (1393325016,), (1393325017,), (1393325018,), (1393326132,), (1393326133,), (1393326135,), (1393326136,), (1393326137,), (1393326138,), (1393326326,), (1393326377,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28340539) result : ((1393323406,), (1393323409,), (1393323411,), (1393323413,), (1393323688,), (1393323726,), (1393323761,), (1393323805,), (1393323824,), (1393323867,), (1393324151,), (1393324153,), (1393324168,), (1393324191,), (1393324274,), (1393324276,), (1393324278,), (1393324279,), (1393324310,), (1393324324,), (1393324579,), (1393324580,), (1393324581,), (1393324583,), (1393324587,), (1393324607,), (1393324609,), (1393324612,), (1393324616,), (1393324620,), (1393324621,), (1393324666,), (1393324669,), (1393324672,), (1393324678,), (1393324680,), (1393324696,), (1393324698,), (1393324701,), (1393324712,), (1393324719,), (1393324879,), (1393324908,), (1393324939,), (1393324971,), (1393324975,), (1393324978,), (1393325242,), (1393325300,), (1393325371,), (1393325404,), (1393325437,), (1393325659,), (1393325721,), (1393326108,), (1393326120,), (1393326131,), (1393326139,), (1393326303,), (1393326306,), (1393326309,), (1393326417,), (1393326435,), (1393326436,), (1393326462,)) 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 (1393325300) 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 28340550 , 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=28340539 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 (28340550) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28340539) result : ((1393323406,), (1393323409,), (1393323411,), (1393323413,), (1393323688,), (1393323726,), (1393323761,), (1393323805,), (1393323824,), (1393323867,), (1393324151,), (1393324153,), (1393324168,), (1393324191,), (1393324274,), (1393324276,), (1393324278,), (1393324279,), (1393324310,), (1393324324,), (1393324579,), (1393324580,), (1393324581,), (1393324583,), (1393324587,), (1393324607,), (1393324609,), (1393324612,), (1393324616,), (1393324620,), (1393324621,), (1393324666,), (1393324669,), (1393324672,), (1393324678,), (1393324680,), (1393324696,), (1393324698,), (1393324701,), (1393324712,), (1393324719,), (1393324879,), (1393324908,), (1393324939,), (1393324971,), (1393324975,), (1393324978,), (1393325242,), (1393325300,), (1393325371,), (1393325404,), (1393325437,), (1393325659,), (1393325721,), (1393326108,), (1393326120,), (1393326131,), (1393326139,), (1393326303,), (1393326306,), (1393326309,), (1393326417,), (1393326435,), (1393326436,), (1393326462,)) 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 (1393325300) 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 28340551 , 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=28340539 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 (28340551) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28340539) result : ((1393323406,), (1393323409,), (1393323411,), (1393323413,), (1393323688,), (1393323726,), (1393323761,), (1393323805,), (1393323824,), (1393323867,), (1393324151,), (1393324153,), (1393324168,), (1393324191,), (1393324274,), (1393324276,), (1393324278,), (1393324279,), (1393324310,), (1393324324,), (1393324579,), (1393324580,), (1393324581,), (1393324583,), (1393324587,), (1393324607,), (1393324609,), (1393324612,), (1393324616,), (1393324620,), (1393324621,), (1393324666,), (1393324669,), (1393324672,), (1393324678,), (1393324680,), (1393324696,), (1393324698,), (1393324701,), (1393324712,), (1393324719,), (1393324879,), (1393324908,), (1393324939,), (1393324971,), (1393324975,), (1393324978,), (1393325242,), (1393325300,), (1393325371,), (1393325404,), (1393325437,), (1393325659,), (1393325721,), (1393326108,), (1393326120,), (1393326131,), (1393326139,), (1393326303,), (1393326306,), (1393326309,), (1393326417,), (1393326435,), (1393326436,), (1393326462,)) 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 (1393325300) 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 28340552 , 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=28340539 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 (28340552) result : ((1393324473,), (1393324474,), (1393324475,), (1393324671,), (1393324682,), (1393324683,), (1393324685,), (1393324686,), (1393325012,), (1393325013,), (1393325014,), (1393325934,), (1393325936,), (1393326122,), (1393326123,), (1393326124,), (1393326126,), (1393326129,), (1393326130,), (1393326323,), (1393326365,), (1393326367,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28340539) result : ((1393323406,), (1393323409,), (1393323411,), (1393323413,), (1393323688,), (1393323726,), (1393323761,), (1393323805,), (1393323824,), (1393323867,), (1393324151,), (1393324153,), (1393324168,), (1393324191,), (1393324274,), (1393324276,), (1393324278,), (1393324279,), (1393324310,), (1393324324,), (1393324579,), (1393324580,), (1393324581,), (1393324583,), (1393324587,), (1393324607,), (1393324609,), (1393324612,), (1393324616,), (1393324620,), (1393324621,), (1393324666,), (1393324669,), (1393324672,), (1393324678,), (1393324680,), (1393324696,), (1393324698,), (1393324701,), (1393324712,), (1393324719,), (1393324879,), (1393324908,), (1393324939,), (1393324971,), (1393324975,), (1393324978,), (1393325242,), (1393325300,), (1393325371,), (1393325404,), (1393325437,), (1393325659,), (1393325721,), (1393326108,), (1393326120,), (1393326131,), (1393326139,), (1393326303,), (1393326306,), (1393326309,), (1393326417,), (1393326435,), (1393326436,), (1393326462,)) 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 (1393325300) 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 28340553 , 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=28340539 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 (28340553) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28340539) result : ((1393323406,), (1393323409,), (1393323411,), (1393323413,), (1393323688,), (1393323726,), (1393323761,), (1393323805,), (1393323824,), (1393323867,), (1393324151,), (1393324153,), (1393324168,), (1393324191,), (1393324274,), (1393324276,), (1393324278,), (1393324279,), (1393324310,), (1393324324,), (1393324579,), (1393324580,), (1393324581,), (1393324583,), (1393324587,), (1393324607,), (1393324609,), (1393324612,), (1393324616,), (1393324620,), (1393324621,), (1393324666,), (1393324669,), (1393324672,), (1393324678,), (1393324680,), (1393324696,), (1393324698,), (1393324701,), (1393324712,), (1393324719,), (1393324879,), (1393324908,), (1393324939,), (1393324971,), (1393324975,), (1393324978,), (1393325242,), (1393325300,), (1393325371,), (1393325404,), (1393325437,), (1393325659,), (1393325721,), (1393326108,), (1393326120,), (1393326131,), (1393326139,), (1393326303,), (1393326306,), (1393326309,), (1393326417,), (1393326435,), (1393326436,), (1393326462,)) 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 (1393325300) 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 28340554 , 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=28340539 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 (28340554) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28340539) result : ((1393323406,), (1393323409,), (1393323411,), (1393323413,), (1393323688,), (1393323726,), (1393323761,), (1393323805,), (1393323824,), (1393323867,), (1393324151,), (1393324153,), (1393324168,), (1393324191,), (1393324274,), (1393324276,), (1393324278,), (1393324279,), (1393324310,), (1393324324,), (1393324579,), (1393324580,), (1393324581,), (1393324583,), (1393324587,), (1393324607,), (1393324609,), (1393324612,), (1393324616,), (1393324620,), (1393324621,), (1393324666,), (1393324669,), (1393324672,), (1393324678,), (1393324680,), (1393324696,), (1393324698,), (1393324701,), (1393324712,), (1393324719,), (1393324879,), (1393324908,), (1393324939,), (1393324971,), (1393324975,), (1393324978,), (1393325242,), (1393325300,), (1393325371,), (1393325404,), (1393325437,), (1393325659,), (1393325721,), (1393326108,), (1393326120,), (1393326131,), (1393326139,), (1393326303,), (1393326306,), (1393326309,), (1393326417,), (1393326435,), (1393326436,), (1393326462,)) 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 (1393325300) 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 28340555 , 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=28340539 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 (28340555) result : ((1393324478,), (1393326357,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28340539) result : ((1393323406,), (1393323409,), (1393323411,), (1393323413,), (1393323688,), (1393323726,), (1393323761,), (1393323805,), (1393323824,), (1393323867,), (1393324151,), (1393324153,), (1393324168,), (1393324191,), (1393324274,), (1393324276,), (1393324278,), (1393324279,), (1393324310,), (1393324324,), (1393324579,), (1393324580,), (1393324581,), (1393324583,), (1393324587,), (1393324607,), (1393324609,), (1393324612,), (1393324616,), (1393324620,), (1393324621,), (1393324666,), (1393324669,), (1393324672,), (1393324678,), (1393324680,), (1393324696,), (1393324698,), (1393324701,), (1393324712,), (1393324719,), (1393324879,), (1393324908,), (1393324939,), (1393324971,), (1393324975,), (1393324978,), (1393325242,), (1393325300,), (1393325371,), (1393325404,), (1393325437,), (1393325659,), (1393325721,), (1393326108,), (1393326120,), (1393326131,), (1393326139,), (1393326303,), (1393326306,), (1393326309,), (1393326417,), (1393326435,), (1393326436,), (1393326462,)) 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 (1393325300) 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 28340556 , 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=28340539 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 (28340556) result : ((1393324688,), (1393324689,), (1393325949,), (1393325951,), (1393325953,), (1393326334,), (1393326388,), (1393326391,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28340539) result : ((1393323406,), (1393323409,), (1393323411,), (1393323413,), (1393323688,), (1393323726,), (1393323761,), (1393323805,), (1393323824,), (1393323867,), (1393324151,), (1393324153,), (1393324168,), (1393324191,), (1393324274,), (1393324276,), (1393324278,), (1393324279,), (1393324310,), (1393324324,), (1393324579,), (1393324580,), (1393324581,), (1393324583,), (1393324587,), (1393324607,), (1393324609,), (1393324612,), (1393324616,), (1393324620,), (1393324621,), (1393324666,), (1393324669,), (1393324672,), (1393324678,), (1393324680,), (1393324696,), (1393324698,), (1393324701,), (1393324712,), (1393324719,), (1393324879,), (1393324908,), (1393324939,), (1393324971,), (1393324975,), (1393324978,), (1393325242,), (1393325300,), (1393325371,), (1393325404,), (1393325437,), (1393325659,), (1393325721,), (1393326108,), (1393326120,), (1393326131,), (1393326139,), (1393326303,), (1393326306,), (1393326309,), (1393326417,), (1393326435,), (1393326436,), (1393326462,)) 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 (1393325300) 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 28340557 , 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=28340539 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 (28340557) result : ((1393324677,), (1393325051,), (1393325985,), (1393326186,), (1393326188,), (1393326346,), (1393326348,), (1393326416,), (1393326419,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28340539) result : ((1393323406,), (1393323409,), (1393323411,), (1393323413,), (1393323688,), (1393323726,), (1393323761,), (1393323805,), (1393323824,), (1393323867,), (1393324151,), (1393324153,), (1393324168,), (1393324191,), (1393324274,), (1393324276,), (1393324278,), (1393324279,), (1393324310,), (1393324324,), (1393324579,), (1393324580,), (1393324581,), (1393324583,), (1393324587,), (1393324607,), (1393324609,), (1393324612,), (1393324616,), (1393324620,), (1393324621,), (1393324666,), (1393324669,), (1393324672,), (1393324678,), (1393324680,), (1393324696,), (1393324698,), (1393324701,), (1393324712,), (1393324719,), (1393324879,), (1393324908,), (1393324939,), (1393324971,), (1393324975,), (1393324978,), (1393325242,), (1393325300,), (1393325371,), (1393325404,), (1393325437,), (1393325659,), (1393325721,), (1393326108,), (1393326120,), (1393326131,), (1393326139,), (1393326303,), (1393326306,), (1393326309,), (1393326417,), (1393326435,), (1393326436,), (1393326462,)) 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 (1393325300) 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`=28340539 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','cartonnette','papier','environnement','autre_refus','Teint_Dans_La_Masse','plastique','Carton_gris','kraft','metal','flou','Carton_brun')) 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`=28340539 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','cartonnette','papier','environnement','autre_refus','Teint_Dans_La_Masse','plastique','Carton_gris','kraft','metal','flou','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 28340539, 'sub_port_id': 28340558, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186674, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 30)}, 'cartonnette': {'main_port_id': 28340539, 'sub_port_id': 28340559, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186675, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 30)}, 'mal_croppe': {'main_port_id': 28340539, 'sub_port_id': 28340560, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186676, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 30)}, 'autre_refus': {'main_port_id': 28340539, 'sub_port_id': 28340561, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186677, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 30)}, 'flou': {'main_port_id': 28340539, 'sub_port_id': 28340562, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186678, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 30)}, 'kraft': {'main_port_id': 28340539, 'sub_port_id': 28340563, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186679, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 28340539, 'sub_port_id': 28340564, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186680, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 30)}, 'papier': {'main_port_id': 28340539, 'sub_port_id': 28340565, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186681, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 30)}, 'environnement': {'main_port_id': 28340539, 'sub_port_id': 28340566, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186682, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 30)}, 'metal': {'main_port_id': 28340539, 'sub_port_id': 28340567, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186683, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 30)}, 'Carton_gris': {'main_port_id': 28340539, 'sub_port_id': 28340568, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186684, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 30)}, 'plastique': {'main_port_id': 28340539, 'sub_port_id': 28340569, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19186685, 'last_updated_at': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 2, 3, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28340558,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28340546 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28340559,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28340547 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28340560,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28340548 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28340561,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28340549 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28340562,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28340550 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28340563,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28340551 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28340564,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28340552 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28340565,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28340553 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28340566,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28340554 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28340567,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28340555 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28340568,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28340556 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28340569,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28340557 lien utilise dans velours : https://marlene.fotonower.com/velours/28340558,28340559,28340560,28340561,28340562,28340563,28340564,28340565,28340566,28340567,28340568,28340569?tags=Carton_brun,cartonnette,mal_croppe,autre_refus,flou,kraft,Teint_Dans_La_Masse,papier,environnement,metal,Carton_gris,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28340539]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1393326462, 1393326436, 1393326435, 1393326417, 1393326309, 1393326306, 1393326303] map_info['map_portfolio_photo'] : {28340539: [1393326462, 1393326436, 1393326435, 1393326417, 1393326309, 1393326306, 1393326303, 1393326139, 1393326131, 1393326120, 1393326108, 1393325721, 1393325659, 1393325437, 1393325404, 1393325371, 1393325300, 1393325242, 1393324978, 1393324975, 1393324971, 1393324939, 1393324908, 1393324879, 1393324719, 1393324712, 1393324701, 1393324698, 1393324696, 1393324680, 1393324678, 1393324672, 1393324669, 1393324666, 1393324621, 1393324620, 1393324616, 1393324612, 1393324609, 1393324607, 1393324587, 1393324583, 1393324581, 1393324580, 1393324579, 1393324324, 1393324310, 1393324279, 1393324278, 1393324276, 1393324274, 1393324191, 1393324168, 1393324153, 1393324151, 1393323867, 1393323824, 1393323805, 1393323761, 1393323726, 1393323688, 1393323413, 1393323411, 1393323409, 1393323406]} final : False mtd_id 4302 list_pids : [1393326462, 1393326436, 1393326435, 1393326417, 1393326309, 1393326306, 1393326303] Looping around the photos to save general results len do output : 1 /28340539. 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, '4020797') ('4302', '28340539', '1393326462', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326436', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326435', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326417', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326309', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326306', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326303', None, None, None, None, None, '4020797') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '28340539', "{'Carton_brun': 28340546, 'cartonnette': 28340547, 'mal_croppe': 28340548, 'autre_refus': 28340549, 'flou': 28340550, 'kraft': 28340551, 'Teint_Dans_La_Masse': 28340552, 'papier': 28340553, 'environnement': 28340554, 'metal': 28340555, 'Carton_gris': 28340556, 'plastique': 28340557}", None, None, None, None, '4020797'), ('4302', '28340539', '1393326462', None, None, None, None, None, '4020797'), ('4302', '28340539', '1393326436', None, None, None, None, None, '4020797'), ('4302', '28340539', '1393326435', None, None, None, None, None, '4020797'), ('4302', '28340539', '1393326417', None, None, None, None, None, '4020797'), ('4302', '28340539', '1393326309', None, None, None, None, None, '4020797'), ('4302', '28340539', '1393326306', None, None, None, None, None, '4020797'), ('4302', '28340539', '1393326303', None, None, None, None, None, '4020797')] time used for this insertion : 0.016687631607055664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4923367500305176 time spend to save output : 0.016930580139160156 total time spend for step 1 : 0.5092673301696777 step2:final Sat Nov 8 02:14: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 (28340539) 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 28340539 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1393323413,1393323411,1393323409,1393323406,1393323867,1393323824,1393323805,1393323761,1393323726,1393323688,1393324191,1393324168,1393324153,1393324151,1393324279,1393324278,1393324276,1393324274,1393324324,1393324310,1393324680,1393324587,1393324678,1393324583,1393324581,1393324672,1393324669,1393324580,1393324666,1393324579,1393324621,1393324620,1393324616,1393324612,1393324609,1393324607,1393324719,1393324712,1393324701,1393324698,1393324696,1393324978,1393324975,1393324971,1393324939,1393324908,1393324879,1393325437,1393325404,1393325371,1393325300,1393325242,1393325721,1393325659,1393326139,1393326131,1393326120,1393326108,1393326309,1393326306,1393326303,1393326462,1393326436,1393326435,1393326417); 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([28340539]) Inside saveOutput : final : False verbose : True original output for save of step final : {1393326462: ('0.051510567705679404',), 1393326436: ('0.051510567705679404',), 1393326435: ('0.051510567705679404',), 1393326417: ('0.051510567705679404',), 1393326309: ('0.051510567705679404',), 1393326306: ('0.051510567705679404',), 1393326303: ('0.051510567705679404',)} new output for save of step final : {1393326462: ('0.051510567705679404',), 1393326436: ('0.051510567705679404',), 1393326435: ('0.051510567705679404',), 1393326417: ('0.051510567705679404',), 1393326309: ('0.051510567705679404',), 1393326306: ('0.051510567705679404',), 1393326303: ('0.051510567705679404',)} [1393326462, 1393326436, 1393326435, 1393326417, 1393326309, 1393326306, 1393326303] map_info['map_portfolio_photo'] : {28340539: [1393326462, 1393326436, 1393326435, 1393326417, 1393326309, 1393326306, 1393326303, 1393326139, 1393326131, 1393326120, 1393326108, 1393325721, 1393325659, 1393325437, 1393325404, 1393325371, 1393325300, 1393325242, 1393324978, 1393324975, 1393324971, 1393324939, 1393324908, 1393324879, 1393324719, 1393324712, 1393324701, 1393324698, 1393324696, 1393324680, 1393324678, 1393324672, 1393324669, 1393324666, 1393324621, 1393324620, 1393324616, 1393324612, 1393324609, 1393324607, 1393324587, 1393324583, 1393324581, 1393324580, 1393324579, 1393324324, 1393324310, 1393324279, 1393324278, 1393324276, 1393324274, 1393324191, 1393324168, 1393324153, 1393324151, 1393323867, 1393323824, 1393323805, 1393323761, 1393323726, 1393323688, 1393323413, 1393323411, 1393323409, 1393323406]} final : False mtd_id 4302 list_pids : [1393326462, 1393326436, 1393326435, 1393326417, 1393326309, 1393326306, 1393326303] Looping around the photos to save general results len do output : 7 /1393326462.Didn't retrieve data . /1393326436.Didn't retrieve data . /1393326435.Didn't retrieve data . /1393326417.Didn't retrieve data . /1393326309.Didn't retrieve data . /1393326306.Didn't retrieve data . /1393326303.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, '4020797') ('4302', '28340539', '1393326462', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326436', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326435', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326417', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326309', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326306', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326303', None, None, None, None, None, '4020797') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '28340539', '1393326462', '0.051510567705679404', None, None, None, None, '4020797'), ('4302', '28340539', '1393326436', '0.051510567705679404', None, None, None, None, '4020797'), ('4302', '28340539', '1393326435', '0.051510567705679404', None, None, None, None, '4020797'), ('4302', '28340539', '1393326417', '0.051510567705679404', None, None, None, None, '4020797'), ('4302', '28340539', '1393326309', '0.051510567705679404', None, None, None, None, '4020797'), ('4302', '28340539', '1393326306', '0.051510567705679404', None, None, None, None, '4020797'), ('4302', '28340539', '1393326303', '0.051510567705679404', None, None, None, None, '4020797')] time used for this insertion : 0.015722274780273438 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07002401351928711 time spend to save output : 0.016096830368041992 total time spend for step 2 : 0.0861208438873291 step3:velours_tree Sat Nov 8 02:14: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 : {28340539: [{'Carton_brun': 28340546, 'cartonnette': 28340547, 'mal_croppe': 28340548, 'autre_refus': 28340549, 'flou': 28340550, 'kraft': 28340551, 'Teint_Dans_La_Masse': 28340552, 'papier': 28340553, 'environnement': 28340554, 'metal': 28340555, 'Carton_gris': 28340556, 'plastique': 28340557}]} input_args_next_step : {28340539: ()} output_args : {28340539: [{'Carton_brun': 28340546, 'cartonnette': 28340547, 'mal_croppe': 28340548, 'autre_refus': 28340549, 'flou': 28340550, 'kraft': 28340551, 'Teint_Dans_La_Masse': 28340552, 'papier': 28340553, 'environnement': 28340554, 'metal': 28340555, 'Carton_gris': 28340556, 'plastique': 28340557}]} args : 28340539 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 28340546, 'cartonnette': 28340547, 'mal_croppe': 28340548, 'autre_refus': 28340549, 'flou': 28340550, 'kraft': 28340551, 'Teint_Dans_La_Masse': 28340552, 'papier': 28340553, 'environnement': 28340554, 'metal': 28340555, 'Carton_gris': 28340556, 'plastique': 28340557},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28340539) 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([28340539]) 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.27048540115356445 time spend to save output : 5.14984130859375e-05 total time spend for step 3 : 0.2705368995666504 step4:send_mail_cod Sat Nov 8 02:14: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 : {1393326462: ('0.051510567705679404',), 1393326436: ('0.051510567705679404',), 1393326435: ('0.051510567705679404',), 1393326417: ('0.051510567705679404',), 1393326309: ('0.051510567705679404',), 1393326306: ('0.051510567705679404',), 1393326303: ('0.051510567705679404',)} input_args_next_step : {1393326462: ()} output_args : {1393326462: ('0.051510567705679404',), 1393326436: ('0.051510567705679404',), 1393326435: ('0.051510567705679404',), 1393326417: ('0.051510567705679404',), 1393326309: ('0.051510567705679404',), 1393326306: ('0.051510567705679404',), 1393326303: ('0.051510567705679404',)} args : 1393326462 depend.output_id : 0 input_args_next_step : {1393326462: ('0.051510567705679404',), 1393326436: ()} output_args : {1393326462: ('0.051510567705679404',), 1393326436: ('0.051510567705679404',), 1393326435: ('0.051510567705679404',), 1393326417: ('0.051510567705679404',), 1393326309: ('0.051510567705679404',), 1393326306: ('0.051510567705679404',), 1393326303: ('0.051510567705679404',)} args : 1393326436 depend.output_id : 0 input_args_next_step : {1393326462: ('0.051510567705679404',), 1393326436: ('0.051510567705679404',), 1393326435: ()} output_args : {1393326462: ('0.051510567705679404',), 1393326436: ('0.051510567705679404',), 1393326435: ('0.051510567705679404',), 1393326417: ('0.051510567705679404',), 1393326309: ('0.051510567705679404',), 1393326306: ('0.051510567705679404',), 1393326303: ('0.051510567705679404',)} args : 1393326435 depend.output_id : 0 input_args_next_step : {1393326462: ('0.051510567705679404',), 1393326436: ('0.051510567705679404',), 1393326435: ('0.051510567705679404',), 1393326417: ()} output_args : {1393326462: ('0.051510567705679404',), 1393326436: ('0.051510567705679404',), 1393326435: ('0.051510567705679404',), 1393326417: ('0.051510567705679404',), 1393326309: ('0.051510567705679404',), 1393326306: ('0.051510567705679404',), 1393326303: ('0.051510567705679404',)} args : 1393326417 depend.output_id : 0 input_args_next_step : {1393326462: ('0.051510567705679404',), 1393326436: ('0.051510567705679404',), 1393326435: ('0.051510567705679404',), 1393326417: ('0.051510567705679404',), 1393326309: ()} output_args : {1393326462: ('0.051510567705679404',), 1393326436: ('0.051510567705679404',), 1393326435: ('0.051510567705679404',), 1393326417: ('0.051510567705679404',), 1393326309: ('0.051510567705679404',), 1393326306: ('0.051510567705679404',), 1393326303: ('0.051510567705679404',)} args : 1393326309 depend.output_id : 0 input_args_next_step : {1393326462: ('0.051510567705679404',), 1393326436: ('0.051510567705679404',), 1393326435: ('0.051510567705679404',), 1393326417: ('0.051510567705679404',), 1393326309: ('0.051510567705679404',), 1393326306: ()} output_args : {1393326462: ('0.051510567705679404',), 1393326436: ('0.051510567705679404',), 1393326435: ('0.051510567705679404',), 1393326417: ('0.051510567705679404',), 1393326309: ('0.051510567705679404',), 1393326306: ('0.051510567705679404',), 1393326303: ('0.051510567705679404',)} args : 1393326306 depend.output_id : 0 input_args_next_step : {1393326462: ('0.051510567705679404',), 1393326436: ('0.051510567705679404',), 1393326435: ('0.051510567705679404',), 1393326417: ('0.051510567705679404',), 1393326309: ('0.051510567705679404',), 1393326306: ('0.051510567705679404',), 1393326303: ()} output_args : {1393326462: ('0.051510567705679404',), 1393326436: ('0.051510567705679404',), 1393326435: ('0.051510567705679404',), 1393326417: ('0.051510567705679404',), 1393326309: ('0.051510567705679404',), 1393326306: ('0.051510567705679404',), 1393326303: ('0.051510567705679404',)} args : 1393326303 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {28340539: [{'Carton_brun': 28340546, 'cartonnette': 28340547, 'mal_croppe': 28340548, 'autre_refus': 28340549, 'flou': 28340550, 'kraft': 28340551, 'Teint_Dans_La_Masse': 28340552, 'papier': 28340553, 'environnement': 28340554, 'metal': 28340555, 'Carton_gris': 28340556, 'plastique': 28340557}]} input_args_next_step : {1393326462: ('0.051510567705679404',), 1393326436: ('0.051510567705679404',), 1393326435: ('0.051510567705679404',), 1393326417: ('0.051510567705679404',), 1393326309: ('0.051510567705679404',), 1393326306: ('0.051510567705679404',), 1393326303: ('0.051510567705679404',), 28340539: ()} output_args : {28340539: [{'Carton_brun': 28340546, 'cartonnette': 28340547, 'mal_croppe': 28340548, 'autre_refus': 28340549, 'flou': 28340550, 'kraft': 28340551, 'Teint_Dans_La_Masse': 28340552, 'papier': 28340553, 'environnement': 28340554, 'metal': 28340555, 'Carton_gris': 28340556, 'plastique': 28340557}]} args : 28340539 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 :8, first value : ('0.051510567705679404',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28340539) 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_view ph WHERE photo_id IN (1393326462,1393326436,1393326435,1393326417,1393326309,1393326306,1393326303) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1393326303 begin to download photo : 1393326309 begin to download photo : 1393326435 begin to download photo : 1393326462 download finish for photo 1393326309 begin to download photo : 1393326417 download finish for photo 1393326462 download finish for photo 1393326435 begin to download photo : 1393326436 download finish for photo 1393326303 begin to download photo : 1393326306 download finish for photo 1393326417 download finish for photo 1393326436 download finish for photo 1393326306 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 : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P28340539_08-11-2025_02_15_00.pdf 28340547 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28340547 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393326140: '1762564285_1009956_1393324678_1c7965c4ce87b78807243a530ade223a_rle_crop_4026642108_0.png', 1393326151: '1762564285_1009956_1393324580_290b7decb0c0f5dcae17e64c92f44317_rle_crop_4026639420_0.png', 1393326149: '1762564285_1009956_1393324581_90788914907e4bcfd16112da00bde501_rle_crop_4026639391_0.png', 1393326148: '1762564285_1009956_1393324581_90788914907e4bcfd16112da00bde501_rle_crop_4026639395_0.png', 1393326147: '1762564285_1009956_1393324583_6d7e399e561e472ecce80793f4ca52f2_rle_crop_4026639378_0.png', 1393326146: '1762564285_1009956_1393324621_cee0a7f5835e55bc29188bf5a09164e1_rle_crop_4026642186_0.png', 1393326143: '1762564285_1009956_1393324669_a8965118f4534cb07e01e643ae661e6a_rle_crop_4026642159_0.png', 1393326142: '1762564285_1009956_1393324672_0420801a72e33ad7db67d993705428c5_rle_crop_4026642121_0.png', 1393326141: '1762564285_1009956_1393324672_0420801a72e33ad7db67d993705428c5_rle_crop_4026642125_0.png', 1393324675: '1762564026_996772_1393324278_94d39b067e0b8fd8c396fcf31c89671c_rle_crop_4026636933_0.png', 1393325964: '1762564265_1009516_1393324612_abfc4fdc3463e0916075ba2c2d2d35df_rle_crop_4026641670_0.png', 1393325022: '1762564147_1002844_1393324580_290b7decb0c0f5dcae17e64c92f44317_rle_crop_4026639420_0.png', 1393325021: '1762564147_1002844_1393324581_90788914907e4bcfd16112da00bde501_rle_crop_4026639391_0.png', 1393325020: '1762564147_1002844_1393324581_90788914907e4bcfd16112da00bde501_rle_crop_4026639395_0.png', 1393325019: '1762564147_1002844_1393324583_6d7e399e561e472ecce80793f4ca52f2_rle_crop_4026639378_0.png', 1393324691: '1762564047_997679_1393323805_5f0539a03a58113f2aaed99ce182cb9f_rle_crop_4026637517_0.png', 1393324690: '1762564047_997679_1393323824_3b77c6d4d0f2fb02d40038c5b4ee9dad_rle_crop_4026637248_0.png', 1393324676: '1762564026_996772_1393324274_d459f1d7ee9301874fbf28b0105d441b_rle_crop_4026636958_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/570249b4ecb9d5b84cfe39e1f742bbbc_13466587.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/d7339d43fca7560266bc4ce02cbdd6cf_91562589.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/9fbb012312c40f1ca225a61c88dfcf94_58003026.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/8bf3150682217ef7c9f840dd28711d03_73983682.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/570249b4ecb9d5b84cfe39e1f742bbbc_84644227.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/41e86301888e2d93b29b8c24b558bcb8_98725844.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/d7339d43fca7560266bc4ce02cbdd6cf_99196219.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/9fbb012312c40f1ca225a61c88dfcf94_73230563.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/8bf3150682217ef7c9f840dd28711d03_25685675.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/9a3be5e8e1d6b373b8e78059791737fb_16585649.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/e95916d00081fc983c6728b69c0c89e0_37613399.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/d7339d43fca7560266bc4ce02cbdd6cf_35999018.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/9fbb012312c40f1ca225a61c88dfcf94_14860009.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/8bf3150682217ef7c9f840dd28711d03_51690977.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/570249b4ecb9d5b84cfe39e1f742bbbc_30672721.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/bcfe39d6117221bd2db0534d3d8ec355_58479933.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/0637dd61fd6038563fe1150dce18a13b_47446296.png change filename to text .imagette283405471762564500/ imagette283405471762564500/1762564285_1009956_1393324580_290b7decb0c0f5dcae17e64c92f44317_rle_crop_4026639420_0.png.png imagette283405471762564500/1762564285_1009956_1393324672_0420801a72e33ad7db67d993705428c5_rle_crop_4026642121_0.png.png imagette283405471762564500/1762564285_1009956_1393324621_cee0a7f5835e55bc29188bf5a09164e1_rle_crop_4026642186_0.png.png imagette283405471762564500/1762564026_996772_1393324274_d459f1d7ee9301874fbf28b0105d441b_rle_crop_4026636958_0.png.png imagette283405471762564500/1762564147_1002844_1393324581_90788914907e4bcfd16112da00bde501_rle_crop_4026639391_0.png.png imagette283405471762564500/1762564147_1002844_1393324583_6d7e399e561e472ecce80793f4ca52f2_rle_crop_4026639378_0.png.png imagette283405471762564500/1762564285_1009956_1393324672_0420801a72e33ad7db67d993705428c5_rle_crop_4026642125_0.png.png imagette283405471762564500/1762564285_1009956_1393324678_1c7965c4ce87b78807243a530ade223a_rle_crop_4026642108_0.png.png imagette283405471762564500/1762564285_1009956_1393324583_6d7e399e561e472ecce80793f4ca52f2_rle_crop_4026639378_0.png.png imagette283405471762564500/1762564147_1002844_1393324580_290b7decb0c0f5dcae17e64c92f44317_rle_crop_4026639420_0.png.png imagette283405471762564500/1762564285_1009956_1393324581_90788914907e4bcfd16112da00bde501_rle_crop_4026639395_0.png.png imagette283405471762564500/1762564147_1002844_1393324581_90788914907e4bcfd16112da00bde501_rle_crop_4026639395_0.png.png imagette283405471762564500/1762564285_1009956_1393324669_a8965118f4534cb07e01e643ae661e6a_rle_crop_4026642159_0.png.png imagette283405471762564500/1762564047_997679_1393323824_3b77c6d4d0f2fb02d40038c5b4ee9dad_rle_crop_4026637248_0.png.png imagette283405471762564500/1762564265_1009516_1393324612_abfc4fdc3463e0916075ba2c2d2d35df_rle_crop_4026641670_0.png.png imagette283405471762564500/1762564026_996772_1393324278_94d39b067e0b8fd8c396fcf31c89671c_rle_crop_4026636933_0.png.png imagette283405471762564500/1762564047_997679_1393323805_5f0539a03a58113f2aaed99ce182cb9f_rle_crop_4026637517_0.png.png imagette283405471762564500/1762564285_1009956_1393324581_90788914907e4bcfd16112da00bde501_rle_crop_4026639391_0.png.png imagette283405481762564501/ wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/d6011f2b932c0f1d8b0b6216ada4d2a0_65644954.png imagette283405471762564500 28340548 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28340548 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette283405481762564501 28340549 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28340549 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393324477: '1762563907_991176_1393323406_b6f5f6dcf7aac36eeeb6e5d8bab74625_rle_crop_4026633423_0.png', 1393324673: '1762564026_996772_1393324274_d459f1d7ee9301874fbf28b0105d441b_rle_crop_4026636955_0.png', 1393324687: '1762564047_997679_1393323761_2cbf646de1b09efd2d5c0b5c27d7a726_rle_crop_4026637530_0.png', 1393325016: '1762564147_1002844_1393324583_6d7e399e561e472ecce80793f4ca52f2_rle_crop_4026639382_0.png', 1393325017: '1762564147_1002844_1393324580_290b7decb0c0f5dcae17e64c92f44317_rle_crop_4026639415_0.png', 1393325018: '1762564147_1002844_1393324579_6b4e4de1067551bfb284439e43fee86b_rle_crop_4026639429_0.png', 1393326132: '1762564285_1009956_1393324678_1c7965c4ce87b78807243a530ade223a_rle_crop_4026642112_0.png', 1393326133: '1762564285_1009956_1393324669_a8965118f4534cb07e01e643ae661e6a_rle_crop_4026642154_0.png', 1393326135: '1762564285_1009956_1393324666_bf82a704e272cc685bf2e1e876c87dc0_rle_crop_4026642168_0.png', 1393326136: '1762564285_1009956_1393324583_6d7e399e561e472ecce80793f4ca52f2_rle_crop_4026639382_0.png', 1393326137: '1762564285_1009956_1393324580_290b7decb0c0f5dcae17e64c92f44317_rle_crop_4026639415_0.png', 1393326138: '1762564285_1009956_1393324579_6b4e4de1067551bfb284439e43fee86b_rle_crop_4026639429_0.png', 1393326326: '1762564387_1015177_1393325242_d6f60cc81a05480aa14ca184ca234cc8_rle_crop_4026644049_0.png', 1393326377: '1762564406_1016120_1393324939_484329b17a3a406a3f3b57f720ca1229_rle_crop_4026644082_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/0b1b3f44e85d248cd7289ad8be8fb191_92855312.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/a31527bbad78cd2d8289423b305af096_5630290.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/2a8573bdef8640c66fba8724193e2af0_89215671.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/ad9e60d74c30c3e35a1d673344178a69_41704978.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/2bb4a301e355452c9f110412acf2e336_51002461.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/eee7f0a6f35c3e562e8b48fd32c2fdd4_78685946.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/ad9e60d74c30c3e35a1d673344178a69_91392398.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/2bb4a301e355452c9f110412acf2e336_46914733.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/eee7f0a6f35c3e562e8b48fd32c2fdd4_232223.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/ad9e60d74c30c3e35a1d673344178a69_99803130.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/2bb4a301e355452c9f110412acf2e336_26179110.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/eee7f0a6f35c3e562e8b48fd32c2fdd4_25998102.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/ba10fb6affe43c1b0ea949747e9fd904_28310234.png change filename to text .imagette283405491762564501/ imagette283405491762564501/1762564147_1002844_1393324579_6b4e4de1067551bfb284439e43fee86b_rle_crop_4026639429_0.png.png imagette283405491762564501/1762564047_997679_1393323761_2cbf646de1b09efd2d5c0b5c27d7a726_rle_crop_4026637530_0.png.png imagette283405491762564501/1762564406_1016120_1393324939_484329b17a3a406a3f3b57f720ca1229_rle_crop_4026644082_0.png.png imagette283405491762564501/1762564285_1009956_1393324580_290b7decb0c0f5dcae17e64c92f44317_rle_crop_4026639415_0.png.png imagette283405491762564501/1762564285_1009956_1393324666_bf82a704e272cc685bf2e1e876c87dc0_rle_crop_4026642168_0.png.png imagette283405491762564501/1762564387_1015177_1393325242_d6f60cc81a05480aa14ca184ca234cc8_rle_crop_4026644049_0.png.png imagette283405491762564501/1762564285_1009956_1393324583_6d7e399e561e472ecce80793f4ca52f2_rle_crop_4026639382_0.png.png imagette283405491762564501/1762564285_1009956_1393324678_1c7965c4ce87b78807243a530ade223a_rle_crop_4026642112_0.png.png imagette283405491762564501/1762564147_1002844_1393324580_290b7decb0c0f5dcae17e64c92f44317_rle_crop_4026639415_0.png.png imagette283405491762564501/1762563907_991176_1393323406_b6f5f6dcf7aac36eeeb6e5d8bab74625_rle_crop_4026633423_0.png.png imagette283405491762564501/1762564147_1002844_1393324583_6d7e399e561e472ecce80793f4ca52f2_rle_crop_4026639382_0.png.png imagette283405491762564501/1762564285_1009956_1393324579_6b4e4de1067551bfb284439e43fee86b_rle_crop_4026639429_0.png.png imagette283405491762564501/1762564026_996772_1393324274_d459f1d7ee9301874fbf28b0105d441b_rle_crop_4026636955_0.png.png imagette283405491762564501/1762564285_1009956_1393324669_a8965118f4534cb07e01e643ae661e6a_rle_crop_4026642154_0.png.png imagette283405501762564502/ imagette283405511762564502/ wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/2b72f5e6eebb378ccfae14076e62f76f_19762301.png imagette283405491762564501 28340550 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28340550 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette283405501762564502 28340551 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28340551 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette283405511762564502 28340555 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28340555 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393324478: '1762563907_991176_1393323406_b6f5f6dcf7aac36eeeb6e5d8bab74625_rle_crop_4026633427_0.png', 1393326357: '1762564387_1015177_1393325371_71e191a5b409fc19bf65d36e53946ef8_rle_crop_4026644009_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/7c42dc7e9bb1fea0e784041082ed3f5d_91286137.png change filename to text .imagette283405551762564502/ imagette283405551762564502/1762563907_991176_1393323406_b6f5f6dcf7aac36eeeb6e5d8bab74625_rle_crop_4026633427_0.png.png imagette283405551762564502/1762564387_1015177_1393325371_71e191a5b409fc19bf65d36e53946ef8_rle_crop_4026644009_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/df57e8a297efdca518f81f9800933d4e_95673748.png imagette283405551762564502 28340557 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28340557 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393324677: '1762564026_996772_1393324278_94d39b067e0b8fd8c396fcf31c89671c_rle_crop_4026636930_0.png', 1393325051: '1762564147_1002844_1393324581_90788914907e4bcfd16112da00bde501_rle_crop_4026639394_0.png', 1393325985: '1762564265_1009516_1393324609_e140ff76380bf02c9b97790b8f51096e_rle_crop_4026641687_0.png', 1393326186: '1762564285_1009956_1393324672_0420801a72e33ad7db67d993705428c5_rle_crop_4026642124_0.png', 1393326188: '1762564285_1009956_1393324581_90788914907e4bcfd16112da00bde501_rle_crop_4026639394_0.png', 1393326346: '1762564387_1015177_1393325300_d80ac49095e733a2d64c7d0dfd531f74_rle_crop_4026644033_0.png', 1393326348: '1762564387_1015177_1393325300_d80ac49095e733a2d64c7d0dfd531f74_rle_crop_4026644027_0.png', 1393326416: '1762564406_1016120_1393324975_980f8cc19e96c4726e128e6b57a4c726_rle_crop_4026644037_0.png', 1393326419: '1762564406_1016120_1393324908_d40798851dfbd33fce3122f946f32fbe_rle_crop_4026644117_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/c4b9c8b82b97575efd0a5652c182bf11_37413014.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/3107b2a8cba345cba292e5b1be8e38c8_69813945.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/6cc5e37eedfbd1ebd09aee0c77bb9656_29605620.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/3107b2a8cba345cba292e5b1be8e38c8_33028825.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/3107b2a8cba345cba292e5b1be8e38c8_10007582.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/8287eb5873c93a706c379fbde22be201_82698806.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/8181541b093bfc3f7cc89451f95eb166_34527681.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/be95ea74faae38e9d54b5e1a6611c3df_45599995.png change filename to text .imagette283405571762564502/ imagette283405571762564502/1762564387_1015177_1393325300_d80ac49095e733a2d64c7d0dfd531f74_rle_crop_4026644033_0.png.png imagette283405571762564502/1762564406_1016120_1393324908_d40798851dfbd33fce3122f946f32fbe_rle_crop_4026644117_0.png.png imagette283405571762564502/1762564147_1002844_1393324581_90788914907e4bcfd16112da00bde501_rle_crop_4026639394_0.png.png imagette283405571762564502/1762564265_1009516_1393324609_e140ff76380bf02c9b97790b8f51096e_rle_crop_4026641687_0.png.png imagette283405571762564502/1762564387_1015177_1393325300_d80ac49095e733a2d64c7d0dfd531f74_rle_crop_4026644027_0.png.png imagette283405571762564502/1762564285_1009956_1393324581_90788914907e4bcfd16112da00bde501_rle_crop_4026639394_0.png.png imagette283405571762564502/1762564406_1016120_1393324975_980f8cc19e96c4726e128e6b57a4c726_rle_crop_4026644037_0.png.png imagette283405571762564502/1762564285_1009956_1393324672_0420801a72e33ad7db67d993705428c5_rle_crop_4026642124_0.png.png imagette283405571762564502/1762564026_996772_1393324278_94d39b067e0b8fd8c396fcf31c89671c_rle_crop_4026636930_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/a3fd6343564dc508593674f8452fe66d_14232021.png imagette283405571762564502 28340546 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28340546 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393324694: '1762564047_997679_1393323688_5fb36d7a27c95d3880b75cc447a58eff_rle_crop_4026637772_0.png', 1393325031: '1762564147_1002844_1393324583_6d7e399e561e472ecce80793f4ca52f2_rle_crop_4026639380_0.png', 1393325033: '1762564147_1002844_1393324581_90788914907e4bcfd16112da00bde501_rle_crop_4026639396_0.png', 1393325035: '1762564147_1002844_1393324580_290b7decb0c0f5dcae17e64c92f44317_rle_crop_4026639421_0.png', 1393325973: '1762564265_1009516_1393324607_c5e79fefd8a798cf65b36b76a69f1b11_rle_crop_4026641698_0.png', 1393325976: '1762564265_1009516_1393324607_c5e79fefd8a798cf65b36b76a69f1b11_rle_crop_4026641703_0.png', 1393326165: '1762564285_1009956_1393324678_1c7965c4ce87b78807243a530ade223a_rle_crop_4026642110_0.png', 1393326167: '1762564285_1009956_1393324672_0420801a72e33ad7db67d993705428c5_rle_crop_4026642126_0.png', 1393326169: '1762564285_1009956_1393324669_a8965118f4534cb07e01e643ae661e6a_rle_crop_4026642160_0.png', 1393326171: '1762564285_1009956_1393324583_6d7e399e561e472ecce80793f4ca52f2_rle_crop_4026639380_0.png', 1393326173: '1762564285_1009956_1393324581_90788914907e4bcfd16112da00bde501_rle_crop_4026639396_0.png', 1393326175: '1762564285_1009956_1393324580_290b7decb0c0f5dcae17e64c92f44317_rle_crop_4026639421_0.png', 1393326401: '1762564406_1016120_1393324908_d40798851dfbd33fce3122f946f32fbe_rle_crop_4026644112_0.png', 1393326403: '1762564406_1016120_1393324908_d40798851dfbd33fce3122f946f32fbe_rle_crop_4026644111_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/d3527ecc6d77f6479ed8d1a950e2c490_83050503.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/685bac01092dfa218ea97a03554d13aa_3784877.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/b0f8b557371477926516edc88a112d00_66102313.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/b524a6dd75c024c4edc4ac3409535fb3_3526425.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/15220c7528258d579c409dda35c4023b_94811160.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/61de393023376709ebb0de41f5715b52_15477731.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/685bac01092dfa218ea97a03554d13aa_54766221.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/b0f8b557371477926516edc88a112d00_65312659.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/b524a6dd75c024c4edc4ac3409535fb3_35249223.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/685bac01092dfa218ea97a03554d13aa_47739527.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/b0f8b557371477926516edc88a112d00_54443425.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/b524a6dd75c024c4edc4ac3409535fb3_31351016.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/1c6952cbedc36f52091835591271d447_76851307.png change filename to text .imagette283405461762564503/ imagette283405461762564503/1762564265_1009516_1393324607_c5e79fefd8a798cf65b36b76a69f1b11_rle_crop_4026641703_0.png.png imagette283405461762564503/1762564147_1002844_1393324581_90788914907e4bcfd16112da00bde501_rle_crop_4026639396_0.png.png imagette283405461762564503/1762564406_1016120_1393324908_d40798851dfbd33fce3122f946f32fbe_rle_crop_4026644111_0.png.png imagette283405461762564503/1762564285_1009956_1393324678_1c7965c4ce87b78807243a530ade223a_rle_crop_4026642110_0.png.png imagette283405461762564503/1762564047_997679_1393323688_5fb36d7a27c95d3880b75cc447a58eff_rle_crop_4026637772_0.png.png imagette283405461762564503/1762564285_1009956_1393324580_290b7decb0c0f5dcae17e64c92f44317_rle_crop_4026639421_0.png.png imagette283405461762564503/1762564285_1009956_1393324583_6d7e399e561e472ecce80793f4ca52f2_rle_crop_4026639380_0.png.png imagette283405461762564503/1762564265_1009516_1393324607_c5e79fefd8a798cf65b36b76a69f1b11_rle_crop_4026641698_0.png.png imagette283405461762564503/1762564285_1009956_1393324672_0420801a72e33ad7db67d993705428c5_rle_crop_4026642126_0.png.png imagette283405461762564503/1762564147_1002844_1393324580_290b7decb0c0f5dcae17e64c92f44317_rle_crop_4026639421_0.png.png imagette283405461762564503/1762564285_1009956_1393324669_a8965118f4534cb07e01e643ae661e6a_rle_crop_4026642160_0.png.png imagette283405461762564503/1762564147_1002844_1393324583_6d7e399e561e472ecce80793f4ca52f2_rle_crop_4026639380_0.png.png imagette283405461762564503/1762564406_1016120_1393324908_d40798851dfbd33fce3122f946f32fbe_rle_crop_4026644112_0.png.png imagette283405461762564503/1762564285_1009956_1393324581_90788914907e4bcfd16112da00bde501_rle_crop_4026639396_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/65b4be4667087491c664497d4aac1671_73332009.png imagette283405461762564503 28340552 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28340552 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393325934: '1762564265_1009516_1393324612_abfc4fdc3463e0916075ba2c2d2d35df_rle_crop_4026641671_0.png', 1393326367: '1762564406_1016120_1393325437_5c46dc81efd93cae2bb0395d518192f9_rle_crop_4026644019_0.png', 1393326365: '1762564406_1016120_1393325437_5c46dc81efd93cae2bb0395d518192f9_rle_crop_4026644016_0.png', 1393326323: '1762564387_1015177_1393325371_71e191a5b409fc19bf65d36e53946ef8_rle_crop_4026644007_0.png', 1393326130: '1762564285_1009956_1393324579_6b4e4de1067551bfb284439e43fee86b_rle_crop_4026639441_0.png', 1393326129: '1762564285_1009956_1393324579_6b4e4de1067551bfb284439e43fee86b_rle_crop_4026639440_0.png', 1393326126: '1762564285_1009956_1393324581_90788914907e4bcfd16112da00bde501_rle_crop_4026639397_0.png', 1393326124: '1762564285_1009956_1393324666_bf82a704e272cc685bf2e1e876c87dc0_rle_crop_4026642180_0.png', 1393326123: '1762564285_1009956_1393324666_bf82a704e272cc685bf2e1e876c87dc0_rle_crop_4026642179_0.png', 1393326122: '1762564285_1009956_1393324672_0420801a72e33ad7db67d993705428c5_rle_crop_4026642127_0.png', 1393325936: '1762564265_1009516_1393324609_e140ff76380bf02c9b97790b8f51096e_rle_crop_4026641685_0.png', 1393324473: '1762563907_991176_1393323411_744e1655cdfe2db2e5c4391d91d70634_rle_crop_4026633405_0.png', 1393325014: '1762564147_1002844_1393324579_6b4e4de1067551bfb284439e43fee86b_rle_crop_4026639441_0.png', 1393325013: '1762564147_1002844_1393324579_6b4e4de1067551bfb284439e43fee86b_rle_crop_4026639440_0.png', 1393325012: '1762564147_1002844_1393324581_90788914907e4bcfd16112da00bde501_rle_crop_4026639397_0.png', 1393324686: '1762564047_997679_1393323726_f6d56c25af200d0097970cf8352978b3_rle_crop_4026637746_0.png', 1393324685: '1762564047_997679_1393323726_f6d56c25af200d0097970cf8352978b3_rle_crop_4026637745_0.png', 1393324683: '1762564047_997679_1393323824_3b77c6d4d0f2fb02d40038c5b4ee9dad_rle_crop_4026637251_0.png', 1393324682: '1762564047_997679_1393324191_f4c2536393df1e31e023f97d0a5b1f35_rle_crop_4026637238_0.png', 1393324671: '1762564026_996772_1393324278_94d39b067e0b8fd8c396fcf31c89671c_rle_crop_4026636931_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/34ea6976f58565e5371ec6250fd808c2_20402981.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/e9841c04de103ec918447d9c635368e2_41152903.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/010a02f91a1ddbcb67233effa454bbe3_48492176.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/5726aa26cc01314d0388814e115d5c9d_67785684.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/47a19b7d7cae0b481346bc918c7c629d_4901255.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/bbaa542934ed4a339d58d398030ad4a6_94929674.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/048549d603500df223af3d70810a7456_77943582.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/47a19b7d7cae0b481346bc918c7c629d_37403241.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/bbaa542934ed4a339d58d398030ad4a6_48440072.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/048549d603500df223af3d70810a7456_37854570.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/5f38de1b64eb90cb4b4372bd10ea1f54_25510347.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/abeb4fb0f9050e01ada42dcf063cbf35_26797167.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/47a19b7d7cae0b481346bc918c7c629d_65913247.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/bbaa542934ed4a339d58d398030ad4a6_2691893.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/048549d603500df223af3d70810a7456_5732564.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/36da78fe5662ef5e015c64daa0fb5975_42054332.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/8f61f1775cd83400b042426db4e1e478_27352040.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/9b25c552e8496f283a7267cf44f7c7a4_57625383.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/fcda5b24b6b11099fba8c9d00f5a5675_29069943.png change filename to text .imagette283405521762564504/ imagette283405521762564504/1762564406_1016120_1393325437_5c46dc81efd93cae2bb0395d518192f9_rle_crop_4026644016_0.png.png imagette283405521762564504/1762564285_1009956_1393324579_6b4e4de1067551bfb284439e43fee86b_rle_crop_4026639440_0.png.png imagette283405521762564504/1762564387_1015177_1393325371_71e191a5b409fc19bf65d36e53946ef8_rle_crop_4026644007_0.png.png imagette283405521762564504/1762564285_1009956_1393324666_bf82a704e272cc685bf2e1e876c87dc0_rle_crop_4026642179_0.png.png imagette283405521762564504/1762564406_1016120_1393325437_5c46dc81efd93cae2bb0395d518192f9_rle_crop_4026644019_0.png.png imagette283405521762564504/1762563907_991176_1393323411_744e1655cdfe2db2e5c4391d91d70634_rle_crop_4026633405_0.png.png imagette283405521762564504/1762564147_1002844_1393324579_6b4e4de1067551bfb284439e43fee86b_rle_crop_4026639440_0.png.png imagette283405521762564504/1762564147_1002844_1393324581_90788914907e4bcfd16112da00bde501_rle_crop_4026639397_0.png.png imagette283405521762564504/1762564285_1009956_1393324666_bf82a704e272cc685bf2e1e876c87dc0_rle_crop_4026642180_0.png.png imagette283405521762564504/1762564047_997679_1393324191_f4c2536393df1e31e023f97d0a5b1f35_rle_crop_4026637238_0.png.png imagette283405521762564504/1762564147_1002844_1393324579_6b4e4de1067551bfb284439e43fee86b_rle_crop_4026639441_0.png.png imagette283405521762564504/1762564265_1009516_1393324609_e140ff76380bf02c9b97790b8f51096e_rle_crop_4026641685_0.png.png imagette283405521762564504/1762564265_1009516_1393324612_abfc4fdc3463e0916075ba2c2d2d35df_rle_crop_4026641671_0.png.png imagette283405521762564504/1762564026_996772_1393324278_94d39b067e0b8fd8c396fcf31c89671c_rle_crop_4026636931_0.png.png imagette283405521762564504/1762564047_997679_1393323824_3b77c6d4d0f2fb02d40038c5b4ee9dad_rle_crop_4026637251_0.png.png imagette283405521762564504/1762564285_1009956_1393324579_6b4e4de1067551bfb284439e43fee86b_rle_crop_4026639441_0.png.png imagette283405521762564504/1762564047_997679_1393323726_f6d56c25af200d0097970cf8352978b3_rle_crop_4026637745_0.png.png imagette283405521762564504/1762564285_1009956_1393324581_90788914907e4bcfd16112da00bde501_rle_crop_4026639397_0.png.png imagette283405521762564504/1762564285_1009956_1393324672_0420801a72e33ad7db67d993705428c5_rle_crop_4026642127_0.png.png imagette283405521762564504/1762564047_997679_1393323726_f6d56c25af200d0097970cf8352978b3_rle_crop_4026637746_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/65edccb0bab38f4e56e94cbf7f2f8c42_54119569.png imagette283405521762564504 28340556 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28340556 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393324688: '1762564047_997679_1393323824_3b77c6d4d0f2fb02d40038c5b4ee9dad_rle_crop_4026637252_0.png', 1393324689: '1762564047_997679_1393323824_3b77c6d4d0f2fb02d40038c5b4ee9dad_rle_crop_4026637250_0.png', 1393325949: '1762564265_1009516_1393324620_3dd0b1f0913f77ecc692089fe9aa4769_rle_crop_4026641604_0.png', 1393325951: '1762564265_1009516_1393324616_b35103b93f49fb4c3435cdfcfd4efe88_rle_crop_4026641616_0.png', 1393325953: '1762564265_1009516_1393324607_c5e79fefd8a798cf65b36b76a69f1b11_rle_crop_4026641695_0.png', 1393326334: '1762564387_1015177_1393325300_d80ac49095e733a2d64c7d0dfd531f74_rle_crop_4026644028_0.png', 1393326388: '1762564406_1016120_1393324971_2a9cf606711ecaa56517d7dd5d275dcf_rle_crop_4026644054_0.png', 1393326391: '1762564406_1016120_1393324939_484329b17a3a406a3f3b57f720ca1229_rle_crop_4026644079_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/5569377c3e88b69cf53792026e3d29ca_5154547.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/396f3cbf15891c1de9edba85efbc9b42_17839328.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/ec14a6d5bce6f44cfbb652ae722b1670_36272705.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/7ca9c5934683e1383388990ab15011c2_78028645.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/2d750dad0a82e8a3a394cf435a83d9f5_49812123.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/1ebada4e704bb1e70eb63b4e6341a349_3565537.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/dcc83767caa5b98bc54cc17e4e12f57f_39814393.png change filename to text .imagette283405561762564505/ imagette283405561762564505/1762564406_1016120_1393324939_484329b17a3a406a3f3b57f720ca1229_rle_crop_4026644079_0.png.png imagette283405561762564505/1762564387_1015177_1393325300_d80ac49095e733a2d64c7d0dfd531f74_rle_crop_4026644028_0.png.png imagette283405561762564505/1762564265_1009516_1393324607_c5e79fefd8a798cf65b36b76a69f1b11_rle_crop_4026641695_0.png.png imagette283405561762564505/1762564265_1009516_1393324620_3dd0b1f0913f77ecc692089fe9aa4769_rle_crop_4026641604_0.png.png imagette283405561762564505/1762564406_1016120_1393324971_2a9cf606711ecaa56517d7dd5d275dcf_rle_crop_4026644054_0.png.png imagette283405561762564505/1762564265_1009516_1393324616_b35103b93f49fb4c3435cdfcfd4efe88_rle_crop_4026641616_0.png.png imagette283405561762564505/1762564047_997679_1393323824_3b77c6d4d0f2fb02d40038c5b4ee9dad_rle_crop_4026637250_0.png.png imagette283405561762564505/1762564047_997679_1393323824_3b77c6d4d0f2fb02d40038c5b4ee9dad_rle_crop_4026637252_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/f0e936da15d259ff1db585f89e1d6369_29051106.png imagette283405561762564505 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28340539 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28340558,28340559,28340560,28340561,28340562,28340563,28340564,28340565,28340566,28340567,28340568,28340569?tags=Carton_brun,cartonnette,mal_croppe,autre_refus,flou,kraft,Teint_Dans_La_Masse,papier,environnement,metal,Carton_gris,plastique your option no_mail is active, we will not send the real mail to your client args[1393326462] : ('0.051510567705679404',) no score found for photo 1393326462 We are sending mail with results at report@fotonower.com args[1393326436] : ('0.051510567705679404',) no score found for photo 1393326436 We are sending mail with results at report@fotonower.com args[1393326435] : ('0.051510567705679404',) no score found for photo 1393326435 We are sending mail with results at report@fotonower.com args[1393326417] : ('0.051510567705679404',) no score found for photo 1393326417 We are sending mail with results at report@fotonower.com args[1393326309] : ('0.051510567705679404',) no score found for photo 1393326309 We are sending mail with results at report@fotonower.com args[1393326306] : ('0.051510567705679404',) no score found for photo 1393326306 We are sending mail with results at report@fotonower.com args[1393326303] : ('0.051510567705679404',) no score found for photo 1393326303 We are sending mail with results at report@fotonower.com refus_total : 0.051510567705679404 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28340539 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_P28340539_08-11-2025_02_15_00.pdf results_Auto_P28340539_08-11-2025_02_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28340539_08-11-2025_02_15_00.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','28340539','results_Auto_P28340539_08-11-2025_02_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28340539_08-11-2025_02_15_00.pdf','pdf','','0.24','0.051510567705679404') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28340539]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1393326462, 1393326436, 1393326435, 1393326417, 1393326309, 1393326306, 1393326303] map_info['map_portfolio_photo'] : {28340539: [1393326462, 1393326436, 1393326435, 1393326417, 1393326309, 1393326306, 1393326303, 1393326139, 1393326131, 1393326120, 1393326108, 1393325721, 1393325659, 1393325437, 1393325404, 1393325371, 1393325300, 1393325242, 1393324978, 1393324975, 1393324971, 1393324939, 1393324908, 1393324879, 1393324719, 1393324712, 1393324701, 1393324698, 1393324696, 1393324680, 1393324678, 1393324672, 1393324669, 1393324666, 1393324621, 1393324620, 1393324616, 1393324612, 1393324609, 1393324607, 1393324587, 1393324583, 1393324581, 1393324580, 1393324579, 1393324324, 1393324310, 1393324279, 1393324278, 1393324276, 1393324274, 1393324191, 1393324168, 1393324153, 1393324151, 1393323867, 1393323824, 1393323805, 1393323761, 1393323726, 1393323688, 1393323413, 1393323411, 1393323409, 1393323406]} final : False mtd_id 4302 list_pids : [1393326462, 1393326436, 1393326435, 1393326417, 1393326309, 1393326306, 1393326303] 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, '4020797') ('4302', '28340539', '1393326462', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326436', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326435', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326417', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326309', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326306', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326303', None, None, None, None, None, '4020797') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28340539', '1393326462', None, None, None, None, None, '4020797'), ('4302', '28340539', '1393326436', None, None, None, None, None, '4020797'), ('4302', '28340539', '1393326435', None, None, None, None, None, '4020797'), ('4302', '28340539', '1393326417', None, None, None, None, None, '4020797'), ('4302', '28340539', '1393326309', None, None, None, None, None, '4020797'), ('4302', '28340539', '1393326306', None, None, None, None, None, '4020797'), ('4302', '28340539', '1393326303', None, None, None, None, None, '4020797')] time used for this insertion : 0.014833211898803711 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.365484237670898 time spend to save output : 0.015047311782836914 total time spend for step 4 : 7.380531549453735 step5:split_time_score Sat Nov 8 02:15:07 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['28340539'] 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 : [('28340539',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28340539) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1393326462: {'path': 'temp/1762564499_1067118_1393326462_05ffdf5fbeeb43cb07e809b02d4945e9.jpg', 'extension': 'jpg'}, 1393326309: {'path': 'temp/1762564499_1067118_1393326309_4365f2464c0e5ea0ec2fe58125fc3101.jpg', 'extension': 'jpg'}, 1393326417: {'path': 'temp/1762564499_1067118_1393326417_c70d314fefa8fe4aaad30bb6b68583fa.jpg', 'extension': 'jpg'}, 1393326435: {'path': 'temp/1762564499_1067118_1393326435_7ecca1b23f2d27d236f4102f16656eeb.jpg', 'extension': 'jpg'}, 1393326436: {'path': 'temp/1762564499_1067118_1393326436_9da9027b70bbd099dd9435b25e307433.jpg', 'extension': 'jpg'}, 1393326303: {'path': 'temp/1762564499_1067118_1393326303_a0bea59a7535c695319ea81562c2bc8f.jpg', 'extension': 'jpg'}, 1393326306: {'path': 'temp/1762564499_1067118_1393326306_86a4a970d9e540d83c248547c419f08a.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 = 28340539; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28340539 group by h (('02', 65),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28340539 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 (28340539) 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 (28340539) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08112025 28340539 Nombre de photos uploadées : 65 / 23040 (0%) 08112025 28340539 Nombre de photos taguées (types de déchets): 0 / 65 (0%) 08112025 28340539 Nombre de photos taguées (volume) : 0 / 65 (0%) [{'photo_id': 1393323413, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/b2c23b4f2fc9451f072a1494c5522e57.jpg', 'username': None, 'uploaded_at': 1762563667, 'text': 'image_08112025_02_00_03_010142m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393323411, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/744e1655cdfe2db2e5c4391d91d70634.jpg', 'username': None, 'uploaded_at': 1762563667, 'text': 'image_08112025_02_00_14_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393323409, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/4fbcbde198da16662e8e81b3a357d343.jpg', 'username': None, 'uploaded_at': 1762563667, 'text': 'image_08112025_02_00_33_009126m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393323406, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/b6f5f6dcf7aac36eeeb6e5d8bab74625.jpg', 'username': None, 'uploaded_at': 1762563667, 'text': 'image_08112025_02_00_43_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 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0029006004333496094 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28340539, '2025-11-08' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-08' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2540024,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.22089529037475586 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= 2540024 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2540024, 'dashboard_run_id': 2547816, 'mtr_portfolio_id': 28336003, 'dashboard_result_id': 17028796, '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_P28336003_08-11-2025_00_17_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28336011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28336012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28336013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28336014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28336015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28336016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28336017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28336018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28336019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28336020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28336021, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28336022, 'pht': 3726}}"}, {'dashboat_entry_day': 2540024, 'dashboard_run_id': 2547816, 'mtr_portfolio_id': 28336481, 'dashboard_result_id': 17028797, '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_P28336481_08-11-2025_00_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28336486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28336487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28336488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28336489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28336490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28336491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28336492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28336493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28336494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28336495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28336496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28336497, 'pht': 3726}}"}, {'dashboat_entry_day': 2540024, 'dashboard_run_id': 2547816, 'mtr_portfolio_id': 28337035, 'dashboard_result_id': 17028798, '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_P28337035_08-11-2025_00_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28337096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28337097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28337098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28337099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28337100, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28337101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28337102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28337103, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28337104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28337105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28337106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28337107, 'pht': 3726}}"}, {'dashboat_entry_day': 2540024, 'dashboard_run_id': 2547816, 'mtr_portfolio_id': 28337671, 'dashboard_result_id': 17028799, '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_P28337671_08-11-2025_01_02_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28337732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28337733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28337734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28337735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28337736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28337737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28337738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28337739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28337740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28337741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28337742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28337743, 'pht': 3726}}"}, {'dashboat_entry_day': 2540024, 'dashboard_run_id': 2547816, 'mtr_portfolio_id': 28339241, 'dashboard_result_id': 17028800, '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_P28339241_08-11-2025_01_31_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28339243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28339244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28339245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28339246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28339247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28339248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28339249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28339250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28339251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28339252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28339253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28339254, 'pht': 3726}}"}, {'dashboat_entry_day': 2540024, 'dashboard_run_id': 2547816, 'mtr_portfolio_id': 28339415, 'dashboard_result_id': 17028801, '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_P28339415_08-11-2025_01_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28339417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28339418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28339419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28339420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28339421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28339422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28339423, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28339424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28339425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28339426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28339427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28339428, 'pht': 3726}}"}, {'dashboat_entry_day': 2540024, 'dashboard_run_id': 2547816, 'mtr_portfolio_id': 28339875, 'dashboard_result_id': 17028802, '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_P28339875_08-11-2025_02_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28339896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28339897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28339898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28339899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28339900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28339901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28339902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28339903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28339904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28339905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28339906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28339907, 'pht': 3726}}"}, {'dashboat_entry_day': 2540024, 'dashboard_run_id': 2547816, 'mtr_portfolio_id': 28340539, 'dashboard_result_id': 17028803, '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_P28340539_08-11-2025_02_10_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28340546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28340547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28340548, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28340549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28340550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28340551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28340552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28340553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28340554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28340555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28340556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28340557, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28336003 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': 4020370, 'mtr_portfolio_id': 28336003, 'created_at': datetime.datetime(2025, 11, 8, 0, 17, 28), 'result': '0.04019632894827077', 'result_long': None, 'result_double': None}] Qualite : 0.04019632894827077 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28336003 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28336003_08-11-2025_00_17_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28336003 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_P28336003_08-11-2025_00_17_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28336011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28336012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28336013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28336014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28336015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28336016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28336017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28336018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28336019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28336020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28336021, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28336022, 'pht': 3726}}" where mtr_portfolio_id = 28336003 and dashboard_run_id = 2547816 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`=28336003 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17028796, 0.04019632894827077, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28336003_08-11-2025_00_17_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28336011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28336012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28336013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28336014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28336015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28336016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28336017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28336018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28336019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28336020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28336021, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28336022, '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 = 28336481 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': 4020414, 'mtr_portfolio_id': 28336481, 'created_at': datetime.datetime(2025, 11, 8, 0, 32, 58), 'result': '0.03956901961259934', 'result_long': None, 'result_double': None}] Qualite : 0.03956901961259934 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28336481 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28336481_08-11-2025_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28336481 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_P28336481_08-11-2025_00_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28336486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28336487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28336488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28336489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28336490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28336491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28336492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28336493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28336494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28336495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28336496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28336497, 'pht': 3726}}" where mtr_portfolio_id = 28336481 and dashboard_run_id = 2547816 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`=28336481 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17028797, 0.03956901961259934, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28336481_08-11-2025_00_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28336486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28336487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28336488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28336489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28336490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28336491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28336492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28336493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28336494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28336495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28336496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28336497, '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 = 28337035 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': 4020479, 'mtr_portfolio_id': 28337035, 'created_at': datetime.datetime(2025, 11, 8, 0, 46, 57), 'result': '0.03564186648367525', 'result_long': None, 'result_double': None}] Qualite : 0.03564186648367525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28337035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28337035_08-11-2025_00_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28337035 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_P28337035_08-11-2025_00_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28337096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28337097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28337098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28337099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28337100, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28337101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28337102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28337103, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28337104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28337105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28337106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28337107, 'pht': 3726}}" where mtr_portfolio_id = 28337035 and dashboard_run_id = 2547816 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`=28337035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17028798, 0.03564186648367525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28337035_08-11-2025_00_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28337096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28337097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28337098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28337099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28337100, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28337101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28337102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28337103, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28337104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28337105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28337106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28337107, '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 = 28337671 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': 4020549, 'mtr_portfolio_id': 28337671, 'created_at': datetime.datetime(2025, 11, 8, 1, 2, 30), 'result': '0.0375088666914562', 'result_long': None, 'result_double': None}] Qualite : 0.0375088666914562 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28337671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28337671_08-11-2025_01_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28337671 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_P28337671_08-11-2025_01_02_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28337732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28337733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28337734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28337735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28337736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28337737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28337738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28337739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28337740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28337741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28337742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28337743, 'pht': 3726}}" where mtr_portfolio_id = 28337671 and dashboard_run_id = 2547816 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`=28337671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17028799, 0.0375088666914562, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28337671_08-11-2025_01_02_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28337732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28337733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28337734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28337735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28337736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28337737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28337738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28337739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28337740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28337741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28337742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28337743, '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 = 28339241 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 = 28339241 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28339241 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28339241 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28339241 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28339241 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28339241_08-11-2025_01_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28339241 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_P28339241_08-11-2025_01_31_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28339243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28339244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28339245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28339246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28339247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28339248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28339249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28339250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28339251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28339252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28339253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28339254, 'pht': 3726}}" where mtr_portfolio_id = 28339241 and dashboard_run_id = 2547818 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 = 28339415 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': 4020699, 'mtr_portfolio_id': 28339415, 'created_at': datetime.datetime(2025, 11, 8, 1, 48, 59), 'result': '0.05205984190432125', 'result_long': None, 'result_double': None}] Qualite : 0.05205984190432125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28339415 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28339415_08-11-2025_01_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28339415 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_P28339415_08-11-2025_01_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28339417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28339418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28339419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28339420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28339421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28339422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28339423, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28339424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28339425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28339426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28339427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28339428, 'pht': 3726}}" where mtr_portfolio_id = 28339415 and dashboard_run_id = 2547818 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`=28339415 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17028801, 0.05205984190432125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28339415_08-11-2025_01_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28339417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28339418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28339419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28339420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28339421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28339422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28339423, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28339424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28339425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28339426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28339427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28339428, '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 = 28339875 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': 4020735, 'mtr_portfolio_id': 28339875, 'created_at': datetime.datetime(2025, 11, 8, 2, 3), 'result': '0.04140678272944849', 'result_long': None, 'result_double': None}] Qualite : 0.04140678272944849 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28339875 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28339875_08-11-2025_02_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28339875 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_P28339875_08-11-2025_02_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28339896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28339897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28339898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28339899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28339900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28339901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28339902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28339903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28339904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28339905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28339906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28339907, 'pht': 3726}}" where mtr_portfolio_id = 28339875 and dashboard_run_id = 2547818 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`=28339875 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17028802, 0.04140678272944849, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28339875_08-11-2025_02_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28339896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28339897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28339898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28339899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28339900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28339901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28339902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28339903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28339904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28339905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28339906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28339907, '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 = 28340539 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': 4020797, 'mtr_portfolio_id': 28340539, 'created_at': datetime.datetime(2025, 11, 8, 2, 14, 59), 'result': '0.051510567705679404', 'result_long': None, 'result_double': None}] Qualite : 0.051510567705679404 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28340539 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28340539_08-11-2025_02_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28340539 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_P28340539_08-11-2025_02_15_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28340546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28340547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28340548, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28340549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28340550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28340551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28340552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28340553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28340554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28340555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28340556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28340557, 'pht': 3726}}" where mtr_portfolio_id = 28340539 and dashboard_run_id = 2547818 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`=28340539 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17028803, 0.051510567705679404, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28340539_08-11-2025_02_15_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28340546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28340547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28340548, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28340549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28340550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28340551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28340552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28340553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28340554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28340555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28340556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28340557, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28336003,28336481,28337035,28337671,28339241,28339415,28339875,28340539) result : ((1393294530,), (1393294539,), (1393294562,), (1393294691,), (1393294724,), (1393294758,), (1393294793,), (1393294834,), (1393295403,), (1393295465,), (1393295525,), (1393295559,), (1393295753,), (1393295757,), (1393295790,), (1393295824,), (1393295863,), (1393296048,), (1393296080,), (1393296089,), (1393296153,), (1393296156,), (1393296160,), (1393296162,), (1393296164,), (1393296166,), (1393296191,), (1393296193,), (1393296267,), (1393296301,), (1393296332,), (1393296367,), (1393296405,), (1393296440,), (1393296792,), (1393296825,), (1393296860,), (1393296895,), (1393296941,), (1393297513,), (1393297554,), (1393297592,), (1393298019,), (1393298046,), (1393298050,), (1393298280,), (1393298283,), (1393298286,), (1393298289,), (1393298355,), (1393298388,), (1393298423,), (1393298818,), (1393298848,), (1393299117,), (1393299131,), (1393299146,), (1393299214,), (1393299212,), (1393299213,), (1393299255,), (1393299256,), (1393299257,), (1393299260,), (1393299535,), (1393299566,), (1393299571,), (1393299871,), (1393299910,), (1393299944,), (1393300249,), (1393300253,), (1393300255,), (1393300257,), (1393300260,), (1393300543,), (1393300547,), (1393300550,), (1393300554,), (1393300559,), (1393300590,), (1393300592,), (1393300593,), (1393300595,), (1393300598,), (1393300630,), (1393300631,), (1393300632,), (1393300634,), (1393300638,), (1393300642,), (1393300691,), (1393300693,), (1393300694,), (1393300724,), (1393300760,), (1393300793,), (1393300828,), (1393300861,), (1393300900,), (1393301025,), (1393301058,), (1393301193,), (1393301224,), (1393301269,), (1393301326,), (1393301410,), (1393301491,), (1393301916,), (1393302013,), (1393302108,), (1393302194,), (1393302285,), (1393302344,), (1393302888,), (1393302926,), (1393302962,), (1393302998,), (1393303031,), (1393303062,), (1393303248,), (1393303320,), (1393303472,), (1393303506,), (1393303536,), (1393303540,), (1393303543,), (1393303583,), (1393303585,), (1393303587,), (1393303588,), (1393303617,), (1393303648,), (1393304007,), (1393304011,), (1393304086,), (1393304109,), (1393304120,), (1393304123,), (1393304129,), (1393303942,), (1393303964,), (1393303994,), (1393304002,), (1393304159,), (1393304171,), (1393304183,), (1393304312,), (1393304313,), (1393304314,), (1393304316,), (1393304319,), (1393304424,), (1393304431,), (1393304436,), (1393304440,), (1393304444,), (1393304453,), (1393304455,), (1393304457,), (1393304466,), (1393304474,), (1393304484,), (1393304495,), (1393304498,), (1393304501,), (1393304510,), (1393304531,), (1393304536,), (1393304540,), (1393304554,), (1393304562,), (1393304567,), (1393304570,), (1393304600,), (1393304624,), (1393304635,), (1393304642,), (1393304646,), (1393304707,), (1393304739,), (1393304772,), (1393304814,), (1393304849,), (1393304885,), (1393305003,), (1393305047,), (1393305136,), (1393305138,), (1393305163,), (1393305189,), (1393305223,), (1393305397,), (1393305400,), (1393305402,), (1393305405,), (1393305410,), (1393305450,), (1393305643,), (1393305678,), (1393305712,), (1393305734,), (1393305742,), (1393305802,), (1393305803,), (1393305805,), (1393305808,), (1393305828,), (1393305833,), (1393305838,), (1393305842,), (1393305854,), (1393306107,), (1393306132,), (1393306162,), (1393306178,), (1393306192,), (1393306204,), (1393306241,), (1393306239,), (1393306240,), (1393306264,), (1393306267,), (1393306268,), (1393306270,), (1393306273,), (1393306274,), (1393306351,), (1393306353,), (1393306355,), (1393306362,), (1393306401,), (1393306846,), (1393306879,), (1393306893,), (1393306895,), (1393306898,), (1393307097,), (1393307121,), (1393307130,), (1393307134,), (1393307141,), (1393307382,), (1393307413,), (1393307499,), (1393307502,), (1393307504,), (1393307506,), (1393307509,), (1393307543,), (1393307544,), (1393307545,), (1393307548,), (1393307551,), (1393307634,), (1393307698,), (1393307700,), (1393307754,), (1393307757,), (1393307760,), (1393307763,), (1393308022,), (1393308069,), (1393308497,), (1393308500,), (1393308503,), (1393308507,), (1393308509,), (1393308511,), (1393308534,), (1393313903,), (1393316715,), (1393316940,), (1393317017,), (1393317049,), (1393317402,), (1393317432,), (1393317462,), (1393317493,), (1393317500,), (1393317722,), (1393317725,), (1393317728,), (1393317751,), (1393317957,), (1393317959,), (1393317961,), (1393318152,), (1393318161,), (1393318162,), (1393318164,), (1393318166,), (1393318184,), (1393318313,), (1393318346,), (1393318383,), (1393318530,), (1393318568,), (1393318600,), (1393318631,), (1393318668,), (1393318949,), (1393318951,), (1393318952,), (1393318970,), (1393318978,), (1393319279,), (1393319299,), (1393319300,), (1393319309,), (1393319585,), (1393319615,), (1393319642,), (1393319676,), (1393319707,), (1393319760,), (1393319986,), (1393320047,), (1393320123,), (1393320181,), (1393320415,), (1393320595,), (1393320626,), (1393320662,), (1393320698,), (1393320731,), (1393320888,), (1393320889,), (1393320891,), (1393320893,), (1393320905,), (1393320907,), (1393320909,), (1393320910,), (1393320930,), (1393321069,), (1393320928,), (1393320929,), (1393320956,), (1393320972,), (1393320973,), (1393320980,), (1393320983,), (1393320986,), (1393321033,), (1393321034,), (1393321086,), (1393321088,), (1393321091,), (1393321399,), (1393321430,), (1393321460,), (1393321687,), (1393321766,), (1393321811,), (1393321815,), (1393322039,), (1393322040,), (1393322041,), (1393322069,), (1393322071,), (1393322075,), (1393322172,), (1393322209,), (1393322231,), (1393322236,), (1393322249,), (1393322282,), (1393322331,), (1393322332,), (1393322333,), (1393322334,), (1393322336,), (1393322352,), (1393322353,), (1393322354,), (1393322368,), (1393322494,), (1393322526,), (1393322559,), (1393322593,), (1393322630,), (1393322663,), (1393322755,), (1393322761,), (1393322850,), (1393322852,), (1393322873,), (1393322892,), (1393322896,), (1393322999,), (1393323001,), (1393323005,), (1393323022,), (1393323055,), (1393323206,), (1393323239,), (1393323270,), (1393323417,), (1393323406,), (1393323409,), (1393323411,), (1393323413,), (1393323688,), (1393323726,), (1393323761,), (1393323805,), (1393323824,), (1393323867,), (1393324151,), (1393324153,), (1393324168,), (1393324191,), (1393324274,), (1393324276,), (1393324278,), (1393324279,), (1393324310,), (1393324324,), (1393324579,), (1393324580,), (1393324581,), (1393324583,), (1393324587,), (1393324607,), (1393324609,), (1393324612,), (1393324616,), (1393324620,), (1393324621,), (1393324666,), (1393324669,), (1393324672,), (1393324678,), (1393324680,), (1393324696,), (1393324698,), (1393324701,), (1393324712,), (1393324719,), (1393324879,), (1393324908,), (1393324939,), (1393324971,), (1393324975,), (1393324978,), (1393325242,), (1393325300,), (1393325371,), (1393325404,), (1393325437,), (1393325659,), (1393325721,), (1393326108,), (1393326120,), (1393326131,), (1393326139,), (1393326303,), (1393326306,), (1393326309,), (1393326417,), (1393326435,), (1393326436,), (1393326462,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08112025': {'nb_upload': 65, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28340539]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1393326462, 1393326436, 1393326435, 1393326417, 1393326309, 1393326306, 1393326303] map_info['map_portfolio_photo'] : {28340539: [1393326462, 1393326436, 1393326435, 1393326417, 1393326309, 1393326306, 1393326303, 1393326139, 1393326131, 1393326120, 1393326108, 1393325721, 1393325659, 1393325437, 1393325404, 1393325371, 1393325300, 1393325242, 1393324978, 1393324975, 1393324971, 1393324939, 1393324908, 1393324879, 1393324719, 1393324712, 1393324701, 1393324698, 1393324696, 1393324680, 1393324678, 1393324672, 1393324669, 1393324666, 1393324621, 1393324620, 1393324616, 1393324612, 1393324609, 1393324607, 1393324587, 1393324583, 1393324581, 1393324580, 1393324579, 1393324324, 1393324310, 1393324279, 1393324278, 1393324276, 1393324274, 1393324191, 1393324168, 1393324153, 1393324151, 1393323867, 1393323824, 1393323805, 1393323761, 1393323726, 1393323688, 1393323413, 1393323411, 1393323409, 1393323406]} final : True mtd_id 4302 list_pids : [1393326462, 1393326436, 1393326435, 1393326417, 1393326309, 1393326306, 1393326303] Looping around the photos to save general results len do output : 1 /28340539Didn'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, '4020797') ('4302', '28340539', '1393326462', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326436', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326435', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326417', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326309', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326306', None, None, None, None, None, '4020797') ('4302', None, None, None, None, None, None, None, '4020797') ('4302', '28340539', '1393326303', None, None, None, None, None, '4020797') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '28340539', 'None', None, None, None, None, '4020797'), ('4302', '28340539', '1393326462', None, None, None, None, None, '4020797'), ('4302', '28340539', '1393326436', None, None, None, None, None, '4020797'), ('4302', '28340539', '1393326435', None, None, None, None, None, '4020797'), ('4302', '28340539', '1393326417', None, None, None, None, None, '4020797'), ('4302', '28340539', '1393326309', None, None, None, None, None, '4020797'), ('4302', '28340539', '1393326306', None, None, None, None, None, '4020797'), ('4302', '28340539', '1393326303', None, None, None, None, None, '4020797')] time used for this insertion : 0.012800455093383789 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7429225444793701 time spend to save output : 0.013060331344604492 total time spend for step 5 : 0.7559828758239746 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 (4020797) 1.97user 2.57system 0:12.06elapsed 37%CPU (0avgtext+0avgdata 158984maxresident)k 328inputs+15360outputs (1major+64036minor)pagefaults 0swaps