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 : 137015 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 (2766778) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2766778) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22478782 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2766778'] with mtr_portfolio_ids : ['22478782'] and first list_photo_ids : [] new path : /proc/137015/ Name: python3 Umask: 0002 State: R (running) Tgid: 137015 Ngid: 0 Pid: 137015 PPid: 137014 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 137015 NSpid: 137015 NSpgid: 135713 NSsid: 135713 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98776 kB VmRSS: 98776 kB RssAnon: 60196 kB RssFile: 38580 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 556 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: 47 nonvoluntary_ctxt_switches: 135 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '137015', 'Ngid': '0', 'Pid': '137015', 'PPid': '137014', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '137015', 'NSpid': '137015', 'NSpgid': '135713', 'NSsid': '135713', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98776 kB', 'VmRSS': '98776 kB', 'RssAnon': '60196 kB', 'RssFile': '38580 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '556 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': '47', 'nonvoluntary_ctxt_switches': '135'} ('datou_batch_current', '137015', '1107228', '0', '1107228', '865976', '98776', b'', 'marlene', '2766778') 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 (22478782) 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 (2766778 ) ) 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 (22478782) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1354073348, 'portfolio_id': 22478782}, {'photo_id': 1354072890, 'portfolio_id': 22478782}, {'photo_id': 1354072884, 'portfolio_id': 22478782}, {'photo_id': 1354072334, 'portfolio_id': 22478782}, {'photo_id': 1354072164, 'portfolio_id': 22478782}, {'photo_id': 1354072156, 'portfolio_id': 22478782}, {'photo_id': 1354072148, 'portfolio_id': 22478782}, {'photo_id': 1354072096, 'portfolio_id': 22478782}, {'photo_id': 1354072080, 'portfolio_id': 22478782}, {'photo_id': 1354072033, 'portfolio_id': 22478782}, {'photo_id': 1354072027, 'portfolio_id': 22478782}, {'photo_id': 1354072021, 'portfolio_id': 22478782}, {'photo_id': 1354072015, 'portfolio_id': 22478782}, {'photo_id': 1354072001, 'portfolio_id': 22478782}, {'photo_id': 1354071954, 'portfolio_id': 22478782}, {'photo_id': 1354071952, 'portfolio_id': 22478782}, {'photo_id': 1354071947, 'portfolio_id': 22478782}, {'photo_id': 1354071942, 'portfolio_id': 22478782}, {'photo_id': 1354071896, 'portfolio_id': 22478782}, {'photo_id': 1354071894, 'portfolio_id': 22478782}, {'photo_id': 1354071892, 'portfolio_id': 22478782}, {'photo_id': 1354071524, 'portfolio_id': 22478782}, {'photo_id': 1354071513, 'portfolio_id': 22478782}, {'photo_id': 1354071503, 'portfolio_id': 22478782}, {'photo_id': 1354071494, 'portfolio_id': 22478782}, {'photo_id': 1354071478, 'portfolio_id': 22478782}, {'photo_id': 1354071438, 'portfolio_id': 22478782}, {'photo_id': 1354071436, 'portfolio_id': 22478782}, {'photo_id': 1354071431, 'portfolio_id': 22478782}, {'photo_id': 1354071427, 'portfolio_id': 22478782}, {'photo_id': 1354071423, 'portfolio_id': 22478782}, {'photo_id': 1354071280, 'portfolio_id': 22478782}, {'photo_id': 1354071272, 'portfolio_id': 22478782}, {'photo_id': 1354071263, 'portfolio_id': 22478782}, {'photo_id': 1354070953, 'portfolio_id': 22478782}, {'photo_id': 1354070885, 'portfolio_id': 22478782}, {'photo_id': 1354070852, 'portfolio_id': 22478782}, {'photo_id': 1354070819, 'portfolio_id': 22478782}, {'photo_id': 1354070789, 'portfolio_id': 22478782}, {'photo_id': 1354070623, 'portfolio_id': 22478782}, {'photo_id': 1354070620, 'portfolio_id': 22478782}, {'photo_id': 1354070612, 'portfolio_id': 22478782}, {'photo_id': 1354070607, 'portfolio_id': 22478782}, {'photo_id': 1354070605, 'portfolio_id': 22478782}, {'photo_id': 1354070417, 'portfolio_id': 22478782}, {'photo_id': 1354070415, 'portfolio_id': 22478782}, {'photo_id': 1354070411, 'portfolio_id': 22478782}, {'photo_id': 1354070178, 'portfolio_id': 22478782}, {'photo_id': 1354070177, 'portfolio_id': 22478782}, {'photo_id': 1354070176, 'portfolio_id': 22478782}, {'photo_id': 1354070173, 'portfolio_id': 22478782}] map_portfolio_id_photo_id: {22478782: [1354073348, 1354072890, 1354072884, 1354072334, 1354072164, 1354072156, 1354072148, 1354072096, 1354072080, 1354072033, 1354072027, 1354072021, 1354072015, 1354072001, 1354071954, 1354071952, 1354071947, 1354071942, 1354071896, 1354071894, 1354071892, 1354071524, 1354071513, 1354071503, 1354071494, 1354071478, 1354071438, 1354071436, 1354071431, 1354071427, 1354071423, 1354071280, 1354071272, 1354071263, 1354070953, 1354070885, 1354070852, 1354070819, 1354070789, 1354070623, 1354070620, 1354070612, 1354070607, 1354070605, 1354070417, 1354070415, 1354070411, 1354070178, 1354070177, 1354070176, 1354070173]} ##### 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.01567864418029785 #### 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 29 00:46:29 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 (22478782) 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 : 22478782 get user id for portfolio 22478782 get sub ptf for main ptf 22478782, type 3726 and hashtags ['papier', 'flou', 'kraft', 'cartonnette', 'metal', 'mal_croppe', 'plastique', 'Carton_gris', 'Carton_brun', 'environnement', 'Teint_Dans_La_Masse', 'autre_refus'] 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`=22478782 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','flou','kraft','cartonnette','metal','mal_croppe','plastique','Carton_gris','Carton_brun','environnement','Teint_Dans_La_Masse','autre_refus')) 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`=22478782 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','flou','kraft','cartonnette','metal','mal_croppe','plastique','Carton_gris','Carton_brun','environnement','Teint_Dans_La_Masse','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22478782, 'sub_port_id': 22478831, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920708, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 58)}, 'cartonnette': {'main_port_id': 22478782, 'sub_port_id': 22478832, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920709, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 58)}, 'environnement': {'main_port_id': 22478782, 'sub_port_id': 22478833, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920710, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22478782, 'sub_port_id': 22478834, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920711, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 58)}, 'metal': {'main_port_id': 22478782, 'sub_port_id': 22478835, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920712, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 58)}, 'Carton_gris': {'main_port_id': 22478782, 'sub_port_id': 22478836, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920713, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 58)}, 'flou': {'main_port_id': 22478782, 'sub_port_id': 22478837, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920714, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 58)}, 'kraft': {'main_port_id': 22478782, 'sub_port_id': 22478838, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920715, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 58)}, 'mal_croppe': {'main_port_id': 22478782, 'sub_port_id': 22478839, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920716, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 58)}, 'plastique': {'main_port_id': 22478782, 'sub_port_id': 22478840, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920717, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 58)}, 'papier': {'main_port_id': 22478782, 'sub_port_id': 22478841, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920718, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 58)}, 'autre_refus': {'main_port_id': 22478782, 'sub_port_id': 22478842, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920719, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22478831 , 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=22478782 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 (22478831) result : ((1354071448,), (1354071449,), (1354071487,), (1354071489,), (1354071490,), (1354071492,), (1354071521,), (1354071522,), (1354071523,), (1354071936,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22478782) result : ((1354070173,), (1354070176,), (1354070177,), (1354070178,), (1354070411,), (1354070415,), (1354070417,), (1354070605,), (1354070607,), (1354070612,), (1354070620,), (1354070623,), (1354070789,), (1354070819,), (1354070852,), (1354070885,), (1354070953,), (1354071263,), (1354071272,), (1354071280,), (1354071423,), (1354071427,), (1354071431,), (1354071436,), (1354071438,), (1354071478,), (1354071494,), (1354071503,), (1354071513,), (1354071524,), (1354071892,), (1354071894,), (1354071896,), (1354071942,), (1354071947,), (1354071952,), (1354071954,), (1354072001,), (1354072015,), (1354072021,), (1354072027,), (1354072033,), (1354072080,), (1354072096,), (1354072148,), (1354072156,), (1354072164,), (1354072334,), (1354072884,), (1354072890,), (1354073348,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22478832 , 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=22478782 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 (22478832) result : ((1354071482,), (1354071484,), (1354071519,), (1354071935,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22478782) result : ((1354070173,), (1354070176,), (1354070177,), (1354070178,), (1354070411,), (1354070415,), (1354070417,), (1354070605,), (1354070607,), (1354070612,), (1354070620,), (1354070623,), (1354070789,), (1354070819,), (1354070852,), (1354070885,), (1354070953,), (1354071263,), (1354071272,), (1354071280,), (1354071423,), (1354071427,), (1354071431,), (1354071436,), (1354071438,), (1354071478,), (1354071494,), (1354071503,), (1354071513,), (1354071524,), (1354071892,), (1354071894,), (1354071896,), (1354071942,), (1354071947,), (1354071952,), (1354071954,), (1354072001,), (1354072015,), (1354072021,), (1354072027,), (1354072033,), (1354072080,), (1354072096,), (1354072148,), (1354072156,), (1354072164,), (1354072334,), (1354072884,), (1354072890,), (1354073348,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22478833 , 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=22478782 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 (22478833) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22478782) result : ((1354070173,), (1354070176,), (1354070177,), (1354070178,), (1354070411,), (1354070415,), (1354070417,), (1354070605,), (1354070607,), (1354070612,), (1354070620,), (1354070623,), (1354070789,), (1354070819,), (1354070852,), (1354070885,), (1354070953,), (1354071263,), (1354071272,), (1354071280,), (1354071423,), (1354071427,), (1354071431,), (1354071436,), (1354071438,), (1354071478,), (1354071494,), (1354071503,), (1354071513,), (1354071524,), (1354071892,), (1354071894,), (1354071896,), (1354071942,), (1354071947,), (1354071952,), (1354071954,), (1354072001,), (1354072015,), (1354072021,), (1354072027,), (1354072033,), (1354072080,), (1354072096,), (1354072148,), (1354072156,), (1354072164,), (1354072334,), (1354072884,), (1354072890,), (1354073348,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22478834 , 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=22478782 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 (22478834) result : ((1354071459,), (1354071504,), (1354071505,), (1354071508,), (1354071509,), (1354071510,), (1354071789,), (1354073356,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22478782) result : ((1354070173,), (1354070176,), (1354070177,), (1354070178,), (1354070411,), (1354070415,), (1354070417,), (1354070605,), (1354070607,), (1354070612,), (1354070620,), (1354070623,), (1354070789,), (1354070819,), (1354070852,), (1354070885,), (1354070953,), (1354071263,), (1354071272,), (1354071280,), (1354071423,), (1354071427,), (1354071431,), (1354071436,), (1354071438,), (1354071478,), (1354071494,), (1354071503,), (1354071513,), (1354071524,), (1354071892,), (1354071894,), (1354071896,), (1354071942,), (1354071947,), (1354071952,), (1354071954,), (1354072001,), (1354072015,), (1354072021,), (1354072027,), (1354072033,), (1354072080,), (1354072096,), (1354072148,), (1354072156,), (1354072164,), (1354072334,), (1354072884,), (1354072890,), (1354073348,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22478835 , 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=22478782 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 (22478835) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22478782) result : ((1354070173,), (1354070176,), (1354070177,), (1354070178,), (1354070411,), (1354070415,), (1354070417,), (1354070605,), (1354070607,), (1354070612,), (1354070620,), (1354070623,), (1354070789,), (1354070819,), (1354070852,), (1354070885,), (1354070953,), (1354071263,), (1354071272,), (1354071280,), (1354071423,), (1354071427,), (1354071431,), (1354071436,), (1354071438,), (1354071478,), (1354071494,), (1354071503,), (1354071513,), (1354071524,), (1354071892,), (1354071894,), (1354071896,), (1354071942,), (1354071947,), (1354071952,), (1354071954,), (1354072001,), (1354072015,), (1354072021,), (1354072027,), (1354072033,), (1354072080,), (1354072096,), (1354072148,), (1354072156,), (1354072164,), (1354072334,), (1354072884,), (1354072890,), (1354073348,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22478836 , 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=22478782 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 (22478836) result : ((1354071447,), (1354071475,), (1354071476,), (1354071514,), (1354071515,), (1354071516,), (1354071517,), (1354071518,), (1354071796,), (1354071933,), (1354071934,), (1354073359,), (1354073360,), (1354073361,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22478782) result : ((1354070173,), (1354070176,), (1354070177,), (1354070178,), (1354070411,), (1354070415,), (1354070417,), (1354070605,), (1354070607,), (1354070612,), (1354070620,), (1354070623,), (1354070789,), (1354070819,), (1354070852,), (1354070885,), (1354070953,), (1354071263,), (1354071272,), (1354071280,), (1354071423,), (1354071427,), (1354071431,), (1354071436,), (1354071438,), (1354071478,), (1354071494,), (1354071503,), (1354071513,), (1354071524,), (1354071892,), (1354071894,), (1354071896,), (1354071942,), (1354071947,), (1354071952,), (1354071954,), (1354072001,), (1354072015,), (1354072021,), (1354072027,), (1354072033,), (1354072080,), (1354072096,), (1354072148,), (1354072156,), (1354072164,), (1354072334,), (1354072884,), (1354072890,), (1354073348,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22478837 , 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=22478782 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 (22478837) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22478782) result : ((1354070173,), (1354070176,), (1354070177,), (1354070178,), (1354070411,), (1354070415,), (1354070417,), (1354070605,), (1354070607,), (1354070612,), (1354070620,), (1354070623,), (1354070789,), (1354070819,), (1354070852,), (1354070885,), (1354070953,), (1354071263,), (1354071272,), (1354071280,), (1354071423,), (1354071427,), (1354071431,), (1354071436,), (1354071438,), (1354071478,), (1354071494,), (1354071503,), (1354071513,), (1354071524,), (1354071892,), (1354071894,), (1354071896,), (1354071942,), (1354071947,), (1354071952,), (1354071954,), (1354072001,), (1354072015,), (1354072021,), (1354072027,), (1354072033,), (1354072080,), (1354072096,), (1354072148,), (1354072156,), (1354072164,), (1354072334,), (1354072884,), (1354072890,), (1354073348,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22478838 , 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=22478782 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 (22478838) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22478782) result : ((1354070173,), (1354070176,), (1354070177,), (1354070178,), (1354070411,), (1354070415,), (1354070417,), (1354070605,), (1354070607,), (1354070612,), (1354070620,), (1354070623,), (1354070789,), (1354070819,), (1354070852,), (1354070885,), (1354070953,), (1354071263,), (1354071272,), (1354071280,), (1354071423,), (1354071427,), (1354071431,), (1354071436,), (1354071438,), (1354071478,), (1354071494,), (1354071503,), (1354071513,), (1354071524,), (1354071892,), (1354071894,), (1354071896,), (1354071942,), (1354071947,), (1354071952,), (1354071954,), (1354072001,), (1354072015,), (1354072021,), (1354072027,), (1354072033,), (1354072080,), (1354072096,), (1354072148,), (1354072156,), (1354072164,), (1354072334,), (1354072884,), (1354072890,), (1354073348,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22478839 , 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=22478782 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 (22478839) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22478782) result : ((1354070173,), (1354070176,), (1354070177,), (1354070178,), (1354070411,), (1354070415,), (1354070417,), (1354070605,), (1354070607,), (1354070612,), (1354070620,), (1354070623,), (1354070789,), (1354070819,), (1354070852,), (1354070885,), (1354070953,), (1354071263,), (1354071272,), (1354071280,), (1354071423,), (1354071427,), (1354071431,), (1354071436,), (1354071438,), (1354071478,), (1354071494,), (1354071503,), (1354071513,), (1354071524,), (1354071892,), (1354071894,), (1354071896,), (1354071942,), (1354071947,), (1354071952,), (1354071954,), (1354072001,), (1354072015,), (1354072021,), (1354072027,), (1354072033,), (1354072080,), (1354072096,), (1354072148,), (1354072156,), (1354072164,), (1354072334,), (1354072884,), (1354072890,), (1354073348,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22478840 , 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=22478782 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 (22478840) result : ((1354071493,), (1354071938,), (1354073367,), (1354073368,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22478782) result : ((1354070173,), (1354070176,), (1354070177,), (1354070178,), (1354070411,), (1354070415,), (1354070417,), (1354070605,), (1354070607,), (1354070612,), (1354070620,), (1354070623,), (1354070789,), (1354070819,), (1354070852,), (1354070885,), (1354070953,), (1354071263,), (1354071272,), (1354071280,), (1354071423,), (1354071427,), (1354071431,), (1354071436,), (1354071438,), (1354071478,), (1354071494,), (1354071503,), (1354071513,), (1354071524,), (1354071892,), (1354071894,), (1354071896,), (1354071942,), (1354071947,), (1354071952,), (1354071954,), (1354072001,), (1354072015,), (1354072021,), (1354072027,), (1354072033,), (1354072080,), (1354072096,), (1354072148,), (1354072156,), (1354072164,), (1354072334,), (1354072884,), (1354072890,), (1354073348,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22478841 , 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=22478782 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 (22478841) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22478782) result : ((1354070173,), (1354070176,), (1354070177,), (1354070178,), (1354070411,), (1354070415,), (1354070417,), (1354070605,), (1354070607,), (1354070612,), (1354070620,), (1354070623,), (1354070789,), (1354070819,), (1354070852,), (1354070885,), (1354070953,), (1354071263,), (1354071272,), (1354071280,), (1354071423,), (1354071427,), (1354071431,), (1354071436,), (1354071438,), (1354071478,), (1354071494,), (1354071503,), (1354071513,), (1354071524,), (1354071892,), (1354071894,), (1354071896,), (1354071942,), (1354071947,), (1354071952,), (1354071954,), (1354072001,), (1354072015,), (1354072021,), (1354072027,), (1354072033,), (1354072080,), (1354072096,), (1354072148,), (1354072156,), (1354072164,), (1354072334,), (1354072884,), (1354072890,), (1354073348,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22478842 , 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=22478782 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 (22478842) result : ((1354071464,), (1354071465,), (1354071466,), (1354071467,), (1354071469,), (1354071470,), (1354071471,), (1354071790,), (1354071932,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22478782) result : ((1354070173,), (1354070176,), (1354070177,), (1354070178,), (1354070411,), (1354070415,), (1354070417,), (1354070605,), (1354070607,), (1354070612,), (1354070620,), (1354070623,), (1354070789,), (1354070819,), (1354070852,), (1354070885,), (1354070953,), (1354071263,), (1354071272,), (1354071280,), (1354071423,), (1354071427,), (1354071431,), (1354071436,), (1354071438,), (1354071478,), (1354071494,), (1354071503,), (1354071513,), (1354071524,), (1354071892,), (1354071894,), (1354071896,), (1354071942,), (1354071947,), (1354071952,), (1354071954,), (1354072001,), (1354072015,), (1354072021,), (1354072027,), (1354072033,), (1354072080,), (1354072096,), (1354072148,), (1354072156,), (1354072164,), (1354072334,), (1354072884,), (1354072890,), (1354073348,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22478782 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','flou','kraft','cartonnette','metal','mal_croppe','plastique','Carton_gris','Carton_brun','environnement','Teint_Dans_La_Masse','autre_refus')) 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`=22478782 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','flou','kraft','cartonnette','metal','mal_croppe','plastique','Carton_gris','Carton_brun','environnement','Teint_Dans_La_Masse','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22478782, 'sub_port_id': 22478843, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920720, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 59)}, 'cartonnette': {'main_port_id': 22478782, 'sub_port_id': 22478844, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920721, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 59)}, 'environnement': {'main_port_id': 22478782, 'sub_port_id': 22478845, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920722, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22478782, 'sub_port_id': 22478846, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920723, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 59)}, 'metal': {'main_port_id': 22478782, 'sub_port_id': 22478847, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920724, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 59)}, 'Carton_gris': {'main_port_id': 22478782, 'sub_port_id': 22478848, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920725, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 59)}, 'flou': {'main_port_id': 22478782, 'sub_port_id': 22478849, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920726, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 59)}, 'kraft': {'main_port_id': 22478782, 'sub_port_id': 22478850, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920727, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 59)}, 'mal_croppe': {'main_port_id': 22478782, 'sub_port_id': 22478851, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920728, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 59)}, 'plastique': {'main_port_id': 22478782, 'sub_port_id': 22478852, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920729, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 59)}, 'papier': {'main_port_id': 22478782, 'sub_port_id': 22478853, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920730, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 59)}, 'autre_refus': {'main_port_id': 22478782, 'sub_port_id': 22478854, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14920731, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 38, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22478843,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22478831 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22478844,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22478832 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22478845,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22478833 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22478846,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22478834 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22478847,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22478835 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22478848,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22478836 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22478849,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22478837 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22478850,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22478838 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22478851,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22478839 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22478852,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22478840 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22478853,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22478841 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22478854,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22478842 lien utilise dans velours : https://www.fotonower.com/velours/22478843,22478844,22478845,22478846,22478847,22478848,22478849,22478850,22478851,22478852,22478853,22478854?tags=Carton_brun,cartonnette,environnement,Teint_Dans_La_Masse,metal,Carton_gris,flou,kraft,mal_croppe,plastique,papier,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22478782]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1354073348, 1354072890, 1354072884, 1354072334, 1354072164, 1354072156, 1354072148, 1354072096, 1354072080] map_info['map_portfolio_photo'] : {22478782: [1354073348, 1354072890, 1354072884, 1354072334, 1354072164, 1354072156, 1354072148, 1354072096, 1354072080, 1354072033, 1354072027, 1354072021, 1354072015, 1354072001, 1354071954, 1354071952, 1354071947, 1354071942, 1354071896, 1354071894, 1354071892, 1354071524, 1354071513, 1354071503, 1354071494, 1354071478, 1354071438, 1354071436, 1354071431, 1354071427, 1354071423, 1354071280, 1354071272, 1354071263, 1354070953, 1354070885, 1354070852, 1354070819, 1354070789, 1354070623, 1354070620, 1354070612, 1354070607, 1354070605, 1354070417, 1354070415, 1354070411, 1354070178, 1354070177, 1354070176, 1354070173]} final : False mtd_id 4302 list_pids : [1354073348, 1354072890, 1354072884, 1354072334, 1354072164, 1354072156, 1354072148, 1354072096, 1354072080] Looping around the photos to save general results len do output : 1 /22478782. 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, '2766778') ('4302', '22478782', '1354073348', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072890', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072884', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072334', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072164', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072156', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072148', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072096', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072080', None, None, None, None, None, '2766778') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22478782', "{'Carton_brun': 22478831, 'cartonnette': 22478832, 'environnement': 22478833, 'Teint_Dans_La_Masse': 22478834, 'metal': 22478835, 'Carton_gris': 22478836, 'flou': 22478837, 'kraft': 22478838, 'mal_croppe': 22478839, 'plastique': 22478840, 'papier': 22478841, 'autre_refus': 22478842}", None, None, None, None, '2766778'), ('4302', '22478782', '1354073348', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072890', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072884', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072334', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072164', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072156', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072148', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072096', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072080', None, None, None, None, None, '2766778')] time used for this insertion : 0.01352238655090332 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5509462356567383 time spend to save output : 0.013914346694946289 total time spend for step 1 : 1.5648605823516846 step2:final Tue Apr 29 00:46:30 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 (22478782) 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 22478782 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1354070178,1354070177,1354070176,1354070173,1354070417,1354070415,1354070411,1354070623,1354070620,1354070612,1354070607,1354070605,1354070953,1354070885,1354070852,1354070819,1354070789,1354071280,1354071272,1354071263,1354071438,1354071436,1354071431,1354071427,1354071423,1354071524,1354071513,1354071503,1354071494,1354071478,1354071896,1354071894,1354071892,1354071954,1354071952,1354071947,1354071942,1354072033,1354072027,1354072021,1354072015,1354072001,1354072164,1354072156,1354072148,1354072096,1354072080,1354072334,1354072890,1354072884,1354073348); 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([22478782]) Inside saveOutput : final : False verbose : True original output for save of step final : {1354073348: ('0.05947686764982132',), 1354072890: ('0.05947686764982132',), 1354072884: ('0.05947686764982132',), 1354072334: ('0.05947686764982132',), 1354072164: ('0.05947686764982132',), 1354072156: ('0.05947686764982132',), 1354072148: ('0.05947686764982132',), 1354072096: ('0.05947686764982132',), 1354072080: ('0.05947686764982132',)} new output for save of step final : {1354073348: ('0.05947686764982132',), 1354072890: ('0.05947686764982132',), 1354072884: ('0.05947686764982132',), 1354072334: ('0.05947686764982132',), 1354072164: ('0.05947686764982132',), 1354072156: ('0.05947686764982132',), 1354072148: ('0.05947686764982132',), 1354072096: ('0.05947686764982132',), 1354072080: ('0.05947686764982132',)} [1354073348, 1354072890, 1354072884, 1354072334, 1354072164, 1354072156, 1354072148, 1354072096, 1354072080] map_info['map_portfolio_photo'] : {22478782: [1354073348, 1354072890, 1354072884, 1354072334, 1354072164, 1354072156, 1354072148, 1354072096, 1354072080, 1354072033, 1354072027, 1354072021, 1354072015, 1354072001, 1354071954, 1354071952, 1354071947, 1354071942, 1354071896, 1354071894, 1354071892, 1354071524, 1354071513, 1354071503, 1354071494, 1354071478, 1354071438, 1354071436, 1354071431, 1354071427, 1354071423, 1354071280, 1354071272, 1354071263, 1354070953, 1354070885, 1354070852, 1354070819, 1354070789, 1354070623, 1354070620, 1354070612, 1354070607, 1354070605, 1354070417, 1354070415, 1354070411, 1354070178, 1354070177, 1354070176, 1354070173]} final : False mtd_id 4302 list_pids : [1354073348, 1354072890, 1354072884, 1354072334, 1354072164, 1354072156, 1354072148, 1354072096, 1354072080] Looping around the photos to save general results len do output : 9 /1354073348.Didn't retrieve data . /1354072890.Didn't retrieve data . /1354072884.Didn't retrieve data . /1354072334.Didn't retrieve data . /1354072164.Didn't retrieve data . /1354072156.Didn't retrieve data . /1354072148.Didn't retrieve data . /1354072096.Didn't retrieve data . /1354072080.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, '2766778') ('4302', '22478782', '1354073348', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072890', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072884', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072334', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072164', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072156', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072148', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072096', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072080', None, None, None, None, None, '2766778') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22478782', '1354073348', '0.05947686764982132', None, None, None, None, '2766778'), ('4302', '22478782', '1354072890', '0.05947686764982132', None, None, None, None, '2766778'), ('4302', '22478782', '1354072884', '0.05947686764982132', None, None, None, None, '2766778'), ('4302', '22478782', '1354072334', '0.05947686764982132', None, None, None, None, '2766778'), ('4302', '22478782', '1354072164', '0.05947686764982132', None, None, None, None, '2766778'), ('4302', '22478782', '1354072156', '0.05947686764982132', None, None, None, None, '2766778'), ('4302', '22478782', '1354072148', '0.05947686764982132', None, None, None, None, '2766778'), ('4302', '22478782', '1354072096', '0.05947686764982132', None, None, None, None, '2766778'), ('4302', '22478782', '1354072080', '0.05947686764982132', None, None, None, None, '2766778')] time used for this insertion : 0.016682147979736328 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.09360361099243164 time spend to save output : 0.017235755920410156 total time spend for step 2 : 0.1108393669128418 step3:velours_tree Tue Apr 29 00:46:30 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 : {22478782: [{'Carton_brun': 22478831, 'cartonnette': 22478832, 'environnement': 22478833, 'Teint_Dans_La_Masse': 22478834, 'metal': 22478835, 'Carton_gris': 22478836, 'flou': 22478837, 'kraft': 22478838, 'mal_croppe': 22478839, 'plastique': 22478840, 'papier': 22478841, 'autre_refus': 22478842}]} input_args_next_step : {22478782: ()} output_args : {22478782: [{'Carton_brun': 22478831, 'cartonnette': 22478832, 'environnement': 22478833, 'Teint_Dans_La_Masse': 22478834, 'metal': 22478835, 'Carton_gris': 22478836, 'flou': 22478837, 'kraft': 22478838, 'mal_croppe': 22478839, 'plastique': 22478840, 'papier': 22478841, 'autre_refus': 22478842}]} args : 22478782 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 22478831, 'cartonnette': 22478832, 'environnement': 22478833, 'Teint_Dans_La_Masse': 22478834, 'metal': 22478835, 'Carton_gris': 22478836, 'flou': 22478837, 'kraft': 22478838, 'mal_croppe': 22478839, 'plastique': 22478840, 'papier': 22478841, 'autre_refus': 22478842},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22478782) 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([22478782]) 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.38547754287719727 time spend to save output : 8.153915405273438e-05 total time spend for step 3 : 0.38555908203125 step4:send_mail_cod Tue Apr 29 00:46:31 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 : {1354073348: ('0.05947686764982132',), 1354072890: ('0.05947686764982132',), 1354072884: ('0.05947686764982132',), 1354072334: ('0.05947686764982132',), 1354072164: ('0.05947686764982132',), 1354072156: ('0.05947686764982132',), 1354072148: ('0.05947686764982132',), 1354072096: ('0.05947686764982132',), 1354072080: ('0.05947686764982132',)} input_args_next_step : {1354073348: ()} output_args : {1354073348: ('0.05947686764982132',), 1354072890: ('0.05947686764982132',), 1354072884: ('0.05947686764982132',), 1354072334: ('0.05947686764982132',), 1354072164: ('0.05947686764982132',), 1354072156: ('0.05947686764982132',), 1354072148: ('0.05947686764982132',), 1354072096: ('0.05947686764982132',), 1354072080: ('0.05947686764982132',)} args : 1354073348 depend.output_id : 0 input_args_next_step : {1354073348: ('0.05947686764982132',), 1354072890: ()} output_args : {1354073348: ('0.05947686764982132',), 1354072890: ('0.05947686764982132',), 1354072884: ('0.05947686764982132',), 1354072334: ('0.05947686764982132',), 1354072164: ('0.05947686764982132',), 1354072156: ('0.05947686764982132',), 1354072148: ('0.05947686764982132',), 1354072096: ('0.05947686764982132',), 1354072080: ('0.05947686764982132',)} args : 1354072890 depend.output_id : 0 input_args_next_step : {1354073348: ('0.05947686764982132',), 1354072890: ('0.05947686764982132',), 1354072884: ()} output_args : {1354073348: ('0.05947686764982132',), 1354072890: ('0.05947686764982132',), 1354072884: ('0.05947686764982132',), 1354072334: ('0.05947686764982132',), 1354072164: ('0.05947686764982132',), 1354072156: ('0.05947686764982132',), 1354072148: ('0.05947686764982132',), 1354072096: ('0.05947686764982132',), 1354072080: ('0.05947686764982132',)} args : 1354072884 depend.output_id : 0 input_args_next_step : {1354073348: ('0.05947686764982132',), 1354072890: ('0.05947686764982132',), 1354072884: ('0.05947686764982132',), 1354072334: ()} output_args : {1354073348: ('0.05947686764982132',), 1354072890: ('0.05947686764982132',), 1354072884: ('0.05947686764982132',), 1354072334: ('0.05947686764982132',), 1354072164: ('0.05947686764982132',), 1354072156: ('0.05947686764982132',), 1354072148: ('0.05947686764982132',), 1354072096: ('0.05947686764982132',), 1354072080: ('0.05947686764982132',)} args : 1354072334 depend.output_id : 0 input_args_next_step : {1354073348: ('0.05947686764982132',), 1354072890: ('0.05947686764982132',), 1354072884: ('0.05947686764982132',), 1354072334: ('0.05947686764982132',), 1354072164: ()} output_args : {1354073348: ('0.05947686764982132',), 1354072890: ('0.05947686764982132',), 1354072884: ('0.05947686764982132',), 1354072334: ('0.05947686764982132',), 1354072164: ('0.05947686764982132',), 1354072156: ('0.05947686764982132',), 1354072148: ('0.05947686764982132',), 1354072096: ('0.05947686764982132',), 1354072080: ('0.05947686764982132',)} args : 1354072164 depend.output_id : 0 input_args_next_step : {1354073348: ('0.05947686764982132',), 1354072890: ('0.05947686764982132',), 1354072884: ('0.05947686764982132',), 1354072334: ('0.05947686764982132',), 1354072164: ('0.05947686764982132',), 1354072156: ()} output_args : {1354073348: ('0.05947686764982132',), 1354072890: ('0.05947686764982132',), 1354072884: ('0.05947686764982132',), 1354072334: ('0.05947686764982132',), 1354072164: ('0.05947686764982132',), 1354072156: ('0.05947686764982132',), 1354072148: ('0.05947686764982132',), 1354072096: ('0.05947686764982132',), 1354072080: ('0.05947686764982132',)} args : 1354072156 depend.output_id : 0 input_args_next_step : {1354073348: ('0.05947686764982132',), 1354072890: ('0.05947686764982132',), 1354072884: ('0.05947686764982132',), 1354072334: ('0.05947686764982132',), 1354072164: ('0.05947686764982132',), 1354072156: ('0.05947686764982132',), 1354072148: ()} output_args : {1354073348: ('0.05947686764982132',), 1354072890: ('0.05947686764982132',), 1354072884: ('0.05947686764982132',), 1354072334: ('0.05947686764982132',), 1354072164: ('0.05947686764982132',), 1354072156: ('0.05947686764982132',), 1354072148: ('0.05947686764982132',), 1354072096: ('0.05947686764982132',), 1354072080: ('0.05947686764982132',)} args : 1354072148 depend.output_id : 0 input_args_next_step : {1354073348: ('0.05947686764982132',), 1354072890: ('0.05947686764982132',), 1354072884: ('0.05947686764982132',), 1354072334: ('0.05947686764982132',), 1354072164: ('0.05947686764982132',), 1354072156: ('0.05947686764982132',), 1354072148: ('0.05947686764982132',), 1354072096: ()} output_args : {1354073348: ('0.05947686764982132',), 1354072890: ('0.05947686764982132',), 1354072884: ('0.05947686764982132',), 1354072334: ('0.05947686764982132',), 1354072164: ('0.05947686764982132',), 1354072156: ('0.05947686764982132',), 1354072148: ('0.05947686764982132',), 1354072096: ('0.05947686764982132',), 1354072080: ('0.05947686764982132',)} args : 1354072096 depend.output_id : 0 input_args_next_step : {1354073348: ('0.05947686764982132',), 1354072890: ('0.05947686764982132',), 1354072884: ('0.05947686764982132',), 1354072334: ('0.05947686764982132',), 1354072164: ('0.05947686764982132',), 1354072156: ('0.05947686764982132',), 1354072148: ('0.05947686764982132',), 1354072096: ('0.05947686764982132',), 1354072080: ()} output_args : {1354073348: ('0.05947686764982132',), 1354072890: ('0.05947686764982132',), 1354072884: ('0.05947686764982132',), 1354072334: ('0.05947686764982132',), 1354072164: ('0.05947686764982132',), 1354072156: ('0.05947686764982132',), 1354072148: ('0.05947686764982132',), 1354072096: ('0.05947686764982132',), 1354072080: ('0.05947686764982132',)} args : 1354072080 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 : {22478782: [{'Carton_brun': 22478831, 'cartonnette': 22478832, 'environnement': 22478833, 'Teint_Dans_La_Masse': 22478834, 'metal': 22478835, 'Carton_gris': 22478836, 'flou': 22478837, 'kraft': 22478838, 'mal_croppe': 22478839, 'plastique': 22478840, 'papier': 22478841, 'autre_refus': 22478842}]} input_args_next_step : {1354073348: ('0.05947686764982132',), 1354072890: ('0.05947686764982132',), 1354072884: ('0.05947686764982132',), 1354072334: ('0.05947686764982132',), 1354072164: ('0.05947686764982132',), 1354072156: ('0.05947686764982132',), 1354072148: ('0.05947686764982132',), 1354072096: ('0.05947686764982132',), 1354072080: ('0.05947686764982132',), 22478782: ()} output_args : {22478782: [{'Carton_brun': 22478831, 'cartonnette': 22478832, 'environnement': 22478833, 'Teint_Dans_La_Masse': 22478834, 'metal': 22478835, 'Carton_gris': 22478836, 'flou': 22478837, 'kraft': 22478838, 'mal_croppe': 22478839, 'plastique': 22478840, 'papier': 22478841, 'autre_refus': 22478842}]} args : 22478782 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :10, first value : ('0.05947686764982132',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22478782) 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 (1354073348,1354072890,1354072884,1354072334,1354072164,1354072156,1354072148,1354072096,1354072080) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1354072080 begin to download photo : 1354072148 begin to download photo : 1354072164 begin to download photo : 1354072884 begin to download photo : 1354073348 download finish for photo 1354073348 download finish for photo 1354072080 begin to download photo : 1354072096 download finish for photo 1354072148 begin to download photo : 1354072156 download finish for photo 1354072164 begin to download photo : 1354072334 download finish for photo 1354072884 begin to download photo : 1354072890 download finish for photo 1354072096 download finish for photo 1354072156 download finish for photo 1354072334 download finish for photo 1354072890 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P22478782_29-04-2025_00_46_31.pdf 22478832 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=22478832 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354071482: '1745879845_823552_1354070852_8c44abe3637c58ed1637d94f90c5306f_rle_crop_3771898450_0.png', 1354071484: '1745879845_823552_1354070789_858bb49deb6949b726be04fa43e97c45_rle_crop_3771898881_0.png', 1354071519: '1745879862_3460126_1354070176_c68d3f6365c5f9200f942423c496f19c_rle_crop_3771899590_0.png', 1354071935: '1745879951_3781015_1354070607_d17311799b89844fd22f991928415044_rle_crop_3771900569_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/d83e726554c3a11669d06f9853ae0e4b_12411462.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/3d45251e0dc384c10eaeca14fc93e912_98643441.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/6ba28b1b1e66600c208131177f0d99fd_68132346.png change filename to text .imagette224788321745880391/ imagette224788321745880391/1745879845_823552_1354070789_858bb49deb6949b726be04fa43e97c45_rle_crop_3771898881_0.png.png imagette224788321745880391/1745879862_3460126_1354070176_c68d3f6365c5f9200f942423c496f19c_rle_crop_3771899590_0.png.png imagette224788321745880391/1745879845_823552_1354070852_8c44abe3637c58ed1637d94f90c5306f_rle_crop_3771898450_0.png.png imagette224788321745880391/1745879951_3781015_1354070607_d17311799b89844fd22f991928415044_rle_crop_3771900569_0.png.png imagette224788351745880391/ imagette224788371745880391/ imagette224788381745880391/ imagette224788391745880391/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/a1b17b85c90d09e2caa1b89885a691b9_22956125.png imagette224788321745880391 22478835 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=22478835 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224788351745880391 22478837 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=22478837 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224788371745880391 22478838 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=22478838 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224788381745880391 22478839 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=22478839 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224788391745880391 22478840 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=22478840 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354071493: '1745879845_823552_1354071280_a44fb9c52a1d55d08c103d9f0b7fc1e3_rle_crop_3771898252_0.png', 1354071938: '1745879951_3781015_1354070605_9fb840092dcc030dad83ee55d6b78544_rle_crop_3771900607_0.png', 1354073367: '1745880314_3784154_1354072334_6ce453923386ad1eaa7dbfc6af7e76c6_rle_crop_3771905999_0.png', 1354073368: '1745880314_3784154_1354072148_8769ee9b5328cc163b3e46f2f778fba0_rle_crop_3771906021_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/e3ed9c4bc3cbfdf37e2409c871cc0437_40375386.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/8a729320fa2f2823f22a6fac2781a8fd_52105188.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/fc3b0e0fbb4ec5fada16177d157ef84f_3217214.png change filename to text .imagette224788401745880391/ imagette224788401745880391/1745880314_3784154_1354072148_8769ee9b5328cc163b3e46f2f778fba0_rle_crop_3771906021_0.png.png imagette224788401745880391/1745879951_3781015_1354070605_9fb840092dcc030dad83ee55d6b78544_rle_crop_3771900607_0.png.png imagette224788401745880391/1745879845_823552_1354071280_a44fb9c52a1d55d08c103d9f0b7fc1e3_rle_crop_3771898252_0.png.png imagette224788401745880391/1745880314_3784154_1354072334_6ce453923386ad1eaa7dbfc6af7e76c6_rle_crop_3771905999_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/3b2ae9eebc35be4ef2143a69bf2a1e48_21520246.png imagette224788401745880391 22478842 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=22478842 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354071464: '1745879845_823552_1354071280_a44fb9c52a1d55d08c103d9f0b7fc1e3_rle_crop_3771898242_0.png', 1354071465: '1745879845_823552_1354070885_74e0b0eb3b33c926d404ccbd545ba28c_rle_crop_3771898427_0.png', 1354071466: '1745879845_823552_1354070852_8c44abe3637c58ed1637d94f90c5306f_rle_crop_3771898449_0.png', 1354071467: '1745879845_823552_1354070852_8c44abe3637c58ed1637d94f90c5306f_rle_crop_3771898452_0.png', 1354071469: '1745879845_823552_1354070819_0b690a2002c7a16e2437d991de0ddc7e_rle_crop_3771898802_0.png', 1354071470: '1745879845_823552_1354070789_858bb49deb6949b726be04fa43e97c45_rle_crop_3771898894_0.png', 1354071471: '1745879845_823552_1354070789_858bb49deb6949b726be04fa43e97c45_rle_crop_3771898886_0.png', 1354071790: '1745879892_3780533_1354070415_062025dc73f556b75eb3b93c2ebac1f3_rle_crop_3771899875_0.png', 1354071932: '1745879951_3781015_1354070953_29989c58954aad4260b5f6df229c8219_rle_crop_3771900535_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/c735547e5ba7f9eeebe907789a1260ec_78530068.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/dfe264e85d56819374a04b4ddb92fdfb_41888688.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/ee2cc90c236d0481d149c3de612a570a_16496547.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/f4bbadd5494f9da9de9c2387cb8bf19a_59825318.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/06cbe9fb0c30e40d230bb28479addcd0_55148519.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/766391097be736c3a02b90e8f65492f3_42789944.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/38304609b71ee2ac36329a79cf3d072a_68641650.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/c13abb07f169981b7a2f1b6882bb8b70_47335645.png change filename to text .imagette224788421745880392/ imagette224788421745880392/1745879892_3780533_1354070415_062025dc73f556b75eb3b93c2ebac1f3_rle_crop_3771899875_0.png.png imagette224788421745880392/1745879845_823552_1354070789_858bb49deb6949b726be04fa43e97c45_rle_crop_3771898886_0.png.png imagette224788421745880392/1745879951_3781015_1354070953_29989c58954aad4260b5f6df229c8219_rle_crop_3771900535_0.png.png imagette224788421745880392/1745879845_823552_1354070819_0b690a2002c7a16e2437d991de0ddc7e_rle_crop_3771898802_0.png.png imagette224788421745880392/1745879845_823552_1354070885_74e0b0eb3b33c926d404ccbd545ba28c_rle_crop_3771898427_0.png.png imagette224788421745880392/1745879845_823552_1354070852_8c44abe3637c58ed1637d94f90c5306f_rle_crop_3771898452_0.png.png imagette224788421745880392/1745879845_823552_1354071280_a44fb9c52a1d55d08c103d9f0b7fc1e3_rle_crop_3771898242_0.png.png imagette224788421745880392/1745879845_823552_1354070789_858bb49deb6949b726be04fa43e97c45_rle_crop_3771898894_0.png.png imagette224788421745880392/1745879845_823552_1354070852_8c44abe3637c58ed1637d94f90c5306f_rle_crop_3771898449_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/5462977aaec773d3784ec5d84781a8d4_67641699.png imagette224788421745880392 22478831 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=22478831 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354071448: '1745879831_3780096_1354071272_f8aa98f886232c84bcabb90cad28cf42_rle_crop_3771898121_0.png', 1354071449: '1745879831_3780096_1354071272_f8aa98f886232c84bcabb90cad28cf42_rle_crop_3771898123_0.png', 1354071487: '1745879845_823552_1354071280_a44fb9c52a1d55d08c103d9f0b7fc1e3_rle_crop_3771898251_0.png', 1354071489: '1745879845_823552_1354070885_74e0b0eb3b33c926d404ccbd545ba28c_rle_crop_3771898426_0.png', 1354071490: '1745879845_823552_1354070852_8c44abe3637c58ed1637d94f90c5306f_rle_crop_3771898451_0.png', 1354071492: '1745879845_823552_1354070789_858bb49deb6949b726be04fa43e97c45_rle_crop_3771898893_0.png', 1354071521: '1745879862_3460126_1354070417_cd98a10314c421fd680735182ab51f0d_rle_crop_3771899546_0.png', 1354071522: '1745879862_3460126_1354070173_58da79652538e202482daddf8919382e_rle_crop_3771899617_0.png', 1354071523: '1745879862_3460126_1354070173_58da79652538e202482daddf8919382e_rle_crop_3771899610_0.png', 1354071936: '1745879951_3781015_1354070953_29989c58954aad4260b5f6df229c8219_rle_crop_3771900537_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/3bc1a2ac335c1effe7307efa208a706b_65822836.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/c3aff10f8c5eb2ab7b48dbc82907f86a_54950708.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/23daa756c8999f13a0030cd21b14e535_74498152.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/0dd1100e23d92faab56a0904db5ac246_11704558.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/1904420747e2df51741d8aedc6f57090_43492721.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/6d012ab36f317baa407e347fa93ac041_16703820.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/0ebabf5dec3249b72b08ac8ed2006604_47761616.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/40adb64ff1167dfa57abc6ab9e4ede56_61928560.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/d927da12be53ef0112ea801cc1e22ab1_34391690.png change filename to text .imagette224788311745880392/ imagette224788311745880392/1745879845_823552_1354070789_858bb49deb6949b726be04fa43e97c45_rle_crop_3771898893_0.png.png imagette224788311745880392/1745879845_823552_1354070852_8c44abe3637c58ed1637d94f90c5306f_rle_crop_3771898451_0.png.png imagette224788311745880392/1745879951_3781015_1354070953_29989c58954aad4260b5f6df229c8219_rle_crop_3771900537_0.png.png imagette224788311745880392/1745879862_3460126_1354070173_58da79652538e202482daddf8919382e_rle_crop_3771899617_0.png.png imagette224788311745880392/1745879831_3780096_1354071272_f8aa98f886232c84bcabb90cad28cf42_rle_crop_3771898123_0.png.png imagette224788311745880392/1745879845_823552_1354071280_a44fb9c52a1d55d08c103d9f0b7fc1e3_rle_crop_3771898251_0.png.png imagette224788311745880392/1745879845_823552_1354070885_74e0b0eb3b33c926d404ccbd545ba28c_rle_crop_3771898426_0.png.png imagette224788311745880392/1745879862_3460126_1354070417_cd98a10314c421fd680735182ab51f0d_rle_crop_3771899546_0.png.png imagette224788311745880392/1745879862_3460126_1354070173_58da79652538e202482daddf8919382e_rle_crop_3771899610_0.png.png imagette224788311745880392/1745879831_3780096_1354071272_f8aa98f886232c84bcabb90cad28cf42_rle_crop_3771898121_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/f791d3c9fb5ca0290a56722f79361599_57231636.png imagette224788311745880392 22478834 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=22478834 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354071459: '1745879845_823552_1354070885_74e0b0eb3b33c926d404ccbd545ba28c_rle_crop_3771898432_0.png', 1354071504: '1745879862_3460126_1354070417_cd98a10314c421fd680735182ab51f0d_rle_crop_3771899550_0.png', 1354071505: '1745879862_3460126_1354070176_c68d3f6365c5f9200f942423c496f19c_rle_crop_3771899600_0.png', 1354071508: '1745879862_3460126_1354070173_58da79652538e202482daddf8919382e_rle_crop_3771899620_0.png', 1354071509: '1745879862_3460126_1354070173_58da79652538e202482daddf8919382e_rle_crop_3771899612_0.png', 1354071510: '1745879862_3460126_1354070173_58da79652538e202482daddf8919382e_rle_crop_3771899614_0.png', 1354071789: '1745879892_3780533_1354070415_062025dc73f556b75eb3b93c2ebac1f3_rle_crop_3771899883_0.png', 1354073356: '1745880314_3784154_1354072334_6ce453923386ad1eaa7dbfc6af7e76c6_rle_crop_3771905997_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/3f06b22ea42e29691f5e267797e39dd2_75659351.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/711f31d1da9bfc1ae542f0638877941f_70625994.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/92c8746f4faefe40db10e759fe98bf2e_13421645.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/684ee3e1de788ae1f110c87dc80c172c_77150915.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/e7653231deb6a44e7093fd2f7223714d_47124886.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/35a45692ad4ec8b17c0d7f7e69b94c7b_62074081.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/4a8bfc17889343e812d4817f0b7c5a1e_13330315.png change filename to text .imagette224788341745880393/ imagette224788341745880393/1745879862_3460126_1354070173_58da79652538e202482daddf8919382e_rle_crop_3771899614_0.png.png imagette224788341745880393/1745879862_3460126_1354070176_c68d3f6365c5f9200f942423c496f19c_rle_crop_3771899600_0.png.png imagette224788341745880393/1745879862_3460126_1354070173_58da79652538e202482daddf8919382e_rle_crop_3771899620_0.png.png imagette224788341745880393/1745880314_3784154_1354072334_6ce453923386ad1eaa7dbfc6af7e76c6_rle_crop_3771905997_0.png.png imagette224788341745880393/1745879845_823552_1354070885_74e0b0eb3b33c926d404ccbd545ba28c_rle_crop_3771898432_0.png.png imagette224788341745880393/1745879892_3780533_1354070415_062025dc73f556b75eb3b93c2ebac1f3_rle_crop_3771899883_0.png.png imagette224788341745880393/1745879862_3460126_1354070417_cd98a10314c421fd680735182ab51f0d_rle_crop_3771899550_0.png.png imagette224788341745880393/1745879862_3460126_1354070173_58da79652538e202482daddf8919382e_rle_crop_3771899612_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/c8f28894b278d2a40d79216a55516855_36343660.png imagette224788341745880393 22478836 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=22478836 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354071447: '1745879831_3780096_1354071263_662378205364cf8541123c50d1cb9179_rle_crop_3771898146_0.png', 1354071475: '1745879845_823552_1354071280_a44fb9c52a1d55d08c103d9f0b7fc1e3_rle_crop_3771898243_0.png', 1354071476: '1745879845_823552_1354070819_0b690a2002c7a16e2437d991de0ddc7e_rle_crop_3771898796_0.png', 1354071514: '1745879862_3460126_1354070417_cd98a10314c421fd680735182ab51f0d_rle_crop_3771899545_0.png', 1354071515: '1745879862_3460126_1354070417_cd98a10314c421fd680735182ab51f0d_rle_crop_3771899547_0.png', 1354071516: '1745879862_3460126_1354070177_89d136fa0f6797cfbe93e1470efb97de_rle_crop_3771899554_0.png', 1354071517: '1745879862_3460126_1354070176_c68d3f6365c5f9200f942423c496f19c_rle_crop_3771899592_0.png', 1354071518: '1745879862_3460126_1354070173_58da79652538e202482daddf8919382e_rle_crop_3771899604_0.png', 1354071796: '1745879892_3780533_1354070415_062025dc73f556b75eb3b93c2ebac1f3_rle_crop_3771899882_0.png', 1354071933: '1745879951_3781015_1354070953_29989c58954aad4260b5f6df229c8219_rle_crop_3771900542_0.png', 1354071934: '1745879951_3781015_1354070612_1e889428256a29ca322b2ec255fdc70c_rle_crop_3771900556_0.png', 1354073359: '1745880314_3784154_1354072334_6ce453923386ad1eaa7dbfc6af7e76c6_rle_crop_3771905998_0.png', 1354073360: '1745880314_3784154_1354072096_c117dba7b03d2a4939b447945695bcb0_rle_crop_3771906030_0.png', 1354073361: '1745880314_3784154_1354072096_c117dba7b03d2a4939b447945695bcb0_rle_crop_3771906028_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/d69927f170a141bd5b862fbe7f31ad68_18198913.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/0a1eed3ac4d8e16c61c19d150e6e1209_81632171.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/e8e6c4a46ec0e3241e00accdbd3f17e4_7901637.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/d64a577ae2a0a8282f209b99de716906_25992272.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/0ef249edb8c19741311c33a22c37c6c9_30354932.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/565cf937019d72eccefa5cb0a392e017_97578759.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/48d0f8d3bc5b8dea36e507da2e4787df_62284837.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/76feeccd301aedee6bba5fece83bb1d4_54325028.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/b789e4bd3913dc4e9f305ec93262c48c_39709384.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/8f6eeac21e6c5fa38163b6ee08723cfb_53608957.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/b630d7f6afdca50c140b8de81c0ef01e_99433993.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/67d22c73d33270ac4449ddc161027bdc_87989745.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/f51c6f89d93207961a2505633b2f4ef5_45354071.png change filename to text .imagette224788361745880393/ imagette224788361745880393/1745880314_3784154_1354072334_6ce453923386ad1eaa7dbfc6af7e76c6_rle_crop_3771905998_0.png.png imagette224788361745880393/1745879862_3460126_1354070176_c68d3f6365c5f9200f942423c496f19c_rle_crop_3771899592_0.png.png imagette224788361745880393/1745879862_3460126_1354070417_cd98a10314c421fd680735182ab51f0d_rle_crop_3771899545_0.png.png imagette224788361745880393/1745880314_3784154_1354072096_c117dba7b03d2a4939b447945695bcb0_rle_crop_3771906028_0.png.png imagette224788361745880393/1745879845_823552_1354070819_0b690a2002c7a16e2437d991de0ddc7e_rle_crop_3771898796_0.png.png imagette224788361745880393/1745879862_3460126_1354070177_89d136fa0f6797cfbe93e1470efb97de_rle_crop_3771899554_0.png.png imagette224788361745880393/1745879951_3781015_1354070953_29989c58954aad4260b5f6df229c8219_rle_crop_3771900542_0.png.png imagette224788361745880393/1745879831_3780096_1354071263_662378205364cf8541123c50d1cb9179_rle_crop_3771898146_0.png.png imagette224788361745880393/1745879892_3780533_1354070415_062025dc73f556b75eb3b93c2ebac1f3_rle_crop_3771899882_0.png.png imagette224788361745880393/1745879862_3460126_1354070417_cd98a10314c421fd680735182ab51f0d_rle_crop_3771899547_0.png.png imagette224788361745880393/1745879951_3781015_1354070612_1e889428256a29ca322b2ec255fdc70c_rle_crop_3771900556_0.png.png imagette224788361745880393/1745880314_3784154_1354072096_c117dba7b03d2a4939b447945695bcb0_rle_crop_3771906030_0.png.png imagette224788361745880393/1745879862_3460126_1354070173_58da79652538e202482daddf8919382e_rle_crop_3771899604_0.png.png imagette224788361745880393/1745879845_823552_1354071280_a44fb9c52a1d55d08c103d9f0b7fc1e3_rle_crop_3771898243_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/7ff84387527b26f94e361a61bc6e4d2c_476302.png imagette224788361745880393 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22478782 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22478843,22478844,22478845,22478846,22478847,22478848,22478849,22478850,22478851,22478852,22478853,22478854?tags=Carton_brun,cartonnette,environnement,Teint_Dans_La_Masse,metal,Carton_gris,flou,kraft,mal_croppe,plastique,papier,autre_refus your option no_mail is active, we will not send the real mail to your client args[1354073348] : ('0.05947686764982132',) no score found for photo 1354073348 We are sending mail with results at report@fotonower.com args[1354072890] : ('0.05947686764982132',) no score found for photo 1354072890 We are sending mail with results at report@fotonower.com args[1354072884] : ('0.05947686764982132',) no score found for photo 1354072884 We are sending mail with results at report@fotonower.com args[1354072334] : ('0.05947686764982132',) no score found for photo 1354072334 We are sending mail with results at report@fotonower.com args[1354072164] : ('0.05947686764982132',) no score found for photo 1354072164 We are sending mail with results at report@fotonower.com args[1354072156] : ('0.05947686764982132',) no score found for photo 1354072156 We are sending mail with results at report@fotonower.com args[1354072148] : ('0.05947686764982132',) no score found for photo 1354072148 We are sending mail with results at report@fotonower.com args[1354072096] : ('0.05947686764982132',) no score found for photo 1354072096 We are sending mail with results at report@fotonower.com args[1354072080] : ('0.05947686764982132',) no score found for photo 1354072080 We are sending mail with results at report@fotonower.com refus_total : 0.05947686764982132 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=22478782 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_P22478782_29-04-2025_00_46_31.pdf results_Auto_P22478782_29-04-2025_00_46_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22478782_29-04-2025_00_46_31.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','22478782','results_Auto_P22478782_29-04-2025_00_46_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22478782_29-04-2025_00_46_31.pdf','pdf','','0.23','0.05947686764982132') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22478782]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1354073348, 1354072890, 1354072884, 1354072334, 1354072164, 1354072156, 1354072148, 1354072096, 1354072080] map_info['map_portfolio_photo'] : {22478782: [1354073348, 1354072890, 1354072884, 1354072334, 1354072164, 1354072156, 1354072148, 1354072096, 1354072080, 1354072033, 1354072027, 1354072021, 1354072015, 1354072001, 1354071954, 1354071952, 1354071947, 1354071942, 1354071896, 1354071894, 1354071892, 1354071524, 1354071513, 1354071503, 1354071494, 1354071478, 1354071438, 1354071436, 1354071431, 1354071427, 1354071423, 1354071280, 1354071272, 1354071263, 1354070953, 1354070885, 1354070852, 1354070819, 1354070789, 1354070623, 1354070620, 1354070612, 1354070607, 1354070605, 1354070417, 1354070415, 1354070411, 1354070178, 1354070177, 1354070176, 1354070173]} final : False mtd_id 4302 list_pids : [1354073348, 1354072890, 1354072884, 1354072334, 1354072164, 1354072156, 1354072148, 1354072096, 1354072080] 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, '2766778') ('4302', '22478782', '1354073348', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072890', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072884', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072334', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072164', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072156', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072148', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072096', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072080', None, None, None, None, None, '2766778') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22478782', '1354073348', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072890', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072884', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072334', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072164', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072156', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072148', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072096', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072080', None, None, None, None, None, '2766778')] time used for this insertion : 0.013755559921264648 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.088428735733032 time spend to save output : 0.013971567153930664 total time spend for step 4 : 4.102400302886963 step5:split_time_score Tue Apr 29 00:46:35 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 : ['22478782'] 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 : [('22478782',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22478782) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1354073348: {'path': 'temp/1745880391_137015_1354073348_fbef780a437c43b54e5c369d667f4493.jpg', 'extension': 'jpg'}, 1354072080: {'path': 'temp/1745880391_137015_1354072080_742cf3ed22806310e39f488f3846b9e4.jpg', 'extension': 'jpg'}, 1354072096: {'path': 'temp/1745880391_137015_1354072096_c117dba7b03d2a4939b447945695bcb0.jpg', 'extension': 'jpg'}, 1354072148: {'path': 'temp/1745880391_137015_1354072148_8769ee9b5328cc163b3e46f2f778fba0.jpg', 'extension': 'jpg'}, 1354072156: {'path': 'temp/1745880391_137015_1354072156_633f31836c51d319e5c0cc6a8c8019cc.jpg', 'extension': 'jpg'}, 1354072164: {'path': 'temp/1745880391_137015_1354072164_6bd76d69b0068755796b69e930c1bb34.jpg', 'extension': 'jpg'}, 1354072334: {'path': 'temp/1745880391_137015_1354072334_6ce453923386ad1eaa7dbfc6af7e76c6.jpg', 'extension': 'jpg'}, 1354072884: {'path': 'temp/1745880391_137015_1354072884_2ac02b05a4030a0d679bf7ae874f94fc.jpg', 'extension': 'jpg'}, 1354072890: {'path': 'temp/1745880391_137015_1354072890_025d771acc4932afcc7eefd1a5a4e38d.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 = 22478782; (('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 = 22478782 group by h (('00', 51),) 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=22478782 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 (22478782) 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 (22478782) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 29042025 22478782 Nombre de photos uploadées : 51 / 23040 (0%) 29042025 22478782 Nombre de photos taguées (types de déchets): 0 / 51 (0%) 29042025 22478782 Nombre de photos taguées (volume) : 0 / 51 (0%) [{'photo_id': 1354070178, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/bce9892f53257a9d30c8f9a4f36d3bec.jpg', 'username': None, 'uploaded_at': 1745879528, 'text': 'image_29042025_00_30_04_10143.jpg'}, {'photo_id': 1354070177, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/89d136fa0f6797cfbe93e1470efb97de.jpg', 'username': None, 'uploaded_at': 1745879528, 'text': 'image_29042025_00_31_14_010135m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1354070176, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/c68d3f6365c5f9200f942423c496f19c.jpg', 'username': None, 'uploaded_at': 1745879528, 'text': 'image_29042025_00_31_24_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1354070173, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/58da79652538e202482daddf8919382e.jpg', 'username': None, 'uploaded_at': 1745879528, 'text': 'image_29042025_00_31_34_009131m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ??????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0027801990509033203 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22478782, '2025-04-29' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1752875,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02319955825805664 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= 1752875 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1752875, 'dashboard_run_id': 1760434, 'mtr_portfolio_id': 22477311, 'dashboard_result_id': 10128796, '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_P22477311_29-04-2025_00_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477347, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1760434, 'mtr_portfolio_id': 22477922, 'dashboard_result_id': 10128797, '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_P22477922_29-04-2025_00_32_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477934, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1760434, 'mtr_portfolio_id': 22478782, 'dashboard_result_id': 10128798, '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_P22478782_29-04-2025_00_42_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22478831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22478832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22478833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22478834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22478835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22478836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22478837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22478838, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22478839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22478840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22478841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22478842, '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 = 22477311 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': 2766671, 'mtr_portfolio_id': 22477311, 'created_at': datetime.datetime(2025, 4, 29, 0, 16, 58), 'result': '0.052604718419472826', 'result_long': None, 'result_double': None}] Qualite : 0.052604718419472826 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22477311 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22477311_29-04-2025_00_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22477311 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_P22477311_29-04-2025_00_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477347, 'pht': 3726}}" where mtr_portfolio_id = 22477311 and dashboard_run_id = 1760434 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`=22477311 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10128796, 0.052604718419472826, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22477311_29-04-2025_00_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477347, '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 = 22477922 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': 2766731, 'mtr_portfolio_id': 22477922, 'created_at': datetime.datetime(2025, 4, 29, 0, 32, 28), 'result': '0.05282815414505502', 'result_long': None, 'result_double': None}] Qualite : 0.05282815414505502 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22477922 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22477922_29-04-2025_00_32_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22477922 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_P22477922_29-04-2025_00_32_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477934, 'pht': 3726}}" where mtr_portfolio_id = 22477922 and dashboard_run_id = 1760434 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`=22477922 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10128797, 0.05282815414505502, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22477922_29-04-2025_00_32_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477934, '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 = 22478782 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': 2766778, 'mtr_portfolio_id': 22478782, 'created_at': datetime.datetime(2025, 4, 29, 0, 46, 30), 'result': '0.05947686764982132', 'result_long': None, 'result_double': None}] Qualite : 0.05947686764982132 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22478782 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22478782_29-04-2025_00_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22478782 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_P22478782_29-04-2025_00_46_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22478831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22478832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22478833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22478834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22478835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22478836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22478837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22478838, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22478839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22478840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22478841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22478842, 'pht': 3726}}" where mtr_portfolio_id = 22478782 and dashboard_run_id = 1760434 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`=22478782 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10128798, 0.05947686764982132, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22478782_29-04-2025_00_46_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22478831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22478832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22478833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22478834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22478835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22478836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22478837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22478838, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22478839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22478840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22478841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22478842, '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 (22477311,22477922,22478782) result : ((1354065999,), (1354066049,), (1354066055,), (1354066060,), (1354066067,), (1354066107,), (1354066110,), (1354066113,), (1354066117,), (1354066122,), (1354066127,), (1354066145,), (1354066151,), (1354066154,), (1354066159,), (1354066192,), (1354066195,), (1354066197,), (1354066200,), (1354066232,), (1354066236,), (1354066238,), (1354066241,), (1354066244,), (1354066287,), (1354066293,), (1354066296,), (1354066299,), (1354066327,), (1354066331,), (1354066334,), (1354066335,), (1354066338,), (1354066382,), (1354066683,), (1354066696,), (1354066714,), (1354066730,), (1354066733,), (1354066735,), (1354066744,), (1354066748,), (1354066752,), (1354066815,), (1354066818,), (1354066820,), (1354066835,), (1354066857,), (1354066947,), (1354066950,), (1354066953,), (1354066956,), (1354066957,), (1354066978,), (1354067061,), (1354067064,), (1354067065,), (1354067066,), (1354067118,), (1354067091,), (1354067100,), (1354067108,), (1354067115,), (1354067146,), (1354067149,), (1354067152,), (1354067155,), (1354067159,), (1354067166,), (1354067192,), (1354067202,), (1354067223,), (1354067243,), (1354067330,), (1354067337,), (1354067351,), (1354067516,), (1354067543,), (1354067827,), (1354068930,), (1354068939,), (1354069018,), (1354069028,), (1354069031,), (1354069043,), (1354069048,), (1354069145,), (1354069153,), (1354069605,), (1354069660,), (1354069668,), (1354069671,), (1354069759,), (1354069768,), (1354069770,), (1354069904,), (1354069908,), (1354069910,), (1354069912,), (1354069913,), (1354070088,), (1354070173,), (1354070176,), (1354070177,), (1354070178,), (1354070411,), (1354070415,), (1354070417,), (1354070605,), (1354070607,), (1354070612,), (1354070620,), (1354070623,), (1354070789,), (1354070819,), (1354070852,), (1354070885,), (1354070953,), (1354071263,), (1354071272,), (1354071280,), (1354071423,), (1354071427,), (1354071431,), (1354071436,), (1354071438,), (1354071478,), (1354071494,), (1354071503,), (1354071513,), (1354071524,), (1354071892,), (1354071894,), (1354071896,), (1354071942,), (1354071947,), (1354071952,), (1354071954,), (1354072001,), (1354072015,), (1354072021,), (1354072027,), (1354072033,), (1354072080,), (1354072096,), (1354072148,), (1354072156,), (1354072164,), (1354072334,), (1354072884,), (1354072890,), (1354073348,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'29042025': {'nb_upload': 51, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22478782]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1354073348, 1354072890, 1354072884, 1354072334, 1354072164, 1354072156, 1354072148, 1354072096, 1354072080] map_info['map_portfolio_photo'] : {22478782: [1354073348, 1354072890, 1354072884, 1354072334, 1354072164, 1354072156, 1354072148, 1354072096, 1354072080, 1354072033, 1354072027, 1354072021, 1354072015, 1354072001, 1354071954, 1354071952, 1354071947, 1354071942, 1354071896, 1354071894, 1354071892, 1354071524, 1354071513, 1354071503, 1354071494, 1354071478, 1354071438, 1354071436, 1354071431, 1354071427, 1354071423, 1354071280, 1354071272, 1354071263, 1354070953, 1354070885, 1354070852, 1354070819, 1354070789, 1354070623, 1354070620, 1354070612, 1354070607, 1354070605, 1354070417, 1354070415, 1354070411, 1354070178, 1354070177, 1354070176, 1354070173]} final : True mtd_id 4302 list_pids : [1354073348, 1354072890, 1354072884, 1354072334, 1354072164, 1354072156, 1354072148, 1354072096, 1354072080] Looping around the photos to save general results len do output : 1 /22478782Didn'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, '2766778') ('4302', '22478782', '1354073348', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072890', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072884', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072334', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072164', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072156', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072148', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072096', None, None, None, None, None, '2766778') ('4302', None, None, None, None, None, None, None, '2766778') ('4302', '22478782', '1354072080', None, None, None, None, None, '2766778') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22478782', 'None', None, None, None, None, '2766778'), ('4302', '22478782', '1354073348', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072890', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072884', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072334', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072164', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072156', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072148', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072096', None, None, None, None, None, '2766778'), ('4302', '22478782', '1354072080', None, None, None, None, None, '2766778')] time used for this insertion : 0.01891326904296875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2974433898925781 time spend to save output : 0.01926398277282715 total time spend for step 5 : 0.3167073726654053 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 (2766778) 2.33user 1.30system 0:10.87elapsed 33%CPU (0avgtext+0avgdata 161156maxresident)k 5544inputs+12616outputs (24major+77787minor)pagefaults 0swaps