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 : 360723 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 (2546154) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2546154) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20217004 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2546154'] with mtr_portfolio_ids : ['20217004'] and first list_photo_ids : [] new path : /proc/360723/ Name: python3 Umask: 0002 State: R (running) Tgid: 360723 Ngid: 0 Pid: 360723 PPid: 360722 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 360723 NSpid: 360723 NSpgid: 359192 NSsid: 359192 VmPeak: 1106588 kB VmSize: 1106572 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98800 kB VmRSS: 98800 kB RssAnon: 59736 kB RssFile: 39064 kB RssShmem: 0 kB VmData: 865324 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 45 nonvoluntary_ctxt_switches: 94 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '360723', 'Ngid': '0', 'Pid': '360723', 'PPid': '360722', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '360723', 'NSpid': '360723', 'NSpgid': '359192', 'NSsid': '359192', 'VmPeak': '1106588 kB', 'VmSize': '1106572 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98800 kB', 'VmRSS': '98800 kB', 'RssAnon': '59736 kB', 'RssFile': '39064 kB', 'RssShmem': '0 kB', 'VmData': '865324 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '45', 'nonvoluntary_ctxt_switches': '94'} ('datou_batch_current', '360723', '1106588', '0', '1106572', '865324', '98800', b'', 'marlene', '2546154') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (20217004) 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 (2546154 ) ) 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 (20217004) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1334593977, 'portfolio_id': 20217004}, {'photo_id': 1334593894, 'portfolio_id': 20217004}, {'photo_id': 1334593855, 'portfolio_id': 20217004}, {'photo_id': 1334593807, 'portfolio_id': 20217004}, {'photo_id': 1334593723, 'portfolio_id': 20217004}, {'photo_id': 1334593721, 'portfolio_id': 20217004}, {'photo_id': 1334593718, 'portfolio_id': 20217004}, {'photo_id': 1334593712, 'portfolio_id': 20217004}, {'photo_id': 1334593707, 'portfolio_id': 20217004}, {'photo_id': 1334593241, 'portfolio_id': 20217004}, {'photo_id': 1334593234, 'portfolio_id': 20217004}, {'photo_id': 1334593229, 'portfolio_id': 20217004}, {'photo_id': 1334593223, 'portfolio_id': 20217004}, {'photo_id': 1334593218, 'portfolio_id': 20217004}, {'photo_id': 1334593051, 'portfolio_id': 20217004}, {'photo_id': 1334592872, 'portfolio_id': 20217004}, {'photo_id': 1334592793, 'portfolio_id': 20217004}, {'photo_id': 1334592671, 'portfolio_id': 20217004}, {'photo_id': 1334592665, 'portfolio_id': 20217004}, {'photo_id': 1334592651, 'portfolio_id': 20217004}, {'photo_id': 1334592605, 'portfolio_id': 20217004}, {'photo_id': 1334592470, 'portfolio_id': 20217004}, {'photo_id': 1334592467, 'portfolio_id': 20217004}, {'photo_id': 1334591715, 'portfolio_id': 20217004}, {'photo_id': 1334591713, 'portfolio_id': 20217004}, {'photo_id': 1334591709, 'portfolio_id': 20217004}, {'photo_id': 1334591655, 'portfolio_id': 20217004}, {'photo_id': 1334591646, 'portfolio_id': 20217004}, {'photo_id': 1334591617, 'portfolio_id': 20217004}, {'photo_id': 1334591556, 'portfolio_id': 20217004}, {'photo_id': 1334591549, 'portfolio_id': 20217004}, {'photo_id': 1334591274, 'portfolio_id': 20217004}, {'photo_id': 1334591234, 'portfolio_id': 20217004}, {'photo_id': 1334591186, 'portfolio_id': 20217004}, {'photo_id': 1334591165, 'portfolio_id': 20217004}, {'photo_id': 1334591161, 'portfolio_id': 20217004}, {'photo_id': 1334591159, 'portfolio_id': 20217004}, {'photo_id': 1334591120, 'portfolio_id': 20217004}, {'photo_id': 1334591108, 'portfolio_id': 20217004}, {'photo_id': 1334591105, 'portfolio_id': 20217004}, {'photo_id': 1334591103, 'portfolio_id': 20217004}, {'photo_id': 1334591100, 'portfolio_id': 20217004}, {'photo_id': 1334591097, 'portfolio_id': 20217004}, {'photo_id': 1334591074, 'portfolio_id': 20217004}, {'photo_id': 1334591070, 'portfolio_id': 20217004}, {'photo_id': 1334591068, 'portfolio_id': 20217004}, {'photo_id': 1334591052, 'portfolio_id': 20217004}, {'photo_id': 1334591046, 'portfolio_id': 20217004}, {'photo_id': 1334591043, 'portfolio_id': 20217004}, {'photo_id': 1334591039, 'portfolio_id': 20217004}, {'photo_id': 1334591034, 'portfolio_id': 20217004}, {'photo_id': 1334590993, 'portfolio_id': 20217004}, {'photo_id': 1334590755, 'portfolio_id': 20217004}, {'photo_id': 1334590716, 'portfolio_id': 20217004}, {'photo_id': 1334590714, 'portfolio_id': 20217004}, {'photo_id': 1334590712, 'portfolio_id': 20217004}, {'photo_id': 1334590710, 'portfolio_id': 20217004}] map_portfolio_id_photo_id: {20217004: [1334593977, 1334593894, 1334593855, 1334593807, 1334593723, 1334593721, 1334593718, 1334593712, 1334593707, 1334593241, 1334593234, 1334593229, 1334593223, 1334593218, 1334593051, 1334592872, 1334592793, 1334592671, 1334592665, 1334592651, 1334592605, 1334592470, 1334592467, 1334591715, 1334591713, 1334591709, 1334591655, 1334591646, 1334591617, 1334591556, 1334591549, 1334591274, 1334591234, 1334591186, 1334591165, 1334591161, 1334591159, 1334591120, 1334591108, 1334591105, 1334591103, 1334591100, 1334591097, 1334591074, 1334591070, 1334591068, 1334591052, 1334591046, 1334591043, 1334591039, 1334591034, 1334590993, 1334590755, 1334590716, 1334590714, 1334590712, 1334590710]} ##### 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.016552448272705078 #### 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 Tue Feb 4 16:44:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20217004) 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 : 20217004 get user id for portfolio 20217004 get sub ptf for main ptf 20217004, type 3726 and hashtags ['Teint_Dans_La_Masse', 'autre_refus', 'Carton_gris', 'cartonnette', 'kraft', 'flou', 'plastique', 'environnement', 'mal_croppe', 'Carton_brun', 'papier', 'metal'] 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`=20217004 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','Carton_gris','cartonnette','kraft','flou','plastique','environnement','mal_croppe','Carton_brun','papier','metal')) 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`=20217004 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','Carton_gris','cartonnette','kraft','flou','plastique','environnement','mal_croppe','Carton_brun','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 20217004, 'sub_port_id': 20217014, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920624, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 34, 59)}, 'papier': {'main_port_id': 20217004, 'sub_port_id': 20217015, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920625, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 34, 59)}, 'plastique': {'main_port_id': 20217004, 'sub_port_id': 20217016, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920626, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 34, 59)}, 'environnement': {'main_port_id': 20217004, 'sub_port_id': 20217017, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920627, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 34, 59)}, 'kraft': {'main_port_id': 20217004, 'sub_port_id': 20217018, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920628, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 34, 59)}, 'cartonnette': {'main_port_id': 20217004, 'sub_port_id': 20217019, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920629, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 34, 59)}, 'Carton_gris': {'main_port_id': 20217004, 'sub_port_id': 20217020, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920630, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 34, 59)}, 'autre_refus': {'main_port_id': 20217004, 'sub_port_id': 20217021, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920631, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 34, 59)}, 'flou': {'main_port_id': 20217004, 'sub_port_id': 20217022, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920632, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20217004, 'sub_port_id': 20217023, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920633, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 34, 59)}, 'metal': {'main_port_id': 20217004, 'sub_port_id': 20217024, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920634, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 34, 59)}, 'Carton_brun': {'main_port_id': 20217004, 'sub_port_id': 20217025, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920635, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20217014 , 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=20217004 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 (20217014) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20217004) result : ((1334590710,), (1334590712,), (1334590714,), (1334590716,), (1334590755,), (1334590993,), (1334591034,), (1334591039,), (1334591043,), (1334591046,), (1334591052,), (1334591068,), (1334591070,), (1334591074,), (1334591097,), (1334591100,), (1334591103,), (1334591105,), (1334591108,), (1334591120,), (1334591159,), (1334591161,), (1334591165,), (1334591186,), (1334591234,), (1334591274,), (1334591549,), (1334591556,), (1334591617,), (1334591646,), (1334591655,), (1334591709,), (1334591713,), (1334591715,), (1334592467,), (1334592470,), (1334592605,), (1334592651,), (1334592665,), (1334592671,), (1334592793,), (1334592872,), (1334593051,), (1334593218,), (1334593223,), (1334593229,), (1334593234,), (1334593241,), (1334593707,), (1334593712,), (1334593718,), (1334593721,), (1334593723,), (1334593807,), (1334593855,), (1334593894,), (1334593977,)) 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 (1334591100) 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 20217015 , 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=20217004 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 (20217015) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20217004) result : ((1334590710,), (1334590712,), (1334590714,), (1334590716,), (1334590755,), (1334590993,), (1334591034,), (1334591039,), (1334591043,), (1334591046,), (1334591052,), (1334591068,), (1334591070,), (1334591074,), (1334591097,), (1334591100,), (1334591103,), (1334591105,), (1334591108,), (1334591120,), (1334591159,), (1334591161,), (1334591165,), (1334591186,), (1334591234,), (1334591274,), (1334591549,), (1334591556,), (1334591617,), (1334591646,), (1334591655,), (1334591709,), (1334591713,), (1334591715,), (1334592467,), (1334592470,), (1334592605,), (1334592651,), (1334592665,), (1334592671,), (1334592793,), (1334592872,), (1334593051,), (1334593218,), (1334593223,), (1334593229,), (1334593234,), (1334593241,), (1334593707,), (1334593712,), (1334593718,), (1334593721,), (1334593723,), (1334593807,), (1334593855,), (1334593894,), (1334593977,)) 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 (1334591100) 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 20217016 , 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=20217004 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 (20217016) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20217004) result : ((1334590710,), (1334590712,), (1334590714,), (1334590716,), (1334590755,), (1334590993,), (1334591034,), (1334591039,), (1334591043,), (1334591046,), (1334591052,), (1334591068,), (1334591070,), (1334591074,), (1334591097,), (1334591100,), (1334591103,), (1334591105,), (1334591108,), (1334591120,), (1334591159,), (1334591161,), (1334591165,), (1334591186,), (1334591234,), (1334591274,), (1334591549,), (1334591556,), (1334591617,), (1334591646,), (1334591655,), (1334591709,), (1334591713,), (1334591715,), (1334592467,), (1334592470,), (1334592605,), (1334592651,), (1334592665,), (1334592671,), (1334592793,), (1334592872,), (1334593051,), (1334593218,), (1334593223,), (1334593229,), (1334593234,), (1334593241,), (1334593707,), (1334593712,), (1334593718,), (1334593721,), (1334593723,), (1334593807,), (1334593855,), (1334593894,), (1334593977,)) 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 (1334591100) 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 20217017 , 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=20217004 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 (20217017) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20217004) result : ((1334590710,), (1334590712,), (1334590714,), (1334590716,), (1334590755,), (1334590993,), (1334591034,), (1334591039,), (1334591043,), (1334591046,), (1334591052,), (1334591068,), (1334591070,), (1334591074,), (1334591097,), (1334591100,), (1334591103,), (1334591105,), (1334591108,), (1334591120,), (1334591159,), (1334591161,), (1334591165,), (1334591186,), (1334591234,), (1334591274,), (1334591549,), (1334591556,), (1334591617,), (1334591646,), (1334591655,), (1334591709,), (1334591713,), (1334591715,), (1334592467,), (1334592470,), (1334592605,), (1334592651,), (1334592665,), (1334592671,), (1334592793,), (1334592872,), (1334593051,), (1334593218,), (1334593223,), (1334593229,), (1334593234,), (1334593241,), (1334593707,), (1334593712,), (1334593718,), (1334593721,), (1334593723,), (1334593807,), (1334593855,), (1334593894,), (1334593977,)) 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 (1334591100) 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 20217018 , 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=20217004 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 (20217018) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20217004) result : ((1334590710,), (1334590712,), (1334590714,), (1334590716,), (1334590755,), (1334590993,), (1334591034,), (1334591039,), (1334591043,), (1334591046,), (1334591052,), (1334591068,), (1334591070,), (1334591074,), (1334591097,), (1334591100,), (1334591103,), (1334591105,), (1334591108,), (1334591120,), (1334591159,), (1334591161,), (1334591165,), (1334591186,), (1334591234,), (1334591274,), (1334591549,), (1334591556,), (1334591617,), (1334591646,), (1334591655,), (1334591709,), (1334591713,), (1334591715,), (1334592467,), (1334592470,), (1334592605,), (1334592651,), (1334592665,), (1334592671,), (1334592793,), (1334592872,), (1334593051,), (1334593218,), (1334593223,), (1334593229,), (1334593234,), (1334593241,), (1334593707,), (1334593712,), (1334593718,), (1334593721,), (1334593723,), (1334593807,), (1334593855,), (1334593894,), (1334593977,)) 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 (1334591100) 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 20217019 , 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=20217004 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 (20217019) result : ((1334592744,), (1334592745,), (1334593099,), (1334593100,), (1334593706,), (1334593708,), (1334593796,), (1334593797,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20217004) result : ((1334590710,), (1334590712,), (1334590714,), (1334590716,), (1334590755,), (1334590993,), (1334591034,), (1334591039,), (1334591043,), (1334591046,), (1334591052,), (1334591068,), (1334591070,), (1334591074,), (1334591097,), (1334591100,), (1334591103,), (1334591105,), (1334591108,), (1334591120,), (1334591159,), (1334591161,), (1334591165,), (1334591186,), (1334591234,), (1334591274,), (1334591549,), (1334591556,), (1334591617,), (1334591646,), (1334591655,), (1334591709,), (1334591713,), (1334591715,), (1334592467,), (1334592470,), (1334592605,), (1334592651,), (1334592665,), (1334592671,), (1334592793,), (1334592872,), (1334593051,), (1334593218,), (1334593223,), (1334593229,), (1334593234,), (1334593241,), (1334593707,), (1334593712,), (1334593718,), (1334593721,), (1334593723,), (1334593807,), (1334593855,), (1334593894,), (1334593977,)) 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 (1334591100) 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 20217020 , 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=20217004 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 (20217020) result : ((1334591635,), (1334591636,), (1334591637,), (1334592743,), (1334593714,), (1334593795,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20217004) result : ((1334590710,), (1334590712,), (1334590714,), (1334590716,), (1334590755,), (1334590993,), (1334591034,), (1334591039,), (1334591043,), (1334591046,), (1334591052,), (1334591068,), (1334591070,), (1334591074,), (1334591097,), (1334591100,), (1334591103,), (1334591105,), (1334591108,), (1334591120,), (1334591159,), (1334591161,), (1334591165,), (1334591186,), (1334591234,), (1334591274,), (1334591549,), (1334591556,), (1334591617,), (1334591646,), (1334591655,), (1334591709,), (1334591713,), (1334591715,), (1334592467,), (1334592470,), (1334592605,), (1334592651,), (1334592665,), (1334592671,), (1334592793,), (1334592872,), (1334593051,), (1334593218,), (1334593223,), (1334593229,), (1334593234,), (1334593241,), (1334593707,), (1334593712,), (1334593718,), (1334593721,), (1334593723,), (1334593807,), (1334593855,), (1334593894,), (1334593977,)) 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 (1334591100) 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 20217021 , 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=20217004 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 (20217021) result : ((1334591632,), (1334591633,), (1334592742,), (1334593097,), (1334593098,), (1334593704,), (1334593705,), (1334593711,), (1334593794,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20217004) result : ((1334590710,), (1334590712,), (1334590714,), (1334590716,), (1334590755,), (1334590993,), (1334591034,), (1334591039,), (1334591043,), (1334591046,), (1334591052,), (1334591068,), (1334591070,), (1334591074,), (1334591097,), (1334591100,), (1334591103,), (1334591105,), (1334591108,), (1334591120,), (1334591159,), (1334591161,), (1334591165,), (1334591186,), (1334591234,), (1334591274,), (1334591549,), (1334591556,), (1334591617,), (1334591646,), (1334591655,), (1334591709,), (1334591713,), (1334591715,), (1334592467,), (1334592470,), (1334592605,), (1334592651,), (1334592665,), (1334592671,), (1334592793,), (1334592872,), (1334593051,), (1334593218,), (1334593223,), (1334593229,), (1334593234,), (1334593241,), (1334593707,), (1334593712,), (1334593718,), (1334593721,), (1334593723,), (1334593807,), (1334593855,), (1334593894,), (1334593977,)) 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 (1334591100) 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 20217022 , 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=20217004 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 (20217022) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20217004) result : ((1334590710,), (1334590712,), (1334590714,), (1334590716,), (1334590755,), (1334590993,), (1334591034,), (1334591039,), (1334591043,), (1334591046,), (1334591052,), (1334591068,), (1334591070,), (1334591074,), (1334591097,), (1334591100,), (1334591103,), (1334591105,), (1334591108,), (1334591120,), (1334591159,), (1334591161,), (1334591165,), (1334591186,), (1334591234,), (1334591274,), (1334591549,), (1334591556,), (1334591617,), (1334591646,), (1334591655,), (1334591709,), (1334591713,), (1334591715,), (1334592467,), (1334592470,), (1334592605,), (1334592651,), (1334592665,), (1334592671,), (1334592793,), (1334592872,), (1334593051,), (1334593218,), (1334593223,), (1334593229,), (1334593234,), (1334593241,), (1334593707,), (1334593712,), (1334593718,), (1334593721,), (1334593723,), (1334593807,), (1334593855,), (1334593894,), (1334593977,)) 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 (1334591100) 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 20217023 , 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=20217004 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 (20217023) result : ((1334592730,), (1334592731,), (1334592732,), (1334592733,), (1334592734,), (1334592735,), (1334592736,), (1334592737,), (1334592738,), (1334592739,), (1334592740,), (1334593032,), (1334593034,), (1334593036,), (1334593038,), (1334593040,), (1334593042,), (1334593044,), (1334593046,), (1334593640,), (1334593642,), (1334593644,), (1334593646,), (1334593648,), (1334593650,), (1334593652,), (1334593654,), (1334593781,), (1334593782,), (1334593783,), (1334593784,), (1334593785,), (1334593786,), (1334593787,), (1334593788,), (1334593789,), (1334593790,), (1334593791,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20217004) result : ((1334590710,), (1334590712,), (1334590714,), (1334590716,), (1334590755,), (1334590993,), (1334591034,), (1334591039,), (1334591043,), (1334591046,), (1334591052,), (1334591068,), (1334591070,), (1334591074,), (1334591097,), (1334591100,), (1334591103,), (1334591105,), (1334591108,), (1334591120,), (1334591159,), (1334591161,), (1334591165,), (1334591186,), (1334591234,), (1334591274,), (1334591549,), (1334591556,), (1334591617,), (1334591646,), (1334591655,), (1334591709,), (1334591713,), (1334591715,), (1334592467,), (1334592470,), (1334592605,), (1334592651,), (1334592665,), (1334592671,), (1334592793,), (1334592872,), (1334593051,), (1334593218,), (1334593223,), (1334593229,), (1334593234,), (1334593241,), (1334593707,), (1334593712,), (1334593718,), (1334593721,), (1334593723,), (1334593807,), (1334593855,), (1334593894,), (1334593977,)) 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 (1334591100) 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 20217024 , 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=20217004 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 (20217024) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20217004) result : ((1334590710,), (1334590712,), (1334590714,), (1334590716,), (1334590755,), (1334590993,), (1334591034,), (1334591039,), (1334591043,), (1334591046,), (1334591052,), (1334591068,), (1334591070,), (1334591074,), (1334591097,), (1334591100,), (1334591103,), (1334591105,), (1334591108,), (1334591120,), (1334591159,), (1334591161,), (1334591165,), (1334591186,), (1334591234,), (1334591274,), (1334591549,), (1334591556,), (1334591617,), (1334591646,), (1334591655,), (1334591709,), (1334591713,), (1334591715,), (1334592467,), (1334592470,), (1334592605,), (1334592651,), (1334592665,), (1334592671,), (1334592793,), (1334592872,), (1334593051,), (1334593218,), (1334593223,), (1334593229,), (1334593234,), (1334593241,), (1334593707,), (1334593712,), (1334593718,), (1334593721,), (1334593723,), (1334593807,), (1334593855,), (1334593894,), (1334593977,)) 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 (1334591100) 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 20217025 , 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=20217004 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 (20217025) result : ((1334591638,), (1334591639,), (1334592747,), (1334592748,), (1334593715,), (1334593716,), (1334593800,), (1334593801,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20217004) result : ((1334590710,), (1334590712,), (1334590714,), (1334590716,), (1334590755,), (1334590993,), (1334591034,), (1334591039,), (1334591043,), (1334591046,), (1334591052,), (1334591068,), (1334591070,), (1334591074,), (1334591097,), (1334591100,), (1334591103,), (1334591105,), (1334591108,), (1334591120,), (1334591159,), (1334591161,), (1334591165,), (1334591186,), (1334591234,), (1334591274,), (1334591549,), (1334591556,), (1334591617,), (1334591646,), (1334591655,), (1334591709,), (1334591713,), (1334591715,), (1334592467,), (1334592470,), (1334592605,), (1334592651,), (1334592665,), (1334592671,), (1334592793,), (1334592872,), (1334593051,), (1334593218,), (1334593223,), (1334593229,), (1334593234,), (1334593241,), (1334593707,), (1334593712,), (1334593718,), (1334593721,), (1334593723,), (1334593807,), (1334593855,), (1334593894,), (1334593977,)) 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 (1334591100) 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`=20217004 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','Carton_gris','cartonnette','kraft','flou','plastique','environnement','mal_croppe','Carton_brun','papier','metal')) 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`=20217004 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','Carton_gris','cartonnette','kraft','flou','plastique','environnement','mal_croppe','Carton_brun','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 20217004, 'sub_port_id': 20217026, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920636, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 35)}, 'papier': {'main_port_id': 20217004, 'sub_port_id': 20217027, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920637, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 35)}, 'plastique': {'main_port_id': 20217004, 'sub_port_id': 20217028, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920638, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 35)}, 'environnement': {'main_port_id': 20217004, 'sub_port_id': 20217029, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920639, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 35)}, 'kraft': {'main_port_id': 20217004, 'sub_port_id': 20217030, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920640, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 35)}, 'cartonnette': {'main_port_id': 20217004, 'sub_port_id': 20217031, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920641, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 35)}, 'Carton_gris': {'main_port_id': 20217004, 'sub_port_id': 20217032, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920642, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 35)}, 'autre_refus': {'main_port_id': 20217004, 'sub_port_id': 20217033, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920643, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 35)}, 'flou': {'main_port_id': 20217004, 'sub_port_id': 20217034, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920644, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 20217004, 'sub_port_id': 20217035, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920645, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 35)}, 'metal': {'main_port_id': 20217004, 'sub_port_id': 20217036, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920646, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 35)}, 'Carton_brun': {'main_port_id': 20217004, 'sub_port_id': 20217037, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12920647, 'last_updated_at': datetime.datetime(2025, 2, 4, 16, 42, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 16, 42, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 16, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20217026,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20217014 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20217027,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20217015 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20217028,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20217016 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20217029,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20217017 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20217030,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20217018 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20217031,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20217019 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20217032,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20217020 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20217033,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20217021 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20217034,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20217022 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20217035,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20217023 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20217036,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20217024 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20217037,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20217025 lien utilise dans velours : https://www.fotonower.com/velours/20217026,20217027,20217028,20217029,20217030,20217031,20217032,20217033,20217034,20217035,20217036,20217037?tags=mal_croppe,papier,plastique,environnement,kraft,cartonnette,Carton_gris,autre_refus,flou,Teint_Dans_La_Masse,metal,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20217004]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1334593977, 1334593894, 1334593855, 1334593807, 1334593723, 1334593721, 1334593718, 1334593712, 1334593707] map_info['map_portfolio_photo'] : {20217004: [1334593977, 1334593894, 1334593855, 1334593807, 1334593723, 1334593721, 1334593718, 1334593712, 1334593707, 1334593241, 1334593234, 1334593229, 1334593223, 1334593218, 1334593051, 1334592872, 1334592793, 1334592671, 1334592665, 1334592651, 1334592605, 1334592470, 1334592467, 1334591715, 1334591713, 1334591709, 1334591655, 1334591646, 1334591617, 1334591556, 1334591549, 1334591274, 1334591234, 1334591186, 1334591165, 1334591161, 1334591159, 1334591120, 1334591108, 1334591105, 1334591103, 1334591100, 1334591097, 1334591074, 1334591070, 1334591068, 1334591052, 1334591046, 1334591043, 1334591039, 1334591034, 1334590993, 1334590755, 1334590716, 1334590714, 1334590712, 1334590710]} final : False mtd_id 4302 list_pids : [1334593977, 1334593894, 1334593855, 1334593807, 1334593723, 1334593721, 1334593718, 1334593712, 1334593707] Looping around the photos to save general results len do output : 1 /20217004. 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, '2546154') ('4302', '20217004', '1334593977', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593894', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593855', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593807', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593723', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593721', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593718', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593712', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593707', None, None, None, None, None, '2546154') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '20217004', "{'mal_croppe': 20217014, 'papier': 20217015, 'plastique': 20217016, 'environnement': 20217017, 'kraft': 20217018, 'cartonnette': 20217019, 'Carton_gris': 20217020, 'autre_refus': 20217021, 'flou': 20217022, 'Teint_Dans_La_Masse': 20217023, 'metal': 20217024, 'Carton_brun': 20217025}", None, None, None, None, '2546154'), ('4302', '20217004', '1334593977', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593894', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593855', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593807', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593723', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593721', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593718', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593712', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593707', None, None, None, None, None, '2546154')] time used for this insertion : 0.01368856430053711 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.45798158645629883 time spend to save output : 0.013933181762695312 total time spend for step 1 : 0.47191476821899414 step2:final Tue Feb 4 16:44:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20217004) 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 20217004 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1334590755,1334590716,1334590714,1334590712,1334590710,1334591052,1334591046,1334591043,1334591039,1334591034,1334590993,1334591074,1334591070,1334591068,1334591120,1334591108,1334591105,1334591103,1334591100,1334591097,1334591234,1334591186,1334591165,1334591161,1334591159,1334591274,1334591617,1334591556,1334591549,1334591715,1334591713,1334591709,1334591655,1334591646,1334592671,1334592665,1334592651,1334592605,1334592470,1334592467,1334593051,1334592872,1334592793,1334593241,1334593234,1334593229,1334593223,1334593723,1334593218,1334593721,1334593718,1334593712,1334593707,1334593807,1334593977,1334593894,1334593855); 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([20217004]) Inside saveOutput : final : False verbose : True original output for save of step final : {1334593977: ('0.05204539510701333',), 1334593894: ('0.05204539510701333',), 1334593855: ('0.05204539510701333',), 1334593807: ('0.05204539510701333',), 1334593723: ('0.05204539510701333',), 1334593721: ('0.05204539510701333',), 1334593718: ('0.05204539510701333',), 1334593712: ('0.05204539510701333',), 1334593707: ('0.05204539510701333',)} new output for save of step final : {1334593977: ('0.05204539510701333',), 1334593894: ('0.05204539510701333',), 1334593855: ('0.05204539510701333',), 1334593807: ('0.05204539510701333',), 1334593723: ('0.05204539510701333',), 1334593721: ('0.05204539510701333',), 1334593718: ('0.05204539510701333',), 1334593712: ('0.05204539510701333',), 1334593707: ('0.05204539510701333',)} [1334593977, 1334593894, 1334593855, 1334593807, 1334593723, 1334593721, 1334593718, 1334593712, 1334593707] map_info['map_portfolio_photo'] : {20217004: [1334593977, 1334593894, 1334593855, 1334593807, 1334593723, 1334593721, 1334593718, 1334593712, 1334593707, 1334593241, 1334593234, 1334593229, 1334593223, 1334593218, 1334593051, 1334592872, 1334592793, 1334592671, 1334592665, 1334592651, 1334592605, 1334592470, 1334592467, 1334591715, 1334591713, 1334591709, 1334591655, 1334591646, 1334591617, 1334591556, 1334591549, 1334591274, 1334591234, 1334591186, 1334591165, 1334591161, 1334591159, 1334591120, 1334591108, 1334591105, 1334591103, 1334591100, 1334591097, 1334591074, 1334591070, 1334591068, 1334591052, 1334591046, 1334591043, 1334591039, 1334591034, 1334590993, 1334590755, 1334590716, 1334590714, 1334590712, 1334590710]} final : False mtd_id 4302 list_pids : [1334593977, 1334593894, 1334593855, 1334593807, 1334593723, 1334593721, 1334593718, 1334593712, 1334593707] Looping around the photos to save general results len do output : 9 /1334593977.Didn't retrieve data . /1334593894.Didn't retrieve data . /1334593855.Didn't retrieve data . /1334593807.Didn't retrieve data . /1334593723.Didn't retrieve data . /1334593721.Didn't retrieve data . /1334593718.Didn't retrieve data . /1334593712.Didn't retrieve data . /1334593707.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, '2546154') ('4302', '20217004', '1334593977', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593894', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593855', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593807', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593723', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593721', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593718', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593712', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593707', None, None, None, None, None, '2546154') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '20217004', '1334593977', '0.05204539510701333', None, None, None, None, '2546154'), ('4302', '20217004', '1334593894', '0.05204539510701333', None, None, None, None, '2546154'), ('4302', '20217004', '1334593855', '0.05204539510701333', None, None, None, None, '2546154'), ('4302', '20217004', '1334593807', '0.05204539510701333', None, None, None, None, '2546154'), ('4302', '20217004', '1334593723', '0.05204539510701333', None, None, None, None, '2546154'), ('4302', '20217004', '1334593721', '0.05204539510701333', None, None, None, None, '2546154'), ('4302', '20217004', '1334593718', '0.05204539510701333', None, None, None, None, '2546154'), ('4302', '20217004', '1334593712', '0.05204539510701333', None, None, None, None, '2546154'), ('4302', '20217004', '1334593707', '0.05204539510701333', None, None, None, None, '2546154')] time used for this insertion : 0.012571096420288086 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07199263572692871 time spend to save output : 0.013031959533691406 total time spend for step 2 : 0.08502459526062012 step3:velours_tree Tue Feb 4 16:44:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20217004: [{'mal_croppe': 20217014, 'papier': 20217015, 'plastique': 20217016, 'environnement': 20217017, 'kraft': 20217018, 'cartonnette': 20217019, 'Carton_gris': 20217020, 'autre_refus': 20217021, 'flou': 20217022, 'Teint_Dans_La_Masse': 20217023, 'metal': 20217024, 'Carton_brun': 20217025}]} input_args_next_step : {20217004: ()} output_args : {20217004: [{'mal_croppe': 20217014, 'papier': 20217015, 'plastique': 20217016, 'environnement': 20217017, 'kraft': 20217018, 'cartonnette': 20217019, 'Carton_gris': 20217020, 'autre_refus': 20217021, 'flou': 20217022, 'Teint_Dans_La_Masse': 20217023, 'metal': 20217024, 'Carton_brun': 20217025}]} args : 20217004 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 : ({'mal_croppe': 20217014, 'papier': 20217015, 'plastique': 20217016, 'environnement': 20217017, 'kraft': 20217018, 'cartonnette': 20217019, 'Carton_gris': 20217020, 'autre_refus': 20217021, 'flou': 20217022, 'Teint_Dans_La_Masse': 20217023, 'metal': 20217024, 'Carton_brun': 20217025},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20217004) 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([20217004]) 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.27051329612731934 time spend to save output : 5.7220458984375e-05 total time spend for step 3 : 0.2705705165863037 step4:send_mail_cod Tue Feb 4 16:44: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 : {1334593977: ('0.05204539510701333',), 1334593894: ('0.05204539510701333',), 1334593855: ('0.05204539510701333',), 1334593807: ('0.05204539510701333',), 1334593723: ('0.05204539510701333',), 1334593721: ('0.05204539510701333',), 1334593718: ('0.05204539510701333',), 1334593712: ('0.05204539510701333',), 1334593707: ('0.05204539510701333',)} input_args_next_step : {1334593977: ()} output_args : {1334593977: ('0.05204539510701333',), 1334593894: ('0.05204539510701333',), 1334593855: ('0.05204539510701333',), 1334593807: ('0.05204539510701333',), 1334593723: ('0.05204539510701333',), 1334593721: ('0.05204539510701333',), 1334593718: ('0.05204539510701333',), 1334593712: ('0.05204539510701333',), 1334593707: ('0.05204539510701333',)} args : 1334593977 depend.output_id : 0 input_args_next_step : {1334593977: ('0.05204539510701333',), 1334593894: ()} output_args : {1334593977: ('0.05204539510701333',), 1334593894: ('0.05204539510701333',), 1334593855: ('0.05204539510701333',), 1334593807: ('0.05204539510701333',), 1334593723: ('0.05204539510701333',), 1334593721: ('0.05204539510701333',), 1334593718: ('0.05204539510701333',), 1334593712: ('0.05204539510701333',), 1334593707: ('0.05204539510701333',)} args : 1334593894 depend.output_id : 0 input_args_next_step : {1334593977: ('0.05204539510701333',), 1334593894: ('0.05204539510701333',), 1334593855: ()} output_args : {1334593977: ('0.05204539510701333',), 1334593894: ('0.05204539510701333',), 1334593855: ('0.05204539510701333',), 1334593807: ('0.05204539510701333',), 1334593723: ('0.05204539510701333',), 1334593721: ('0.05204539510701333',), 1334593718: ('0.05204539510701333',), 1334593712: ('0.05204539510701333',), 1334593707: ('0.05204539510701333',)} args : 1334593855 depend.output_id : 0 input_args_next_step : {1334593977: ('0.05204539510701333',), 1334593894: ('0.05204539510701333',), 1334593855: ('0.05204539510701333',), 1334593807: ()} output_args : {1334593977: ('0.05204539510701333',), 1334593894: ('0.05204539510701333',), 1334593855: ('0.05204539510701333',), 1334593807: ('0.05204539510701333',), 1334593723: ('0.05204539510701333',), 1334593721: ('0.05204539510701333',), 1334593718: ('0.05204539510701333',), 1334593712: ('0.05204539510701333',), 1334593707: ('0.05204539510701333',)} args : 1334593807 depend.output_id : 0 input_args_next_step : {1334593977: ('0.05204539510701333',), 1334593894: ('0.05204539510701333',), 1334593855: ('0.05204539510701333',), 1334593807: ('0.05204539510701333',), 1334593723: ()} output_args : {1334593977: ('0.05204539510701333',), 1334593894: ('0.05204539510701333',), 1334593855: ('0.05204539510701333',), 1334593807: ('0.05204539510701333',), 1334593723: ('0.05204539510701333',), 1334593721: ('0.05204539510701333',), 1334593718: ('0.05204539510701333',), 1334593712: ('0.05204539510701333',), 1334593707: ('0.05204539510701333',)} args : 1334593723 depend.output_id : 0 input_args_next_step : {1334593977: ('0.05204539510701333',), 1334593894: ('0.05204539510701333',), 1334593855: ('0.05204539510701333',), 1334593807: ('0.05204539510701333',), 1334593723: ('0.05204539510701333',), 1334593721: ()} output_args : {1334593977: ('0.05204539510701333',), 1334593894: ('0.05204539510701333',), 1334593855: ('0.05204539510701333',), 1334593807: ('0.05204539510701333',), 1334593723: ('0.05204539510701333',), 1334593721: ('0.05204539510701333',), 1334593718: ('0.05204539510701333',), 1334593712: ('0.05204539510701333',), 1334593707: ('0.05204539510701333',)} args : 1334593721 depend.output_id : 0 input_args_next_step : {1334593977: ('0.05204539510701333',), 1334593894: ('0.05204539510701333',), 1334593855: ('0.05204539510701333',), 1334593807: ('0.05204539510701333',), 1334593723: ('0.05204539510701333',), 1334593721: ('0.05204539510701333',), 1334593718: ()} output_args : {1334593977: ('0.05204539510701333',), 1334593894: ('0.05204539510701333',), 1334593855: ('0.05204539510701333',), 1334593807: ('0.05204539510701333',), 1334593723: ('0.05204539510701333',), 1334593721: ('0.05204539510701333',), 1334593718: ('0.05204539510701333',), 1334593712: ('0.05204539510701333',), 1334593707: ('0.05204539510701333',)} args : 1334593718 depend.output_id : 0 input_args_next_step : {1334593977: ('0.05204539510701333',), 1334593894: ('0.05204539510701333',), 1334593855: ('0.05204539510701333',), 1334593807: ('0.05204539510701333',), 1334593723: ('0.05204539510701333',), 1334593721: ('0.05204539510701333',), 1334593718: ('0.05204539510701333',), 1334593712: ()} output_args : {1334593977: ('0.05204539510701333',), 1334593894: ('0.05204539510701333',), 1334593855: ('0.05204539510701333',), 1334593807: ('0.05204539510701333',), 1334593723: ('0.05204539510701333',), 1334593721: ('0.05204539510701333',), 1334593718: ('0.05204539510701333',), 1334593712: ('0.05204539510701333',), 1334593707: ('0.05204539510701333',)} args : 1334593712 depend.output_id : 0 input_args_next_step : {1334593977: ('0.05204539510701333',), 1334593894: ('0.05204539510701333',), 1334593855: ('0.05204539510701333',), 1334593807: ('0.05204539510701333',), 1334593723: ('0.05204539510701333',), 1334593721: ('0.05204539510701333',), 1334593718: ('0.05204539510701333',), 1334593712: ('0.05204539510701333',), 1334593707: ()} output_args : {1334593977: ('0.05204539510701333',), 1334593894: ('0.05204539510701333',), 1334593855: ('0.05204539510701333',), 1334593807: ('0.05204539510701333',), 1334593723: ('0.05204539510701333',), 1334593721: ('0.05204539510701333',), 1334593718: ('0.05204539510701333',), 1334593712: ('0.05204539510701333',), 1334593707: ('0.05204539510701333',)} args : 1334593707 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 : {20217004: [{'mal_croppe': 20217014, 'papier': 20217015, 'plastique': 20217016, 'environnement': 20217017, 'kraft': 20217018, 'cartonnette': 20217019, 'Carton_gris': 20217020, 'autre_refus': 20217021, 'flou': 20217022, 'Teint_Dans_La_Masse': 20217023, 'metal': 20217024, 'Carton_brun': 20217025}]} input_args_next_step : {1334593977: ('0.05204539510701333',), 1334593894: ('0.05204539510701333',), 1334593855: ('0.05204539510701333',), 1334593807: ('0.05204539510701333',), 1334593723: ('0.05204539510701333',), 1334593721: ('0.05204539510701333',), 1334593718: ('0.05204539510701333',), 1334593712: ('0.05204539510701333',), 1334593707: ('0.05204539510701333',), 20217004: ()} output_args : {20217004: [{'mal_croppe': 20217014, 'papier': 20217015, 'plastique': 20217016, 'environnement': 20217017, 'kraft': 20217018, 'cartonnette': 20217019, 'Carton_gris': 20217020, 'autre_refus': 20217021, 'flou': 20217022, 'Teint_Dans_La_Masse': 20217023, 'metal': 20217024, 'Carton_brun': 20217025}]} args : 20217004 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 :10, first value : ('0.05204539510701333',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20217004) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1334593977,1334593894,1334593855,1334593807,1334593723,1334593721,1334593718,1334593712,1334593707) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1334593707 begin to download photo : 1334593718 begin to download photo : 1334593723 begin to download photo : 1334593855 begin to download photo : 1334593977 download finish for photo 1334593855 begin to download photo : 1334593894 download finish for photo 1334593723 begin to download photo : 1334593807 download finish for photo 1334593707 begin to download photo : 1334593712 download finish for photo 1334593718 begin to download photo : 1334593721 download finish for photo 1334593977 download finish for photo 1334593807 download finish for photo 1334593894 download finish for photo 1334593721 download finish for photo 1334593712 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette202170141738683899/ imagette202170161738683899/ imagette202170181738683899/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P20217004_04-02-2025_16_44_59.pdf 20217014 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20217014 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202170141738683899 20217016 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20217016 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202170161738683899 20217018 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20217018 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202170181738683899 20217019 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20217019 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334592744: '1738683512_1061058_1334591274_5d978d7098251060f6d6326eb906dadd_rle_crop_3653765466_0.png', 1334592745: '1738683512_1061058_1334591161_dad5bb8a9697e7dac942f92718852580_rle_crop_3653765584_0.png', 1334593099: '1738683530_1061188_1334591105_61382da2bba706cb572c3cf05b6f988c_rle_crop_3653765727_0.png', 1334593100: '1738683530_1061188_1334591103_07c770dbf1fc0f2669d3cd8361ba2ef8_rle_crop_3653765759_0.png', 1334593706: '1738683593_1062023_1334591105_61382da2bba706cb572c3cf05b6f988c_rle_crop_3653765727_0.png', 1334593708: '1738683593_1062023_1334591103_07c770dbf1fc0f2669d3cd8361ba2ef8_rle_crop_3653765759_0.png', 1334593796: '1738683633_1063823_1334591274_5d978d7098251060f6d6326eb906dadd_rle_crop_3653765466_0.png', 1334593797: '1738683633_1063823_1334591161_dad5bb8a9697e7dac942f92718852580_rle_crop_3653765584_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/d987e0bef82b6b8d78b3b33aa99853df_13503920.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/8238db4662519cbd21fb40afe093430e_32966127.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/227a7e3c5e64307725c8e0ad33f02a53_95683698.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/2769145c5850ef8adeab03b1468e2b7b_62098922.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/227a7e3c5e64307725c8e0ad33f02a53_8208862.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/2769145c5850ef8adeab03b1468e2b7b_47525367.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/d987e0bef82b6b8d78b3b33aa99853df_88398653.png change filename to text .imagette202170191738683899/ imagette202170191738683899/1738683530_1061188_1334591103_07c770dbf1fc0f2669d3cd8361ba2ef8_rle_crop_3653765759_0.png.png imagette202170191738683899/1738683512_1061058_1334591161_dad5bb8a9697e7dac942f92718852580_rle_crop_3653765584_0.png.png imagette202170191738683899/1738683593_1062023_1334591105_61382da2bba706cb572c3cf05b6f988c_rle_crop_3653765727_0.png.png imagette202170191738683899/1738683512_1061058_1334591274_5d978d7098251060f6d6326eb906dadd_rle_crop_3653765466_0.png.png imagette202170191738683899/1738683633_1063823_1334591274_5d978d7098251060f6d6326eb906dadd_rle_crop_3653765466_0.png.png imagette202170191738683899/1738683633_1063823_1334591161_dad5bb8a9697e7dac942f92718852580_rle_crop_3653765584_0.png.png imagette202170191738683899/1738683530_1061188_1334591105_61382da2bba706cb572c3cf05b6f988c_rle_crop_3653765727_0.png.png imagette202170191738683899/1738683593_1062023_1334591103_07c770dbf1fc0f2669d3cd8361ba2ef8_rle_crop_3653765759_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/8238db4662519cbd21fb40afe093430e_64454889.png imagette202170191738683899 20217021 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20217021 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334591632: '1738683354_1054501_1334591039_7a9835c91ee490c15829c9003e14d5ea_rle_crop_3653764061_0.png', 1334591633: '1738683354_1054501_1334591034_b65c846eeb02d8bddb3369cfdde6c708_rle_crop_3653764070_0.png', 1334592742: '1738683512_1061058_1334591159_97c111e5834febeede85b1705396f053_rle_crop_3653765678_0.png', 1334593097: '1738683530_1061188_1334591108_1083aa0cd9a6c5cdd2727bc952503158_rle_crop_3653765699_0.png', 1334593098: '1738683530_1061188_1334591105_61382da2bba706cb572c3cf05b6f988c_rle_crop_3653765728_0.png', 1334593704: '1738683593_1062023_1334591108_1083aa0cd9a6c5cdd2727bc952503158_rle_crop_3653765699_0.png', 1334593705: '1738683593_1062023_1334591105_61382da2bba706cb572c3cf05b6f988c_rle_crop_3653765728_0.png', 1334593711: '1738683616_1062360_1334591713_1c6414df72bd772e861c89180b82c957_rle_crop_3653771534_0.png', 1334593794: '1738683633_1063823_1334591159_97c111e5834febeede85b1705396f053_rle_crop_3653765678_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/40d39f648e6ff158b032b5c9f61c316b_3240461.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/9097bb47126191316f20c36e6a72e67c_64982111.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/a88bbcb4b28d066a68b034455f508dee_43289106.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/223e5cd776d8332c2245b88130fceb46_60195353.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/ade9c76df465c53ed0c54be9ffef052a_32286188.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/223e5cd776d8332c2245b88130fceb46_29015719.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/ade9c76df465c53ed0c54be9ffef052a_73982652.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/d4e13ff47829d944587dde0cc26409d6_60065668.png change filename to text .imagette202170211738683899/ imagette202170211738683899/1738683530_1061188_1334591108_1083aa0cd9a6c5cdd2727bc952503158_rle_crop_3653765699_0.png.png imagette202170211738683899/1738683616_1062360_1334591713_1c6414df72bd772e861c89180b82c957_rle_crop_3653771534_0.png.png imagette202170211738683899/1738683354_1054501_1334591039_7a9835c91ee490c15829c9003e14d5ea_rle_crop_3653764061_0.png.png imagette202170211738683899/1738683354_1054501_1334591034_b65c846eeb02d8bddb3369cfdde6c708_rle_crop_3653764070_0.png.png imagette202170211738683899/1738683512_1061058_1334591159_97c111e5834febeede85b1705396f053_rle_crop_3653765678_0.png.png imagette202170211738683899/1738683530_1061188_1334591105_61382da2bba706cb572c3cf05b6f988c_rle_crop_3653765728_0.png.png imagette202170211738683899/1738683593_1062023_1334591105_61382da2bba706cb572c3cf05b6f988c_rle_crop_3653765728_0.png.png imagette202170211738683899/1738683633_1063823_1334591159_97c111e5834febeede85b1705396f053_rle_crop_3653765678_0.png.png imagette202170211738683899/1738683593_1062023_1334591108_1083aa0cd9a6c5cdd2727bc952503158_rle_crop_3653765699_0.png.png imagette202170221738683900/ imagette202170241738683900/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/a88bbcb4b28d066a68b034455f508dee_89284106.png imagette202170211738683899 20217022 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20217022 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202170221738683900 20217024 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20217024 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202170241738683900 20217020 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20217020 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334591635: '1738683354_1054501_1334591074_66d6616c7456d3410f5ce02756a040b7_rle_crop_3653764022_0.png', 1334591636: '1738683354_1054501_1334591039_7a9835c91ee490c15829c9003e14d5ea_rle_crop_3653764062_0.png', 1334591637: '1738683354_1054501_1334591039_7a9835c91ee490c15829c9003e14d5ea_rle_crop_3653764053_0.png', 1334592743: '1738683512_1061058_1334591274_5d978d7098251060f6d6326eb906dadd_rle_crop_3653765468_0.png', 1334593714: '1738683616_1062360_1334591709_813c72bf0c800b1cf022122daec15a15_rle_crop_3653772037_0.png', 1334593795: '1738683633_1063823_1334591274_5d978d7098251060f6d6326eb906dadd_rle_crop_3653765468_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/40b993a98ce18cc95c8cc5834b94700d_57205936.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/bf2eea9862d282da053294a578dcb490_42710381.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/f3ccb413e9b3c24dc745dcba4618ff17_96183431.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/86ceab30a3a3ffaf32a969b91e1b2c2d_95512194.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/7717e4c44c67230973b5e4852917dfd0_84775236.png change filename to text .imagette202170201738683900/ imagette202170201738683900/1738683354_1054501_1334591074_66d6616c7456d3410f5ce02756a040b7_rle_crop_3653764022_0.png.png imagette202170201738683900/1738683512_1061058_1334591274_5d978d7098251060f6d6326eb906dadd_rle_crop_3653765468_0.png.png imagette202170201738683900/1738683354_1054501_1334591039_7a9835c91ee490c15829c9003e14d5ea_rle_crop_3653764062_0.png.png imagette202170201738683900/1738683354_1054501_1334591039_7a9835c91ee490c15829c9003e14d5ea_rle_crop_3653764053_0.png.png imagette202170201738683900/1738683616_1062360_1334591709_813c72bf0c800b1cf022122daec15a15_rle_crop_3653772037_0.png.png imagette202170201738683900/1738683633_1063823_1334591274_5d978d7098251060f6d6326eb906dadd_rle_crop_3653765468_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/86ceab30a3a3ffaf32a969b91e1b2c2d_56863136.png imagette202170201738683900 20217023 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20217023 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334593783: '1738683633_1063823_1334591186_2ff907fd2261d997fc23242e06a4298c_rle_crop_3653765485_0.png', 1334593642: '1738683593_1062023_1334591108_1083aa0cd9a6c5cdd2727bc952503158_rle_crop_3653765692_0.png', 1334593644: '1738683593_1062023_1334591105_61382da2bba706cb572c3cf05b6f988c_rle_crop_3653765737_0.png', 1334593646: '1738683593_1062023_1334591105_61382da2bba706cb572c3cf05b6f988c_rle_crop_3653765741_0.png', 1334593648: '1738683593_1062023_1334591103_07c770dbf1fc0f2669d3cd8361ba2ef8_rle_crop_3653765764_0.png', 1334593650: '1738683593_1062023_1334591103_07c770dbf1fc0f2669d3cd8361ba2ef8_rle_crop_3653765761_0.png', 1334593652: '1738683593_1062023_1334591100_a4aeb752a2dfacefa7c9a9300b94b9a8_rle_crop_3653765774_0.png', 1334593654: '1738683593_1062023_1334591100_a4aeb752a2dfacefa7c9a9300b94b9a8_rle_crop_3653765776_0.png', 1334593781: '1738683633_1063823_1334591274_5d978d7098251060f6d6326eb906dadd_rle_crop_3653765472_0.png', 1334593782: '1738683633_1063823_1334591274_5d978d7098251060f6d6326eb906dadd_rle_crop_3653765477_0.png', 1334593640: '1738683593_1062023_1334591234_994491c9d3fc5569de9ba3182ecc4d3a_rle_crop_3653765663_0.png', 1334593784: '1738683633_1063823_1334591165_86cbae29333165bfd3c10c991c97f161_rle_crop_3653765505_0.png', 1334593785: '1738683633_1063823_1334591165_86cbae29333165bfd3c10c991c97f161_rle_crop_3653765510_0.png', 1334593786: '1738683633_1063823_1334591165_86cbae29333165bfd3c10c991c97f161_rle_crop_3653765509_0.png', 1334593787: '1738683633_1063823_1334591161_dad5bb8a9697e7dac942f92718852580_rle_crop_3653765589_0.png', 1334593788: '1738683633_1063823_1334591161_dad5bb8a9697e7dac942f92718852580_rle_crop_3653765590_0.png', 1334593789: '1738683633_1063823_1334591161_dad5bb8a9697e7dac942f92718852580_rle_crop_3653765591_0.png', 1334593790: '1738683633_1063823_1334591159_97c111e5834febeede85b1705396f053_rle_crop_3653765687_0.png', 1334593791: '1738683633_1063823_1334591159_97c111e5834febeede85b1705396f053_rle_crop_3653765684_0.png', 1334592740: '1738683512_1061058_1334591159_97c111e5834febeede85b1705396f053_rle_crop_3653765684_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/5955d65f4043e584891f8e1b6433afd6_97254347.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/42e37456583235b9722c58fea7924d44_80592727.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/bc3c0da5c55312eea300c048ec89cf80_44027236.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/6377c8c842800ccd799339036d9bd421_94792459.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/def175500b1efca7eda42dfbab35adb3_91462565.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/08548c655d4891f433f12400f1db711c_60103355.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/558342fe6752b810113641d7012476d6_47359784.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/a368c5f24390815a11480b948900420b_69667280.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/e00e52cb6b81ff7e40ede56194edbc64_45736437.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/f640d38dc89711de235cdecdc2e793a1_37639054.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/b9670dace91f202553fff185e878d373_13547916.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/5b6a3a89525e42f3001a8908353b4ecb_89440712.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/d86ff3a7aedbb1f8783ae9e472286dea_30178358.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/e89fa3fd49c2ca3396e22f09f0b8d6a8_18756601.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/74fe0ab6b0e6f7012373616d11d1eebd_19035644.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/c5eef317ef742d647fed01bb56c35217_25581807.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/9a8c756dc86f3853d5e5d5b225d5428a_62444816.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/69c7df6720b41730e8dfb5a7af4c2310_69819456.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/b9dd284d6a4113d2ec7807fc7ab06396_9217446.png change filename to text .imagette202170231738683900/ imagette202170231738683900/1738683512_1061058_1334591159_97c111e5834febeede85b1705396f053_rle_crop_3653765684_0.png.png imagette202170231738683900/1738683633_1063823_1334591161_dad5bb8a9697e7dac942f92718852580_rle_crop_3653765590_0.png.png imagette202170231738683900/1738683593_1062023_1334591103_07c770dbf1fc0f2669d3cd8361ba2ef8_rle_crop_3653765764_0.png.png imagette202170231738683900/1738683593_1062023_1334591105_61382da2bba706cb572c3cf05b6f988c_rle_crop_3653765741_0.png.png imagette202170231738683900/1738683633_1063823_1334591165_86cbae29333165bfd3c10c991c97f161_rle_crop_3653765505_0.png.png imagette202170231738683900/1738683633_1063823_1334591159_97c111e5834febeede85b1705396f053_rle_crop_3653765687_0.png.png imagette202170231738683900/1738683633_1063823_1334591161_dad5bb8a9697e7dac942f92718852580_rle_crop_3653765589_0.png.png imagette202170231738683900/1738683593_1062023_1334591100_a4aeb752a2dfacefa7c9a9300b94b9a8_rle_crop_3653765774_0.png.png imagette202170231738683900/1738683593_1062023_1334591105_61382da2bba706cb572c3cf05b6f988c_rle_crop_3653765737_0.png.png imagette202170231738683900/1738683633_1063823_1334591186_2ff907fd2261d997fc23242e06a4298c_rle_crop_3653765485_0.png.png imagette202170231738683900/1738683593_1062023_1334591103_07c770dbf1fc0f2669d3cd8361ba2ef8_rle_crop_3653765761_0.png.png imagette202170231738683900/1738683593_1062023_1334591108_1083aa0cd9a6c5cdd2727bc952503158_rle_crop_3653765692_0.png.png imagette202170231738683900/1738683633_1063823_1334591274_5d978d7098251060f6d6326eb906dadd_rle_crop_3653765477_0.png.png imagette202170231738683900/1738683593_1062023_1334591234_994491c9d3fc5569de9ba3182ecc4d3a_rle_crop_3653765663_0.png.png imagette202170231738683900/1738683633_1063823_1334591161_dad5bb8a9697e7dac942f92718852580_rle_crop_3653765591_0.png.png imagette202170231738683900/1738683633_1063823_1334591274_5d978d7098251060f6d6326eb906dadd_rle_crop_3653765472_0.png.png imagette202170231738683900/1738683633_1063823_1334591165_86cbae29333165bfd3c10c991c97f161_rle_crop_3653765509_0.png.png imagette202170231738683900/1738683633_1063823_1334591165_86cbae29333165bfd3c10c991c97f161_rle_crop_3653765510_0.png.png imagette202170231738683900/1738683593_1062023_1334591100_a4aeb752a2dfacefa7c9a9300b94b9a8_rle_crop_3653765776_0.png.png imagette202170231738683900/1738683633_1063823_1334591159_97c111e5834febeede85b1705396f053_rle_crop_3653765684_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/b9dd284d6a4113d2ec7807fc7ab06396_45017730.png imagette202170231738683900 20217025 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20217025 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334591638: '1738683354_1054501_1334591046_55c493ed601c64b4b2efedc5315622cc_rle_crop_3653764034_0.png', 1334591639: '1738683354_1054501_1334590993_2e8621822f54eccec3e6826e16d178b7_rle_crop_3653764090_0.png', 1334592747: '1738683512_1061058_1334591165_86cbae29333165bfd3c10c991c97f161_rle_crop_3653765506_0.png', 1334592748: '1738683512_1061058_1334591165_86cbae29333165bfd3c10c991c97f161_rle_crop_3653765503_0.png', 1334593715: '1738683616_1062360_1334591655_1114c2e83a9b5d2d5a4b517a96677e42_rle_crop_3653772290_0.png', 1334593716: '1738683616_1062360_1334591655_1114c2e83a9b5d2d5a4b517a96677e42_rle_crop_3653772292_0.png', 1334593800: '1738683633_1063823_1334591165_86cbae29333165bfd3c10c991c97f161_rle_crop_3653765506_0.png', 1334593801: '1738683633_1063823_1334591165_86cbae29333165bfd3c10c991c97f161_rle_crop_3653765503_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/44fb40f9e1ca7211071cbc35b0fd8d7f_69535093.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/77ae5c979f6e3a42ae012c8140f1bd3f_10945927.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/485a14e8830db60b5e38f6d98b6a9809_47555552.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/6af8293f687d00bd92ef6e8d89c43791_60996815.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/f075840651ec7329827a8da0abd67f53_45120179.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/d81af9ec7bb515d803a8269c23c50b9b_17311667.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/485a14e8830db60b5e38f6d98b6a9809_16440563.png change filename to text .imagette202170251738683901/ imagette202170251738683901/1738683616_1062360_1334591655_1114c2e83a9b5d2d5a4b517a96677e42_rle_crop_3653772292_0.png.png imagette202170251738683901/1738683354_1054501_1334590993_2e8621822f54eccec3e6826e16d178b7_rle_crop_3653764090_0.png.png imagette202170251738683901/1738683354_1054501_1334591046_55c493ed601c64b4b2efedc5315622cc_rle_crop_3653764034_0.png.png imagette202170251738683901/1738683633_1063823_1334591165_86cbae29333165bfd3c10c991c97f161_rle_crop_3653765506_0.png.png imagette202170251738683901/1738683633_1063823_1334591165_86cbae29333165bfd3c10c991c97f161_rle_crop_3653765503_0.png.png imagette202170251738683901/1738683512_1061058_1334591165_86cbae29333165bfd3c10c991c97f161_rle_crop_3653765503_0.png.png imagette202170251738683901/1738683512_1061058_1334591165_86cbae29333165bfd3c10c991c97f161_rle_crop_3653765506_0.png.png imagette202170251738683901/1738683616_1062360_1334591655_1114c2e83a9b5d2d5a4b517a96677e42_rle_crop_3653772290_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/6af8293f687d00bd92ef6e8d89c43791_59313543.png imagette202170251738683901 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20217004 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20217026,20217027,20217028,20217029,20217030,20217031,20217032,20217033,20217034,20217035,20217036,20217037?tags=mal_croppe,papier,plastique,environnement,kraft,cartonnette,Carton_gris,autre_refus,flou,Teint_Dans_La_Masse,metal,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1334593977] : ('0.05204539510701333',) no score found for photo 1334593977 We are sending mail with results at report@fotonower.com args[1334593894] : ('0.05204539510701333',) no score found for photo 1334593894 We are sending mail with results at report@fotonower.com args[1334593855] : ('0.05204539510701333',) no score found for photo 1334593855 We are sending mail with results at report@fotonower.com args[1334593807] : ('0.05204539510701333',) no score found for photo 1334593807 We are sending mail with results at report@fotonower.com args[1334593723] : ('0.05204539510701333',) no score found for photo 1334593723 We are sending mail with results at report@fotonower.com args[1334593721] : ('0.05204539510701333',) no score found for photo 1334593721 We are sending mail with results at report@fotonower.com args[1334593718] : ('0.05204539510701333',) no score found for photo 1334593718 We are sending mail with results at report@fotonower.com args[1334593712] : ('0.05204539510701333',) no score found for photo 1334593712 We are sending mail with results at report@fotonower.com args[1334593707] : ('0.05204539510701333',) no score found for photo 1334593707 We are sending mail with results at report@fotonower.com refus_total : 0.05204539510701333 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20217004 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_P20217004_04-02-2025_16_44_59.pdf results_Auto_P20217004_04-02-2025_16_44_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20217004_04-02-2025_16_44_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20217004','results_Auto_P20217004_04-02-2025_16_44_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20217004_04-02-2025_16_44_59.pdf','pdf','','0.19','0.05204539510701333') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20217004]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1334593977, 1334593894, 1334593855, 1334593807, 1334593723, 1334593721, 1334593718, 1334593712, 1334593707] map_info['map_portfolio_photo'] : {20217004: [1334593977, 1334593894, 1334593855, 1334593807, 1334593723, 1334593721, 1334593718, 1334593712, 1334593707, 1334593241, 1334593234, 1334593229, 1334593223, 1334593218, 1334593051, 1334592872, 1334592793, 1334592671, 1334592665, 1334592651, 1334592605, 1334592470, 1334592467, 1334591715, 1334591713, 1334591709, 1334591655, 1334591646, 1334591617, 1334591556, 1334591549, 1334591274, 1334591234, 1334591186, 1334591165, 1334591161, 1334591159, 1334591120, 1334591108, 1334591105, 1334591103, 1334591100, 1334591097, 1334591074, 1334591070, 1334591068, 1334591052, 1334591046, 1334591043, 1334591039, 1334591034, 1334590993, 1334590755, 1334590716, 1334590714, 1334590712, 1334590710]} final : False mtd_id 4302 list_pids : [1334593977, 1334593894, 1334593855, 1334593807, 1334593723, 1334593721, 1334593718, 1334593712, 1334593707] 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, '2546154') ('4302', '20217004', '1334593977', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593894', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593855', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593807', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593723', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593721', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593718', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593712', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593707', None, None, None, None, None, '2546154') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '20217004', '1334593977', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593894', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593855', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593807', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593723', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593721', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593718', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593712', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593707', None, None, None, None, None, '2546154')] time used for this insertion : 0.015098810195922852 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.789628744125366 time spend to save output : 0.015306472778320312 total time spend for step 4 : 3.8049352169036865 step5:split_time_score Tue Feb 4 16:45:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20217004'] 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 : [('20217004',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20217004) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1334593977: {'path': 'temp/1738683899_360723_1334593977_e52afc304e3c8398697b8edb7c3f197f.jpg', 'extension': 'jpg'}, 1334593723: {'path': 'temp/1738683899_360723_1334593723_ba3cea811cb35a47cf89173eddcd7233.jpg', 'extension': 'jpg'}, 1334593807: {'path': 'temp/1738683899_360723_1334593807_aa2eb2880a02618fab6f7a8014a6bbd2.jpg', 'extension': 'jpg'}, 1334593855: {'path': 'temp/1738683899_360723_1334593855_b7fc5a9e4e22cec82799b645fa783ccd.jpg', 'extension': 'jpg'}, 1334593894: {'path': 'temp/1738683899_360723_1334593894_3c5ec3b974820388c12dfe88836f9444.jpg', 'extension': 'jpg'}, 1334593718: {'path': 'temp/1738683899_360723_1334593718_e3814b994cf6c896fbbd6ed10bc09efe.jpg', 'extension': 'jpg'}, 1334593721: {'path': 'temp/1738683899_360723_1334593721_3cf772ae1afa4f8cb3f2536bb2d2c164.jpg', 'extension': 'jpg'}, 1334593707: {'path': 'temp/1738683899_360723_1334593707_f7574d010a2ab04941193e25aad4c810.jpg', 'extension': 'jpg'}, 1334593712: {'path': 'temp/1738683899_360723_1334593712_99daaa9045530ea752d36dc281c55f8b.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 = 20217004; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 20217004 group by h (('16', 57),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20217004 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 (20217004) 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 (20217004) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04022025 20217004 Nombre de photos uploadées : 57 / 23040 (0%) 04022025 20217004 Nombre de photos taguées (types de déchets): 0 / 57 (0%) 04022025 20217004 Nombre de photos taguées (volume) : 0 / 57 (0%) [{'photo_id': 1334590755, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/5064c9859828be21a96a2601fc5cebdb.jpg', 'username': None, 'uploaded_at': 1738683067, 'text': 'image_04022025_16_30_05_10145.jpg'}, {'photo_id': 1334590716, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/ef9c73a989521f0a4a2688b3545c44a9.jpg', 'username': None, 'uploaded_at': 1738683067, 'text': 'image_04022025_16_30_14_9126.jpg'}, {'photo_id': 1334590714, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/3e2ffe480711401ca50535e5574c0f74.jpg', 'username': None, 'uploaded_at': 1738683067, 'text': 'image_04022025_16_30_24_10136.jpg'}, {'photo_id': 1334590712, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/d980c95e4ab71ab2481c5641fb3ee42b.jpg', 'username': None, 'uploaded_at': 1738683067, 'text': 'image_04022025_16_30_34_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024352073669433594 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20217004, '2025-02-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1575286,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023539304733276367 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= 1575286 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1575286, 'dashboard_run_id': 1584724, 'mtr_portfolio_id': 20215220, 'dashboard_result_id': 8681566, '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_P20215220_04-02-2025_16_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20215225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20215226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20215227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20215228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20215229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20215230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20215231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20215232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20215233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20215234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20215235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20215236, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1584724, 'mtr_portfolio_id': 20215739, 'dashboard_result_id': 8681567, '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_P20215739_04-02-2025_16_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20215792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20215793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20215794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20215795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20215796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20215797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20215798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20215799, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20215800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20215801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20215802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20215803, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1584724, 'mtr_portfolio_id': 20216292, 'dashboard_result_id': 8681568, '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_P20216292_04-02-2025_16_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20216333, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20216334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20216335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20216336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20216337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20216338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20216339, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20216340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20216341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20216342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20216343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20216344, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1584724, 'mtr_portfolio_id': 20217004, 'dashboard_result_id': 8681569, '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_P20217004_04-02-2025_16_42_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20217014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20217015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20217016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20217017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20217018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20217019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20217020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20217021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20217022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20217023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20217024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20217025, '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 = 20215220 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': 2545738, 'mtr_portfolio_id': 20215220, 'created_at': datetime.datetime(2025, 2, 4, 16, 2, 59), 'result': '0.04466626224677005', 'result_long': None, 'result_double': None}] Qualite : 0.04466626224677005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20215220 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20215220_04-02-2025_16_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20215220 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_P20215220_04-02-2025_16_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20215225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20215226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20215227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20215228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20215229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20215230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20215231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20215232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20215233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20215234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20215235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20215236, 'pht': 3726}}" where mtr_portfolio_id = 20215220 and dashboard_run_id = 1584724 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`=20215220 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8681566, 0.04466626224677005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20215220_04-02-2025_16_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20215225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20215226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20215227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20215228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20215229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20215230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20215231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20215232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20215233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20215234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20215235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20215236, '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 = 20215739 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': 2545870, 'mtr_portfolio_id': 20215739, 'created_at': datetime.datetime(2025, 2, 4, 16, 18, 58), 'result': '0.03969955624109504', 'result_long': None, 'result_double': None}] Qualite : 0.03969955624109504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20215739 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20215739_04-02-2025_16_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20215739 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_P20215739_04-02-2025_16_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20215792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20215793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20215794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20215795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20215796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20215797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20215798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20215799, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20215800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20215801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20215802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20215803, 'pht': 3726}}" where mtr_portfolio_id = 20215739 and dashboard_run_id = 1584724 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`=20215739 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8681567, 0.03969955624109504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20215739_04-02-2025_16_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20215792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20215793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20215794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20215795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20215796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20215797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20215798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20215799, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20215800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20215801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20215802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20215803, '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 = 20216292 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': 2546009, 'mtr_portfolio_id': 20216292, 'created_at': datetime.datetime(2025, 2, 4, 16, 32, 59), 'result': '0.03426208288726555', 'result_long': None, 'result_double': None}] Qualite : 0.03426208288726555 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20216292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20216292_04-02-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20216292 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_P20216292_04-02-2025_16_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20216333, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20216334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20216335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20216336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20216337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20216338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20216339, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20216340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20216341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20216342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20216343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20216344, 'pht': 3726}}" where mtr_portfolio_id = 20216292 and dashboard_run_id = 1584724 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`=20216292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8681568, 0.03426208288726555, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20216292_04-02-2025_16_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20216333, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20216334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20216335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20216336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20216337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20216338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20216339, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20216340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20216341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20216342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20216343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20216344, '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 = 20217004 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': 2546154, 'mtr_portfolio_id': 20217004, 'created_at': datetime.datetime(2025, 2, 4, 16, 44, 58), 'result': '0.05204539510701333', 'result_long': None, 'result_double': None}] Qualite : 0.05204539510701333 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20217004 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20217004_04-02-2025_16_44_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20217004 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_P20217004_04-02-2025_16_44_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20217014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20217015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20217016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20217017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20217018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20217019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20217020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20217021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20217022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20217023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20217024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20217025, 'pht': 3726}}" where mtr_portfolio_id = 20217004 and dashboard_run_id = 1584724 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`=20217004 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8681569, 0.05204539510701333, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20217004_04-02-2025_16_44_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20217014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20217015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20217016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20217017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20217018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20217019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20217020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20217021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20217022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20217023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20217024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20217025, '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 (20215220,20215739,20216292,20217004) result : ((1334582584,), (1334582599,), (1334582603,), (1334582613,), (1334582879,), (1334582882,), (1334582886,), (1334582891,), (1334583280,), (1334583282,), (1334583285,), (1334583288,), (1334583295,), (1334583382,), (1334583384,), (1334583387,), (1334583391,), (1334583393,), (1334583398,), (1334583415,), (1334583420,), (1334583427,), (1334583429,), (1334583461,), (1334583465,), (1334583469,), (1334583473,), (1334583476,), (1334583480,), (1334583667,), (1334583670,), (1334583673,), (1334583675,), (1334583704,), (1334583706,), (1334583709,), (1334583712,), (1334583715,), (1334583718,), (1334583746,), (1334583748,), (1334583751,), (1334583754,), (1334583765,), (1334583779,), (1334583827,), (1334583839,), (1334583889,), (1334583940,), (1334583999,), (1334584030,), (1334584037,), (1334584287,), (1334584329,), (1334584334,), (1334584339,), (1334584349,), (1334584355,), (1334584373,), (1334584388,), (1334584392,), (1334584396,), (1334584413,), (1334584418,), (1334584424,), (1334584430,), (1334584445,), (1334584447,), (1334584451,), (1334584454,), (1334584493,), (1334584481,), (1334584483,), (1334584486,), (1334584489,), (1334584867,), (1334584870,), (1334584874,), (1334584878,), (1334584911,), (1334584913,), (1334584916,), (1334584919,), (1334584923,), (1334584926,), (1334584985,), (1334584989,), (1334584991,), (1334585043,), (1334585049,), (1334585052,), (1334585057,), (1334585061,), (1334585159,), (1334585245,), (1334585249,), (1334585253,), (1334585256,), (1334585262,), (1334585524,), (1334585568,), (1334585573,), (1334585862,), (1334585864,), (1334585924,), (1334585944,), (1334585951,), (1334585955,), (1334585960,), (1334587252,), (1334587324,), (1334587394,), (1334587402,), (1334587406,), (1334587445,), (1334587516,), (1334587518,), (1334587524,), (1334587527,), (1334587536,), (1334587564,), (1334587567,), (1334587570,), (1334587574,), (1334587615,), (1334587602,), (1334587604,), (1334587607,), (1334587610,), (1334587612,), (1334587827,), (1334587830,), (1334587833,), (1334587835,), (1334587887,), (1334587889,), (1334587894,), (1334587901,), (1334587908,), (1334587983,), (1334587985,), (1334587988,), (1334587991,), (1334588018,), (1334588024,), (1334588100,), (1334588104,), (1334588109,), (1334588113,), (1334588183,), (1334588185,), (1334588188,), (1334588595,), (1334588683,), (1334588686,), (1334588690,), (1334588750,), (1334588981,), (1334588984,), (1334588988,), (1334588991,), (1334589140,), (1334589143,), (1334589193,), (1334589196,), (1334589215,), (1334589291,), (1334589294,), (1334589298,), (1334590020,), (1334590091,), (1334590228,), (1334590233,), (1334590236,), (1334590451,), (1334590454,), (1334590457,), (1334590464,), (1334590568,), (1334590570,), (1334590572,), (1334590576,), (1334590578,), (1334590611,), (1334590613,), (1334590616,), (1334590619,), (1334590621,), (1334590643,), (1334590647,), (1334590650,), (1334590764,), (1334590710,), (1334590712,), (1334590714,), (1334590716,), (1334590755,), (1334590993,), (1334591034,), (1334591039,), (1334591043,), (1334591046,), (1334591052,), (1334591068,), (1334591070,), (1334591074,), (1334591097,), (1334591100,), (1334591103,), (1334591105,), (1334591108,), (1334591120,), (1334591159,), (1334591161,), (1334591165,), (1334591186,), (1334591234,), (1334591274,), (1334591549,), (1334591556,), (1334591617,), (1334591646,), (1334591655,), (1334591709,), (1334591713,), (1334591715,), (1334592467,), (1334592470,), (1334592605,), (1334592651,), (1334592665,), (1334592671,), (1334592793,), (1334592872,), (1334593051,), (1334593218,), (1334593223,), (1334593229,), (1334593234,), (1334593241,), (1334593707,), (1334593712,), (1334593718,), (1334593721,), (1334593723,), (1334593807,), (1334593855,), (1334593894,), (1334593977,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04022025': {'nb_upload': 57, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20217004]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1334593977, 1334593894, 1334593855, 1334593807, 1334593723, 1334593721, 1334593718, 1334593712, 1334593707] map_info['map_portfolio_photo'] : {20217004: [1334593977, 1334593894, 1334593855, 1334593807, 1334593723, 1334593721, 1334593718, 1334593712, 1334593707, 1334593241, 1334593234, 1334593229, 1334593223, 1334593218, 1334593051, 1334592872, 1334592793, 1334592671, 1334592665, 1334592651, 1334592605, 1334592470, 1334592467, 1334591715, 1334591713, 1334591709, 1334591655, 1334591646, 1334591617, 1334591556, 1334591549, 1334591274, 1334591234, 1334591186, 1334591165, 1334591161, 1334591159, 1334591120, 1334591108, 1334591105, 1334591103, 1334591100, 1334591097, 1334591074, 1334591070, 1334591068, 1334591052, 1334591046, 1334591043, 1334591039, 1334591034, 1334590993, 1334590755, 1334590716, 1334590714, 1334590712, 1334590710]} final : True mtd_id 4302 list_pids : [1334593977, 1334593894, 1334593855, 1334593807, 1334593723, 1334593721, 1334593718, 1334593712, 1334593707] Looping around the photos to save general results len do output : 1 /20217004Didn'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, '2546154') ('4302', '20217004', '1334593977', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593894', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593855', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593807', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593723', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593721', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593718', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593712', None, None, None, None, None, '2546154') ('4302', None, None, None, None, None, None, None, '2546154') ('4302', '20217004', '1334593707', None, None, None, None, None, '2546154') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '20217004', 'None', None, None, None, None, '2546154'), ('4302', '20217004', '1334593977', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593894', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593855', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593807', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593723', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593721', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593718', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593712', None, None, None, None, None, '2546154'), ('4302', '20217004', '1334593707', None, None, None, None, None, '2546154')] time used for this insertion : 0.01297760009765625 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.388439416885376 time spend to save output : 0.013189554214477539 total time spend for step 5 : 0.4016289710998535 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 (2546154) 2.09user 2.57system 0:09.15elapsed 50%CPU (0avgtext+0avgdata 160648maxresident)k 96inputs+10600outputs (2major+64083minor)pagefaults 0swaps