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 : 1008476 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 (2655745) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2655745) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21243106 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2655745'] with mtr_portfolio_ids : ['21243106'] and first list_photo_ids : [] new path : /proc/1008476/ Name: python3 Umask: 0002 State: R (running) Tgid: 1008476 Ngid: 0 Pid: 1008476 PPid: 1008475 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1008476 NSpid: 1008476 NSpgid: 977490 NSsid: 977490 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98532 kB VmRSS: 98532 kB RssAnon: 59768 kB RssFile: 38764 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 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: 53 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1008476', 'Ngid': '0', 'Pid': '1008476', 'PPid': '1008475', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1008476', 'NSpid': '1008476', 'NSpgid': '977490', 'NSsid': '977490', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98532 kB', 'VmRSS': '98532 kB', 'RssAnon': '59768 kB', 'RssFile': '38764 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '53', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '1008476', '1106844', '0', '1106844', '865592', '98532', b'', 'marlene', '2655745') 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 (21243106) 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 (2655745 ) ) 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 (21243106) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1342678400, 'portfolio_id': 21243106}, {'photo_id': 1342678380, 'portfolio_id': 21243106}, {'photo_id': 1342678369, 'portfolio_id': 21243106}, {'photo_id': 1342678329, 'portfolio_id': 21243106}, {'photo_id': 1342678172, 'portfolio_id': 21243106}, {'photo_id': 1342678168, 'portfolio_id': 21243106}, {'photo_id': 1342678162, 'portfolio_id': 21243106}, {'photo_id': 1342678156, 'portfolio_id': 21243106}, {'photo_id': 1342678080, 'portfolio_id': 21243106}, {'photo_id': 1342678079, 'portfolio_id': 21243106}, {'photo_id': 1342678076, 'portfolio_id': 21243106}, {'photo_id': 1342678072, 'portfolio_id': 21243106}, {'photo_id': 1342677881, 'portfolio_id': 21243106}, {'photo_id': 1342677830, 'portfolio_id': 21243106}, {'photo_id': 1342677804, 'portfolio_id': 21243106}, {'photo_id': 1342677338, 'portfolio_id': 21243106}, {'photo_id': 1342677334, 'portfolio_id': 21243106}, {'photo_id': 1342677275, 'portfolio_id': 21243106}, {'photo_id': 1342677272, 'portfolio_id': 21243106}, {'photo_id': 1342677267, 'portfolio_id': 21243106}, {'photo_id': 1342677263, 'portfolio_id': 21243106}, {'photo_id': 1342677258, 'portfolio_id': 21243106}, {'photo_id': 1342677202, 'portfolio_id': 21243106}, {'photo_id': 1342677162, 'portfolio_id': 21243106}, {'photo_id': 1342677098, 'portfolio_id': 21243106}, {'photo_id': 1342677027, 'portfolio_id': 21243106}, {'photo_id': 1342676864, 'portfolio_id': 21243106}, {'photo_id': 1342676844, 'portfolio_id': 21243106}, {'photo_id': 1342676841, 'portfolio_id': 21243106}, {'photo_id': 1342676834, 'portfolio_id': 21243106}, {'photo_id': 1342676727, 'portfolio_id': 21243106}, {'photo_id': 1342676682, 'portfolio_id': 21243106}, {'photo_id': 1342676662, 'portfolio_id': 21243106}, {'photo_id': 1342676108, 'portfolio_id': 21243106}, {'photo_id': 1342676089, 'portfolio_id': 21243106}, {'photo_id': 1342676063, 'portfolio_id': 21243106}, {'photo_id': 1342675734, 'portfolio_id': 21243106}, {'photo_id': 1342675712, 'portfolio_id': 21243106}, {'photo_id': 1342675459, 'portfolio_id': 21243106}, {'photo_id': 1342675457, 'portfolio_id': 21243106}, {'photo_id': 1342675452, 'portfolio_id': 21243106}, {'photo_id': 1342675449, 'portfolio_id': 21243106}, {'photo_id': 1342675443, 'portfolio_id': 21243106}, {'photo_id': 1342675019, 'portfolio_id': 21243106}] map_portfolio_id_photo_id: {21243106: [1342678400, 1342678380, 1342678369, 1342678329, 1342678172, 1342678168, 1342678162, 1342678156, 1342678080, 1342678079, 1342678076, 1342678072, 1342677881, 1342677830, 1342677804, 1342677338, 1342677334, 1342677275, 1342677272, 1342677267, 1342677263, 1342677258, 1342677202, 1342677162, 1342677098, 1342677027, 1342676864, 1342676844, 1342676841, 1342676834, 1342676727, 1342676682, 1342676662, 1342676108, 1342676089, 1342676063, 1342675734, 1342675712, 1342675459, 1342675457, 1342675452, 1342675449, 1342675443, 1342675019]} ##### 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.016383647918701172 #### 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 Mon Mar 10 22:00:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21243106) 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 : 21243106 get user id for portfolio 21243106 get sub ptf for main ptf 21243106, type 3726 and hashtags ['kraft', 'cartonnette', 'metal', 'Carton_brun', 'plastique', 'Teint_Dans_La_Masse', 'Carton_gris', 'mal_croppe', 'papier', 'environnement', 'autre_refus', 'flou'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21243106 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','metal','Carton_brun','plastique','Teint_Dans_La_Masse','Carton_gris','mal_croppe','papier','environnement','autre_refus','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21243106 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','metal','Carton_brun','plastique','Teint_Dans_La_Masse','Carton_gris','mal_croppe','papier','environnement','autre_refus','flou')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 21243106, 'sub_port_id': 21243120, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832306, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 29)}, 'Carton_gris': {'main_port_id': 21243106, 'sub_port_id': 21243121, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832307, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 29)}, 'mal_croppe': {'main_port_id': 21243106, 'sub_port_id': 21243122, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832308, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 29)}, 'metal': {'main_port_id': 21243106, 'sub_port_id': 21243123, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832309, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 21243106, 'sub_port_id': 21243124, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832310, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 29)}, 'plastique': {'main_port_id': 21243106, 'sub_port_id': 21243125, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832311, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 29)}, 'Carton_brun': {'main_port_id': 21243106, 'sub_port_id': 21243126, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832312, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 29)}, 'autre_refus': {'main_port_id': 21243106, 'sub_port_id': 21243127, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832313, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 29)}, 'flou': {'main_port_id': 21243106, 'sub_port_id': 21243128, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832314, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 29)}, 'environnement': {'main_port_id': 21243106, 'sub_port_id': 21243129, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832315, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 29)}, 'papier': {'main_port_id': 21243106, 'sub_port_id': 21243130, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832316, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 29)}, 'kraft': {'main_port_id': 21243106, 'sub_port_id': 21243131, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832317, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21243120 , 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=21243106 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 (21243120) result : ((1342676796,), (1342676815,), (1342677235,), (1342677431,), (1342677433,), (1342677435,), (1342677451,), (1342678108,), (1342678367,), (1342678368,), (1342678432,), (1342678437,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21243106) result : ((1342675019,), (1342675443,), (1342675449,), (1342675452,), (1342675457,), (1342675459,), (1342675712,), (1342675734,), (1342676063,), (1342676089,), (1342676108,), (1342676662,), (1342676682,), (1342676727,), (1342676834,), (1342676841,), (1342676844,), (1342676864,), (1342677027,), (1342677098,), (1342677162,), (1342677202,), (1342677258,), (1342677263,), (1342677267,), (1342677272,), (1342677275,), (1342677334,), (1342677338,), (1342677804,), (1342677830,), (1342677881,), (1342678072,), (1342678076,), (1342678079,), (1342678080,), (1342678156,), (1342678162,), (1342678168,), (1342678172,), (1342678329,), (1342678369,), (1342678380,), (1342678400,)) 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 (1342678400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21243121 , 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=21243106 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 (21243121) result : ((1342676764,), (1342676766,), (1342676789,), (1342676791,), (1342676793,), (1342677231,), (1342677412,), (1342677414,), (1342677416,), (1342677418,), (1342678103,), (1342678104,), (1342678422,), (1342678423,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21243106) result : ((1342675019,), (1342675443,), (1342675449,), (1342675452,), (1342675457,), (1342675459,), (1342675712,), (1342675734,), (1342676063,), (1342676089,), (1342676108,), (1342676662,), (1342676682,), (1342676727,), (1342676834,), (1342676841,), (1342676844,), (1342676864,), (1342677027,), (1342677098,), (1342677162,), (1342677202,), (1342677258,), (1342677263,), (1342677267,), (1342677272,), (1342677275,), (1342677334,), (1342677338,), (1342677804,), (1342677830,), (1342677881,), (1342678072,), (1342678076,), (1342678079,), (1342678080,), (1342678156,), (1342678162,), (1342678168,), (1342678172,), (1342678329,), (1342678369,), (1342678380,), (1342678400,)) 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 (1342678400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21243122 , 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=21243106 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 (21243122) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21243106) result : ((1342675019,), (1342675443,), (1342675449,), (1342675452,), (1342675457,), (1342675459,), (1342675712,), (1342675734,), (1342676063,), (1342676089,), (1342676108,), (1342676662,), (1342676682,), (1342676727,), (1342676834,), (1342676841,), (1342676844,), (1342676864,), (1342677027,), (1342677098,), (1342677162,), (1342677202,), (1342677258,), (1342677263,), (1342677267,), (1342677272,), (1342677275,), (1342677334,), (1342677338,), (1342677804,), (1342677830,), (1342677881,), (1342678072,), (1342678076,), (1342678079,), (1342678080,), (1342678156,), (1342678162,), (1342678168,), (1342678172,), (1342678329,), (1342678369,), (1342678380,), (1342678400,)) 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 (1342678400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21243123 , 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=21243106 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 (21243123) result : ((1342676826,), (1342676827,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21243106) result : ((1342675019,), (1342675443,), (1342675449,), (1342675452,), (1342675457,), (1342675459,), (1342675712,), (1342675734,), (1342676063,), (1342676089,), (1342676108,), (1342676662,), (1342676682,), (1342676727,), (1342676834,), (1342676841,), (1342676844,), (1342676864,), (1342677027,), (1342677098,), (1342677162,), (1342677202,), (1342677258,), (1342677263,), (1342677267,), (1342677272,), (1342677275,), (1342677334,), (1342677338,), (1342677804,), (1342677830,), (1342677881,), (1342678072,), (1342678076,), (1342678079,), (1342678080,), (1342678156,), (1342678162,), (1342678168,), (1342678172,), (1342678329,), (1342678369,), (1342678380,), (1342678400,)) 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 (1342678400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21243124 , 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=21243106 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 (21243124) result : ((1342676754,), (1342677221,), (1342677222,), (1342677230,), (1342677411,), (1342678375,), (1342678417,), (1342678418,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21243106) result : ((1342675019,), (1342675443,), (1342675449,), (1342675452,), (1342675457,), (1342675459,), (1342675712,), (1342675734,), (1342676063,), (1342676089,), (1342676108,), (1342676662,), (1342676682,), (1342676727,), (1342676834,), (1342676841,), (1342676844,), (1342676864,), (1342677027,), (1342677098,), (1342677162,), (1342677202,), (1342677258,), (1342677263,), (1342677267,), (1342677272,), (1342677275,), (1342677334,), (1342677338,), (1342677804,), (1342677830,), (1342677881,), (1342678072,), (1342678076,), (1342678079,), (1342678080,), (1342678156,), (1342678162,), (1342678168,), (1342678172,), (1342678329,), (1342678369,), (1342678380,), (1342678400,)) 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 (1342678400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21243125 , 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=21243106 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 (21243125) result : ((1342676822,), (1342676823,), (1342676824,), (1342677236,), (1342677239,), (1342677240,), (1342677242,), (1342677243,), (1342677452,), (1342677454,), (1342678121,), (1342678372,), (1342678373,), (1342678456,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21243106) result : ((1342675019,), (1342675443,), (1342675449,), (1342675452,), (1342675457,), (1342675459,), (1342675712,), (1342675734,), (1342676063,), (1342676089,), (1342676108,), (1342676662,), (1342676682,), (1342676727,), (1342676834,), (1342676841,), (1342676844,), (1342676864,), (1342677027,), (1342677098,), (1342677162,), (1342677202,), (1342677258,), (1342677263,), (1342677267,), (1342677272,), (1342677275,), (1342677334,), (1342677338,), (1342677804,), (1342677830,), (1342677881,), (1342678072,), (1342678076,), (1342678079,), (1342678080,), (1342678156,), (1342678162,), (1342678168,), (1342678172,), (1342678329,), (1342678369,), (1342678380,), (1342678400,)) 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 (1342678400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21243126 , 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=21243106 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 (21243126) result : ((1342676816,), (1342676817,), (1342676818,), (1342676819,), (1342677232,), (1342677442,), (1342677444,), (1342677457,), (1342678115,), (1342678116,), (1342678370,), (1342678371,), (1342678455,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21243106) result : ((1342675019,), (1342675443,), (1342675449,), (1342675452,), (1342675457,), (1342675459,), (1342675712,), (1342675734,), (1342676063,), (1342676089,), (1342676108,), (1342676662,), (1342676682,), (1342676727,), (1342676834,), (1342676841,), (1342676844,), (1342676864,), (1342677027,), (1342677098,), (1342677162,), (1342677202,), (1342677258,), (1342677263,), (1342677267,), (1342677272,), (1342677275,), (1342677334,), (1342677338,), (1342677804,), (1342677830,), (1342677881,), (1342678072,), (1342678076,), (1342678079,), (1342678080,), (1342678156,), (1342678162,), (1342678168,), (1342678172,), (1342678329,), (1342678369,), (1342678380,), (1342678400,)) 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 (1342678400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21243127 , 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=21243106 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 (21243127) result : ((1342676756,), (1342676757,), (1342676758,), (1342676759,), (1342676760,), (1342676761,), (1342676762,), (1342676763,), (1342677223,), (1342677225,), (1342677226,), (1342677238,), (1342677398,), (1342677400,), (1342677402,), (1342677425,), (1342677426,), (1342677427,), (1342677428,), (1342677429,), (1342678094,), (1342678095,), (1342678096,), (1342678097,), (1342678098,), (1342678099,), (1342678100,), (1342678101,), (1342678362,), (1342678363,), (1342678364,), (1342678379,), (1342678420,), (1342678421,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21243106) result : ((1342675019,), (1342675443,), (1342675449,), (1342675452,), (1342675457,), (1342675459,), (1342675712,), (1342675734,), (1342676063,), (1342676089,), (1342676108,), (1342676662,), (1342676682,), (1342676727,), (1342676834,), (1342676841,), (1342676844,), (1342676864,), (1342677027,), (1342677098,), (1342677162,), (1342677202,), (1342677258,), (1342677263,), (1342677267,), (1342677272,), (1342677275,), (1342677334,), (1342677338,), (1342677804,), (1342677830,), (1342677881,), (1342678072,), (1342678076,), (1342678079,), (1342678080,), (1342678156,), (1342678162,), (1342678168,), (1342678172,), (1342678329,), (1342678369,), (1342678380,), (1342678400,)) 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 (1342678400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21243128 , 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=21243106 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 (21243128) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21243106) result : ((1342675019,), (1342675443,), (1342675449,), (1342675452,), (1342675457,), (1342675459,), (1342675712,), (1342675734,), (1342676063,), (1342676089,), (1342676108,), (1342676662,), (1342676682,), (1342676727,), (1342676834,), (1342676841,), (1342676844,), (1342676864,), (1342677027,), (1342677098,), (1342677162,), (1342677202,), (1342677258,), (1342677263,), (1342677267,), (1342677272,), (1342677275,), (1342677334,), (1342677338,), (1342677804,), (1342677830,), (1342677881,), (1342678072,), (1342678076,), (1342678079,), (1342678080,), (1342678156,), (1342678162,), (1342678168,), (1342678172,), (1342678329,), (1342678369,), (1342678380,), (1342678400,)) 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 (1342678400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21243129 , 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=21243106 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 (21243129) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21243106) result : ((1342675019,), (1342675443,), (1342675449,), (1342675452,), (1342675457,), (1342675459,), (1342675712,), (1342675734,), (1342676063,), (1342676089,), (1342676108,), (1342676662,), (1342676682,), (1342676727,), (1342676834,), (1342676841,), (1342676844,), (1342676864,), (1342677027,), (1342677098,), (1342677162,), (1342677202,), (1342677258,), (1342677263,), (1342677267,), (1342677272,), (1342677275,), (1342677334,), (1342677338,), (1342677804,), (1342677830,), (1342677881,), (1342678072,), (1342678076,), (1342678079,), (1342678080,), (1342678156,), (1342678162,), (1342678168,), (1342678172,), (1342678329,), (1342678369,), (1342678380,), (1342678400,)) 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 (1342678400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21243130 , 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=21243106 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 (21243130) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21243106) result : ((1342675019,), (1342675443,), (1342675449,), (1342675452,), (1342675457,), (1342675459,), (1342675712,), (1342675734,), (1342676063,), (1342676089,), (1342676108,), (1342676662,), (1342676682,), (1342676727,), (1342676834,), (1342676841,), (1342676844,), (1342676864,), (1342677027,), (1342677098,), (1342677162,), (1342677202,), (1342677258,), (1342677263,), (1342677267,), (1342677272,), (1342677275,), (1342677334,), (1342677338,), (1342677804,), (1342677830,), (1342677881,), (1342678072,), (1342678076,), (1342678079,), (1342678080,), (1342678156,), (1342678162,), (1342678168,), (1342678172,), (1342678329,), (1342678369,), (1342678380,), (1342678400,)) 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 (1342678400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21243131 , 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=21243106 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 (21243131) result : ((1342677464,), (1342677465,), (1342678123,), (1342678376,), (1342678377,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21243106) result : ((1342675019,), (1342675443,), (1342675449,), (1342675452,), (1342675457,), (1342675459,), (1342675712,), (1342675734,), (1342676063,), (1342676089,), (1342676108,), (1342676662,), (1342676682,), (1342676727,), (1342676834,), (1342676841,), (1342676844,), (1342676864,), (1342677027,), (1342677098,), (1342677162,), (1342677202,), (1342677258,), (1342677263,), (1342677267,), (1342677272,), (1342677275,), (1342677334,), (1342677338,), (1342677804,), (1342677830,), (1342677881,), (1342678072,), (1342678076,), (1342678079,), (1342678080,), (1342678156,), (1342678162,), (1342678168,), (1342678172,), (1342678329,), (1342678369,), (1342678380,), (1342678400,)) 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 (1342678400) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21243106 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','metal','Carton_brun','plastique','Teint_Dans_La_Masse','Carton_gris','mal_croppe','papier','environnement','autre_refus','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21243106 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','metal','Carton_brun','plastique','Teint_Dans_La_Masse','Carton_gris','mal_croppe','papier','environnement','autre_refus','flou')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 21243106, 'sub_port_id': 21243132, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832318, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 37)}, 'Carton_gris': {'main_port_id': 21243106, 'sub_port_id': 21243133, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832319, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 37)}, 'mal_croppe': {'main_port_id': 21243106, 'sub_port_id': 21243134, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832320, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 37)}, 'metal': {'main_port_id': 21243106, 'sub_port_id': 21243135, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832321, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 37)}, 'Teint_Dans_La_Masse': {'main_port_id': 21243106, 'sub_port_id': 21243136, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832322, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 37)}, 'plastique': {'main_port_id': 21243106, 'sub_port_id': 21243137, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832323, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 37)}, 'Carton_brun': {'main_port_id': 21243106, 'sub_port_id': 21243138, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832324, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 37)}, 'autre_refus': {'main_port_id': 21243106, 'sub_port_id': 21243139, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832325, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 37)}, 'flou': {'main_port_id': 21243106, 'sub_port_id': 21243140, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832326, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 37)}, 'environnement': {'main_port_id': 21243106, 'sub_port_id': 21243141, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832327, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 37)}, 'papier': {'main_port_id': 21243106, 'sub_port_id': 21243142, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832328, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 37)}, 'kraft': {'main_port_id': 21243106, 'sub_port_id': 21243143, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13832329, 'last_updated_at': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 21, 57, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 21, 49, 37)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21243132,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21243120 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21243133,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21243121 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21243134,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21243122 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21243135,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21243123 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21243136,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21243124 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21243137,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21243125 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21243138,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21243126 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21243139,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21243127 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21243140,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21243128 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21243141,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21243129 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21243142,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21243130 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21243143,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21243131 lien utilise dans velours : https://www.fotonower.com/velours/21243132,21243133,21243134,21243135,21243136,21243137,21243138,21243139,21243140,21243141,21243142,21243143?tags=cartonnette,Carton_gris,mal_croppe,metal,Teint_Dans_La_Masse,plastique,Carton_brun,autre_refus,flou,environnement,papier,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21243106]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1342678400, 1342678380, 1342678369, 1342678329, 1342678172, 1342678168, 1342678162, 1342678156] map_info['map_portfolio_photo'] : {21243106: [1342678400, 1342678380, 1342678369, 1342678329, 1342678172, 1342678168, 1342678162, 1342678156, 1342678080, 1342678079, 1342678076, 1342678072, 1342677881, 1342677830, 1342677804, 1342677338, 1342677334, 1342677275, 1342677272, 1342677267, 1342677263, 1342677258, 1342677202, 1342677162, 1342677098, 1342677027, 1342676864, 1342676844, 1342676841, 1342676834, 1342676727, 1342676682, 1342676662, 1342676108, 1342676089, 1342676063, 1342675734, 1342675712, 1342675459, 1342675457, 1342675452, 1342675449, 1342675443, 1342675019]} final : False mtd_id 4302 list_pids : [1342678400, 1342678380, 1342678369, 1342678329, 1342678172, 1342678168, 1342678162, 1342678156] Looping around the photos to save general results len do output : 1 /21243106. 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, '2655745') ('4302', '21243106', '1342678400', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678380', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678369', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678329', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678172', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678168', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678162', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678156', None, None, None, None, None, '2655745') 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', None, '21243106', "{'cartonnette': 21243120, 'Carton_gris': 21243121, 'mal_croppe': 21243122, 'metal': 21243123, 'Teint_Dans_La_Masse': 21243124, 'plastique': 21243125, 'Carton_brun': 21243126, 'autre_refus': 21243127, 'flou': 21243128, 'environnement': 21243129, 'papier': 21243130, 'kraft': 21243131}", None, None, None, None, '2655745'), ('4302', '21243106', '1342678400', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678380', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678369', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678329', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678172', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678168', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678162', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678156', None, None, None, None, None, '2655745')] time used for this insertion : 0.015674829483032227 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5302548408508301 time spend to save output : 0.016022443771362305 total time spend for step 1 : 0.5462772846221924 step2:final Mon Mar 10 22:00:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21243106) 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 21243106 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1342675019,1342675459,1342675457,1342675452,1342675449,1342675443,1342675734,1342675712,1342676108,1342676089,1342676063,1342676727,1342676682,1342676662,1342676864,1342676844,1342676841,1342676834,1342677202,1342677162,1342677098,1342677027,1342677275,1342677272,1342677267,1342677263,1342677258,1342677338,1342677334,1342677881,1342677830,1342677804,1342678080,1342678079,1342678076,1342678072,1342678172,1342678168,1342678162,1342678156,1342678400,1342678380,1342678369,1342678329); 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([21243106]) Inside saveOutput : final : False verbose : True original output for save of step final : {1342678400: ('0.10093857621542662',), 1342678380: ('0.10093857621542662',), 1342678369: ('0.10093857621542662',), 1342678329: ('0.10093857621542662',), 1342678172: ('0.10093857621542662',), 1342678168: ('0.10093857621542662',), 1342678162: ('0.10093857621542662',), 1342678156: ('0.10093857621542662',)} new output for save of step final : {1342678400: ('0.10093857621542662',), 1342678380: ('0.10093857621542662',), 1342678369: ('0.10093857621542662',), 1342678329: ('0.10093857621542662',), 1342678172: ('0.10093857621542662',), 1342678168: ('0.10093857621542662',), 1342678162: ('0.10093857621542662',), 1342678156: ('0.10093857621542662',)} [1342678400, 1342678380, 1342678369, 1342678329, 1342678172, 1342678168, 1342678162, 1342678156] map_info['map_portfolio_photo'] : {21243106: [1342678400, 1342678380, 1342678369, 1342678329, 1342678172, 1342678168, 1342678162, 1342678156, 1342678080, 1342678079, 1342678076, 1342678072, 1342677881, 1342677830, 1342677804, 1342677338, 1342677334, 1342677275, 1342677272, 1342677267, 1342677263, 1342677258, 1342677202, 1342677162, 1342677098, 1342677027, 1342676864, 1342676844, 1342676841, 1342676834, 1342676727, 1342676682, 1342676662, 1342676108, 1342676089, 1342676063, 1342675734, 1342675712, 1342675459, 1342675457, 1342675452, 1342675449, 1342675443, 1342675019]} final : False mtd_id 4302 list_pids : [1342678400, 1342678380, 1342678369, 1342678329, 1342678172, 1342678168, 1342678162, 1342678156] Looping around the photos to save general results len do output : 8 /1342678400.Didn't retrieve data . /1342678380.Didn't retrieve data . /1342678369.Didn't retrieve data . /1342678329.Didn't retrieve data . /1342678172.Didn't retrieve data . /1342678168.Didn't retrieve data . /1342678162.Didn't retrieve data . /1342678156.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, '2655745') ('4302', '21243106', '1342678400', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678380', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678369', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678329', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678172', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678168', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678162', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678156', None, None, None, None, None, '2655745') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '21243106', '1342678400', '0.10093857621542662', None, None, None, None, '2655745'), ('4302', '21243106', '1342678380', '0.10093857621542662', None, None, None, None, '2655745'), ('4302', '21243106', '1342678369', '0.10093857621542662', None, None, None, None, '2655745'), ('4302', '21243106', '1342678329', '0.10093857621542662', None, None, None, None, '2655745'), ('4302', '21243106', '1342678172', '0.10093857621542662', None, None, None, None, '2655745'), ('4302', '21243106', '1342678168', '0.10093857621542662', None, None, None, None, '2655745'), ('4302', '21243106', '1342678162', '0.10093857621542662', None, None, None, None, '2655745'), ('4302', '21243106', '1342678156', '0.10093857621542662', None, None, None, None, '2655745')] time used for this insertion : 0.01362919807434082 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07480931282043457 time spend to save output : 0.014100790023803711 total time spend for step 2 : 0.08891010284423828 step3:velours_tree Mon Mar 10 22:00:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21243106: [{'cartonnette': 21243120, 'Carton_gris': 21243121, 'mal_croppe': 21243122, 'metal': 21243123, 'Teint_Dans_La_Masse': 21243124, 'plastique': 21243125, 'Carton_brun': 21243126, 'autre_refus': 21243127, 'flou': 21243128, 'environnement': 21243129, 'papier': 21243130, 'kraft': 21243131}]} input_args_next_step : {21243106: ()} output_args : {21243106: [{'cartonnette': 21243120, 'Carton_gris': 21243121, 'mal_croppe': 21243122, 'metal': 21243123, 'Teint_Dans_La_Masse': 21243124, 'plastique': 21243125, 'Carton_brun': 21243126, 'autre_refus': 21243127, 'flou': 21243128, 'environnement': 21243129, 'papier': 21243130, 'kraft': 21243131}]} args : 21243106 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 : ({'cartonnette': 21243120, 'Carton_gris': 21243121, 'mal_croppe': 21243122, 'metal': 21243123, 'Teint_Dans_La_Masse': 21243124, 'plastique': 21243125, 'Carton_brun': 21243126, 'autre_refus': 21243127, 'flou': 21243128, 'environnement': 21243129, 'papier': 21243130, 'kraft': 21243131},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21243106) 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([21243106]) 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.429943323135376 time spend to save output : 8.106231689453125e-05 total time spend for step 3 : 0.4300243854522705 step4:send_mail_cod Mon Mar 10 22:01:00 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 : {1342678400: ('0.10093857621542662',), 1342678380: ('0.10093857621542662',), 1342678369: ('0.10093857621542662',), 1342678329: ('0.10093857621542662',), 1342678172: ('0.10093857621542662',), 1342678168: ('0.10093857621542662',), 1342678162: ('0.10093857621542662',), 1342678156: ('0.10093857621542662',)} input_args_next_step : {1342678400: ()} output_args : {1342678400: ('0.10093857621542662',), 1342678380: ('0.10093857621542662',), 1342678369: ('0.10093857621542662',), 1342678329: ('0.10093857621542662',), 1342678172: ('0.10093857621542662',), 1342678168: ('0.10093857621542662',), 1342678162: ('0.10093857621542662',), 1342678156: ('0.10093857621542662',)} args : 1342678400 depend.output_id : 0 input_args_next_step : {1342678400: ('0.10093857621542662',), 1342678380: ()} output_args : {1342678400: ('0.10093857621542662',), 1342678380: ('0.10093857621542662',), 1342678369: ('0.10093857621542662',), 1342678329: ('0.10093857621542662',), 1342678172: ('0.10093857621542662',), 1342678168: ('0.10093857621542662',), 1342678162: ('0.10093857621542662',), 1342678156: ('0.10093857621542662',)} args : 1342678380 depend.output_id : 0 input_args_next_step : {1342678400: ('0.10093857621542662',), 1342678380: ('0.10093857621542662',), 1342678369: ()} output_args : {1342678400: ('0.10093857621542662',), 1342678380: ('0.10093857621542662',), 1342678369: ('0.10093857621542662',), 1342678329: ('0.10093857621542662',), 1342678172: ('0.10093857621542662',), 1342678168: ('0.10093857621542662',), 1342678162: ('0.10093857621542662',), 1342678156: ('0.10093857621542662',)} args : 1342678369 depend.output_id : 0 input_args_next_step : {1342678400: ('0.10093857621542662',), 1342678380: ('0.10093857621542662',), 1342678369: ('0.10093857621542662',), 1342678329: ()} output_args : {1342678400: ('0.10093857621542662',), 1342678380: ('0.10093857621542662',), 1342678369: ('0.10093857621542662',), 1342678329: ('0.10093857621542662',), 1342678172: ('0.10093857621542662',), 1342678168: ('0.10093857621542662',), 1342678162: ('0.10093857621542662',), 1342678156: ('0.10093857621542662',)} args : 1342678329 depend.output_id : 0 input_args_next_step : {1342678400: ('0.10093857621542662',), 1342678380: ('0.10093857621542662',), 1342678369: ('0.10093857621542662',), 1342678329: ('0.10093857621542662',), 1342678172: ()} output_args : {1342678400: ('0.10093857621542662',), 1342678380: ('0.10093857621542662',), 1342678369: ('0.10093857621542662',), 1342678329: ('0.10093857621542662',), 1342678172: ('0.10093857621542662',), 1342678168: ('0.10093857621542662',), 1342678162: ('0.10093857621542662',), 1342678156: ('0.10093857621542662',)} args : 1342678172 depend.output_id : 0 input_args_next_step : {1342678400: ('0.10093857621542662',), 1342678380: ('0.10093857621542662',), 1342678369: ('0.10093857621542662',), 1342678329: ('0.10093857621542662',), 1342678172: ('0.10093857621542662',), 1342678168: ()} output_args : {1342678400: ('0.10093857621542662',), 1342678380: ('0.10093857621542662',), 1342678369: ('0.10093857621542662',), 1342678329: ('0.10093857621542662',), 1342678172: ('0.10093857621542662',), 1342678168: ('0.10093857621542662',), 1342678162: ('0.10093857621542662',), 1342678156: ('0.10093857621542662',)} args : 1342678168 depend.output_id : 0 input_args_next_step : {1342678400: ('0.10093857621542662',), 1342678380: ('0.10093857621542662',), 1342678369: ('0.10093857621542662',), 1342678329: ('0.10093857621542662',), 1342678172: ('0.10093857621542662',), 1342678168: ('0.10093857621542662',), 1342678162: ()} output_args : {1342678400: ('0.10093857621542662',), 1342678380: ('0.10093857621542662',), 1342678369: ('0.10093857621542662',), 1342678329: ('0.10093857621542662',), 1342678172: ('0.10093857621542662',), 1342678168: ('0.10093857621542662',), 1342678162: ('0.10093857621542662',), 1342678156: ('0.10093857621542662',)} args : 1342678162 depend.output_id : 0 input_args_next_step : {1342678400: ('0.10093857621542662',), 1342678380: ('0.10093857621542662',), 1342678369: ('0.10093857621542662',), 1342678329: ('0.10093857621542662',), 1342678172: ('0.10093857621542662',), 1342678168: ('0.10093857621542662',), 1342678162: ('0.10093857621542662',), 1342678156: ()} output_args : {1342678400: ('0.10093857621542662',), 1342678380: ('0.10093857621542662',), 1342678369: ('0.10093857621542662',), 1342678329: ('0.10093857621542662',), 1342678172: ('0.10093857621542662',), 1342678168: ('0.10093857621542662',), 1342678162: ('0.10093857621542662',), 1342678156: ('0.10093857621542662',)} args : 1342678156 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 : {21243106: [{'cartonnette': 21243120, 'Carton_gris': 21243121, 'mal_croppe': 21243122, 'metal': 21243123, 'Teint_Dans_La_Masse': 21243124, 'plastique': 21243125, 'Carton_brun': 21243126, 'autre_refus': 21243127, 'flou': 21243128, 'environnement': 21243129, 'papier': 21243130, 'kraft': 21243131}]} input_args_next_step : {1342678400: ('0.10093857621542662',), 1342678380: ('0.10093857621542662',), 1342678369: ('0.10093857621542662',), 1342678329: ('0.10093857621542662',), 1342678172: ('0.10093857621542662',), 1342678168: ('0.10093857621542662',), 1342678162: ('0.10093857621542662',), 1342678156: ('0.10093857621542662',), 21243106: ()} output_args : {21243106: [{'cartonnette': 21243120, 'Carton_gris': 21243121, 'mal_croppe': 21243122, 'metal': 21243123, 'Teint_Dans_La_Masse': 21243124, 'plastique': 21243125, 'Carton_brun': 21243126, 'autre_refus': 21243127, 'flou': 21243128, 'environnement': 21243129, 'papier': 21243130, 'kraft': 21243131}]} args : 21243106 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 :9, first value : ('0.10093857621542662',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21243106) 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 (1342678400,1342678380,1342678369,1342678329,1342678172,1342678168,1342678162,1342678156) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1342678156 begin to download photo : 1342678168 begin to download photo : 1342678329 begin to download photo : 1342678380 download finish for photo 1342678156 begin to download photo : 1342678162 download finish for photo 1342678380 begin to download photo : 1342678400 download finish for photo 1342678168 begin to download photo : 1342678172 download finish for photo 1342678329 begin to download photo : 1342678369 download finish for photo 1342678162 download finish for photo 1342678172 download finish for photo 1342678369 download finish for photo 1342678400 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 : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P21243106_10-03-2025_22_01_00.pdf 21243120 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=21243120 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342676796: '1741639835_45556_1342675459_8488ae740596548c309c9bc88da2c9d2_rle_crop_3703551048_0.png', 1342676815: '1741639814_45322_1342675452_6dba0745c59d7fa33fcd37a70590d74e_rle_crop_3703551018_0.png', 1342677235: '1741639933_46376_1342676682_10032ccaf0bfb1fad27c7d9e7b2b9f78_rle_crop_3703553349_0.png', 1342677431: '1741640066_413845_1342677202_8a9fcd65bf7830f4a34949b116b4f2b3_rle_crop_3703555020_0.png', 1342677433: '1741640066_413845_1342676844_2b99f7dfc169702d4b3163ba720e76e3_rle_crop_3703555039_0.png', 1342677435: '1741640066_413845_1342676841_9819cfec6762dcc694239038d40f33ff_rle_crop_3703555064_0.png', 1342677451: '1741640053_47252_1342677027_7f4037122a58f63c5e576556091312fd_rle_crop_3703555162_0.png', 1342678108: '1741640172_48382_1342677272_1d3dc79738ec9693ea93c8a63ed1af34_rle_crop_3703558356_0.png', 1342678367: '1741640292_49052_1342678079_0b5c3a8e563bb370af7174b0ceb876dd_rle_crop_3703559787_0.png', 1342678368: '1741640292_49052_1342678076_42b736a0b0a3f3cb14403fe8797e5bbf_rle_crop_3703559879_0.png', 1342678432: '1741640313_49183_1342678080_407107e5640d32ddfc0aeeab4a9a0161_rle_crop_3703560219_0.png', 1342678437: '1741640313_49183_1342678080_407107e5640d32ddfc0aeeab4a9a0161_rle_crop_3703560216_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/42a127aece60f329ad37625ea93ef217_15971782.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/25da26f7ab80b32992a24a91740330d0_68014663.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/10eead7be58502414d928a1edfed0db1_91705743.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/3c7764f135d37a2e2523d2fed53f76bf_70002283.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b8080bee0a9a06500fea44efe1351745_17269772.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/e88cd6b369846235f8a0e3dfcee2ec56_30114358.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/41c2bc074bbffe0c8482a9b427accbcb_62670314.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/44f1065dc26da3b4f871e685e9683044_69670500.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/cb4c974de7b97ba2a4df33aa44694315_75474848.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/592588de8d9af4a103d01cd29d3afea8_56299943.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/06c5c1634654fc888fb66e60b41bd168_88948611.png change filename to text .imagette212431201741640460/ imagette212431201741640460/1741640292_49052_1342678076_42b736a0b0a3f3cb14403fe8797e5bbf_rle_crop_3703559879_0.png.png imagette212431201741640460/1741640313_49183_1342678080_407107e5640d32ddfc0aeeab4a9a0161_rle_crop_3703560219_0.png.png imagette212431201741640460/1741640066_413845_1342676841_9819cfec6762dcc694239038d40f33ff_rle_crop_3703555064_0.png.png imagette212431201741640460/1741640066_413845_1342676844_2b99f7dfc169702d4b3163ba720e76e3_rle_crop_3703555039_0.png.png imagette212431201741640460/1741640313_49183_1342678080_407107e5640d32ddfc0aeeab4a9a0161_rle_crop_3703560216_0.png.png imagette212431201741640460/1741639835_45556_1342675459_8488ae740596548c309c9bc88da2c9d2_rle_crop_3703551048_0.png.png imagette212431201741640460/1741639814_45322_1342675452_6dba0745c59d7fa33fcd37a70590d74e_rle_crop_3703551018_0.png.png imagette212431201741640460/1741639933_46376_1342676682_10032ccaf0bfb1fad27c7d9e7b2b9f78_rle_crop_3703553349_0.png.png imagette212431201741640460/1741640066_413845_1342677202_8a9fcd65bf7830f4a34949b116b4f2b3_rle_crop_3703555020_0.png.png imagette212431201741640460/1741640053_47252_1342677027_7f4037122a58f63c5e576556091312fd_rle_crop_3703555162_0.png.png imagette212431201741640460/1741640172_48382_1342677272_1d3dc79738ec9693ea93c8a63ed1af34_rle_crop_3703558356_0.png.png imagette212431201741640460/1741640292_49052_1342678079_0b5c3a8e563bb370af7174b0ceb876dd_rle_crop_3703559787_0.png.png imagette212431221741640461/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/81f779a7fe80c3c7a0a640a8f1e12495_44064235.png imagette212431201741640460 21243122 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=21243122 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212431221741640461 21243123 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=21243123 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342676826: '1741639814_45322_1342675452_6dba0745c59d7fa33fcd37a70590d74e_rle_crop_3703551025_0.png', 1342676827: '1741639814_45322_1342675449_68280e5e44618bb92c6c7a1f959ebd07_rle_crop_3703551070_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/df56ab3d524ac1de5e871a6ed64a828a_85868869.png change filename to text .imagette212431231741640461/ imagette212431231741640461/1741639814_45322_1342675452_6dba0745c59d7fa33fcd37a70590d74e_rle_crop_3703551025_0.png.png imagette212431231741640461/1741639814_45322_1342675449_68280e5e44618bb92c6c7a1f959ebd07_rle_crop_3703551070_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/c3360c776ffd65290ab602bed42f1b83_83795605.png imagette212431231741640461 21243125 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=21243125 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342676822: '1741639814_45322_1342675734_355ae45926e1860a5c66d408348889d7_rle_crop_3703550986_0.png', 1342676823: '1741639814_45322_1342675457_33fcf7d67f5786f1ad77f1d9af56b789_rle_crop_3703550999_0.png', 1342676824: '1741639814_45322_1342675452_6dba0745c59d7fa33fcd37a70590d74e_rle_crop_3703551028_0.png', 1342677236: '1741639950_46581_1342675712_012a6ad9673cdcc7de66eaa148914e2a_rle_crop_3703553492_0.png', 1342677239: '1741639933_46376_1342676682_10032ccaf0bfb1fad27c7d9e7b2b9f78_rle_crop_3703553347_0.png', 1342677240: '1741639933_46376_1342676662_8c35c5df984120f1193315a5c229cfb5_rle_crop_3703553472_0.png', 1342677242: '1741639948_411192_1342676727_e51bc80435e7ec0db0e6aed642adfa05_rle_crop_3703553326_0.png', 1342677243: '1741639948_411192_1342676089_ae2076b80f22784a4f7d9b974a1f971f_rle_crop_3703553466_0.png', 1342677452: '1741640066_413845_1342676841_9819cfec6762dcc694239038d40f33ff_rle_crop_3703555068_0.png', 1342677454: '1741640066_413845_1342676834_d27203ddf290992ba02faecb1b0bccc5_rle_crop_3703555093_0.png', 1342678121: '1741640172_48382_1342677258_61640dd696492dc23e4eb551bb7bffbb_rle_crop_3703558409_0.png', 1342678372: '1741640292_49052_1342678079_0b5c3a8e563bb370af7174b0ceb876dd_rle_crop_3703559794_0.png', 1342678373: '1741640292_49052_1342678076_42b736a0b0a3f3cb14403fe8797e5bbf_rle_crop_3703559881_0.png', 1342678456: '1741640313_49183_1342678080_407107e5640d32ddfc0aeeab4a9a0161_rle_crop_3703560223_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4eeb6ab5b077b6c890d8e020f2543c66_83815979.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b53fe48bf58cd1d19e5eef7ce369d964_35812859.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/39dab134502dd4184b3deff1779d1606_50341003.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/23fcfead7846d402f2338fc809699b96_1362925.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4da6d866cf9d62a82e6af7879ae2846e_34619308.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/277e638fc9b71c6439b8b0153ab89ae4_73437883.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4989eb089de09593b88ea9b65da2e111_24784171.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4ddb8a416ef2780625dafacec9a983c1_65810973.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f3936d3f1f83b8842791102591a4f63d_50337803.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/16dd5b1de12339515b264535be3c8bee_322160.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d3e43305d758755f68e7c8f41a99a1a6_5883884.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f8bc618a986bf74bb42808e12c038602_51422335.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/da184f0f7be1cc783373bf36a73ef60c_89076224.png change filename to text .imagette212431251741640461/ imagette212431251741640461/1741640172_48382_1342677258_61640dd696492dc23e4eb551bb7bffbb_rle_crop_3703558409_0.png.png imagette212431251741640461/1741640292_49052_1342678076_42b736a0b0a3f3cb14403fe8797e5bbf_rle_crop_3703559881_0.png.png imagette212431251741640461/1741639814_45322_1342675452_6dba0745c59d7fa33fcd37a70590d74e_rle_crop_3703551028_0.png.png imagette212431251741640461/1741640292_49052_1342678079_0b5c3a8e563bb370af7174b0ceb876dd_rle_crop_3703559794_0.png.png imagette212431251741640461/1741640066_413845_1342676834_d27203ddf290992ba02faecb1b0bccc5_rle_crop_3703555093_0.png.png imagette212431251741640461/1741640066_413845_1342676841_9819cfec6762dcc694239038d40f33ff_rle_crop_3703555068_0.png.png imagette212431251741640461/1741639814_45322_1342675457_33fcf7d67f5786f1ad77f1d9af56b789_rle_crop_3703550999_0.png.png imagette212431251741640461/1741639948_411192_1342676727_e51bc80435e7ec0db0e6aed642adfa05_rle_crop_3703553326_0.png.png imagette212431251741640461/1741639933_46376_1342676662_8c35c5df984120f1193315a5c229cfb5_rle_crop_3703553472_0.png.png imagette212431251741640461/1741639814_45322_1342675734_355ae45926e1860a5c66d408348889d7_rle_crop_3703550986_0.png.png imagette212431251741640461/1741639948_411192_1342676089_ae2076b80f22784a4f7d9b974a1f971f_rle_crop_3703553466_0.png.png imagette212431251741640461/1741639933_46376_1342676682_10032ccaf0bfb1fad27c7d9e7b2b9f78_rle_crop_3703553347_0.png.png imagette212431251741640461/1741640313_49183_1342678080_407107e5640d32ddfc0aeeab4a9a0161_rle_crop_3703560223_0.png.png imagette212431251741640461/1741639950_46581_1342675712_012a6ad9673cdcc7de66eaa148914e2a_rle_crop_3703553492_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/6c1139dd651033d993333f0c5d47ceef_60983072.png imagette212431251741640461 21243127 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=21243127 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342678100: '1741640172_48382_1342677258_61640dd696492dc23e4eb551bb7bffbb_rle_crop_3703558403_0.png', 1342677428: '1741640053_47252_1342677027_7f4037122a58f63c5e576556091312fd_rle_crop_3703555160_0.png', 1342677429: '1741640053_47252_1342677027_7f4037122a58f63c5e576556091312fd_rle_crop_3703555177_0.png', 1342678094: '1741640172_48382_1342677272_1d3dc79738ec9693ea93c8a63ed1af34_rle_crop_3703558364_0.png', 1342678095: '1741640172_48382_1342677267_6d6a5f4ca25b1a4fadbdb32caf8c2bbb_rle_crop_3703558372_0.png', 1342678096: '1741640172_48382_1342677267_6d6a5f4ca25b1a4fadbdb32caf8c2bbb_rle_crop_3703558375_0.png', 1342678097: '1741640172_48382_1342677267_6d6a5f4ca25b1a4fadbdb32caf8c2bbb_rle_crop_3703558381_0.png', 1342678098: '1741640172_48382_1342677263_d1accfeb464d9f56a9b2febf535597e5_rle_crop_3703558390_0.png', 1342678099: '1741640172_48382_1342677263_d1accfeb464d9f56a9b2febf535597e5_rle_crop_3703558395_0.png', 1342677427: '1741640053_47252_1342677098_eeedd1d2ce3bdd5a014634b547afc98d_rle_crop_3703555113_0.png', 1342678101: '1741640172_48382_1342677258_61640dd696492dc23e4eb551bb7bffbb_rle_crop_3703558414_0.png', 1342678362: '1741640292_49052_1342678079_0b5c3a8e563bb370af7174b0ceb876dd_rle_crop_3703559797_0.png', 1342678363: '1741640292_49052_1342678076_42b736a0b0a3f3cb14403fe8797e5bbf_rle_crop_3703559883_0.png', 1342678364: '1741640292_49052_1342678072_6dd2417d4df75756ec3688b74e858e3b_rle_crop_3703559894_0.png', 1342678379: '1741640307_417751_1342677881_34cc850518db58b179716d76e00316bc_rle_crop_3703559903_0.png', 1342678420: '1741640313_49183_1342678080_407107e5640d32ddfc0aeeab4a9a0161_rle_crop_3703560225_0.png', 1342678421: '1741640313_49183_1342677804_5243fe2c6608bc5bd1b63a715aabd682_rle_crop_3703560305_0.png', 1342677225: '1741639933_46376_1342676682_10032ccaf0bfb1fad27c7d9e7b2b9f78_rle_crop_3703553351_0.png', 1342676757: '1741639835_45556_1342675459_8488ae740596548c309c9bc88da2c9d2_rle_crop_3703551051_0.png', 1342676758: '1741639814_45322_1342675457_33fcf7d67f5786f1ad77f1d9af56b789_rle_crop_3703551002_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d64e3be05b63907be4810780bc1e0e20_74032727.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/e6d5e941abeaf8f7190ef16ea10a5da0_78740439.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a233e72ca56e75c4e1f3e4b70ad610f1_30059807.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/e0a4f552dd1eb8058eb6ed7320a33e9f_67115579.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/1becc35f436fa06417b13ff1760df989_57462597.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/343e2be52166e668b13697b570965a24_68788638.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/69e17e84c0c3f6fd93a6043063db139e_53231812.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a7270946d6b2ce5602e0c120ec528b3f_86186183.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/5963030232b75f35637f6e010f340bb7_24392327.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/ec3aecddebba0247c0602ea9d27b44ee_62807485.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/7a66310e787627f9cff125c8cfdcb517_38571737.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/bf3432d0992430f831f2957cc9331772_36069445.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/fc2177ca8b33f9274db60e4f61b70598_62660599.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/40bf0dda78cb8b114f6d5771e85ed5d6_18286638.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/54f79095e236202c2074f23a19f315f9_43585074.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/04005d90791659d8a10f335fb707bbcd_81415407.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/dfbdaccd91cedba67bf15b6f3018966a_13826923.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d0273d0f41814e1a7870628146fa158a_54188450.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/2b084ac5d918e2934a843192def57f4e_8199494.png change filename to text .imagette212431271741640462/ imagette212431271741640462/1741639835_45556_1342675459_8488ae740596548c309c9bc88da2c9d2_rle_crop_3703551051_0.png.png imagette212431271741640462/1741640172_48382_1342677258_61640dd696492dc23e4eb551bb7bffbb_rle_crop_3703558414_0.png.png imagette212431271741640462/1741640172_48382_1342677258_61640dd696492dc23e4eb551bb7bffbb_rle_crop_3703558403_0.png.png imagette212431271741640462/1741640292_49052_1342678079_0b5c3a8e563bb370af7174b0ceb876dd_rle_crop_3703559797_0.png.png imagette212431271741640462/1741640292_49052_1342678076_42b736a0b0a3f3cb14403fe8797e5bbf_rle_crop_3703559883_0.png.png imagette212431271741640462/1741640307_417751_1342677881_34cc850518db58b179716d76e00316bc_rle_crop_3703559903_0.png.png imagette212431271741640462/1741640172_48382_1342677267_6d6a5f4ca25b1a4fadbdb32caf8c2bbb_rle_crop_3703558372_0.png.png imagette212431271741640462/1741640292_49052_1342678072_6dd2417d4df75756ec3688b74e858e3b_rle_crop_3703559894_0.png.png imagette212431271741640462/1741640172_48382_1342677272_1d3dc79738ec9693ea93c8a63ed1af34_rle_crop_3703558364_0.png.png imagette212431271741640462/1741640313_49183_1342677804_5243fe2c6608bc5bd1b63a715aabd682_rle_crop_3703560305_0.png.png imagette212431271741640462/1741640172_48382_1342677267_6d6a5f4ca25b1a4fadbdb32caf8c2bbb_rle_crop_3703558381_0.png.png imagette212431271741640462/1741640053_47252_1342677027_7f4037122a58f63c5e576556091312fd_rle_crop_3703555160_0.png.png imagette212431271741640462/1741640172_48382_1342677263_d1accfeb464d9f56a9b2febf535597e5_rle_crop_3703558395_0.png.png imagette212431271741640462/1741640313_49183_1342678080_407107e5640d32ddfc0aeeab4a9a0161_rle_crop_3703560225_0.png.png imagette212431271741640462/1741640172_48382_1342677263_d1accfeb464d9f56a9b2febf535597e5_rle_crop_3703558390_0.png.png imagette212431271741640462/1741640172_48382_1342677267_6d6a5f4ca25b1a4fadbdb32caf8c2bbb_rle_crop_3703558375_0.png.png imagette212431271741640462/1741639814_45322_1342675457_33fcf7d67f5786f1ad77f1d9af56b789_rle_crop_3703551002_0.png.png imagette212431271741640462/1741640053_47252_1342677098_eeedd1d2ce3bdd5a014634b547afc98d_rle_crop_3703555113_0.png.png imagette212431271741640462/1741639933_46376_1342676682_10032ccaf0bfb1fad27c7d9e7b2b9f78_rle_crop_3703553351_0.png.png imagette212431271741640462/1741640053_47252_1342677027_7f4037122a58f63c5e576556091312fd_rle_crop_3703555177_0.png.png imagette212431281741640463/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/cb6a29c79c6995498bee8bb6b7eadc3a_26543092.png imagette212431271741640462 21243128 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=21243128 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212431281741640463 21243131 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=21243131 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342677464: '1741640053_47252_1342677162_92c015295e919df434e8f53f27770a0c_rle_crop_3703555083_0.png', 1342677465: '1741640053_47252_1342677162_92c015295e919df434e8f53f27770a0c_rle_crop_3703555075_0.png', 1342678123: '1741640172_48382_1342677267_6d6a5f4ca25b1a4fadbdb32caf8c2bbb_rle_crop_3703558378_0.png', 1342678376: '1741640292_49052_1342678079_0b5c3a8e563bb370af7174b0ceb876dd_rle_crop_3703559793_0.png', 1342678377: '1741640292_49052_1342678076_42b736a0b0a3f3cb14403fe8797e5bbf_rle_crop_3703559877_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/38ad6e25e2dafbe06ba584ba377d07d9_81210590.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/71edb8d62a9935e6a33d3cead6a1286d_9207439.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f715f154a8c8a4807c0f1e541584e3f8_36400782.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/6e6b98dfc1f61f6b603f30ea976b723e_63720872.png change filename to text .imagette212431311741640463/ imagette212431311741640463/1741640292_49052_1342678076_42b736a0b0a3f3cb14403fe8797e5bbf_rle_crop_3703559877_0.png.png imagette212431311741640463/1741640292_49052_1342678079_0b5c3a8e563bb370af7174b0ceb876dd_rle_crop_3703559793_0.png.png imagette212431311741640463/1741640053_47252_1342677162_92c015295e919df434e8f53f27770a0c_rle_crop_3703555075_0.png.png imagette212431311741640463/1741640053_47252_1342677162_92c015295e919df434e8f53f27770a0c_rle_crop_3703555083_0.png.png imagette212431311741640463/1741640172_48382_1342677267_6d6a5f4ca25b1a4fadbdb32caf8c2bbb_rle_crop_3703558378_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4be2c0ff2e00fb21ca1f1fa21ca60195_32888021.png imagette212431311741640463 21243121 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=21243121 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342676764: '1741639835_45556_1342675459_8488ae740596548c309c9bc88da2c9d2_rle_crop_3703551043_0.png', 1342676766: '1741639835_45556_1342675459_8488ae740596548c309c9bc88da2c9d2_rle_crop_3703551036_0.png', 1342676789: '1741639814_45322_1342675457_33fcf7d67f5786f1ad77f1d9af56b789_rle_crop_3703550993_0.png', 1342676791: '1741639814_45322_1342675449_68280e5e44618bb92c6c7a1f959ebd07_rle_crop_3703551073_0.png', 1342676793: '1741639814_45322_1342675449_68280e5e44618bb92c6c7a1f959ebd07_rle_crop_3703551066_0.png', 1342677231: '1741639933_46376_1342676682_10032ccaf0bfb1fad27c7d9e7b2b9f78_rle_crop_3703553346_0.png', 1342677412: '1741640066_413845_1342677202_8a9fcd65bf7830f4a34949b116b4f2b3_rle_crop_3703555028_0.png', 1342677414: '1741640066_413845_1342676844_2b99f7dfc169702d4b3163ba720e76e3_rle_crop_3703555042_0.png', 1342677416: '1741640066_413845_1342676841_9819cfec6762dcc694239038d40f33ff_rle_crop_3703555061_0.png', 1342677418: '1741640066_413845_1342676834_d27203ddf290992ba02faecb1b0bccc5_rle_crop_3703555090_0.png', 1342678103: '1741640172_48382_1342677267_6d6a5f4ca25b1a4fadbdb32caf8c2bbb_rle_crop_3703558371_0.png', 1342678104: '1741640172_48382_1342677258_61640dd696492dc23e4eb551bb7bffbb_rle_crop_3703558408_0.png', 1342678422: '1741640313_49183_1342678080_407107e5640d32ddfc0aeeab4a9a0161_rle_crop_3703560215_0.png', 1342678423: '1741640313_49183_1342677830_40c6f32ab71ee30c37676a5e08a9aa4c_rle_crop_3703560285_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/eab7ec6dd88e628f83b089feda665bb0_70046926.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/5018e06a7ebfe7105bba9373b860909f_96937296.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/ede09373552b1fc71e73e12998bd2871_21111327.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/8ef1944a90dbf196a8daa298b2616772_99823492.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/3e769ff901da85c88895d637b893258f_11244342.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/9be75e2698736b83144d129afee74d3f_75318934.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f83148f2315b79abffed656fc20e0750_58275444.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4980aa388130fbd162b2de9a9e655718_74506496.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/79534d9bb23d077c2222f9a908bf1e20_97193871.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/422f2ac5d689bbd852923b3571bcfc06_96220244.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/c486ea42904992ff2f0d7b902dbb7cf3_40854318.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/da26755931f275801c68ea0586bf9133_15130785.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/ba74175998793f5df49cb3e903d9ce26_82398069.png change filename to text .imagette212431211741640463/ imagette212431211741640463/1741640172_48382_1342677258_61640dd696492dc23e4eb551bb7bffbb_rle_crop_3703558408_0.png.png imagette212431211741640463/1741640066_413845_1342676844_2b99f7dfc169702d4b3163ba720e76e3_rle_crop_3703555042_0.png.png imagette212431211741640463/1741640066_413845_1342677202_8a9fcd65bf7830f4a34949b116b4f2b3_rle_crop_3703555028_0.png.png imagette212431211741640463/1741639814_45322_1342675449_68280e5e44618bb92c6c7a1f959ebd07_rle_crop_3703551073_0.png.png imagette212431211741640463/1741639814_45322_1342675449_68280e5e44618bb92c6c7a1f959ebd07_rle_crop_3703551066_0.png.png imagette212431211741640463/1741640066_413845_1342676834_d27203ddf290992ba02faecb1b0bccc5_rle_crop_3703555090_0.png.png imagette212431211741640463/1741640313_49183_1342678080_407107e5640d32ddfc0aeeab4a9a0161_rle_crop_3703560215_0.png.png imagette212431211741640463/1741639835_45556_1342675459_8488ae740596548c309c9bc88da2c9d2_rle_crop_3703551036_0.png.png imagette212431211741640463/1741640066_413845_1342676841_9819cfec6762dcc694239038d40f33ff_rle_crop_3703555061_0.png.png imagette212431211741640463/1741640313_49183_1342677830_40c6f32ab71ee30c37676a5e08a9aa4c_rle_crop_3703560285_0.png.png imagette212431211741640463/1741639933_46376_1342676682_10032ccaf0bfb1fad27c7d9e7b2b9f78_rle_crop_3703553346_0.png.png imagette212431211741640463/1741639835_45556_1342675459_8488ae740596548c309c9bc88da2c9d2_rle_crop_3703551043_0.png.png imagette212431211741640463/1741640172_48382_1342677267_6d6a5f4ca25b1a4fadbdb32caf8c2bbb_rle_crop_3703558371_0.png.png imagette212431211741640463/1741639814_45322_1342675457_33fcf7d67f5786f1ad77f1d9af56b789_rle_crop_3703550993_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/5b0a21360028a2dd2ea38fc5ac0035ed_84418576.png imagette212431211741640463 21243124 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=21243124 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342676754: '1741639835_45556_1342675019_99568fd13969dbf99c4243c75b1d7c69_rle_crop_3703551133_0.png', 1342677221: '1741639933_46376_1342676662_8c35c5df984120f1193315a5c229cfb5_rle_crop_3703553478_0.png', 1342677222: '1741639950_46581_1342675712_012a6ad9673cdcc7de66eaa148914e2a_rle_crop_3703553491_0.png', 1342677230: '1741639948_411192_1342676089_ae2076b80f22784a4f7d9b974a1f971f_rle_crop_3703553467_0.png', 1342677411: '1741640053_47252_1342677162_92c015295e919df434e8f53f27770a0c_rle_crop_3703555080_0.png', 1342678375: '1741640307_417751_1342677334_867b5beb50889626bbecb879c5e5673b_rle_crop_3703559911_0.png', 1342678417: '1741640313_49183_1342677830_40c6f32ab71ee30c37676a5e08a9aa4c_rle_crop_3703560287_0.png', 1342678418: '1741640313_49183_1342677804_5243fe2c6608bc5bd1b63a715aabd682_rle_crop_3703560303_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a05f4dd10c9209a47ea727a9d821de73_82139825.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/404e5c410f008321e3fc430b59eca203_31694321.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/e74ee5546c38627780ec3b91958cf21d_5311396.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a4f034ecaf3776e13f2edd0a6274f49f_18892117.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b018b41b1f9edad4eab43197e869baf5_82829304.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d5ba88cc10d1f4eef22ac0d4f5dd8e4b_37349507.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f4e045ed80985c57b97705cbcf4c552c_76760440.png change filename to text .imagette212431241741640464/ imagette212431241741640464/1741639835_45556_1342675019_99568fd13969dbf99c4243c75b1d7c69_rle_crop_3703551133_0.png.png imagette212431241741640464/1741639950_46581_1342675712_012a6ad9673cdcc7de66eaa148914e2a_rle_crop_3703553491_0.png.png imagette212431241741640464/1741639933_46376_1342676662_8c35c5df984120f1193315a5c229cfb5_rle_crop_3703553478_0.png.png imagette212431241741640464/1741640307_417751_1342677334_867b5beb50889626bbecb879c5e5673b_rle_crop_3703559911_0.png.png imagette212431241741640464/1741640313_49183_1342677804_5243fe2c6608bc5bd1b63a715aabd682_rle_crop_3703560303_0.png.png imagette212431241741640464/1741640313_49183_1342677830_40c6f32ab71ee30c37676a5e08a9aa4c_rle_crop_3703560287_0.png.png imagette212431241741640464/1741639948_411192_1342676089_ae2076b80f22784a4f7d9b974a1f971f_rle_crop_3703553467_0.png.png imagette212431241741640464/1741640053_47252_1342677162_92c015295e919df434e8f53f27770a0c_rle_crop_3703555080_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/0de75879e6b03bd5b1e1c56966a8e44d_92217283.png imagette212431241741640464 21243126 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=21243126 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342676816: '1741639835_45556_1342675019_99568fd13969dbf99c4243c75b1d7c69_rle_crop_3703551134_0.png', 1342676817: '1741639814_45322_1342675734_355ae45926e1860a5c66d408348889d7_rle_crop_3703550985_0.png', 1342676818: '1741639814_45322_1342675449_68280e5e44618bb92c6c7a1f959ebd07_rle_crop_3703551074_0.png', 1342676819: '1741639814_45322_1342675443_0ee58f49e08fa37765a0f6a6c14e70ad_rle_crop_3703551151_0.png', 1342677232: '1741639950_46581_1342675712_012a6ad9673cdcc7de66eaa148914e2a_rle_crop_3703553494_0.png', 1342677442: '1741640066_413845_1342677202_8a9fcd65bf7830f4a34949b116b4f2b3_rle_crop_3703555023_0.png', 1342677444: '1741640066_413845_1342676834_d27203ddf290992ba02faecb1b0bccc5_rle_crop_3703555094_0.png', 1342677457: '1741640053_47252_1342677027_7f4037122a58f63c5e576556091312fd_rle_crop_3703555168_0.png', 1342678115: '1741640172_48382_1342677258_61640dd696492dc23e4eb551bb7bffbb_rle_crop_3703558410_0.png', 1342678116: '1741640172_48382_1342677258_61640dd696492dc23e4eb551bb7bffbb_rle_crop_3703558406_0.png', 1342678370: '1741640292_49052_1342678079_0b5c3a8e563bb370af7174b0ceb876dd_rle_crop_3703559795_0.png', 1342678371: '1741640292_49052_1342678076_42b736a0b0a3f3cb14403fe8797e5bbf_rle_crop_3703559882_0.png', 1342678455: '1741640313_49183_1342677804_5243fe2c6608bc5bd1b63a715aabd682_rle_crop_3703560301_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/1c4ffd9ee5abb529a89ffcb1922db0bc_22910383.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/911f5ee24ac02999bb1b55dc7cae861e_89244301.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/fddc782e0bcf79ae2c5a491da931da12_16956355.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/32dca8cf08cf73937d8e6ecaff06c002_71405275.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/858c5c6a78faa02ab6dd21d786dfa1ea_6026683.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/1cb0165b51737ab82fcfc343465da6da_41200609.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d5a52c982e85effd1a71cc85b625a2e5_15487524.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/c9c3d7b9d130c44c97f197dafca76fad_366076.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/6b725f1a54757c36c556d2e0c7fb9e45_64356404.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/1a6ed9f9dbb9dfef165c0647c44cedb0_31766878.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/5d379714361d734f11470c5c3e5fb1db_53496765.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/1b2fdde26e197e596c8ae1d7d1ecde6f_28250238.png change filename to text .imagette212431261741640464/ imagette212431261741640464/1741640292_49052_1342678079_0b5c3a8e563bb370af7174b0ceb876dd_rle_crop_3703559795_0.png.png imagette212431261741640464/1741640313_49183_1342677804_5243fe2c6608bc5bd1b63a715aabd682_rle_crop_3703560301_0.png.png imagette212431261741640464/1741640172_48382_1342677258_61640dd696492dc23e4eb551bb7bffbb_rle_crop_3703558406_0.png.png imagette212431261741640464/1741639835_45556_1342675019_99568fd13969dbf99c4243c75b1d7c69_rle_crop_3703551134_0.png.png imagette212431261741640464/1741639814_45322_1342675734_355ae45926e1860a5c66d408348889d7_rle_crop_3703550985_0.png.png imagette212431261741640464/1741640053_47252_1342677027_7f4037122a58f63c5e576556091312fd_rle_crop_3703555168_0.png.png imagette212431261741640464/1741639814_45322_1342675443_0ee58f49e08fa37765a0f6a6c14e70ad_rle_crop_3703551151_0.png.png imagette212431261741640464/1741640292_49052_1342678076_42b736a0b0a3f3cb14403fe8797e5bbf_rle_crop_3703559882_0.png.png imagette212431261741640464/1741640066_413845_1342676834_d27203ddf290992ba02faecb1b0bccc5_rle_crop_3703555094_0.png.png imagette212431261741640464/1741639814_45322_1342675449_68280e5e44618bb92c6c7a1f959ebd07_rle_crop_3703551074_0.png.png imagette212431261741640464/1741640066_413845_1342677202_8a9fcd65bf7830f4a34949b116b4f2b3_rle_crop_3703555023_0.png.png imagette212431261741640464/1741639950_46581_1342675712_012a6ad9673cdcc7de66eaa148914e2a_rle_crop_3703553494_0.png.png imagette212431261741640464/1741640172_48382_1342677258_61640dd696492dc23e4eb551bb7bffbb_rle_crop_3703558410_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/78f260c35e473772dd8fd8861f44214c_83422799.png imagette212431261741640464 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21243106 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21243132,21243133,21243134,21243135,21243136,21243137,21243138,21243139,21243140,21243141,21243142,21243143?tags=cartonnette,Carton_gris,mal_croppe,metal,Teint_Dans_La_Masse,plastique,Carton_brun,autre_refus,flou,environnement,papier,kraft your option no_mail is active, we will not send the real mail to your client args[1342678400] : ('0.10093857621542662',) no score found for photo 1342678400 We are sending mail with results at report@fotonower.com args[1342678380] : ('0.10093857621542662',) no score found for photo 1342678380 We are sending mail with results at report@fotonower.com args[1342678369] : ('0.10093857621542662',) no score found for photo 1342678369 We are sending mail with results at report@fotonower.com args[1342678329] : ('0.10093857621542662',) no score found for photo 1342678329 We are sending mail with results at report@fotonower.com args[1342678172] : ('0.10093857621542662',) no score found for photo 1342678172 We are sending mail with results at report@fotonower.com args[1342678168] : ('0.10093857621542662',) no score found for photo 1342678168 We are sending mail with results at report@fotonower.com args[1342678162] : ('0.10093857621542662',) no score found for photo 1342678162 We are sending mail with results at report@fotonower.com args[1342678156] : ('0.10093857621542662',) no score found for photo 1342678156 We are sending mail with results at report@fotonower.com refus_total : 0.10093857621542662 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=21243106 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_P21243106_10-03-2025_22_01_00.pdf results_Auto_P21243106_10-03-2025_22_01_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21243106_10-03-2025_22_01_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21243106','results_Auto_P21243106_10-03-2025_22_01_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21243106_10-03-2025_22_01_00.pdf','pdf','','0.34','0.10093857621542662') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21243106]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1342678400, 1342678380, 1342678369, 1342678329, 1342678172, 1342678168, 1342678162, 1342678156] map_info['map_portfolio_photo'] : {21243106: [1342678400, 1342678380, 1342678369, 1342678329, 1342678172, 1342678168, 1342678162, 1342678156, 1342678080, 1342678079, 1342678076, 1342678072, 1342677881, 1342677830, 1342677804, 1342677338, 1342677334, 1342677275, 1342677272, 1342677267, 1342677263, 1342677258, 1342677202, 1342677162, 1342677098, 1342677027, 1342676864, 1342676844, 1342676841, 1342676834, 1342676727, 1342676682, 1342676662, 1342676108, 1342676089, 1342676063, 1342675734, 1342675712, 1342675459, 1342675457, 1342675452, 1342675449, 1342675443, 1342675019]} final : False mtd_id 4302 list_pids : [1342678400, 1342678380, 1342678369, 1342678329, 1342678172, 1342678168, 1342678162, 1342678156] 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, '2655745') ('4302', '21243106', '1342678400', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678380', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678369', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678329', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678172', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678168', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678162', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678156', None, None, None, None, None, '2655745') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21243106', '1342678400', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678380', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678369', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678329', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678172', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678168', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678162', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678156', None, None, None, None, None, '2655745')] time used for this insertion : 0.017688512802124023 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.309114694595337 time spend to save output : 0.017926454544067383 total time spend for step 4 : 6.327041149139404 step5:split_time_score Mon Mar 10 22:01:06 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21243106'] 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 : [('21243106',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21243106) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1342678156: {'path': 'temp/1741640460_1008476_1342678156_16ac7d00fa7b9ffb450cb6f02976f43b.jpg', 'extension': 'jpg'}, 1342678162: {'path': 'temp/1741640460_1008476_1342678162_b13b5d1136a975609c5453d0afb058ff.jpg', 'extension': 'jpg'}, 1342678168: {'path': 'temp/1741640460_1008476_1342678168_2bf8a2f82be92176cf981c06259c8adc.jpg', 'extension': 'jpg'}, 1342678172: {'path': 'temp/1741640460_1008476_1342678172_7cae6ef51e405750be161c100d3086d9.jpg', 'extension': 'jpg'}, 1342678329: {'path': 'temp/1741640460_1008476_1342678329_89ac4dd22ff68d01467c2d099ca63d19.jpg', 'extension': 'jpg'}, 1342678369: {'path': 'temp/1741640460_1008476_1342678369_dcf76a873089302793870b71987ec413.jpg', 'extension': 'jpg'}, 1342678380: {'path': 'temp/1741640460_1008476_1342678380_9d56e0984df224c0d4f034628eefc761.jpg', 'extension': 'jpg'}, 1342678400: {'path': 'temp/1741640460_1008476_1342678400_f6f476832cdf5f1b5216aeb2becb5302.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 = 21243106; (('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 = 21243106 group by h (('21', 44),) 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=21243106 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 (21243106) 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 (21243106) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10032025 21243106 Nombre de photos uploadées : 44 / 23040 (0%) 10032025 21243106 Nombre de photos taguées (types de déchets): 0 / 44 (0%) 10032025 21243106 Nombre de photos taguées (volume) : 0 / 44 (0%) [{'photo_id': 1342675019, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/99568fd13969dbf99c4243c75b1d7c69.jpg', 'username': None, 'uploaded_at': 1741639597, 'text': 'image_10032025_21_45_04_010166m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342675459, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/8488ae740596548c309c9bc88da2c9d2.jpg', 'username': None, 'uploaded_at': 1741639657, 'text': 'image_10032025_21_45_44_010141m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342675457, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/33fcf7d67f5786f1ad77f1d9af56b789.jpg', 'username': None, 'uploaded_at': 1741639657, 'text': 'image_10032025_21_46_04_010140m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342675452, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/6dba0745c59d7fa33fcd37a70590d74e.jpg', 'username': None, 'uploaded_at': 1741639657, 'text': 'image_10032025_21_46_24_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 6.9141387939453125e-06 ???????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003017902374267578 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21243106, '2025-03-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1654691,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.025977611541748047 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= 1654691 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1654691, 'dashboard_run_id': 1663815, 'mtr_portfolio_id': 21240953, 'dashboard_result_id': 9323278, '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_P21240953_10-03-2025_21_18_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21241002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21241003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21241004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21241005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21241006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21241007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21241008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21241009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21241010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21241011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21241012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21241013, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1663815, 'mtr_portfolio_id': 21241634, 'dashboard_result_id': 9323279, '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_P21241634_10-03-2025_21_24_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21241637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21241638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21241639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21241640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21241641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21241642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21241643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21241644, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21241645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21241646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21241647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21241648, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1663815, 'mtr_portfolio_id': 21242355, 'dashboard_result_id': 9323280, '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_P21242355_10-03-2025_21_49_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21242358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21242359, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21242360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21242361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21242362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21242363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21242364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21242365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21242366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21242367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21242368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21242369, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1663815, 'mtr_portfolio_id': 21243106, 'dashboard_result_id': 9323281, '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_P21243106_10-03-2025_21_57_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21243120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21243121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21243122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21243123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21243124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21243125, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21243126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21243127, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21243128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21243129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21243130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21243131, '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 = 21240953 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': 2655626, 'mtr_portfolio_id': 21240953, 'created_at': datetime.datetime(2025, 3, 10, 21, 18), 'result': '0.08021729513458037', 'result_long': None, 'result_double': None}] Qualite : 0.08021729513458037 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21240953 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21240953_10-03-2025_21_18_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21240953 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_P21240953_10-03-2025_21_18_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21241002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21241003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21241004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21241005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21241006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21241007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21241008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21241009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21241010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21241011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21241012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21241013, 'pht': 3726}}" where mtr_portfolio_id = 21240953 and dashboard_run_id = 1663815 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`=21240953 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9323278, 0.08021729513458037, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21240953_10-03-2025_21_18_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21241002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21241003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21241004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21241005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21241006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21241007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21241008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21241009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21241010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21241011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21241012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21241013, '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 = 21241634 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': 2655656, 'mtr_portfolio_id': 21241634, 'created_at': datetime.datetime(2025, 3, 10, 21, 24, 58), 'result': '0.06677781353372149', 'result_long': None, 'result_double': None}] Qualite : 0.06677781353372149 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21241634 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21241634_10-03-2025_21_24_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21241634 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_P21241634_10-03-2025_21_24_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21241637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21241638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21241639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21241640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21241641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21241642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21241643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21241644, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21241645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21241646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21241647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21241648, 'pht': 3726}}" where mtr_portfolio_id = 21241634 and dashboard_run_id = 1663815 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`=21241634 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9323279, 0.06677781353372149, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21241634_10-03-2025_21_24_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21241637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21241638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21241639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21241640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21241641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21241642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21241643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21241644, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21241645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21241646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21241647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21241648, '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 = 21242355 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': 2655708, 'mtr_portfolio_id': 21242355, 'created_at': datetime.datetime(2025, 3, 10, 21, 49, 1), 'result': '0.08909447396060001', 'result_long': None, 'result_double': None}] Qualite : 0.08909447396060001 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21242355 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21242355_10-03-2025_21_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21242355 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_P21242355_10-03-2025_21_49_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21242358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21242359, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21242360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21242361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21242362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21242363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21242364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21242365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21242366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21242367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21242368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21242369, 'pht': 3726}}" where mtr_portfolio_id = 21242355 and dashboard_run_id = 1663815 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`=21242355 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9323280, 0.08909447396060001, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21242355_10-03-2025_21_49_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21242358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21242359, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21242360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21242361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21242362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21242363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21242364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21242365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21242366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21242367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21242368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21242369, '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 = 21243106 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': 2655745, 'mtr_portfolio_id': 21243106, 'created_at': datetime.datetime(2025, 3, 10, 22, 0, 59), 'result': '0.10093857621542662', 'result_long': None, 'result_double': None}] Qualite : 0.10093857621542662 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21243106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21243106_10-03-2025_22_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21243106 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_P21243106_10-03-2025_22_01_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21243120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21243121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21243122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21243123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21243124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21243125, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21243126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21243127, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21243128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21243129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21243130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21243131, 'pht': 3726}}" where mtr_portfolio_id = 21243106 and dashboard_run_id = 1663815 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`=21243106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9323281, 0.10093857621542662, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21243106_10-03-2025_22_01_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21243120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21243121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21243122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21243123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21243124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21243125, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21243126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21243127, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21243128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21243129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21243130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21243131, '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 (21240953,21241634,21242355,21243106) result : ((1342662693,), (1342662782,), (1342662808,), (1342662845,), (1342663001,), (1342663005,), (1342663010,), (1342663031,), (1342663051,), (1342663118,), (1342663152,), (1342663200,), (1342663814,), (1342663914,), (1342664024,), (1342664119,), (1342664522,), (1342664539,), (1342664542,), (1342664755,), (1342664781,), (1342664806,), (1342664828,), (1342665024,), (1342665030,), (1342665037,), (1342665045,), (1342665048,), (1342665115,), (1342665119,), (1342665123,), (1342665127,), (1342665129,), (1342665143,), (1342665180,), (1342665185,), (1342665207,), (1342665210,), (1342665215,), (1342665510,), (1342665562,), (1342665612,), (1342665694,), (1342665746,), (1342665940,), (1342665953,), (1342665959,), (1342666015,), (1342666091,), (1342666225,), (1342666230,), (1342666234,), (1342666237,), (1342666245,), (1342666366,), (1342666295,), (1342666300,), (1342666315,), (1342666343,), (1342666610,), (1342666637,), (1342666655,), (1342666659,), (1342666674,), (1342666749,), (1342666752,), (1342666766,), (1342666770,), (1342666778,), (1342667040,), (1342667142,), (1342667286,), (1342667290,), (1342667298,), (1342667528,), (1342667559,), (1342667579,), (1342667606,), (1342667626,), (1342667656,), (1342668021,), (1342668049,), (1342668077,), (1342668096,), (1342668122,), (1342668481,), (1342668486,), (1342668493,), (1342668811,), (1342668829,), (1342668843,), (1342668850,), (1342668854,), (1342669103,), (1342669132,), (1342669156,), (1342669174,), (1342669197,), (1342669275,), (1342669306,), (1342669344,), (1342669387,), (1342669425,), (1342669428,), (1342669433,), (1342669519,), (1342669548,), (1342669574,), (1342669581,), (1342669816,), (1342669842,), (1342669868,), (1342669889,), (1342670148,), (1342670208,), (1342670216,), (1342670220,), (1342670504,), (1342670519,), (1342670525,), (1342670544,), (1342670609,), (1342670589,), (1342670602,), (1342670605,), (1342670975,), (1342671013,), (1342671312,), (1342671391,), (1342671470,), (1342671839,), (1342671848,), (1342671940,), (1342671946,), (1342671954,), (1342672250,), (1342672279,), (1342672586,), (1342672610,), (1342673008,), (1342673070,), (1342673106,), (1342673130,), (1342673423,), (1342673492,), (1342673566,), (1342673656,), (1342673765,), (1342673780,), (1342673787,), (1342673791,), (1342673804,), (1342673835,), (1342673853,), (1342673881,), (1342673956,), (1342674021,), (1342674167,), (1342674173,), (1342674194,), (1342674393,), (1342674410,), (1342674415,), (1342674555,), (1342674582,), (1342674605,), (1342674631,), (1342674854,), (1342674872,), (1342674879,), (1342674891,), (1342675025,), (1342675019,), (1342675443,), (1342675449,), (1342675452,), (1342675457,), (1342675459,), (1342675712,), (1342675734,), (1342676063,), (1342676089,), (1342676108,), (1342676662,), (1342676682,), (1342676727,), (1342676834,), (1342676841,), (1342676844,), (1342676864,), (1342677027,), (1342677098,), (1342677162,), (1342677202,), (1342677258,), (1342677263,), (1342677267,), (1342677272,), (1342677275,), (1342677334,), (1342677338,), (1342677804,), (1342677830,), (1342677881,), (1342678072,), (1342678076,), (1342678079,), (1342678080,), (1342678156,), (1342678162,), (1342678168,), (1342678172,), (1342678329,), (1342678369,), (1342678380,), (1342678400,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10032025': {'nb_upload': 44, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21243106]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1342678400, 1342678380, 1342678369, 1342678329, 1342678172, 1342678168, 1342678162, 1342678156] map_info['map_portfolio_photo'] : {21243106: [1342678400, 1342678380, 1342678369, 1342678329, 1342678172, 1342678168, 1342678162, 1342678156, 1342678080, 1342678079, 1342678076, 1342678072, 1342677881, 1342677830, 1342677804, 1342677338, 1342677334, 1342677275, 1342677272, 1342677267, 1342677263, 1342677258, 1342677202, 1342677162, 1342677098, 1342677027, 1342676864, 1342676844, 1342676841, 1342676834, 1342676727, 1342676682, 1342676662, 1342676108, 1342676089, 1342676063, 1342675734, 1342675712, 1342675459, 1342675457, 1342675452, 1342675449, 1342675443, 1342675019]} final : True mtd_id 4302 list_pids : [1342678400, 1342678380, 1342678369, 1342678329, 1342678172, 1342678168, 1342678162, 1342678156] Looping around the photos to save general results len do output : 1 /21243106Didn'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, '2655745') ('4302', '21243106', '1342678400', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678380', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678369', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678329', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678172', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678168', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678162', None, None, None, None, None, '2655745') ('4302', None, None, None, None, None, None, None, '2655745') ('4302', '21243106', '1342678156', None, None, None, None, None, '2655745') 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', None, '21243106', 'None', None, None, None, None, '2655745'), ('4302', '21243106', '1342678400', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678380', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678369', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678329', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678172', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678168', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678162', None, None, None, None, None, '2655745'), ('4302', '21243106', '1342678156', None, None, None, None, None, '2655745')] time used for this insertion : 0.018531084060668945 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.356769323348999 time spend to save output : 0.01876068115234375 total time spend for step 5 : 0.3755300045013428 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 (2655745) 2.32user 2.26system 0:12.25elapsed 37%CPU (0avgtext+0avgdata 160632maxresident)k 38048inputs+18376outputs (322major+75287minor)pagefaults 0swaps