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 : 2048225 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 (2747248) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2747248) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22289960 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2747248'] with mtr_portfolio_ids : ['22289960'] and first list_photo_ids : [] new path : /proc/2048225/ Name: python3 Umask: 0002 State: R (running) Tgid: 2048225 Ngid: 0 Pid: 2048225 PPid: 2048224 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2048225 NSpid: 2048225 NSpgid: 2043027 NSsid: 2043027 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99400 kB VmRSS: 99400 kB RssAnon: 59808 kB RssFile: 39592 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 88 nonvoluntary_ctxt_switches: 144 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2048225', 'Ngid': '0', 'Pid': '2048225', 'PPid': '2048224', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2048225', 'NSpid': '2048225', 'NSpgid': '2043027', 'NSsid': '2043027', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99400 kB', 'VmRSS': '99400 kB', 'RssAnon': '59808 kB', 'RssFile': '39592 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '88', 'nonvoluntary_ctxt_switches': '144'} ('datou_batch_current', '2048225', '1106936', '0', '1106936', '865684', '99400', b'', 'marlene', '2747248') 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 (22289960) 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 (2747248 ) ) 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 (22289960) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1352548440, 'portfolio_id': 22289960}, {'photo_id': 1352548436, 'portfolio_id': 22289960}, {'photo_id': 1352548432, 'portfolio_id': 22289960}, {'photo_id': 1352548422, 'portfolio_id': 22289960}, {'photo_id': 1352548404, 'portfolio_id': 22289960}, {'photo_id': 1352548188, 'portfolio_id': 22289960}, {'photo_id': 1352548185, 'portfolio_id': 22289960}, {'photo_id': 1352548182, 'portfolio_id': 22289960}, {'photo_id': 1352548180, 'portfolio_id': 22289960}, {'photo_id': 1352548112, 'portfolio_id': 22289960}, {'photo_id': 1352548108, 'portfolio_id': 22289960}, {'photo_id': 1352548103, 'portfolio_id': 22289960}, {'photo_id': 1352548100, 'portfolio_id': 22289960}, {'photo_id': 1352548098, 'portfolio_id': 22289960}, {'photo_id': 1352548094, 'portfolio_id': 22289960}, {'photo_id': 1352547954, 'portfolio_id': 22289960}, {'photo_id': 1352547946, 'portfolio_id': 22289960}, {'photo_id': 1352547944, 'portfolio_id': 22289960}, {'photo_id': 1352547942, 'portfolio_id': 22289960}, {'photo_id': 1352547918, 'portfolio_id': 22289960}, {'photo_id': 1352547728, 'portfolio_id': 22289960}, {'photo_id': 1352547713, 'portfolio_id': 22289960}, {'photo_id': 1352547669, 'portfolio_id': 22289960}, {'photo_id': 1352547664, 'portfolio_id': 22289960}, {'photo_id': 1352547659, 'portfolio_id': 22289960}, {'photo_id': 1352547657, 'portfolio_id': 22289960}, {'photo_id': 1352547652, 'portfolio_id': 22289960}, {'photo_id': 1352547650, 'portfolio_id': 22289960}, {'photo_id': 1352547598, 'portfolio_id': 22289960}, {'photo_id': 1352547595, 'portfolio_id': 22289960}, {'photo_id': 1352547583, 'portfolio_id': 22289960}, {'photo_id': 1352547573, 'portfolio_id': 22289960}, {'photo_id': 1352547563, 'portfolio_id': 22289960}, {'photo_id': 1352547494, 'portfolio_id': 22289960}, {'photo_id': 1352547447, 'portfolio_id': 22289960}, {'photo_id': 1352547436, 'portfolio_id': 22289960}, {'photo_id': 1352547420, 'portfolio_id': 22289960}, {'photo_id': 1352547349, 'portfolio_id': 22289960}, {'photo_id': 1352547303, 'portfolio_id': 22289960}, {'photo_id': 1352547121, 'portfolio_id': 22289960}, {'photo_id': 1352547119, 'portfolio_id': 22289960}, {'photo_id': 1352547116, 'portfolio_id': 22289960}, {'photo_id': 1352547113, 'portfolio_id': 22289960}, {'photo_id': 1352546953, 'portfolio_id': 22289960}, {'photo_id': 1352546951, 'portfolio_id': 22289960}, {'photo_id': 1352546946, 'portfolio_id': 22289960}, {'photo_id': 1352546936, 'portfolio_id': 22289960}, {'photo_id': 1352546916, 'portfolio_id': 22289960}, {'photo_id': 1352546828, 'portfolio_id': 22289960}, {'photo_id': 1352546799, 'portfolio_id': 22289960}, {'photo_id': 1352546787, 'portfolio_id': 22289960}, {'photo_id': 1352546782, 'portfolio_id': 22289960}, {'photo_id': 1352546773, 'portfolio_id': 22289960}, {'photo_id': 1352546581, 'portfolio_id': 22289960}, {'photo_id': 1352546559, 'portfolio_id': 22289960}] map_portfolio_id_photo_id: {22289960: [1352548440, 1352548436, 1352548432, 1352548422, 1352548404, 1352548188, 1352548185, 1352548182, 1352548180, 1352548112, 1352548108, 1352548103, 1352548100, 1352548098, 1352548094, 1352547954, 1352547946, 1352547944, 1352547942, 1352547918, 1352547728, 1352547713, 1352547669, 1352547664, 1352547659, 1352547657, 1352547652, 1352547650, 1352547598, 1352547595, 1352547583, 1352547573, 1352547563, 1352547494, 1352547447, 1352547436, 1352547420, 1352547349, 1352547303, 1352547121, 1352547119, 1352547116, 1352547113, 1352546953, 1352546951, 1352546946, 1352546936, 1352546916, 1352546828, 1352546799, 1352546787, 1352546782, 1352546773, 1352546581, 1352546559]} ##### 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.014603853225708008 #### 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 Apr 22 08:28:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22289960) 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 : 22289960 get user id for portfolio 22289960 get sub ptf for main ptf 22289960, type 3726 and hashtags ['environnement', 'Carton_brun', 'plastique', 'cartonnette', 'kraft', 'metal', 'mal_croppe', 'autre_refus', 'Teint_Dans_La_Masse', 'papier', 'Carton_gris', 'flou'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22289960 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','plastique','cartonnette','kraft','metal','mal_croppe','autre_refus','Teint_Dans_La_Masse','papier','Carton_gris','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22289960 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','plastique','cartonnette','kraft','metal','mal_croppe','autre_refus','Teint_Dans_La_Masse','papier','Carton_gris','flou')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22289960, 'sub_port_id': 22289990, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753316, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 22289960, 'sub_port_id': 22289991, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753317, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 27)}, 'kraft': {'main_port_id': 22289960, 'sub_port_id': 22289992, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753318, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 27)}, 'Carton_brun': {'main_port_id': 22289960, 'sub_port_id': 22289993, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753319, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 27)}, 'papier': {'main_port_id': 22289960, 'sub_port_id': 22289994, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753320, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 27)}, 'autre_refus': {'main_port_id': 22289960, 'sub_port_id': 22289995, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753321, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 27)}, 'metal': {'main_port_id': 22289960, 'sub_port_id': 22289996, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753322, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 27)}, 'cartonnette': {'main_port_id': 22289960, 'sub_port_id': 22289997, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753323, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 27)}, 'mal_croppe': {'main_port_id': 22289960, 'sub_port_id': 22289998, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753324, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 27)}, 'plastique': {'main_port_id': 22289960, 'sub_port_id': 22289999, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753325, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 27)}, 'environnement': {'main_port_id': 22289960, 'sub_port_id': 22290000, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753326, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 27)}, 'Carton_gris': {'main_port_id': 22289960, 'sub_port_id': 22290001, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753327, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22289990 , 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=22289960 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 (22289990) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22289960) result : ((1352546559,), (1352546581,), (1352546773,), (1352546782,), (1352546787,), (1352546799,), (1352546828,), (1352546916,), (1352546936,), (1352546946,), (1352546951,), (1352546953,), (1352547113,), (1352547116,), (1352547119,), (1352547121,), (1352547303,), (1352547349,), (1352547420,), (1352547436,), (1352547447,), (1352547494,), (1352547563,), (1352547573,), (1352547583,), (1352547595,), (1352547598,), (1352547650,), (1352547652,), (1352547657,), (1352547659,), (1352547664,), (1352547669,), (1352547713,), (1352547728,), (1352547918,), (1352547942,), (1352547944,), (1352547946,), (1352547954,), (1352548094,), (1352548098,), (1352548100,), (1352548103,), (1352548108,), (1352548112,), (1352548180,), (1352548182,), (1352548185,), (1352548188,), (1352548404,), (1352548422,), (1352548432,), (1352548436,), (1352548440,)) 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 (1352548100) 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 22289991 , 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=22289960 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 (22289991) result : ((1352546913,), (1352546914,), (1352546915,), (1352547281,), (1352547429,), (1352547432,), (1352547433,), (1352547435,), (1352547947,), (1352547948,), (1352547949,), (1352548522,), (1352548523,), (1352548524,), (1352548525,), (1352548553,), (1352548555,), (1352548602,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22289960) result : ((1352546559,), (1352546581,), (1352546773,), (1352546782,), (1352546787,), (1352546799,), (1352546828,), (1352546916,), (1352546936,), (1352546946,), (1352546951,), (1352546953,), (1352547113,), (1352547116,), (1352547119,), (1352547121,), (1352547303,), (1352547349,), (1352547420,), (1352547436,), (1352547447,), (1352547494,), (1352547563,), (1352547573,), (1352547583,), (1352547595,), (1352547598,), (1352547650,), (1352547652,), (1352547657,), (1352547659,), (1352547664,), (1352547669,), (1352547713,), (1352547728,), (1352547918,), (1352547942,), (1352547944,), (1352547946,), (1352547954,), (1352548094,), (1352548098,), (1352548100,), (1352548103,), (1352548108,), (1352548112,), (1352548180,), (1352548182,), (1352548185,), (1352548188,), (1352548404,), (1352548422,), (1352548432,), (1352548436,), (1352548440,)) 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 (1352548100) 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 22289992 , 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=22289960 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 (22289992) result : ((1352546935,), (1352547449,), (1352547817,), (1352547818,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22289960) result : ((1352546559,), (1352546581,), (1352546773,), (1352546782,), (1352546787,), (1352546799,), (1352546828,), (1352546916,), (1352546936,), (1352546946,), (1352546951,), (1352546953,), (1352547113,), (1352547116,), (1352547119,), (1352547121,), (1352547303,), (1352547349,), (1352547420,), (1352547436,), (1352547447,), (1352547494,), (1352547563,), (1352547573,), (1352547583,), (1352547595,), (1352547598,), (1352547650,), (1352547652,), (1352547657,), (1352547659,), (1352547664,), (1352547669,), (1352547713,), (1352547728,), (1352547918,), (1352547942,), (1352547944,), (1352547946,), (1352547954,), (1352548094,), (1352548098,), (1352548100,), (1352548103,), (1352548108,), (1352548112,), (1352548180,), (1352548182,), (1352548185,), (1352548188,), (1352548404,), (1352548422,), (1352548432,), (1352548436,), (1352548440,)) 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 (1352548100) 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 22289993 , 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=22289960 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 (22289993) result : ((1352546926,), (1352547443,), (1352547444,), (1352548194,), (1352548195,), (1352548529,), (1352548530,), (1352548531,), (1352548604,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22289960) result : ((1352546559,), (1352546581,), (1352546773,), (1352546782,), (1352546787,), (1352546799,), (1352546828,), (1352546916,), (1352546936,), (1352546946,), (1352546951,), (1352546953,), (1352547113,), (1352547116,), (1352547119,), (1352547121,), (1352547303,), (1352547349,), (1352547420,), (1352547436,), (1352547447,), (1352547494,), (1352547563,), (1352547573,), (1352547583,), (1352547595,), (1352547598,), (1352547650,), (1352547652,), (1352547657,), (1352547659,), (1352547664,), (1352547669,), (1352547713,), (1352547728,), (1352547918,), (1352547942,), (1352547944,), (1352547946,), (1352547954,), (1352548094,), (1352548098,), (1352548100,), (1352548103,), (1352548108,), (1352548112,), (1352548180,), (1352548182,), (1352548185,), (1352548188,), (1352548404,), (1352548422,), (1352548432,), (1352548436,), (1352548440,)) 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 (1352548100) 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 22289994 , 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=22289960 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 (22289994) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22289960) result : ((1352546559,), (1352546581,), (1352546773,), (1352546782,), (1352546787,), (1352546799,), (1352546828,), (1352546916,), (1352546936,), (1352546946,), (1352546951,), (1352546953,), (1352547113,), (1352547116,), (1352547119,), (1352547121,), (1352547303,), (1352547349,), (1352547420,), (1352547436,), (1352547447,), (1352547494,), (1352547563,), (1352547573,), (1352547583,), (1352547595,), (1352547598,), (1352547650,), (1352547652,), (1352547657,), (1352547659,), (1352547664,), (1352547669,), (1352547713,), (1352547728,), (1352547918,), (1352547942,), (1352547944,), (1352547946,), (1352547954,), (1352548094,), (1352548098,), (1352548100,), (1352548103,), (1352548108,), (1352548112,), (1352548180,), (1352548182,), (1352548185,), (1352548188,), (1352548404,), (1352548422,), (1352548432,), (1352548436,), (1352548440,)) 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 (1352548100) 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 22289995 , 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=22289960 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 (22289995) result : ((1352546918,), (1352547282,), (1352547437,), (1352547438,), (1352548527,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22289960) result : ((1352546559,), (1352546581,), (1352546773,), (1352546782,), (1352546787,), (1352546799,), (1352546828,), (1352546916,), (1352546936,), (1352546946,), (1352546951,), (1352546953,), (1352547113,), (1352547116,), (1352547119,), (1352547121,), (1352547303,), (1352547349,), (1352547420,), (1352547436,), (1352547447,), (1352547494,), (1352547563,), (1352547573,), (1352547583,), (1352547595,), (1352547598,), (1352547650,), (1352547652,), (1352547657,), (1352547659,), (1352547664,), (1352547669,), (1352547713,), (1352547728,), (1352547918,), (1352547942,), (1352547944,), (1352547946,), (1352547954,), (1352548094,), (1352548098,), (1352548100,), (1352548103,), (1352548108,), (1352548112,), (1352548180,), (1352548182,), (1352548185,), (1352548188,), (1352548404,), (1352548422,), (1352548432,), (1352548436,), (1352548440,)) 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 (1352548100) 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 22289996 , 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=22289960 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 (22289996) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22289960) result : ((1352546559,), (1352546581,), (1352546773,), (1352546782,), (1352546787,), (1352546799,), (1352546828,), (1352546916,), (1352546936,), (1352546946,), (1352546951,), (1352546953,), (1352547113,), (1352547116,), (1352547119,), (1352547121,), (1352547303,), (1352547349,), (1352547420,), (1352547436,), (1352547447,), (1352547494,), (1352547563,), (1352547573,), (1352547583,), (1352547595,), (1352547598,), (1352547650,), (1352547652,), (1352547657,), (1352547659,), (1352547664,), (1352547669,), (1352547713,), (1352547728,), (1352547918,), (1352547942,), (1352547944,), (1352547946,), (1352547954,), (1352548094,), (1352548098,), (1352548100,), (1352548103,), (1352548108,), (1352548112,), (1352548180,), (1352548182,), (1352548185,), (1352548188,), (1352548404,), (1352548422,), (1352548432,), (1352548436,), (1352548440,)) 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 (1352548100) 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 22289997 , 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=22289960 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 (22289997) result : ((1352547654,), (1352547815,), (1352547953,), (1352548561,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22289960) result : ((1352546559,), (1352546581,), (1352546773,), (1352546782,), (1352546787,), (1352546799,), (1352546828,), (1352546916,), (1352546936,), (1352546946,), (1352546951,), (1352546953,), (1352547113,), (1352547116,), (1352547119,), (1352547121,), (1352547303,), (1352547349,), (1352547420,), (1352547436,), (1352547447,), (1352547494,), (1352547563,), (1352547573,), (1352547583,), (1352547595,), (1352547598,), (1352547650,), (1352547652,), (1352547657,), (1352547659,), (1352547664,), (1352547669,), (1352547713,), (1352547728,), (1352547918,), (1352547942,), (1352547944,), (1352547946,), (1352547954,), (1352548094,), (1352548098,), (1352548100,), (1352548103,), (1352548108,), (1352548112,), (1352548180,), (1352548182,), (1352548185,), (1352548188,), (1352548404,), (1352548422,), (1352548432,), (1352548436,), (1352548440,)) 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 (1352548100) 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 22289998 , 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=22289960 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 (22289998) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22289960) result : ((1352546559,), (1352546581,), (1352546773,), (1352546782,), (1352546787,), (1352546799,), (1352546828,), (1352546916,), (1352546936,), (1352546946,), (1352546951,), (1352546953,), (1352547113,), (1352547116,), (1352547119,), (1352547121,), (1352547303,), (1352547349,), (1352547420,), (1352547436,), (1352547447,), (1352547494,), (1352547563,), (1352547573,), (1352547583,), (1352547595,), (1352547598,), (1352547650,), (1352547652,), (1352547657,), (1352547659,), (1352547664,), (1352547669,), (1352547713,), (1352547728,), (1352547918,), (1352547942,), (1352547944,), (1352547946,), (1352547954,), (1352548094,), (1352548098,), (1352548100,), (1352548103,), (1352548108,), (1352548112,), (1352548180,), (1352548182,), (1352548185,), (1352548188,), (1352548404,), (1352548422,), (1352548432,), (1352548436,), (1352548440,)) 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 (1352548100) 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 22289999 , 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=22289960 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 (22289999) result : ((1352546931,), (1352547446,), (1352547655,), (1352547656,), (1352548196,), (1352548197,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22289960) result : ((1352546559,), (1352546581,), (1352546773,), (1352546782,), (1352546787,), (1352546799,), (1352546828,), (1352546916,), (1352546936,), (1352546946,), (1352546951,), (1352546953,), (1352547113,), (1352547116,), (1352547119,), (1352547121,), (1352547303,), (1352547349,), (1352547420,), (1352547436,), (1352547447,), (1352547494,), (1352547563,), (1352547573,), (1352547583,), (1352547595,), (1352547598,), (1352547650,), (1352547652,), (1352547657,), (1352547659,), (1352547664,), (1352547669,), (1352547713,), (1352547728,), (1352547918,), (1352547942,), (1352547944,), (1352547946,), (1352547954,), (1352548094,), (1352548098,), (1352548100,), (1352548103,), (1352548108,), (1352548112,), (1352548180,), (1352548182,), (1352548185,), (1352548188,), (1352548404,), (1352548422,), (1352548432,), (1352548436,), (1352548440,)) 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 (1352548100) 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 22290000 , 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=22289960 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 (22290000) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22289960) result : ((1352546559,), (1352546581,), (1352546773,), (1352546782,), (1352546787,), (1352546799,), (1352546828,), (1352546916,), (1352546936,), (1352546946,), (1352546951,), (1352546953,), (1352547113,), (1352547116,), (1352547119,), (1352547121,), (1352547303,), (1352547349,), (1352547420,), (1352547436,), (1352547447,), (1352547494,), (1352547563,), (1352547573,), (1352547583,), (1352547595,), (1352547598,), (1352547650,), (1352547652,), (1352547657,), (1352547659,), (1352547664,), (1352547669,), (1352547713,), (1352547728,), (1352547918,), (1352547942,), (1352547944,), (1352547946,), (1352547954,), (1352548094,), (1352548098,), (1352548100,), (1352548103,), (1352548108,), (1352548112,), (1352548180,), (1352548182,), (1352548185,), (1352548188,), (1352548404,), (1352548422,), (1352548432,), (1352548436,), (1352548440,)) 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 (1352548100) 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 22290001 , 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=22289960 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 (22290001) result : ((1352547283,), (1352547284,), (1352547439,), (1352547653,), (1352547813,), (1352547951,), (1352548190,), (1352548191,), (1352548528,), (1352548558,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22289960) result : ((1352546559,), (1352546581,), (1352546773,), (1352546782,), (1352546787,), (1352546799,), (1352546828,), (1352546916,), (1352546936,), (1352546946,), (1352546951,), (1352546953,), (1352547113,), (1352547116,), (1352547119,), (1352547121,), (1352547303,), (1352547349,), (1352547420,), (1352547436,), (1352547447,), (1352547494,), (1352547563,), (1352547573,), (1352547583,), (1352547595,), (1352547598,), (1352547650,), (1352547652,), (1352547657,), (1352547659,), (1352547664,), (1352547669,), (1352547713,), (1352547728,), (1352547918,), (1352547942,), (1352547944,), (1352547946,), (1352547954,), (1352548094,), (1352548098,), (1352548100,), (1352548103,), (1352548108,), (1352548112,), (1352548180,), (1352548182,), (1352548185,), (1352548188,), (1352548404,), (1352548422,), (1352548432,), (1352548436,), (1352548440,)) 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 (1352548100) 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`=22289960 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','plastique','cartonnette','kraft','metal','mal_croppe','autre_refus','Teint_Dans_La_Masse','papier','Carton_gris','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22289960 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','plastique','cartonnette','kraft','metal','mal_croppe','autre_refus','Teint_Dans_La_Masse','papier','Carton_gris','flou')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22289960, 'sub_port_id': 22290002, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753328, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 22289960, 'sub_port_id': 22290003, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753329, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 29)}, 'kraft': {'main_port_id': 22289960, 'sub_port_id': 22290004, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753330, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 29)}, 'Carton_brun': {'main_port_id': 22289960, 'sub_port_id': 22290005, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753331, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 29)}, 'papier': {'main_port_id': 22289960, 'sub_port_id': 22290006, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753332, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 29)}, 'autre_refus': {'main_port_id': 22289960, 'sub_port_id': 22290007, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753333, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 29)}, 'metal': {'main_port_id': 22289960, 'sub_port_id': 22290008, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753334, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 29)}, 'cartonnette': {'main_port_id': 22289960, 'sub_port_id': 22290009, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753335, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 29)}, 'mal_croppe': {'main_port_id': 22289960, 'sub_port_id': 22290010, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753336, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 29)}, 'plastique': {'main_port_id': 22289960, 'sub_port_id': 22290011, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753337, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 29)}, 'environnement': {'main_port_id': 22289960, 'sub_port_id': 22290012, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753338, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 29)}, 'Carton_gris': {'main_port_id': 22289960, 'sub_port_id': 22290013, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14753339, 'last_updated_at': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 8, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 8, 19, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22290002,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22289990 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22290003,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22289991 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22290004,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22289992 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22290005,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22289993 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22290006,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22289994 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22290007,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22289995 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22290008,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22289996 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22290009,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22289997 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22290010,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22289998 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22290011,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22289999 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22290012,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22290000 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22290013,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22290001 lien utilise dans velours : https://www.fotonower.com/velours/22290002,22290003,22290004,22290005,22290006,22290007,22290008,22290009,22290010,22290011,22290012,22290013?tags=flou,Teint_Dans_La_Masse,kraft,Carton_brun,papier,autre_refus,metal,cartonnette,mal_croppe,plastique,environnement,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22289960]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1352548440, 1352548436, 1352548432, 1352548422, 1352548404] map_info['map_portfolio_photo'] : {22289960: [1352548440, 1352548436, 1352548432, 1352548422, 1352548404, 1352548188, 1352548185, 1352548182, 1352548180, 1352548112, 1352548108, 1352548103, 1352548100, 1352548098, 1352548094, 1352547954, 1352547946, 1352547944, 1352547942, 1352547918, 1352547728, 1352547713, 1352547669, 1352547664, 1352547659, 1352547657, 1352547652, 1352547650, 1352547598, 1352547595, 1352547583, 1352547573, 1352547563, 1352547494, 1352547447, 1352547436, 1352547420, 1352547349, 1352547303, 1352547121, 1352547119, 1352547116, 1352547113, 1352546953, 1352546951, 1352546946, 1352546936, 1352546916, 1352546828, 1352546799, 1352546787, 1352546782, 1352546773, 1352546581, 1352546559]} final : False mtd_id 4302 list_pids : [1352548440, 1352548436, 1352548432, 1352548422, 1352548404] Looping around the photos to save general results len do output : 1 /22289960. 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, '2747248') ('4302', '22289960', '1352548440', None, None, None, None, None, '2747248') ('4302', None, None, None, None, None, None, None, '2747248') ('4302', '22289960', '1352548436', None, None, None, None, None, '2747248') ('4302', None, None, None, None, None, None, None, '2747248') ('4302', '22289960', '1352548432', None, None, None, None, None, '2747248') ('4302', None, None, None, None, None, None, None, '2747248') ('4302', '22289960', '1352548422', None, None, None, None, None, '2747248') ('4302', None, None, None, None, None, None, None, '2747248') ('4302', '22289960', '1352548404', None, None, None, None, None, '2747248') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '22289960', "{'flou': 22289990, 'Teint_Dans_La_Masse': 22289991, 'kraft': 22289992, 'Carton_brun': 22289993, 'papier': 22289994, 'autre_refus': 22289995, 'metal': 22289996, 'cartonnette': 22289997, 'mal_croppe': 22289998, 'plastique': 22289999, 'environnement': 22290000, 'Carton_gris': 22290001}", None, None, None, None, '2747248'), ('4302', '22289960', '1352548440', None, None, None, None, None, '2747248'), ('4302', '22289960', '1352548436', None, None, None, None, None, '2747248'), ('4302', '22289960', '1352548432', None, None, None, None, None, '2747248'), ('4302', '22289960', '1352548422', None, None, None, None, None, '2747248'), ('4302', '22289960', '1352548404', None, None, None, None, None, '2747248')] time used for this insertion : 0.013904809951782227 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.548187255859375 time spend to save output : 0.014221429824829102 total time spend for step 1 : 0.5624086856842041 step2:final Tue Apr 22 08:28:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (22289960) 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 22289960 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1352546581,1352546828,1352546559,1352546799,1352546787,1352546782,1352546773,1352546953,1352546951,1352546946,1352546936,1352546916,1352547121,1352547119,1352547116,1352547113,1352547494,1352547447,1352547436,1352547420,1352547349,1352547303,1352547598,1352547595,1352547583,1352547573,1352547563,1352547669,1352547664,1352547659,1352547657,1352547652,1352547650,1352547728,1352547713,1352547954,1352547946,1352547944,1352547942,1352547918,1352548112,1352548108,1352548103,1352548100,1352548098,1352548094,1352548188,1352548185,1352548182,1352548180,1352548440,1352548436,1352548432,1352548422,1352548404); 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([22289960]) Inside saveOutput : final : False verbose : True original output for save of step final : {1352548440: ('0.05627010172651926',), 1352548436: ('0.05627010172651926',), 1352548432: ('0.05627010172651926',), 1352548422: ('0.05627010172651926',), 1352548404: ('0.05627010172651926',)} new output for save of step final : {1352548440: ('0.05627010172651926',), 1352548436: ('0.05627010172651926',), 1352548432: ('0.05627010172651926',), 1352548422: ('0.05627010172651926',), 1352548404: ('0.05627010172651926',)} [1352548440, 1352548436, 1352548432, 1352548422, 1352548404] map_info['map_portfolio_photo'] : {22289960: [1352548440, 1352548436, 1352548432, 1352548422, 1352548404, 1352548188, 1352548185, 1352548182, 1352548180, 1352548112, 1352548108, 1352548103, 1352548100, 1352548098, 1352548094, 1352547954, 1352547946, 1352547944, 1352547942, 1352547918, 1352547728, 1352547713, 1352547669, 1352547664, 1352547659, 1352547657, 1352547652, 1352547650, 1352547598, 1352547595, 1352547583, 1352547573, 1352547563, 1352547494, 1352547447, 1352547436, 1352547420, 1352547349, 1352547303, 1352547121, 1352547119, 1352547116, 1352547113, 1352546953, 1352546951, 1352546946, 1352546936, 1352546916, 1352546828, 1352546799, 1352546787, 1352546782, 1352546773, 1352546581, 1352546559]} final : False mtd_id 4302 list_pids : [1352548440, 1352548436, 1352548432, 1352548422, 1352548404] Looping around the photos to save general results len do output : 5 /1352548440.Didn't retrieve data . /1352548436.Didn't retrieve data . /1352548432.Didn't retrieve data . /1352548422.Didn't retrieve data . /1352548404.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, '2747248') ('4302', '22289960', '1352548440', None, None, None, None, None, '2747248') ('4302', None, None, None, None, None, None, None, '2747248') ('4302', '22289960', '1352548436', None, None, None, None, None, '2747248') ('4302', None, None, None, None, None, None, None, '2747248') ('4302', '22289960', '1352548432', None, None, None, None, None, '2747248') ('4302', None, None, None, None, None, None, None, '2747248') ('4302', '22289960', '1352548422', None, None, None, None, None, '2747248') ('4302', None, None, None, None, None, None, None, '2747248') ('4302', '22289960', '1352548404', None, None, None, None, None, '2747248') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '22289960', '1352548440', '0.05627010172651926', None, None, None, None, '2747248'), ('4302', '22289960', '1352548436', '0.05627010172651926', None, None, None, None, '2747248'), ('4302', '22289960', '1352548432', '0.05627010172651926', None, None, None, None, '2747248'), ('4302', '22289960', '1352548422', '0.05627010172651926', None, None, None, None, '2747248'), ('4302', '22289960', '1352548404', '0.05627010172651926', None, None, None, None, '2747248')] time used for this insertion : 0.01268768310546875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0718073844909668 time spend to save output : 0.013047218322753906 total time spend for step 2 : 0.0848546028137207 step3:velours_tree Tue Apr 22 08:28:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {22289960: [{'flou': 22289990, 'Teint_Dans_La_Masse': 22289991, 'kraft': 22289992, 'Carton_brun': 22289993, 'papier': 22289994, 'autre_refus': 22289995, 'metal': 22289996, 'cartonnette': 22289997, 'mal_croppe': 22289998, 'plastique': 22289999, 'environnement': 22290000, 'Carton_gris': 22290001}]} input_args_next_step : {22289960: ()} output_args : {22289960: [{'flou': 22289990, 'Teint_Dans_La_Masse': 22289991, 'kraft': 22289992, 'Carton_brun': 22289993, 'papier': 22289994, 'autre_refus': 22289995, 'metal': 22289996, 'cartonnette': 22289997, 'mal_croppe': 22289998, 'plastique': 22289999, 'environnement': 22290000, 'Carton_gris': 22290001}]} args : 22289960 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 : ({'flou': 22289990, 'Teint_Dans_La_Masse': 22289991, 'kraft': 22289992, 'Carton_brun': 22289993, 'papier': 22289994, 'autre_refus': 22289995, 'metal': 22289996, 'cartonnette': 22289997, 'mal_croppe': 22289998, 'plastique': 22289999, 'environnement': 22290000, 'Carton_gris': 22290001},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22289960) 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([22289960]) 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.313159704208374 time spend to save output : 5.91278076171875e-05 total time spend for step 3 : 0.3132188320159912 step4:send_mail_cod Tue Apr 22 08:28:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1352548440: ('0.05627010172651926',), 1352548436: ('0.05627010172651926',), 1352548432: ('0.05627010172651926',), 1352548422: ('0.05627010172651926',), 1352548404: ('0.05627010172651926',)} input_args_next_step : {1352548440: ()} output_args : {1352548440: ('0.05627010172651926',), 1352548436: ('0.05627010172651926',), 1352548432: ('0.05627010172651926',), 1352548422: ('0.05627010172651926',), 1352548404: ('0.05627010172651926',)} args : 1352548440 depend.output_id : 0 input_args_next_step : {1352548440: ('0.05627010172651926',), 1352548436: ()} output_args : {1352548440: ('0.05627010172651926',), 1352548436: ('0.05627010172651926',), 1352548432: ('0.05627010172651926',), 1352548422: ('0.05627010172651926',), 1352548404: ('0.05627010172651926',)} args : 1352548436 depend.output_id : 0 input_args_next_step : {1352548440: ('0.05627010172651926',), 1352548436: ('0.05627010172651926',), 1352548432: ()} output_args : {1352548440: ('0.05627010172651926',), 1352548436: ('0.05627010172651926',), 1352548432: ('0.05627010172651926',), 1352548422: ('0.05627010172651926',), 1352548404: ('0.05627010172651926',)} args : 1352548432 depend.output_id : 0 input_args_next_step : {1352548440: ('0.05627010172651926',), 1352548436: ('0.05627010172651926',), 1352548432: ('0.05627010172651926',), 1352548422: ()} output_args : {1352548440: ('0.05627010172651926',), 1352548436: ('0.05627010172651926',), 1352548432: ('0.05627010172651926',), 1352548422: ('0.05627010172651926',), 1352548404: ('0.05627010172651926',)} args : 1352548422 depend.output_id : 0 input_args_next_step : {1352548440: ('0.05627010172651926',), 1352548436: ('0.05627010172651926',), 1352548432: ('0.05627010172651926',), 1352548422: ('0.05627010172651926',), 1352548404: ()} output_args : {1352548440: ('0.05627010172651926',), 1352548436: ('0.05627010172651926',), 1352548432: ('0.05627010172651926',), 1352548422: ('0.05627010172651926',), 1352548404: ('0.05627010172651926',)} args : 1352548404 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 : {22289960: [{'flou': 22289990, 'Teint_Dans_La_Masse': 22289991, 'kraft': 22289992, 'Carton_brun': 22289993, 'papier': 22289994, 'autre_refus': 22289995, 'metal': 22289996, 'cartonnette': 22289997, 'mal_croppe': 22289998, 'plastique': 22289999, 'environnement': 22290000, 'Carton_gris': 22290001}]} input_args_next_step : {1352548440: ('0.05627010172651926',), 1352548436: ('0.05627010172651926',), 1352548432: ('0.05627010172651926',), 1352548422: ('0.05627010172651926',), 1352548404: ('0.05627010172651926',), 22289960: ()} output_args : {22289960: [{'flou': 22289990, 'Teint_Dans_La_Masse': 22289991, 'kraft': 22289992, 'Carton_brun': 22289993, 'papier': 22289994, 'autre_refus': 22289995, 'metal': 22289996, 'cartonnette': 22289997, 'mal_croppe': 22289998, 'plastique': 22289999, 'environnement': 22290000, 'Carton_gris': 22290001}]} args : 22289960 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 :6, first value : ('0.05627010172651926',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22289960) 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 (1352548440,1352548436,1352548432,1352548422,1352548404) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1352548404 begin to download photo : 1352548432 begin to download photo : 1352548440 download finish for photo 1352548440 download finish for photo 1352548404 begin to download photo : 1352548422 download finish for photo 1352548432 begin to download photo : 1352548436 download finish for photo 1352548422 download finish for photo 1352548436 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette222899901745303338/ length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P22289960_22-04-2025_08_28_58.pdf 22289990 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=22289990 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222899901745303338 22289992 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=22289992 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352546935: '1745302662_662460_1352546559_2d1c0e3f477b47787febe27bbba3fdfc_rle_crop_3762616861_0.png', 1352547449: '1745302782_667586_1352546799_e75533e352be132949d8b721b45b074d_rle_crop_3762617835_0.png', 1352547817: '1745302992_2911694_1352547573_8c8d3dcbbd618e4f61251fba2ab1d998_rle_crop_3762621505_0.png', 1352547818: '1745302992_2911694_1352547563_b943811c5bc2f5337c7010a0ddae34e7_rle_crop_3762621523_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/a90397ef34f21095cb118083f121c194_2435386.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/6ae5990e065174c97ff60985ba093bfb_51871324.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/84844eba56e5a92590362f43eba6641b_11284741.png change filename to text .imagette222899921745303338/ imagette222899921745303338/1745302992_2911694_1352547573_8c8d3dcbbd618e4f61251fba2ab1d998_rle_crop_3762621505_0.png.png imagette222899921745303338/1745302992_2911694_1352547563_b943811c5bc2f5337c7010a0ddae34e7_rle_crop_3762621523_0.png.png imagette222899921745303338/1745302662_662460_1352546559_2d1c0e3f477b47787febe27bbba3fdfc_rle_crop_3762616861_0.png.png imagette222899921745303338/1745302782_667586_1352546799_e75533e352be132949d8b721b45b074d_rle_crop_3762617835_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/4432cd98b837fcceb7ebaf44ae6fe999_2035111.png imagette222899921745303338 22289995 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=22289995 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352546918: '1745302662_662460_1352546559_2d1c0e3f477b47787febe27bbba3fdfc_rle_crop_3762616851_0.png', 1352547282: '1745302766_235355_1352546946_2aa00a809a4097628099d1dd867f7b2b_rle_crop_3762617553_0.png', 1352547437: '1745302782_667586_1352546799_e75533e352be132949d8b721b45b074d_rle_crop_3762617830_0.png', 1352547438: '1745302782_667586_1352546787_12c686d497317e714d58585d742cbab3_rle_crop_3762617841_0.png', 1352548527: '1745303231_2914400_1352548103_8cbd6277847a38e14a97b53d9831bbcb_rle_crop_3762624984_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/b45c4e1207dfa79a79f8a45687259d0b_47144383.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/71baf4f294a572670f26681c0df7a527_99819537.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/f27579dcd20a2700dfb015ea6da0a70a_81320283.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/4d18a301ee2c17a912bebedae009cb97_52116074.png change filename to text .imagette222899951745303338/ imagette222899951745303338/1745302766_235355_1352546946_2aa00a809a4097628099d1dd867f7b2b_rle_crop_3762617553_0.png.png imagette222899951745303338/1745302662_662460_1352546559_2d1c0e3f477b47787febe27bbba3fdfc_rle_crop_3762616851_0.png.png imagette222899951745303338/1745303231_2914400_1352548103_8cbd6277847a38e14a97b53d9831bbcb_rle_crop_3762624984_0.png.png imagette222899951745303338/1745302782_667586_1352546799_e75533e352be132949d8b721b45b074d_rle_crop_3762617830_0.png.png imagette222899951745303338/1745302782_667586_1352546787_12c686d497317e714d58585d742cbab3_rle_crop_3762617841_0.png.png imagette222899961745303338/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/1ce8e8a406a36812b4c46cf0a531da10_22033038.png imagette222899951745303338 22289996 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=22289996 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222899961745303338 22289997 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=22289997 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352547654: '1745302908_668668_1352547116_79a2bf8604674f354f3c76135b48e276_rle_crop_3762619788_0.png', 1352547815: '1745302992_2911694_1352547563_b943811c5bc2f5337c7010a0ddae34e7_rle_crop_3762621521_0.png', 1352547953: '1745303023_674694_1352547420_5c9d1ad0b20762b83fbffe718b051fd1_rle_crop_3762621807_0.png', 1352548561: '1745303263_680086_1352548185_d89b24ab07ad466b274279940d5ad432_rle_crop_3762625040_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/d1eb1ae163dfee1d1f6605b70519d31a_89380656.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/b5cf2b54f1ac5b26a7c505bfbd4e2a11_17854313.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/d2119ce43d8d6bbeb906c45a0ed9e39a_28037819.png change filename to text .imagette222899971745303338/ imagette222899971745303338/1745302992_2911694_1352547563_b943811c5bc2f5337c7010a0ddae34e7_rle_crop_3762621521_0.png.png imagette222899971745303338/1745302908_668668_1352547116_79a2bf8604674f354f3c76135b48e276_rle_crop_3762619788_0.png.png imagette222899971745303338/1745303263_680086_1352548185_d89b24ab07ad466b274279940d5ad432_rle_crop_3762625040_0.png.png imagette222899971745303338/1745303023_674694_1352547420_5c9d1ad0b20762b83fbffe718b051fd1_rle_crop_3762621807_0.png.png imagette222899981745303339/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/6966323b47285af97c03cb7725314245_59772460.png imagette222899971745303338 22289998 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=22289998 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222899981745303339 22289999 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=22289999 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352546931: '1745302662_662460_1352546581_f073e7d677d621c55420b0e4f420672c_rle_crop_3762616841_0.png', 1352547446: '1745302782_667586_1352546953_d4cf5c77b5ae219b0ff2b842a19f7e60_rle_crop_3762617812_0.png', 1352547655: '1745302908_668668_1352547119_52b99caa071e9b0a17c73be6cd406df3_rle_crop_3762619764_0.png', 1352547656: '1745302908_668668_1352547116_79a2bf8604674f354f3c76135b48e276_rle_crop_3762619790_0.png', 1352548196: '1745303145_677443_1352547657_f0498555ef3ba61126d576ed38a3d175_rle_crop_3762623290_0.png', 1352548197: '1745303145_677443_1352547652_f7edcb4f67baeb15f87b8955ecca8f33_rle_crop_3762624216_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/21b0ecbc2e0d4913896f91a68c89607c_95311683.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/73841f2856bd344b2254d8f81e7d9fd9_91324279.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/4286a85fe0e7e94d4ac7c382bb5798e2_79809007.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/d8a0161f698a0f7e9da146867732ea51_52777712.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/cf12a7debc5e6385f92bcec2a39fb4f1_12577640.png change filename to text .imagette222899991745303339/ imagette222899991745303339/1745302908_668668_1352547116_79a2bf8604674f354f3c76135b48e276_rle_crop_3762619790_0.png.png imagette222899991745303339/1745302662_662460_1352546581_f073e7d677d621c55420b0e4f420672c_rle_crop_3762616841_0.png.png imagette222899991745303339/1745302782_667586_1352546953_d4cf5c77b5ae219b0ff2b842a19f7e60_rle_crop_3762617812_0.png.png imagette222899991745303339/1745302908_668668_1352547119_52b99caa071e9b0a17c73be6cd406df3_rle_crop_3762619764_0.png.png imagette222899991745303339/1745303145_677443_1352547657_f0498555ef3ba61126d576ed38a3d175_rle_crop_3762623290_0.png.png imagette222899991745303339/1745303145_677443_1352547652_f7edcb4f67baeb15f87b8955ecca8f33_rle_crop_3762624216_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/7dd34e50a602e0c1a59d6f6761771f94_92790054.png imagette222899991745303339 22289991 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=22289991 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352547948: '1745303023_674694_1352547420_5c9d1ad0b20762b83fbffe718b051fd1_rle_crop_3762621813_0.png', 1352548602: '1745303293_2915052_1352547954_098bd0a3b61a47f3616cc6dbebaf03ca_rle_crop_3762624282_0.png', 1352548555: '1745303263_680086_1352548182_b547c31e49c30ec23f505a1ae2d80966_rle_crop_3762625056_0.png', 1352548553: '1745303263_680086_1352548185_d89b24ab07ad466b274279940d5ad432_rle_crop_3762625045_0.png', 1352548525: '1745303231_2914400_1352548098_ed85dfd4730f9a68a85fb3de77e8553d_rle_crop_3762625023_0.png', 1352548524: '1745303231_2914400_1352548100_19680f1dd9d607ff526403327fbea69a_rle_crop_3762625002_0.png', 1352548523: '1745303231_2914400_1352548103_8cbd6277847a38e14a97b53d9831bbcb_rle_crop_3762624988_0.png', 1352548522: '1745303231_2914400_1352548188_c43610b19a727c10bcb718d2c788bf5f_rle_crop_3762624859_0.png', 1352547949: '1745303023_674694_1352547349_f60295c9b8ee05c99dbc060b3b56f11f_rle_crop_3762621826_0.png', 1352546913: '1745302662_662460_1352546559_2d1c0e3f477b47787febe27bbba3fdfc_rle_crop_3762616862_0.png', 1352547947: '1745303023_674694_1352547598_ae40a942b47b60c39e1196701d7231ab_rle_crop_3762621667_0.png', 1352547435: '1745302782_667586_1352546773_c4ffffb2a0b23621b640b645475aabb4_rle_crop_3762617872_0.png', 1352547433: '1745302782_667586_1352546773_c4ffffb2a0b23621b640b645475aabb4_rle_crop_3762617870_0.png', 1352547432: '1745302782_667586_1352546782_1e6c3e3f5cb882a31bb9f7e35510b4b0_rle_crop_3762617858_0.png', 1352547429: '1745302782_667586_1352546799_e75533e352be132949d8b721b45b074d_rle_crop_3762617834_0.png', 1352547281: '1745302766_235355_1352546946_2aa00a809a4097628099d1dd867f7b2b_rle_crop_3762617557_0.png', 1352546915: '1745302662_662460_1352546559_2d1c0e3f477b47787febe27bbba3fdfc_rle_crop_3762616856_0.png', 1352546914: '1745302662_662460_1352546559_2d1c0e3f477b47787febe27bbba3fdfc_rle_crop_3762616853_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/cfd927e95706d1e3d34635116e145985_49757374.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/cb0c5f3289a0d365c49edd371cd0d920_21808765.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/b76b88636f39efb31a84cb5d1270af89_79882878.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/c15b75cb4748f4416fbe7207952f4515_51519453.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/2edee138d15bf9d15e6f4fac9ec9e38a_35850630.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/2eb48d4359507f2804746910c8a687c6_52465087.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/5ec68cbfd6d50629947d18b3bef69320_64291599.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/2d154f1e0fc1e41289f7d1db59b3be63_62079492.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/339d4c9882b75effff7957a804364487_91160944.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/414e99b3defd77cf9671db0ee54c8d08_34912409.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/9ef2438be779ab1b7e7c571c769c680a_25615475.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/100caa74958f40d871c7167c017561fe_28903081.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/9d724757112d1732bf2d4a05704963a1_96519587.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/a3d19d25454cd2d4bdf91a9ca60ee832_99579333.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/1c7b78f687170b8fa8a0da477061d6f0_97354555.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/a9e020654967936e7a3f8041e34e6784_53919046.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/d0c2c047c7fe9bb57f8b5509ece085e2_59243365.png change filename to text .imagette222899911745303339/ imagette222899911745303339/1745303263_680086_1352548185_d89b24ab07ad466b274279940d5ad432_rle_crop_3762625045_0.png.png imagette222899911745303339/1745302662_662460_1352546559_2d1c0e3f477b47787febe27bbba3fdfc_rle_crop_3762616856_0.png.png imagette222899911745303339/1745303293_2915052_1352547954_098bd0a3b61a47f3616cc6dbebaf03ca_rle_crop_3762624282_0.png.png imagette222899911745303339/1745302782_667586_1352546773_c4ffffb2a0b23621b640b645475aabb4_rle_crop_3762617872_0.png.png imagette222899911745303339/1745303023_674694_1352547598_ae40a942b47b60c39e1196701d7231ab_rle_crop_3762621667_0.png.png imagette222899911745303339/1745303263_680086_1352548182_b547c31e49c30ec23f505a1ae2d80966_rle_crop_3762625056_0.png.png imagette222899911745303339/1745302782_667586_1352546773_c4ffffb2a0b23621b640b645475aabb4_rle_crop_3762617870_0.png.png imagette222899911745303339/1745302782_667586_1352546782_1e6c3e3f5cb882a31bb9f7e35510b4b0_rle_crop_3762617858_0.png.png imagette222899911745303339/1745302782_667586_1352546799_e75533e352be132949d8b721b45b074d_rle_crop_3762617834_0.png.png imagette222899911745303339/1745303231_2914400_1352548100_19680f1dd9d607ff526403327fbea69a_rle_crop_3762625002_0.png.png imagette222899911745303339/1745302662_662460_1352546559_2d1c0e3f477b47787febe27bbba3fdfc_rle_crop_3762616853_0.png.png imagette222899911745303339/1745303231_2914400_1352548103_8cbd6277847a38e14a97b53d9831bbcb_rle_crop_3762624988_0.png.png imagette222899911745303339/1745303231_2914400_1352548098_ed85dfd4730f9a68a85fb3de77e8553d_rle_crop_3762625023_0.png.png imagette222899911745303339/1745303023_674694_1352547349_f60295c9b8ee05c99dbc060b3b56f11f_rle_crop_3762621826_0.png.png imagette222899911745303339/1745302662_662460_1352546559_2d1c0e3f477b47787febe27bbba3fdfc_rle_crop_3762616862_0.png.png imagette222899911745303339/1745303023_674694_1352547420_5c9d1ad0b20762b83fbffe718b051fd1_rle_crop_3762621813_0.png.png imagette222899911745303339/1745302766_235355_1352546946_2aa00a809a4097628099d1dd867f7b2b_rle_crop_3762617557_0.png.png imagette222899911745303339/1745303231_2914400_1352548188_c43610b19a727c10bcb718d2c788bf5f_rle_crop_3762624859_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/f02ae0946e8c17f9faeba90afd44d4fd_83029927.png imagette222899911745303339 22289993 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=22289993 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352546926: '1745302662_662460_1352546559_2d1c0e3f477b47787febe27bbba3fdfc_rle_crop_3762616855_0.png', 1352547443: '1745302782_667586_1352546799_e75533e352be132949d8b721b45b074d_rle_crop_3762617831_0.png', 1352547444: '1745302782_667586_1352546782_1e6c3e3f5cb882a31bb9f7e35510b4b0_rle_crop_3762617857_0.png', 1352548194: '1745303145_677443_1352547659_a4cff3e8b2bd9f66d602f73c8ccf4360_rle_crop_3762623274_0.png', 1352548195: '1745303145_677443_1352547650_3b6f22997aec415db3d634c30aa9cd0e_rle_crop_3762624232_0.png', 1352548529: '1745303231_2914400_1352548188_c43610b19a727c10bcb718d2c788bf5f_rle_crop_3762624857_0.png', 1352548530: '1745303231_2914400_1352548100_19680f1dd9d607ff526403327fbea69a_rle_crop_3762625007_0.png', 1352548531: '1745303231_2914400_1352548098_ed85dfd4730f9a68a85fb3de77e8553d_rle_crop_3762625021_0.png', 1352548604: '1745303293_2915052_1352547954_098bd0a3b61a47f3616cc6dbebaf03ca_rle_crop_3762624281_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/9ac262ccc75630d0392a8dfd01bd150a_97868122.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/9c24fe4ff85b7dec61f3095e45256fe2_64014668.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/0fc06884a343e004e11d362ee63e4032_6235325.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/0eadcef7bbb3b8bd32d1a25ca7e319bf_63028021.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/b39e28ff6be6544e9a2a30721ea32bfc_61527756.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/62956bbaa4ccfcaada05c40bf49fa0c8_42047211.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/c93f2633c755d52faf80214048e86a75_10340651.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/f01cc09b4dfcaa913e43c163b41e73e8_49119157.png change filename to text .imagette222899931745303340/ imagette222899931745303340/1745302782_667586_1352546799_e75533e352be132949d8b721b45b074d_rle_crop_3762617831_0.png.png imagette222899931745303340/1745303231_2914400_1352548098_ed85dfd4730f9a68a85fb3de77e8553d_rle_crop_3762625021_0.png.png imagette222899931745303340/1745303231_2914400_1352548100_19680f1dd9d607ff526403327fbea69a_rle_crop_3762625007_0.png.png imagette222899931745303340/1745303231_2914400_1352548188_c43610b19a727c10bcb718d2c788bf5f_rle_crop_3762624857_0.png.png imagette222899931745303340/1745302662_662460_1352546559_2d1c0e3f477b47787febe27bbba3fdfc_rle_crop_3762616855_0.png.png imagette222899931745303340/1745302782_667586_1352546782_1e6c3e3f5cb882a31bb9f7e35510b4b0_rle_crop_3762617857_0.png.png imagette222899931745303340/1745303145_677443_1352547659_a4cff3e8b2bd9f66d602f73c8ccf4360_rle_crop_3762623274_0.png.png imagette222899931745303340/1745303145_677443_1352547650_3b6f22997aec415db3d634c30aa9cd0e_rle_crop_3762624232_0.png.png imagette222899931745303340/1745303293_2915052_1352547954_098bd0a3b61a47f3616cc6dbebaf03ca_rle_crop_3762624281_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/fab2756574e5d2c8ca912632d9d4ed4d_32424420.png imagette222899931745303340 22290001 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=22290001 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352547283: '1745302766_235355_1352546951_e1e748ef374a18bf27bb9950c40b1949_rle_crop_3762617525_0.png', 1352547284: '1745302766_235355_1352546951_e1e748ef374a18bf27bb9950c40b1949_rle_crop_3762617522_0.png', 1352547439: '1745302782_667586_1352546953_d4cf5c77b5ae219b0ff2b842a19f7e60_rle_crop_3762617813_0.png', 1352547653: '1745302908_668668_1352547119_52b99caa071e9b0a17c73be6cd406df3_rle_crop_3762619760_0.png', 1352547813: '1745302992_2911694_1352547563_b943811c5bc2f5337c7010a0ddae34e7_rle_crop_3762621520_0.png', 1352547951: '1745303023_674694_1352547447_58d47159de07386198cf9223d02ea030_rle_crop_3762621725_0.png', 1352548190: '1745303145_677443_1352547659_a4cff3e8b2bd9f66d602f73c8ccf4360_rle_crop_3762623273_0.png', 1352548191: '1745303145_677443_1352547652_f7edcb4f67baeb15f87b8955ecca8f33_rle_crop_3762624218_0.png', 1352548528: '1745303231_2914400_1352548103_8cbd6277847a38e14a97b53d9831bbcb_rle_crop_3762624981_0.png', 1352548558: '1745303263_680086_1352548182_b547c31e49c30ec23f505a1ae2d80966_rle_crop_3762625051_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/02f5653229f74aa042a2e602fe8f0ef8_63712800.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/bb351aae3e59fefd85e25dad4e0f6634_30756896.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/5541151913b6c4a70b58b5cc124bfb0d_56027484.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/b2c8343ecd1bbda24fdc6ee8be22d37f_91050675.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/e91b8c3bbc20d50be27488ba70911d30_72369407.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/f02d54b3e1e6c6b13f87a7e22f3d9713_55214290.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/7d975d994ddf7a5a18d39201683a3122_78654340.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/7025bf72320af68c8a14b01a90ae2ab5_69509864.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/73769ffa1da27b0cbf303c6e944877e3_88631312.png change filename to text .imagette222900011745303341/ imagette222900011745303341/1745302766_235355_1352546951_e1e748ef374a18bf27bb9950c40b1949_rle_crop_3762617522_0.png.png imagette222900011745303341/1745302782_667586_1352546953_d4cf5c77b5ae219b0ff2b842a19f7e60_rle_crop_3762617813_0.png.png imagette222900011745303341/1745302992_2911694_1352547563_b943811c5bc2f5337c7010a0ddae34e7_rle_crop_3762621520_0.png.png imagette222900011745303341/1745303145_677443_1352547652_f7edcb4f67baeb15f87b8955ecca8f33_rle_crop_3762624218_0.png.png imagette222900011745303341/1745303263_680086_1352548182_b547c31e49c30ec23f505a1ae2d80966_rle_crop_3762625051_0.png.png imagette222900011745303341/1745302908_668668_1352547119_52b99caa071e9b0a17c73be6cd406df3_rle_crop_3762619760_0.png.png imagette222900011745303341/1745303023_674694_1352547447_58d47159de07386198cf9223d02ea030_rle_crop_3762621725_0.png.png imagette222900011745303341/1745302766_235355_1352546951_e1e748ef374a18bf27bb9950c40b1949_rle_crop_3762617525_0.png.png imagette222900011745303341/1745303231_2914400_1352548103_8cbd6277847a38e14a97b53d9831bbcb_rle_crop_3762624981_0.png.png imagette222900011745303341/1745303145_677443_1352547659_a4cff3e8b2bd9f66d602f73c8ccf4360_rle_crop_3762623273_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/b261cac0532d7346fe8cb3e62283cb3e_8474288.png imagette222900011745303341 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22289960 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22290002,22290003,22290004,22290005,22290006,22290007,22290008,22290009,22290010,22290011,22290012,22290013?tags=flou,Teint_Dans_La_Masse,kraft,Carton_brun,papier,autre_refus,metal,cartonnette,mal_croppe,plastique,environnement,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1352548440] : ('0.05627010172651926',) no score found for photo 1352548440 We are sending mail with results at report@fotonower.com args[1352548436] : ('0.05627010172651926',) no score found for photo 1352548436 We are sending mail with results at report@fotonower.com args[1352548432] : ('0.05627010172651926',) no score found for photo 1352548432 We are sending mail with results at report@fotonower.com args[1352548422] : ('0.05627010172651926',) no score found for photo 1352548422 We are sending mail with results at report@fotonower.com args[1352548404] : ('0.05627010172651926',) no score found for photo 1352548404 We are sending mail with results at report@fotonower.com refus_total : 0.05627010172651926 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=22289960 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_P22289960_22-04-2025_08_28_58.pdf results_Auto_P22289960_22-04-2025_08_28_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22289960_22-04-2025_08_28_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22289960','results_Auto_P22289960_22-04-2025_08_28_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22289960_22-04-2025_08_28_58.pdf','pdf','','0.23','0.05627010172651926') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22289960]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1352548440, 1352548436, 1352548432, 1352548422, 1352548404] map_info['map_portfolio_photo'] : {22289960: [1352548440, 1352548436, 1352548432, 1352548422, 1352548404, 1352548188, 1352548185, 1352548182, 1352548180, 1352548112, 1352548108, 1352548103, 1352548100, 1352548098, 1352548094, 1352547954, 1352547946, 1352547944, 1352547942, 1352547918, 1352547728, 1352547713, 1352547669, 1352547664, 1352547659, 1352547657, 1352547652, 1352547650, 1352547598, 1352547595, 1352547583, 1352547573, 1352547563, 1352547494, 1352547447, 1352547436, 1352547420, 1352547349, 1352547303, 1352547121, 1352547119, 1352547116, 1352547113, 1352546953, 1352546951, 1352546946, 1352546936, 1352546916, 1352546828, 1352546799, 1352546787, 1352546782, 1352546773, 1352546581, 1352546559]} final : False mtd_id 4302 list_pids : [1352548440, 1352548436, 1352548432, 1352548422, 1352548404] 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, '2747248') ('4302', '22289960', '1352548440', None, None, None, None, None, '2747248') ('4302', None, None, None, None, None, None, None, '2747248') ('4302', '22289960', '1352548436', None, None, None, None, None, '2747248') ('4302', None, None, None, None, None, None, None, '2747248') ('4302', '22289960', '1352548432', None, None, None, None, None, '2747248') ('4302', None, None, None, None, None, None, None, '2747248') ('4302', '22289960', '1352548422', None, None, None, None, None, '2747248') ('4302', None, None, None, None, None, None, None, '2747248') ('4302', '22289960', '1352548404', None, None, None, None, None, '2747248') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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', '22289960', '1352548440', None, None, None, None, None, '2747248'), ('4302', '22289960', '1352548436', None, None, None, None, None, '2747248'), ('4302', '22289960', '1352548432', None, None, None, None, None, '2747248'), ('4302', '22289960', '1352548422', None, None, None, None, None, '2747248'), ('4302', '22289960', '1352548404', None, None, None, None, None, '2747248')] time used for this insertion : 0.017444610595703125 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.021728277206421 time spend to save output : 0.017633438110351562 total time spend for step 4 : 5.0393617153167725 step5:split_time_score Tue Apr 22 08:29: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 : ['22289960'] 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 : [('22289960',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22289960) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1352548440: {'path': 'temp/1745303338_2048225_1352548440_0c30a78fbf984d20d2539f1ba39c2144.jpg', 'extension': 'jpg'}, 1352548404: {'path': 'temp/1745303338_2048225_1352548404_16b82297e87bb65732a76d4c6109fd93.jpg', 'extension': 'jpg'}, 1352548422: {'path': 'temp/1745303338_2048225_1352548422_fb08be9b5f792fcc8a278d25f50c0aaf.jpg', 'extension': 'jpg'}, 1352548432: {'path': 'temp/1745303338_2048225_1352548432_61ad4f3952dab10fb077ace26b68c47a.jpg', 'extension': 'jpg'}, 1352548436: {'path': 'temp/1745303338_2048225_1352548436_36b274465248bcaf51133704c2681e03.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 = 22289960; (('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 = 22289960 group by h (('08', 55),) 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=22289960 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 (22289960) 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 (22289960) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 22042025 22289960 Nombre de photos uploadées : 55 / 23040 (0%) 22042025 22289960 Nombre de photos taguées (types de déchets): 0 / 55 (0%) 22042025 22289960 Nombre de photos taguées (volume) : 0 / 55 (0%) [{'photo_id': 1352546581, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/f073e7d677d621c55420b0e4f420672c.jpg', 'username': None, 'uploaded_at': 1745302577, 'text': 'image_22042025_08_15_24_10134.jpg'}, {'photo_id': 1352546828, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/1f8e697819ae3644bd0a2168fcd0f02e.jpg', 'username': None, 'uploaded_at': 1745302627, 'text': 'image_22042025_08_15_34_10131.jpg'}, {'photo_id': 1352546559, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/2d1c0e3f477b47787febe27bbba3fdfc.jpg', 'username': None, 'uploaded_at': 1745302562, 'text': 'image_22042025_08_15_54_10136.jpg'}, {'photo_id': 1352546799, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/e75533e352be132949d8b721b45b074d.jpg', 'username': None, 'uploaded_at': 1745302627, 'text': 'image_22042025_08_16_04_010138m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 6.4373016357421875e-06 ??????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0025644302368164062 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22289960, '2025-04-22' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1735821,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024361133575439453 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= 1735821 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1735821, 'dashboard_run_id': 1744168, 'mtr_portfolio_id': 22288002, 'dashboard_result_id': 10017929, '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_P22288002_22-04-2025_07_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22288005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22288006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288008, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288016, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1744168, 'mtr_portfolio_id': 22288420, 'dashboard_result_id': 10017930, '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_P22288420_22-04-2025_08_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22288451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22288454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288462, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1744168, 'mtr_portfolio_id': 22289161, 'dashboard_result_id': 10017931, '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_P22289161_22-04-2025_08_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22289191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22289193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22289197, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1744168, 'mtr_portfolio_id': 22289960, 'dashboard_result_id': 10017932, '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_P22289960_22-04-2025_08_26_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22289990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22290000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22290001, '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 = 22288002 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': 2747082, 'mtr_portfolio_id': 22288002, 'created_at': datetime.datetime(2025, 4, 22, 7, 48, 58), 'result': '0.06754364275022666', 'result_long': None, 'result_double': None}] Qualite : 0.06754364275022666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22288002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22288002_22-04-2025_07_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22288002 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_P22288002_22-04-2025_07_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22288005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22288006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288008, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288016, 'pht': 3726}}" where mtr_portfolio_id = 22288002 and dashboard_run_id = 1744168 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`=22288002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10017929, 0.06754364275022666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22288002_22-04-2025_07_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22288005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22288006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288008, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288016, '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 = 22288420 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': 2747116, 'mtr_portfolio_id': 22288420, 'created_at': datetime.datetime(2025, 4, 22, 8, 3), 'result': '0.04869240453567159', 'result_long': None, 'result_double': None}] Qualite : 0.04869240453567159 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22288420 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22288420_22-04-2025_08_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22288420 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_P22288420_22-04-2025_08_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22288451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22288454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288462, 'pht': 3726}}" where mtr_portfolio_id = 22288420 and dashboard_run_id = 1744168 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`=22288420 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10017930, 0.04869240453567159, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22288420_22-04-2025_08_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22288451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22288454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288462, '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 = 22289161 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': 2747189, 'mtr_portfolio_id': 22289161, 'created_at': datetime.datetime(2025, 4, 22, 8, 18, 59), 'result': '0.059532425882459834', 'result_long': None, 'result_double': None}] Qualite : 0.059532425882459834 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22289161 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22289161_22-04-2025_08_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22289161 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_P22289161_22-04-2025_08_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22289191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22289193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22289197, 'pht': 3726}}" where mtr_portfolio_id = 22289161 and dashboard_run_id = 1744168 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`=22289161 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10017931, 0.059532425882459834, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22289161_22-04-2025_08_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22289191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22289193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22289197, '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 = 22289960 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': 2747248, 'mtr_portfolio_id': 22289960, 'created_at': datetime.datetime(2025, 4, 22, 8, 28, 57), 'result': '0.05627010172651926', 'result_long': None, 'result_double': None}] Qualite : 0.05627010172651926 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22289960 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22289960_22-04-2025_08_28_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22289960 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_P22289960_22-04-2025_08_28_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22289990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22290000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22290001, 'pht': 3726}}" where mtr_portfolio_id = 22289960 and dashboard_run_id = 1744168 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`=22289960 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10017932, 0.05627010172651926, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22289960_22-04-2025_08_28_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22289990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22290000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22290001, '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 (22288002,22288420,22289161,22289960) result : ((1352537146,), (1352537151,), (1352537155,), (1352537203,), (1352537205,), (1352537207,), (1352537209,), (1352537213,), (1352537217,), (1352537254,), (1352537257,), (1352537261,), (1352537265,), (1352537267,), (1352537272,), (1352537306,), (1352537310,), (1352537314,), (1352537317,), (1352537417,), (1352537429,), (1352537436,), (1352537444,), (1352537447,), (1352537460,), (1352537692,), (1352537694,), (1352537698,), (1352537705,), (1352537767,), (1352537769,), (1352537772,), (1352537775,), (1352537779,), (1352537783,), (1352537849,), (1352537859,), (1352537866,), (1352537870,), (1352537880,), (1352537889,), (1352538050,), (1352538054,), (1352538057,), (1352538060,), (1352538108,), (1352538112,), (1352538116,), (1352538117,), (1352538121,), (1352538125,), (1352538169,), (1352538178,), (1352538194,), (1352538197,), (1352538201,), (1352538269,), (1352538305,), (1352538309,), (1352538314,), (1352538335,), (1352538349,), (1352538505,), (1352538524,), (1352538551,), (1352538603,), (1352538844,), (1352538945,), (1352538949,), (1352538962,), (1352538967,), (1352538973,), (1352539224,), (1352539249,), (1352539251,), (1352539253,), (1352539256,), (1352539334,), (1352539302,), (1352539311,), (1352539321,), (1352539328,), (1352539332,), (1352539586,), (1352539587,), (1352539589,), (1352539591,), (1352539595,), (1352539656,), (1352539658,), (1352539661,), (1352539664,), (1352539804,), (1352539810,), (1352539817,), (1352539820,), (1352539899,), (1352539902,), (1352539920,), (1352539927,), (1352539939,), (1352539945,), (1352540043,), (1352540044,), (1352540045,), (1352540048,), (1352540148,), (1352540150,), (1352540153,), (1352540156,), (1352540159,), (1352540220,), (1352540221,), (1352540222,), (1352540224,), (1352540227,), (1352540266,), (1352540268,), (1352540271,), (1352540274,), (1352540365,), (1352540391,), (1352540405,), (1352540407,), (1352540409,), (1352540412,), (1352540497,), (1352540499,), (1352540502,), (1352540505,), (1352540610,), (1352540617,), (1352540622,), (1352540642,), (1352540662,), (1352540674,), (1352540743,), (1352540751,), (1352540756,), (1352540760,), (1352540766,), (1352540772,), (1352541696,), (1352541727,), (1352541759,), (1352541834,), (1352542058,), (1352541987,), (1352542003,), (1352542025,), (1352542047,), (1352542177,), (1352542206,), (1352542248,), (1352542536,), (1352542564,), (1352542577,), (1352542581,), (1352542587,), (1352542592,), (1352543622,), (1352543651,), (1352543679,), (1352543707,), (1352543734,), (1352544044,), (1352544087,), (1352544773,), (1352544776,), (1352544780,), (1352544784,), (1352544789,), (1352545201,), (1352545301,), (1352545322,), (1352545343,), (1352545347,), (1352545353,), (1352545500,), (1352545504,), (1352545508,), (1352545515,), (1352545675,), (1352545678,), (1352545681,), (1352545684,), (1352545691,), (1352545695,), (1352545725,), (1352545731,), (1352545736,), (1352545742,), (1352545845,), (1352545860,), (1352545866,), (1352545869,), (1352545874,), (1352545877,), (1352546046,), (1352546048,), (1352546051,), (1352546057,), (1352546059,), (1352546065,), (1352546107,), (1352546118,), (1352546132,), (1352546137,), (1352546205,), (1352546209,), (1352546213,), (1352546220,), (1352546230,), (1352546235,), (1352546380,), (1352546398,), (1352546404,), (1352546410,), (1352546418,), (1352546611,), (1352546559,), (1352546581,), (1352546773,), (1352546782,), (1352546787,), (1352546799,), (1352546828,), (1352546916,), (1352546936,), (1352546946,), (1352546951,), (1352546953,), (1352547113,), (1352547116,), (1352547119,), (1352547121,), (1352547303,), (1352547349,), (1352547420,), (1352547436,), (1352547447,), (1352547494,), (1352547563,), (1352547573,), (1352547583,), (1352547595,), (1352547598,), (1352547650,), (1352547652,), (1352547657,), (1352547659,), (1352547664,), (1352547669,), (1352547713,), (1352547728,), (1352547918,), (1352547942,), (1352547944,), (1352547946,), (1352547954,), (1352548094,), (1352548098,), (1352548100,), (1352548103,), (1352548108,), (1352548112,), (1352548180,), (1352548182,), (1352548185,), (1352548188,), (1352548404,), (1352548422,), (1352548432,), (1352548436,), (1352548440,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'22042025': {'nb_upload': 55, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22289960]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1352548440, 1352548436, 1352548432, 1352548422, 1352548404] map_info['map_portfolio_photo'] : {22289960: [1352548440, 1352548436, 1352548432, 1352548422, 1352548404, 1352548188, 1352548185, 1352548182, 1352548180, 1352548112, 1352548108, 1352548103, 1352548100, 1352548098, 1352548094, 1352547954, 1352547946, 1352547944, 1352547942, 1352547918, 1352547728, 1352547713, 1352547669, 1352547664, 1352547659, 1352547657, 1352547652, 1352547650, 1352547598, 1352547595, 1352547583, 1352547573, 1352547563, 1352547494, 1352547447, 1352547436, 1352547420, 1352547349, 1352547303, 1352547121, 1352547119, 1352547116, 1352547113, 1352546953, 1352546951, 1352546946, 1352546936, 1352546916, 1352546828, 1352546799, 1352546787, 1352546782, 1352546773, 1352546581, 1352546559]} final : True mtd_id 4302 list_pids : [1352548440, 1352548436, 1352548432, 1352548422, 1352548404] Looping around the photos to save general results len do output : 1 /22289960Didn'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, '2747248') ('4302', '22289960', '1352548440', None, None, None, None, None, '2747248') ('4302', None, None, None, None, None, None, None, '2747248') ('4302', '22289960', '1352548436', None, None, None, None, None, '2747248') ('4302', None, None, None, None, None, None, None, '2747248') ('4302', '22289960', '1352548432', None, None, None, None, None, '2747248') ('4302', None, None, None, None, None, None, None, '2747248') ('4302', '22289960', '1352548422', None, None, None, None, None, '2747248') ('4302', None, None, None, None, None, None, None, '2747248') ('4302', '22289960', '1352548404', None, None, None, None, None, '2747248') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '22289960', 'None', None, None, None, None, '2747248'), ('4302', '22289960', '1352548440', None, None, None, None, None, '2747248'), ('4302', '22289960', '1352548436', None, None, None, None, None, '2747248'), ('4302', '22289960', '1352548432', None, None, None, None, None, '2747248'), ('4302', '22289960', '1352548422', None, None, None, None, None, '2747248'), ('4302', '22289960', '1352548404', None, None, None, None, None, '2747248')] time used for this insertion : 0.21387314796447754 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4190657138824463 time spend to save output : 0.21407437324523926 total time spend for step 5 : 0.6331400871276855 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 (2747248) 2.15user 2.28system 0:09.37elapsed 47%CPU (0avgtext+0avgdata 158960maxresident)k 1064inputs+11176outputs (83major+63968minor)pagefaults 0swaps