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 : 222264 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 (2669743) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2669743) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21434857 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2669743'] with mtr_portfolio_ids : ['21434857'] and first list_photo_ids : [] new path : /proc/222264/ Name: python3 Umask: 0002 State: R (running) Tgid: 222264 Ngid: 0 Pid: 222264 PPid: 222263 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 222264 NSpid: 222264 NSpgid: 220441 NSsid: 220441 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99640 kB VmRSS: 99640 kB RssAnon: 59756 kB RssFile: 39884 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 564 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 137 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '222264', 'Ngid': '0', 'Pid': '222264', 'PPid': '222263', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '222264', 'NSpid': '222264', 'NSpgid': '220441', 'NSsid': '220441', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99640 kB', 'VmRSS': '99640 kB', 'RssAnon': '59756 kB', 'RssFile': '39884 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '564 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '137'} ('datou_batch_current', '222264', '1106840', '0', '1106840', '865592', '99640', b'', 'marlene', '2669743') 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 (21434857) 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 (2669743 ) ) 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 (21434857) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1344183149, 'portfolio_id': 21434857}, {'photo_id': 1344183145, 'portfolio_id': 21434857}, {'photo_id': 1344183136, 'portfolio_id': 21434857}, {'photo_id': 1344183130, 'portfolio_id': 21434857}, {'photo_id': 1344183125, 'portfolio_id': 21434857}, {'photo_id': 1344183063, 'portfolio_id': 21434857}, {'photo_id': 1344183061, 'portfolio_id': 21434857}, {'photo_id': 1344183057, 'portfolio_id': 21434857}, {'photo_id': 1344183052, 'portfolio_id': 21434857}, {'photo_id': 1344182997, 'portfolio_id': 21434857}, {'photo_id': 1344182992, 'portfolio_id': 21434857}, {'photo_id': 1344182988, 'portfolio_id': 21434857}, {'photo_id': 1344182972, 'portfolio_id': 21434857}, {'photo_id': 1344182947, 'portfolio_id': 21434857}, {'photo_id': 1344182930, 'portfolio_id': 21434857}, {'photo_id': 1344182801, 'portfolio_id': 21434857}, {'photo_id': 1344182778, 'portfolio_id': 21434857}, {'photo_id': 1344182769, 'portfolio_id': 21434857}, {'photo_id': 1344182763, 'portfolio_id': 21434857}, {'photo_id': 1344182669, 'portfolio_id': 21434857}, {'photo_id': 1344182647, 'portfolio_id': 21434857}, {'photo_id': 1344182603, 'portfolio_id': 21434857}, {'photo_id': 1344182550, 'portfolio_id': 21434857}, {'photo_id': 1344182512, 'portfolio_id': 21434857}, {'photo_id': 1344182504, 'portfolio_id': 21434857}, {'photo_id': 1344182248, 'portfolio_id': 21434857}, {'photo_id': 1344182225, 'portfolio_id': 21434857}, {'photo_id': 1344182195, 'portfolio_id': 21434857}, {'photo_id': 1344182152, 'portfolio_id': 21434857}, {'photo_id': 1344181858, 'portfolio_id': 21434857}, {'photo_id': 1344181811, 'portfolio_id': 21434857}, {'photo_id': 1344181757, 'portfolio_id': 21434857}, {'photo_id': 1344181642, 'portfolio_id': 21434857}, {'photo_id': 1344181588, 'portfolio_id': 21434857}] map_portfolio_id_photo_id: {21434857: [1344183149, 1344183145, 1344183136, 1344183130, 1344183125, 1344183063, 1344183061, 1344183057, 1344183052, 1344182997, 1344182992, 1344182988, 1344182972, 1344182947, 1344182930, 1344182801, 1344182778, 1344182769, 1344182763, 1344182669, 1344182647, 1344182603, 1344182550, 1344182512, 1344182504, 1344182248, 1344182225, 1344182195, 1344182152, 1344181858, 1344181811, 1344181757, 1344181642, 1344181588]} ##### 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.014293670654296875 #### 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 Fri Mar 14 15:53:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21434857) 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 : 21434857 get user id for portfolio 21434857 get sub ptf for main ptf 21434857, type 3726 and hashtags ['Carton_brun', 'environnement', 'Carton_gris', 'plastique', 'mal_croppe', 'Teint_Dans_La_Masse', 'papier', 'flou', 'kraft', 'metal', 'cartonnette', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21434857 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','Carton_gris','plastique','mal_croppe','Teint_Dans_La_Masse','papier','flou','kraft','metal','cartonnette','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21434857 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','Carton_gris','plastique','mal_croppe','Teint_Dans_La_Masse','papier','flou','kraft','metal','cartonnette','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21434857, 'sub_port_id': 21434916, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005580, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 57)}, 'metal': {'main_port_id': 21434857, 'sub_port_id': 21434917, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005581, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 57)}, 'mal_croppe': {'main_port_id': 21434857, 'sub_port_id': 21434918, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005582, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 57)}, 'kraft': {'main_port_id': 21434857, 'sub_port_id': 21434919, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005583, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 57)}, 'plastique': {'main_port_id': 21434857, 'sub_port_id': 21434920, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005584, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 57)}, 'papier': {'main_port_id': 21434857, 'sub_port_id': 21434921, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005585, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 57)}, 'autre_refus': {'main_port_id': 21434857, 'sub_port_id': 21434922, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005586, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 57)}, 'cartonnette': {'main_port_id': 21434857, 'sub_port_id': 21434923, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005587, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 57)}, 'flou': {'main_port_id': 21434857, 'sub_port_id': 21434924, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005588, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21434857, 'sub_port_id': 21434925, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005589, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 57)}, 'Carton_brun': {'main_port_id': 21434857, 'sub_port_id': 21434926, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005590, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 57)}, 'environnement': {'main_port_id': 21434857, 'sub_port_id': 21434927, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005591, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21434916 , 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=21434857 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 (21434916) result : ((1344182927,), (1344182998,), (1344182999,), (1344183000,), (1344183001,), (1344183002,), (1344183003,), (1344183004,), (1344183005,), (1344183091,), (1344183159,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21434857) result : ((1344181588,), (1344181642,), (1344181757,), (1344181811,), (1344181858,), (1344182152,), (1344182195,), (1344182225,), (1344182248,), (1344182504,), (1344182512,), (1344182550,), (1344182603,), (1344182647,), (1344182669,), (1344182763,), (1344182769,), (1344182778,), (1344182801,), (1344182930,), (1344182947,), (1344182972,), (1344182988,), (1344182992,), (1344182997,), (1344183052,), (1344183057,), (1344183061,), (1344183063,), (1344183125,), (1344183130,), (1344183136,), (1344183145,), (1344183149,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21434917 , 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=21434857 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 (21434917) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21434857) result : ((1344181588,), (1344181642,), (1344181757,), (1344181811,), (1344181858,), (1344182152,), (1344182195,), (1344182225,), (1344182248,), (1344182504,), (1344182512,), (1344182550,), (1344182603,), (1344182647,), (1344182669,), (1344182763,), (1344182769,), (1344182778,), (1344182801,), (1344182930,), (1344182947,), (1344182972,), (1344182988,), (1344182992,), (1344182997,), (1344183052,), (1344183057,), (1344183061,), (1344183063,), (1344183125,), (1344183130,), (1344183136,), (1344183145,), (1344183149,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21434918 , 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=21434857 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 (21434918) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21434857) result : ((1344181588,), (1344181642,), (1344181757,), (1344181811,), (1344181858,), (1344182152,), (1344182195,), (1344182225,), (1344182248,), (1344182504,), (1344182512,), (1344182550,), (1344182603,), (1344182647,), (1344182669,), (1344182763,), (1344182769,), (1344182778,), (1344182801,), (1344182930,), (1344182947,), (1344182972,), (1344182988,), (1344182992,), (1344182997,), (1344183052,), (1344183057,), (1344183061,), (1344183063,), (1344183125,), (1344183130,), (1344183136,), (1344183145,), (1344183149,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21434919 , 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=21434857 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 (21434919) result : ((1344183018,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21434857) result : ((1344181588,), (1344181642,), (1344181757,), (1344181811,), (1344181858,), (1344182152,), (1344182195,), (1344182225,), (1344182248,), (1344182504,), (1344182512,), (1344182550,), (1344182603,), (1344182647,), (1344182669,), (1344182763,), (1344182769,), (1344182778,), (1344182801,), (1344182930,), (1344182947,), (1344182972,), (1344182988,), (1344182992,), (1344182997,), (1344183052,), (1344183057,), (1344183061,), (1344183063,), (1344183125,), (1344183130,), (1344183136,), (1344183145,), (1344183149,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21434920 , 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=21434857 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 (21434920) result : ((1344182937,), (1344182938,), (1344182939,), (1344183012,), (1344183013,), (1344183014,), (1344183099,), (1344183100,), (1344183101,), (1344183141,), (1344183143,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21434857) result : ((1344181588,), (1344181642,), (1344181757,), (1344181811,), (1344181858,), (1344182152,), (1344182195,), (1344182225,), (1344182248,), (1344182504,), (1344182512,), (1344182550,), (1344182603,), (1344182647,), (1344182669,), (1344182763,), (1344182769,), (1344182778,), (1344182801,), (1344182930,), (1344182947,), (1344182972,), (1344182988,), (1344182992,), (1344182997,), (1344183052,), (1344183057,), (1344183061,), (1344183063,), (1344183125,), (1344183130,), (1344183136,), (1344183145,), (1344183149,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21434921 , 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=21434857 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 (21434921) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21434857) result : ((1344181588,), (1344181642,), (1344181757,), (1344181811,), (1344181858,), (1344182152,), (1344182195,), (1344182225,), (1344182248,), (1344182504,), (1344182512,), (1344182550,), (1344182603,), (1344182647,), (1344182669,), (1344182763,), (1344182769,), (1344182778,), (1344182801,), (1344182930,), (1344182947,), (1344182972,), (1344182988,), (1344182992,), (1344182997,), (1344183052,), (1344183057,), (1344183061,), (1344183063,), (1344183125,), (1344183130,), (1344183136,), (1344183145,), (1344183149,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21434922 , 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=21434857 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 (21434922) result : ((1344182923,), (1344182924,), (1344182925,), (1344182995,), (1344183041,), (1344183042,), (1344183043,), (1344183044,), (1344183087,), (1344183088,), (1344183089,), (1344183157,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21434857) result : ((1344181588,), (1344181642,), (1344181757,), (1344181811,), (1344181858,), (1344182152,), (1344182195,), (1344182225,), (1344182248,), (1344182504,), (1344182512,), (1344182550,), (1344182603,), (1344182647,), (1344182669,), (1344182763,), (1344182769,), (1344182778,), (1344182801,), (1344182930,), (1344182947,), (1344182972,), (1344182988,), (1344182992,), (1344182997,), (1344183052,), (1344183057,), (1344183061,), (1344183063,), (1344183125,), (1344183130,), (1344183136,), (1344183145,), (1344183149,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21434923 , 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=21434857 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 (21434923) result : ((1344183045,), (1344183161,), (1344183162,), (1344183163,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21434857) result : ((1344181588,), (1344181642,), (1344181757,), (1344181811,), (1344181858,), (1344182152,), (1344182195,), (1344182225,), (1344182248,), (1344182504,), (1344182512,), (1344182550,), (1344182603,), (1344182647,), (1344182669,), (1344182763,), (1344182769,), (1344182778,), (1344182801,), (1344182930,), (1344182947,), (1344182972,), (1344182988,), (1344182992,), (1344182997,), (1344183052,), (1344183057,), (1344183061,), (1344183063,), (1344183125,), (1344183130,), (1344183136,), (1344183145,), (1344183149,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21434924 , 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=21434857 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 (21434924) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21434857) result : ((1344181588,), (1344181642,), (1344181757,), (1344181811,), (1344181858,), (1344182152,), (1344182195,), (1344182225,), (1344182248,), (1344182504,), (1344182512,), (1344182550,), (1344182603,), (1344182647,), (1344182669,), (1344182763,), (1344182769,), (1344182778,), (1344182801,), (1344182930,), (1344182947,), (1344182972,), (1344182988,), (1344182992,), (1344182997,), (1344183052,), (1344183057,), (1344183061,), (1344183063,), (1344183125,), (1344183130,), (1344183136,), (1344183145,), (1344183149,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21434925 , 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=21434857 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 (21434925) result : ((1344182993,), (1344183085,), (1344183086,), (1344183155,), (1344183156,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21434857) result : ((1344181588,), (1344181642,), (1344181757,), (1344181811,), (1344181858,), (1344182152,), (1344182195,), (1344182225,), (1344182248,), (1344182504,), (1344182512,), (1344182550,), (1344182603,), (1344182647,), (1344182669,), (1344182763,), (1344182769,), (1344182778,), (1344182801,), (1344182930,), (1344182947,), (1344182972,), (1344182988,), (1344182992,), (1344182997,), (1344183052,), (1344183057,), (1344183061,), (1344183063,), (1344183125,), (1344183130,), (1344183136,), (1344183145,), (1344183149,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21434926 , 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=21434857 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 (21434926) result : ((1344182929,), (1344183008,), (1344183009,), (1344183010,), (1344183011,), (1344183092,), (1344183094,), (1344183137,), (1344183138,), (1344183139,), (1344183164,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21434857) result : ((1344181588,), (1344181642,), (1344181757,), (1344181811,), (1344181858,), (1344182152,), (1344182195,), (1344182225,), (1344182248,), (1344182504,), (1344182512,), (1344182550,), (1344182603,), (1344182647,), (1344182669,), (1344182763,), (1344182769,), (1344182778,), (1344182801,), (1344182930,), (1344182947,), (1344182972,), (1344182988,), (1344182992,), (1344182997,), (1344183052,), (1344183057,), (1344183061,), (1344183063,), (1344183125,), (1344183130,), (1344183136,), (1344183145,), (1344183149,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21434927 , 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=21434857 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 (21434927) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21434857) result : ((1344181588,), (1344181642,), (1344181757,), (1344181811,), (1344181858,), (1344182152,), (1344182195,), (1344182225,), (1344182248,), (1344182504,), (1344182512,), (1344182550,), (1344182603,), (1344182647,), (1344182669,), (1344182763,), (1344182769,), (1344182778,), (1344182801,), (1344182930,), (1344182947,), (1344182972,), (1344182988,), (1344182992,), (1344182997,), (1344183052,), (1344183057,), (1344183061,), (1344183063,), (1344183125,), (1344183130,), (1344183136,), (1344183145,), (1344183149,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21434857 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','Carton_gris','plastique','mal_croppe','Teint_Dans_La_Masse','papier','flou','kraft','metal','cartonnette','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21434857 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','Carton_gris','plastique','mal_croppe','Teint_Dans_La_Masse','papier','flou','kraft','metal','cartonnette','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21434857, 'sub_port_id': 21434928, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005592, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 58)}, 'metal': {'main_port_id': 21434857, 'sub_port_id': 21434929, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005593, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 58)}, 'mal_croppe': {'main_port_id': 21434857, 'sub_port_id': 21434930, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005594, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 58)}, 'kraft': {'main_port_id': 21434857, 'sub_port_id': 21434931, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005595, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 58)}, 'plastique': {'main_port_id': 21434857, 'sub_port_id': 21434932, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005596, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 58)}, 'papier': {'main_port_id': 21434857, 'sub_port_id': 21434933, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005597, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 58)}, 'autre_refus': {'main_port_id': 21434857, 'sub_port_id': 21434934, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005598, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 58)}, 'cartonnette': {'main_port_id': 21434857, 'sub_port_id': 21434935, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005599, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 58)}, 'flou': {'main_port_id': 21434857, 'sub_port_id': 21434936, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005600, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21434857, 'sub_port_id': 21434937, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005601, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 58)}, 'Carton_brun': {'main_port_id': 21434857, 'sub_port_id': 21434938, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005602, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 58)}, 'environnement': {'main_port_id': 21434857, 'sub_port_id': 21434939, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14005603, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 49, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21434928,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21434916 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21434929,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21434917 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21434930,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21434918 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21434931,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21434919 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21434932,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21434920 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21434933,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21434921 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21434934,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21434922 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21434935,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21434923 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21434936,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21434924 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21434937,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21434925 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21434938,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21434926 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21434939,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21434927 lien utilise dans velours : https://www.fotonower.com/velours/21434928,21434929,21434930,21434931,21434932,21434933,21434934,21434935,21434936,21434937,21434938,21434939?tags=Carton_gris,metal,mal_croppe,kraft,plastique,papier,autre_refus,cartonnette,flou,Teint_Dans_La_Masse,Carton_brun,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21434857]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1344183149, 1344183145, 1344183136, 1344183130, 1344183125, 1344183063, 1344183061, 1344183057, 1344183052] map_info['map_portfolio_photo'] : {21434857: [1344183149, 1344183145, 1344183136, 1344183130, 1344183125, 1344183063, 1344183061, 1344183057, 1344183052, 1344182997, 1344182992, 1344182988, 1344182972, 1344182947, 1344182930, 1344182801, 1344182778, 1344182769, 1344182763, 1344182669, 1344182647, 1344182603, 1344182550, 1344182512, 1344182504, 1344182248, 1344182225, 1344182195, 1344182152, 1344181858, 1344181811, 1344181757, 1344181642, 1344181588]} final : False mtd_id 4302 list_pids : [1344183149, 1344183145, 1344183136, 1344183130, 1344183125, 1344183063, 1344183061, 1344183057, 1344183052] Looping around the photos to save general results len do output : 1 /21434857. 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, '2669743') ('4302', '21434857', '1344183149', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183145', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183136', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183130', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183125', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183063', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183061', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183057', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183052', None, None, None, None, None, '2669743') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21434857', "{'Carton_gris': 21434916, 'metal': 21434917, 'mal_croppe': 21434918, 'kraft': 21434919, 'plastique': 21434920, 'papier': 21434921, 'autre_refus': 21434922, 'cartonnette': 21434923, 'flou': 21434924, 'Teint_Dans_La_Masse': 21434925, 'Carton_brun': 21434926, 'environnement': 21434927}", None, None, None, None, '2669743'), ('4302', '21434857', '1344183149', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183145', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183136', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183130', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183125', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183063', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183061', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183057', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183052', None, None, None, None, None, '2669743')] time used for this insertion : 0.0136260986328125 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.040597677230835 time spend to save output : 0.014087915420532227 total time spend for step 1 : 2.054685592651367 step2:final Fri Mar 14 15:53:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (21434857) 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 21434857 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1344181858,1344181811,1344181757,1344181642,1344181588,1344182248,1344182225,1344182195,1344182152,1344182669,1344182647,1344182603,1344182550,1344182512,1344182504,1344182801,1344182778,1344182769,1344182763,1344182997,1344182992,1344182988,1344182972,1344182947,1344182930,1344183063,1344183061,1344183057,1344183052,1344183149,1344183145,1344183136,1344183130,1344183125); 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([21434857]) Inside saveOutput : final : False verbose : True original output for save of step final : {1344183149: ('0.08916923386795593',), 1344183145: ('0.08916923386795593',), 1344183136: ('0.08916923386795593',), 1344183130: ('0.08916923386795593',), 1344183125: ('0.08916923386795593',), 1344183063: ('0.08916923386795593',), 1344183061: ('0.08916923386795593',), 1344183057: ('0.08916923386795593',), 1344183052: ('0.08916923386795593',)} new output for save of step final : {1344183149: ('0.08916923386795593',), 1344183145: ('0.08916923386795593',), 1344183136: ('0.08916923386795593',), 1344183130: ('0.08916923386795593',), 1344183125: ('0.08916923386795593',), 1344183063: ('0.08916923386795593',), 1344183061: ('0.08916923386795593',), 1344183057: ('0.08916923386795593',), 1344183052: ('0.08916923386795593',)} [1344183149, 1344183145, 1344183136, 1344183130, 1344183125, 1344183063, 1344183061, 1344183057, 1344183052] map_info['map_portfolio_photo'] : {21434857: [1344183149, 1344183145, 1344183136, 1344183130, 1344183125, 1344183063, 1344183061, 1344183057, 1344183052, 1344182997, 1344182992, 1344182988, 1344182972, 1344182947, 1344182930, 1344182801, 1344182778, 1344182769, 1344182763, 1344182669, 1344182647, 1344182603, 1344182550, 1344182512, 1344182504, 1344182248, 1344182225, 1344182195, 1344182152, 1344181858, 1344181811, 1344181757, 1344181642, 1344181588]} final : False mtd_id 4302 list_pids : [1344183149, 1344183145, 1344183136, 1344183130, 1344183125, 1344183063, 1344183061, 1344183057, 1344183052] Looping around the photos to save general results len do output : 9 /1344183149.Didn't retrieve data . /1344183145.Didn't retrieve data . /1344183136.Didn't retrieve data . /1344183130.Didn't retrieve data . /1344183125.Didn't retrieve data . /1344183063.Didn't retrieve data . /1344183061.Didn't retrieve data . /1344183057.Didn't retrieve data . /1344183052.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, '2669743') ('4302', '21434857', '1344183149', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183145', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183136', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183130', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183125', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183063', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183061', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183057', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183052', None, None, None, None, None, '2669743') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21434857', '1344183149', '0.08916923386795593', None, None, None, None, '2669743'), ('4302', '21434857', '1344183145', '0.08916923386795593', None, None, None, None, '2669743'), ('4302', '21434857', '1344183136', '0.08916923386795593', None, None, None, None, '2669743'), ('4302', '21434857', '1344183130', '0.08916923386795593', None, None, None, None, '2669743'), ('4302', '21434857', '1344183125', '0.08916923386795593', None, None, None, None, '2669743'), ('4302', '21434857', '1344183063', '0.08916923386795593', None, None, None, None, '2669743'), ('4302', '21434857', '1344183061', '0.08916923386795593', None, None, None, None, '2669743'), ('4302', '21434857', '1344183057', '0.08916923386795593', None, None, None, None, '2669743'), ('4302', '21434857', '1344183052', '0.08916923386795593', None, None, None, None, '2669743')] time used for this insertion : 0.01960015296936035 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07010674476623535 time spend to save output : 0.020203351974487305 total time spend for step 2 : 0.09031009674072266 step3:velours_tree Fri Mar 14 15:53:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21434857: [{'Carton_gris': 21434916, 'metal': 21434917, 'mal_croppe': 21434918, 'kraft': 21434919, 'plastique': 21434920, 'papier': 21434921, 'autre_refus': 21434922, 'cartonnette': 21434923, 'flou': 21434924, 'Teint_Dans_La_Masse': 21434925, 'Carton_brun': 21434926, 'environnement': 21434927}]} input_args_next_step : {21434857: ()} output_args : {21434857: [{'Carton_gris': 21434916, 'metal': 21434917, 'mal_croppe': 21434918, 'kraft': 21434919, 'plastique': 21434920, 'papier': 21434921, 'autre_refus': 21434922, 'cartonnette': 21434923, 'flou': 21434924, 'Teint_Dans_La_Masse': 21434925, 'Carton_brun': 21434926, 'environnement': 21434927}]} args : 21434857 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 21434916, 'metal': 21434917, 'mal_croppe': 21434918, 'kraft': 21434919, 'plastique': 21434920, 'papier': 21434921, 'autre_refus': 21434922, 'cartonnette': 21434923, 'flou': 21434924, 'Teint_Dans_La_Masse': 21434925, 'Carton_brun': 21434926, 'environnement': 21434927},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21434857) 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([21434857]) 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.40523409843444824 time spend to save output : 5.364418029785156e-05 total time spend for step 3 : 0.4052877426147461 step4:send_mail_cod Fri Mar 14 15:53:32 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 : {1344183149: ('0.08916923386795593',), 1344183145: ('0.08916923386795593',), 1344183136: ('0.08916923386795593',), 1344183130: ('0.08916923386795593',), 1344183125: ('0.08916923386795593',), 1344183063: ('0.08916923386795593',), 1344183061: ('0.08916923386795593',), 1344183057: ('0.08916923386795593',), 1344183052: ('0.08916923386795593',)} input_args_next_step : {1344183149: ()} output_args : {1344183149: ('0.08916923386795593',), 1344183145: ('0.08916923386795593',), 1344183136: ('0.08916923386795593',), 1344183130: ('0.08916923386795593',), 1344183125: ('0.08916923386795593',), 1344183063: ('0.08916923386795593',), 1344183061: ('0.08916923386795593',), 1344183057: ('0.08916923386795593',), 1344183052: ('0.08916923386795593',)} args : 1344183149 depend.output_id : 0 input_args_next_step : {1344183149: ('0.08916923386795593',), 1344183145: ()} output_args : {1344183149: ('0.08916923386795593',), 1344183145: ('0.08916923386795593',), 1344183136: ('0.08916923386795593',), 1344183130: ('0.08916923386795593',), 1344183125: ('0.08916923386795593',), 1344183063: ('0.08916923386795593',), 1344183061: ('0.08916923386795593',), 1344183057: ('0.08916923386795593',), 1344183052: ('0.08916923386795593',)} args : 1344183145 depend.output_id : 0 input_args_next_step : {1344183149: ('0.08916923386795593',), 1344183145: ('0.08916923386795593',), 1344183136: ()} output_args : {1344183149: ('0.08916923386795593',), 1344183145: ('0.08916923386795593',), 1344183136: ('0.08916923386795593',), 1344183130: ('0.08916923386795593',), 1344183125: ('0.08916923386795593',), 1344183063: ('0.08916923386795593',), 1344183061: ('0.08916923386795593',), 1344183057: ('0.08916923386795593',), 1344183052: ('0.08916923386795593',)} args : 1344183136 depend.output_id : 0 input_args_next_step : {1344183149: ('0.08916923386795593',), 1344183145: ('0.08916923386795593',), 1344183136: ('0.08916923386795593',), 1344183130: ()} output_args : {1344183149: ('0.08916923386795593',), 1344183145: ('0.08916923386795593',), 1344183136: ('0.08916923386795593',), 1344183130: ('0.08916923386795593',), 1344183125: ('0.08916923386795593',), 1344183063: ('0.08916923386795593',), 1344183061: ('0.08916923386795593',), 1344183057: ('0.08916923386795593',), 1344183052: ('0.08916923386795593',)} args : 1344183130 depend.output_id : 0 input_args_next_step : {1344183149: ('0.08916923386795593',), 1344183145: ('0.08916923386795593',), 1344183136: ('0.08916923386795593',), 1344183130: ('0.08916923386795593',), 1344183125: ()} output_args : {1344183149: ('0.08916923386795593',), 1344183145: ('0.08916923386795593',), 1344183136: ('0.08916923386795593',), 1344183130: ('0.08916923386795593',), 1344183125: ('0.08916923386795593',), 1344183063: ('0.08916923386795593',), 1344183061: ('0.08916923386795593',), 1344183057: ('0.08916923386795593',), 1344183052: ('0.08916923386795593',)} args : 1344183125 depend.output_id : 0 input_args_next_step : {1344183149: ('0.08916923386795593',), 1344183145: ('0.08916923386795593',), 1344183136: ('0.08916923386795593',), 1344183130: ('0.08916923386795593',), 1344183125: ('0.08916923386795593',), 1344183063: ()} output_args : {1344183149: ('0.08916923386795593',), 1344183145: ('0.08916923386795593',), 1344183136: ('0.08916923386795593',), 1344183130: ('0.08916923386795593',), 1344183125: ('0.08916923386795593',), 1344183063: ('0.08916923386795593',), 1344183061: ('0.08916923386795593',), 1344183057: ('0.08916923386795593',), 1344183052: ('0.08916923386795593',)} args : 1344183063 depend.output_id : 0 input_args_next_step : {1344183149: ('0.08916923386795593',), 1344183145: ('0.08916923386795593',), 1344183136: ('0.08916923386795593',), 1344183130: ('0.08916923386795593',), 1344183125: ('0.08916923386795593',), 1344183063: ('0.08916923386795593',), 1344183061: ()} output_args : {1344183149: ('0.08916923386795593',), 1344183145: ('0.08916923386795593',), 1344183136: ('0.08916923386795593',), 1344183130: ('0.08916923386795593',), 1344183125: ('0.08916923386795593',), 1344183063: ('0.08916923386795593',), 1344183061: ('0.08916923386795593',), 1344183057: ('0.08916923386795593',), 1344183052: ('0.08916923386795593',)} args : 1344183061 depend.output_id : 0 input_args_next_step : {1344183149: ('0.08916923386795593',), 1344183145: ('0.08916923386795593',), 1344183136: ('0.08916923386795593',), 1344183130: ('0.08916923386795593',), 1344183125: ('0.08916923386795593',), 1344183063: ('0.08916923386795593',), 1344183061: ('0.08916923386795593',), 1344183057: ()} output_args : {1344183149: ('0.08916923386795593',), 1344183145: ('0.08916923386795593',), 1344183136: ('0.08916923386795593',), 1344183130: ('0.08916923386795593',), 1344183125: ('0.08916923386795593',), 1344183063: ('0.08916923386795593',), 1344183061: ('0.08916923386795593',), 1344183057: ('0.08916923386795593',), 1344183052: ('0.08916923386795593',)} args : 1344183057 depend.output_id : 0 input_args_next_step : {1344183149: ('0.08916923386795593',), 1344183145: ('0.08916923386795593',), 1344183136: ('0.08916923386795593',), 1344183130: ('0.08916923386795593',), 1344183125: ('0.08916923386795593',), 1344183063: ('0.08916923386795593',), 1344183061: ('0.08916923386795593',), 1344183057: ('0.08916923386795593',), 1344183052: ()} output_args : {1344183149: ('0.08916923386795593',), 1344183145: ('0.08916923386795593',), 1344183136: ('0.08916923386795593',), 1344183130: ('0.08916923386795593',), 1344183125: ('0.08916923386795593',), 1344183063: ('0.08916923386795593',), 1344183061: ('0.08916923386795593',), 1344183057: ('0.08916923386795593',), 1344183052: ('0.08916923386795593',)} args : 1344183052 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 : {21434857: [{'Carton_gris': 21434916, 'metal': 21434917, 'mal_croppe': 21434918, 'kraft': 21434919, 'plastique': 21434920, 'papier': 21434921, 'autre_refus': 21434922, 'cartonnette': 21434923, 'flou': 21434924, 'Teint_Dans_La_Masse': 21434925, 'Carton_brun': 21434926, 'environnement': 21434927}]} input_args_next_step : {1344183149: ('0.08916923386795593',), 1344183145: ('0.08916923386795593',), 1344183136: ('0.08916923386795593',), 1344183130: ('0.08916923386795593',), 1344183125: ('0.08916923386795593',), 1344183063: ('0.08916923386795593',), 1344183061: ('0.08916923386795593',), 1344183057: ('0.08916923386795593',), 1344183052: ('0.08916923386795593',), 21434857: ()} output_args : {21434857: [{'Carton_gris': 21434916, 'metal': 21434917, 'mal_croppe': 21434918, 'kraft': 21434919, 'plastique': 21434920, 'papier': 21434921, 'autre_refus': 21434922, 'cartonnette': 21434923, 'flou': 21434924, 'Teint_Dans_La_Masse': 21434925, 'Carton_brun': 21434926, 'environnement': 21434927}]} args : 21434857 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :10, first value : ('0.08916923386795593',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21434857) 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 (1344183149,1344183145,1344183136,1344183130,1344183125,1344183063,1344183061,1344183057,1344183052) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1344183052 begin to download photo : 1344183061 begin to download photo : 1344183125 begin to download photo : 1344183136 begin to download photo : 1344183149 download finish for photo 1344183125 begin to download photo : 1344183130 download finish for photo 1344183149 download finish for photo 1344183052 begin to download photo : 1344183057 download finish for photo 1344183136 begin to download photo : 1344183145 download finish for photo 1344183061 begin to download photo : 1344183063 download finish for photo 1344183130 download finish for photo 1344183145 download finish for photo 1344183057 download finish for photo 1344183063 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette214349171741964012/ imagette214349181741964012/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P21434857_14-03-2025_15_53_32.pdf 21434917 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=21434917 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214349171741964012 21434918 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=21434918 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214349181741964012 21434919 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=21434919 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344183018: '1741963827_1651980_1344182512_0dd7d90280ae15813faf0a2bbeb451e9_rle_crop_3712194345_0.png'} change filename to text .imagette214349191741964012/ imagette214349191741964012/1741963827_1651980_1344182512_0dd7d90280ae15813faf0a2bbeb451e9_rle_crop_3712194345_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b6258c189cba1501582a7405b5cba89f_43637051.png imagette214349191741964012 21434920 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=21434920 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344182937: '1741963772_700363_1344181811_cbc9dac5a699555f4e506d679ea5188c_rle_crop_3712193871_0.png', 1344182938: '1741963772_700363_1344181642_5118dc4a28b4dd1f81758f2e99f4f9c4_rle_crop_3712194171_0.png', 1344182939: '1741963772_700363_1344181588_5d7be8539dc8f79ce11178b8ad796bac_rle_crop_3712194250_0.png', 1344183012: '1741963827_1651980_1344182603_bf0b91c9932e3eec554ca1dbc55ae808_rle_crop_3712194289_0.png', 1344183013: '1741963827_1651980_1344182550_b34957bd176c4f8a20606c1268e97b49_rle_crop_3712194309_0.png', 1344183014: '1741963827_1651980_1344182512_0dd7d90280ae15813faf0a2bbeb451e9_rle_crop_3712194355_0.png', 1344183099: '1741963851_701715_1344181811_cbc9dac5a699555f4e506d679ea5188c_rle_crop_3712193871_0.png', 1344183100: '1741963851_701715_1344181642_5118dc4a28b4dd1f81758f2e99f4f9c4_rle_crop_3712194171_0.png', 1344183101: '1741963851_701715_1344181588_5d7be8539dc8f79ce11178b8ad796bac_rle_crop_3712194250_0.png', 1344183141: '1741963946_1655550_1344182997_93d5f3a376938cb4f61108f11f18ea91_rle_crop_3712196776_0.png', 1344183143: '1741963946_1655550_1344182763_b8fc3d62c37466b46dbf7d7f160c0b63_rle_crop_3712196804_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/66746bae15a57ac96888410c560e406d_32901387.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/efc6a529b4e05c1bb9b40c6cb14c6dfb_33134503.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0c99d290af23bc682488adbb2b80a9d4_8424513.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/54c9bccb7a550e5ed4171c493a02813d_69388130.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/57dd5ce2c5f29fca8e1bf87c51bc96db_90747221.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/1cc7ac87422d6a53f455bbf64ce873ad_84163716.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/66746bae15a57ac96888410c560e406d_64480840.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/efc6a529b4e05c1bb9b40c6cb14c6dfb_52721059.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0c99d290af23bc682488adbb2b80a9d4_70565026.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9b9277b167e6767f781f804f37d8ed52_73736399.png change filename to text .imagette214349201741964012/ imagette214349201741964012/1741963851_701715_1344181642_5118dc4a28b4dd1f81758f2e99f4f9c4_rle_crop_3712194171_0.png.png imagette214349201741964012/1741963827_1651980_1344182603_bf0b91c9932e3eec554ca1dbc55ae808_rle_crop_3712194289_0.png.png imagette214349201741964012/1741963772_700363_1344181588_5d7be8539dc8f79ce11178b8ad796bac_rle_crop_3712194250_0.png.png imagette214349201741964012/1741963946_1655550_1344182763_b8fc3d62c37466b46dbf7d7f160c0b63_rle_crop_3712196804_0.png.png imagette214349201741964012/1741963946_1655550_1344182997_93d5f3a376938cb4f61108f11f18ea91_rle_crop_3712196776_0.png.png imagette214349201741964012/1741963772_700363_1344181642_5118dc4a28b4dd1f81758f2e99f4f9c4_rle_crop_3712194171_0.png.png imagette214349201741964012/1741963851_701715_1344181811_cbc9dac5a699555f4e506d679ea5188c_rle_crop_3712193871_0.png.png imagette214349201741964012/1741963827_1651980_1344182512_0dd7d90280ae15813faf0a2bbeb451e9_rle_crop_3712194355_0.png.png imagette214349201741964012/1741963772_700363_1344181811_cbc9dac5a699555f4e506d679ea5188c_rle_crop_3712193871_0.png.png imagette214349201741964012/1741963851_701715_1344181588_5d7be8539dc8f79ce11178b8ad796bac_rle_crop_3712194250_0.png.png imagette214349201741964012/1741963827_1651980_1344182550_b34957bd176c4f8a20606c1268e97b49_rle_crop_3712194309_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/13b0e63a93bbfc05ee9186c48ec3832b_69469641.png imagette214349201741964012 21434922 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=21434922 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344182923: '1741963772_700363_1344181811_cbc9dac5a699555f4e506d679ea5188c_rle_crop_3712193869_0.png', 1344182924: '1741963772_700363_1344181642_5118dc4a28b4dd1f81758f2e99f4f9c4_rle_crop_3712194156_0.png', 1344182925: '1741963772_700363_1344181642_5118dc4a28b4dd1f81758f2e99f4f9c4_rle_crop_3712194165_0.png', 1344182995: '1741963827_1651980_1344182550_b34957bd176c4f8a20606c1268e97b49_rle_crop_3712194302_0.png', 1344183041: '1741963833_701471_1344182669_65ccc1a323e9452bd36c0cc9f24536b0_rle_crop_3712195074_0.png', 1344183042: '1741963833_701471_1344182669_65ccc1a323e9452bd36c0cc9f24536b0_rle_crop_3712195075_0.png', 1344183043: '1741963833_701471_1344182225_cc3aaaee79cc120e73580a7289254bcd_rle_crop_3712195235_0.png', 1344183044: '1741963833_701471_1344182225_cc3aaaee79cc120e73580a7289254bcd_rle_crop_3712195237_0.png', 1344183087: '1741963851_701715_1344181811_cbc9dac5a699555f4e506d679ea5188c_rle_crop_3712193869_0.png', 1344183088: '1741963851_701715_1344181642_5118dc4a28b4dd1f81758f2e99f4f9c4_rle_crop_3712194156_0.png', 1344183089: '1741963851_701715_1344181642_5118dc4a28b4dd1f81758f2e99f4f9c4_rle_crop_3712194165_0.png', 1344183157: '1741963932_702617_1344182992_056f831569be2e89e020c5e1a3d56178_rle_crop_3712196881_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e6230a7d08375057a57419600746e3d7_87694402.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/48608fe3c900762c783ea76a6dd0304d_70134874.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c695401ab2f787ab3365a9bb7fde2022_44451982.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/49af9078f942ef032d7a833c0665b1a0_90983126.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b1af26af296b324f256ee54c7cf6a9bf_89998585.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/2411a8f8e89086250b555935f15c93a2_41754704.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7418fb15ae4dee3aa1c37fc91f23a928_60749710.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/55cfa37c81707d402f5a63a4f4571409_98020864.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e6230a7d08375057a57419600746e3d7_88633873.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/48608fe3c900762c783ea76a6dd0304d_16002278.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c695401ab2f787ab3365a9bb7fde2022_49748844.png change filename to text .imagette214349221741964013/ imagette214349221741964013/1741963772_700363_1344181642_5118dc4a28b4dd1f81758f2e99f4f9c4_rle_crop_3712194165_0.png.png imagette214349221741964013/1741963851_701715_1344181642_5118dc4a28b4dd1f81758f2e99f4f9c4_rle_crop_3712194156_0.png.png imagette214349221741964013/1741963827_1651980_1344182550_b34957bd176c4f8a20606c1268e97b49_rle_crop_3712194302_0.png.png imagette214349221741964013/1741963833_701471_1344182669_65ccc1a323e9452bd36c0cc9f24536b0_rle_crop_3712195075_0.png.png imagette214349221741964013/1741963833_701471_1344182669_65ccc1a323e9452bd36c0cc9f24536b0_rle_crop_3712195074_0.png.png imagette214349221741964013/1741963772_700363_1344181642_5118dc4a28b4dd1f81758f2e99f4f9c4_rle_crop_3712194156_0.png.png imagette214349221741964013/1741963932_702617_1344182992_056f831569be2e89e020c5e1a3d56178_rle_crop_3712196881_0.png.png imagette214349221741964013/1741963833_701471_1344182225_cc3aaaee79cc120e73580a7289254bcd_rle_crop_3712195237_0.png.png imagette214349221741964013/1741963851_701715_1344181811_cbc9dac5a699555f4e506d679ea5188c_rle_crop_3712193869_0.png.png imagette214349221741964013/1741963833_701471_1344182225_cc3aaaee79cc120e73580a7289254bcd_rle_crop_3712195235_0.png.png imagette214349221741964013/1741963772_700363_1344181811_cbc9dac5a699555f4e506d679ea5188c_rle_crop_3712193869_0.png.png imagette214349221741964013/1741963851_701715_1344181642_5118dc4a28b4dd1f81758f2e99f4f9c4_rle_crop_3712194165_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b5a586f01ccc5805dbc40e9febe9cff9_85782453.png imagette214349221741964013 21434923 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=21434923 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344183045: '1741963833_701471_1344182195_761c36a9d427d9026d5d3e33a0a1482d_rle_crop_3712195247_0.png', 1344183161: '1741963932_702617_1344182992_056f831569be2e89e020c5e1a3d56178_rle_crop_3712196882_0.png', 1344183162: '1741963932_702617_1344182972_08df615b0ec3e7419aeacae57d6a31b2_rle_crop_3712196966_0.png', 1344183163: '1741963932_702617_1344182930_8a3a07aeb33daa5abbaa3060d5533358_rle_crop_3712196998_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/3ec79ffc2d858ef4da8ac6e837907ab6_95093958.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/335908d691b40ef5c2e270a4a22e567b_88150573.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/2edecc8cd336f90a3c7e451f5a3d2398_94913967.png change filename to text .imagette214349231741964013/ imagette214349231741964013/1741963932_702617_1344182930_8a3a07aeb33daa5abbaa3060d5533358_rle_crop_3712196998_0.png.png imagette214349231741964013/1741963833_701471_1344182195_761c36a9d427d9026d5d3e33a0a1482d_rle_crop_3712195247_0.png.png imagette214349231741964013/1741963932_702617_1344182972_08df615b0ec3e7419aeacae57d6a31b2_rle_crop_3712196966_0.png.png imagette214349231741964013/1741963932_702617_1344182992_056f831569be2e89e020c5e1a3d56178_rle_crop_3712196882_0.png.png imagette214349241741964014/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/cf7dafe92103060f5aa8ade63e90b1fe_52149089.png imagette214349231741964013 21434924 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=21434924 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214349241741964014 21434916 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=21434916 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344182927: '1741963772_700363_1344181588_5d7be8539dc8f79ce11178b8ad796bac_rle_crop_3712194242_0.png', 1344182998: '1741963827_1651980_1344182647_479b84ba949f7addb37add1961da6c7b_rle_crop_3712194279_0.png', 1344182999: '1741963827_1651980_1344182550_b34957bd176c4f8a20606c1268e97b49_rle_crop_3712194304_0.png', 1344183000: '1741963827_1651980_1344182550_b34957bd176c4f8a20606c1268e97b49_rle_crop_3712194315_0.png', 1344183001: '1741963827_1651980_1344182512_0dd7d90280ae15813faf0a2bbeb451e9_rle_crop_3712194357_0.png', 1344183002: '1741963827_1651980_1344182512_0dd7d90280ae15813faf0a2bbeb451e9_rle_crop_3712194342_0.png', 1344183003: '1741963827_1651980_1344182504_4968d80f1ff9db7b298aafcf487a7f56_rle_crop_3712194996_0.png', 1344183004: '1741963827_1651980_1344182504_4968d80f1ff9db7b298aafcf487a7f56_rle_crop_3712195003_0.png', 1344183005: '1741963827_1651980_1344182504_4968d80f1ff9db7b298aafcf487a7f56_rle_crop_3712194999_0.png', 1344183091: '1741963851_701715_1344181588_5d7be8539dc8f79ce11178b8ad796bac_rle_crop_3712194242_0.png', 1344183159: '1741963932_702617_1344182930_8a3a07aeb33daa5abbaa3060d5533358_rle_crop_3712197002_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0fa6eb2f32977a1dad200c904c1f1bb6_38176016.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/3ff11b6925d017a6cc583f67132951b4_88941883.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/cc4bcda50797d04fefbf00b8a5b760ce_84363192.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/6dbc2c6cf921392c2b4bb183275df2e0_92919260.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8ccb943c869b7c8debcf527d5894e5d2_4007545.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b231e055e508cf6f84eb5f68e35f14cc_12314668.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/280ea3edc3c947da86ae3794120b9d6d_1746225.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b1b4f0b85e3fdebab72e4de9e052d0f5_77613351.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/cd556093e91f21e3a66052c6dc4ea76e_49537320.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0fa6eb2f32977a1dad200c904c1f1bb6_80985698.png change filename to text .imagette214349161741964014/ imagette214349161741964014/1741963827_1651980_1344182647_479b84ba949f7addb37add1961da6c7b_rle_crop_3712194279_0.png.png imagette214349161741964014/1741963827_1651980_1344182512_0dd7d90280ae15813faf0a2bbeb451e9_rle_crop_3712194342_0.png.png imagette214349161741964014/1741963851_701715_1344181588_5d7be8539dc8f79ce11178b8ad796bac_rle_crop_3712194242_0.png.png imagette214349161741964014/1741963772_700363_1344181588_5d7be8539dc8f79ce11178b8ad796bac_rle_crop_3712194242_0.png.png imagette214349161741964014/1741963827_1651980_1344182504_4968d80f1ff9db7b298aafcf487a7f56_rle_crop_3712194999_0.png.png imagette214349161741964014/1741963827_1651980_1344182504_4968d80f1ff9db7b298aafcf487a7f56_rle_crop_3712194996_0.png.png imagette214349161741964014/1741963827_1651980_1344182550_b34957bd176c4f8a20606c1268e97b49_rle_crop_3712194315_0.png.png imagette214349161741964014/1741963827_1651980_1344182504_4968d80f1ff9db7b298aafcf487a7f56_rle_crop_3712195003_0.png.png imagette214349161741964014/1741963827_1651980_1344182512_0dd7d90280ae15813faf0a2bbeb451e9_rle_crop_3712194357_0.png.png imagette214349161741964014/1741963932_702617_1344182930_8a3a07aeb33daa5abbaa3060d5533358_rle_crop_3712197002_0.png.png imagette214349161741964014/1741963827_1651980_1344182550_b34957bd176c4f8a20606c1268e97b49_rle_crop_3712194304_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/fcbf4329a7d293d4b2c312d9e1dc5f96_89399580.png imagette214349161741964014 21434925 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=21434925 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344182993: '1741963827_1651980_1344182504_4968d80f1ff9db7b298aafcf487a7f56_rle_crop_3712195007_0.png', 1344183085: '1741963851_701715_1344182248_4e18cb50664f130bb097510a687b5b77_rle_crop_3712195532_0.png', 1344183086: '1741963851_701715_1344182248_4e18cb50664f130bb097510a687b5b77_rle_crop_3712195531_0.png', 1344183155: '1741963932_702617_1344182930_8a3a07aeb33daa5abbaa3060d5533358_rle_crop_3712196999_0.png', 1344183156: '1741963932_702617_1344182930_8a3a07aeb33daa5abbaa3060d5533358_rle_crop_3712196994_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/457118424434a1e1accf5b47c9ae2fca_46753291.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/2bee1178655bd384da1f026e427b24eb_46534606.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ab180b01a71b8cd155b9ae586d2480ec_28804164.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/93a2f7044a91c43c0460b8e2bbb00d62_17701807.png change filename to text .imagette214349251741964014/ imagette214349251741964014/1741963932_702617_1344182930_8a3a07aeb33daa5abbaa3060d5533358_rle_crop_3712196994_0.png.png imagette214349251741964014/1741963851_701715_1344182248_4e18cb50664f130bb097510a687b5b77_rle_crop_3712195532_0.png.png imagette214349251741964014/1741963851_701715_1344182248_4e18cb50664f130bb097510a687b5b77_rle_crop_3712195531_0.png.png imagette214349251741964014/1741963827_1651980_1344182504_4968d80f1ff9db7b298aafcf487a7f56_rle_crop_3712195007_0.png.png imagette214349251741964014/1741963932_702617_1344182930_8a3a07aeb33daa5abbaa3060d5533358_rle_crop_3712196999_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8bbbb1b00d258ae44ef7622070fc2f2d_76636250.png imagette214349251741964014 21434926 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=21434926 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344182929: '1741963772_700363_1344181642_5118dc4a28b4dd1f81758f2e99f4f9c4_rle_crop_3712194162_0.png', 1344183008: '1741963827_1651980_1344182647_479b84ba949f7addb37add1961da6c7b_rle_crop_3712194276_0.png', 1344183009: '1741963827_1651980_1344182550_b34957bd176c4f8a20606c1268e97b49_rle_crop_3712194311_0.png', 1344183010: '1741963827_1651980_1344182512_0dd7d90280ae15813faf0a2bbeb451e9_rle_crop_3712194360_0.png', 1344183011: '1741963827_1651980_1344182512_0dd7d90280ae15813faf0a2bbeb451e9_rle_crop_3712194361_0.png', 1344183092: '1741963851_701715_1344182248_4e18cb50664f130bb097510a687b5b77_rle_crop_3712195533_0.png', 1344183094: '1741963851_701715_1344181642_5118dc4a28b4dd1f81758f2e99f4f9c4_rle_crop_3712194162_0.png', 1344183137: '1741963946_1655550_1344182997_93d5f3a376938cb4f61108f11f18ea91_rle_crop_3712196781_0.png', 1344183138: '1741963946_1655550_1344182997_93d5f3a376938cb4f61108f11f18ea91_rle_crop_3712196784_0.png', 1344183139: '1741963946_1655550_1344182763_b8fc3d62c37466b46dbf7d7f160c0b63_rle_crop_3712196806_0.png', 1344183164: '1741963932_702617_1344182972_08df615b0ec3e7419aeacae57d6a31b2_rle_crop_3712196969_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/2be1df1b68604903999da5a6f96c7edb_77419871.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0c6ca4812193e36d3f845d06469b5fe3_62598200.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f1f9d1fb8a28bf9509067d9bb773c8b3_22255680.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7497d05448431f08c1b3f700a26a39d4_53160378.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c584dcf19753900d3846fd32462a3eaa_7875463.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/389cec79a8bab8781a6f51a55e45a275_535651.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/2be1df1b68604903999da5a6f96c7edb_24529764.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f2a83920f4a7197d7620f6c4c8e1e63e_12896986.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/74923a11e1404b97f9f474cf2f2465a8_88264988.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9a20ee3cf6802e8255014a60c85816a5_9081071.png change filename to text .imagette214349261741964014/ imagette214349261741964014/1741963851_701715_1344181642_5118dc4a28b4dd1f81758f2e99f4f9c4_rle_crop_3712194162_0.png.png imagette214349261741964014/1741963932_702617_1344182972_08df615b0ec3e7419aeacae57d6a31b2_rle_crop_3712196969_0.png.png imagette214349261741964014/1741963946_1655550_1344182997_93d5f3a376938cb4f61108f11f18ea91_rle_crop_3712196781_0.png.png imagette214349261741964014/1741963827_1651980_1344182647_479b84ba949f7addb37add1961da6c7b_rle_crop_3712194276_0.png.png imagette214349261741964014/1741963946_1655550_1344182997_93d5f3a376938cb4f61108f11f18ea91_rle_crop_3712196784_0.png.png imagette214349261741964014/1741963827_1651980_1344182512_0dd7d90280ae15813faf0a2bbeb451e9_rle_crop_3712194361_0.png.png imagette214349261741964014/1741963851_701715_1344182248_4e18cb50664f130bb097510a687b5b77_rle_crop_3712195533_0.png.png imagette214349261741964014/1741963772_700363_1344181642_5118dc4a28b4dd1f81758f2e99f4f9c4_rle_crop_3712194162_0.png.png imagette214349261741964014/1741963827_1651980_1344182550_b34957bd176c4f8a20606c1268e97b49_rle_crop_3712194311_0.png.png imagette214349261741964014/1741963946_1655550_1344182763_b8fc3d62c37466b46dbf7d7f160c0b63_rle_crop_3712196806_0.png.png imagette214349261741964014/1741963827_1651980_1344182512_0dd7d90280ae15813faf0a2bbeb451e9_rle_crop_3712194360_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9ea015536aaca5cf9c968d1182b63ad3_17121767.png imagette214349261741964014 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21434857 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21434928,21434929,21434930,21434931,21434932,21434933,21434934,21434935,21434936,21434937,21434938,21434939?tags=Carton_gris,metal,mal_croppe,kraft,plastique,papier,autre_refus,cartonnette,flou,Teint_Dans_La_Masse,Carton_brun,environnement your option no_mail is active, we will not send the real mail to your client args[1344183149] : ('0.08916923386795593',) no score found for photo 1344183149 We are sending mail with results at report@fotonower.com args[1344183145] : ('0.08916923386795593',) no score found for photo 1344183145 We are sending mail with results at report@fotonower.com args[1344183136] : ('0.08916923386795593',) no score found for photo 1344183136 We are sending mail with results at report@fotonower.com args[1344183130] : ('0.08916923386795593',) no score found for photo 1344183130 We are sending mail with results at report@fotonower.com args[1344183125] : ('0.08916923386795593',) no score found for photo 1344183125 We are sending mail with results at report@fotonower.com args[1344183063] : ('0.08916923386795593',) no score found for photo 1344183063 We are sending mail with results at report@fotonower.com args[1344183061] : ('0.08916923386795593',) no score found for photo 1344183061 We are sending mail with results at report@fotonower.com args[1344183057] : ('0.08916923386795593',) no score found for photo 1344183057 We are sending mail with results at report@fotonower.com args[1344183052] : ('0.08916923386795593',) no score found for photo 1344183052 We are sending mail with results at report@fotonower.com refus_total : 0.08916923386795593 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=21434857 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_P21434857_14-03-2025_15_53_32.pdf results_Auto_P21434857_14-03-2025_15_53_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21434857_14-03-2025_15_53_32.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','21434857','results_Auto_P21434857_14-03-2025_15_53_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21434857_14-03-2025_15_53_32.pdf','pdf','','0.25','0.08916923386795593') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21434857]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1344183149, 1344183145, 1344183136, 1344183130, 1344183125, 1344183063, 1344183061, 1344183057, 1344183052] map_info['map_portfolio_photo'] : {21434857: [1344183149, 1344183145, 1344183136, 1344183130, 1344183125, 1344183063, 1344183061, 1344183057, 1344183052, 1344182997, 1344182992, 1344182988, 1344182972, 1344182947, 1344182930, 1344182801, 1344182778, 1344182769, 1344182763, 1344182669, 1344182647, 1344182603, 1344182550, 1344182512, 1344182504, 1344182248, 1344182225, 1344182195, 1344182152, 1344181858, 1344181811, 1344181757, 1344181642, 1344181588]} final : False mtd_id 4302 list_pids : [1344183149, 1344183145, 1344183136, 1344183130, 1344183125, 1344183063, 1344183061, 1344183057, 1344183052] 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, '2669743') ('4302', '21434857', '1344183149', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183145', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183136', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183130', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183125', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183063', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183061', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183057', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183052', None, None, None, None, None, '2669743') 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', '21434857', '1344183149', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183145', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183136', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183130', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183125', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183063', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183061', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183057', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183052', None, None, None, None, None, '2669743')] time used for this insertion : 0.013859033584594727 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.539159297943115 time spend to save output : 0.014481544494628906 total time spend for step 4 : 4.553640842437744 step5:split_time_score Fri Mar 14 15:53:36 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 : ['21434857'] 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 : [('21434857',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21434857) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1344183149: {'path': 'temp/1741964012_222264_1344183149_64961451a754a9217a2d698768cc1afb.jpg', 'extension': 'jpg'}, 1344183125: {'path': 'temp/1741964012_222264_1344183125_5caeaedd5e702560bf99729f04e3bbc0.jpg', 'extension': 'jpg'}, 1344183130: {'path': 'temp/1741964012_222264_1344183130_5c33cd5e76a71824e1e81d044b11fb04.jpg', 'extension': 'jpg'}, 1344183136: {'path': 'temp/1741964012_222264_1344183136_e215d58ef727bb0c5fd485bd0015f664.jpg', 'extension': 'jpg'}, 1344183145: {'path': 'temp/1741964012_222264_1344183145_b5a8ec6313c9ea82b27950a5a9c83bca.jpg', 'extension': 'jpg'}, 1344183052: {'path': 'temp/1741964012_222264_1344183052_75536d7d32f3ded98dea51c362a8e04f.jpg', 'extension': 'jpg'}, 1344183057: {'path': 'temp/1741964012_222264_1344183057_526472d7dfd1c1d6d37206a63266fbdc.jpg', 'extension': 'jpg'}, 1344183061: {'path': 'temp/1741964012_222264_1344183061_0cd1f91ac6dc2734b70778b9a09f34ec.jpg', 'extension': 'jpg'}, 1344183063: {'path': 'temp/1741964012_222264_1344183063_feb21191d29bd20b51644a701c7de96f.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 = 21434857; (('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 = 21434857 group by h (('15', 34),) 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=21434857 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 (21434857) 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 (21434857) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14032025 21434857 Nombre de photos uploadées : 34 / 23040 (0%) 14032025 21434857 Nombre de photos taguées (types de déchets): 0 / 34 (0%) 14032025 21434857 Nombre de photos taguées (volume) : 0 / 34 (0%) [{'photo_id': 1344181858, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/63e49ba05667dd35da5b074073af6f20.jpg', 'username': None, 'uploaded_at': 1741963606, 'text': 'image_14032025_15_45_04_10150.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1344181811, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/cbc9dac5a699555f4e506d679ea5188c.jpg', 'username': None, 'uploaded_at': 1741963606, 'text': 'image_14032025_15_45_13_9130.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1344181757, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e16b14ce90579feb717a294414bfe914.jpg', 'username': None, 'uploaded_at': 1741963606, 'text': 'image_14032025_15_45_24_10140.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1344181642, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/5118dc4a28b4dd1f81758f2e99f4f9c4.jpg', 'username': None, 'uploaded_at': 1741963606, 'text': 'image_14032025_15_45_34_10142.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 7.3909759521484375e-06 ?????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018851757049560547 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21434857, '2025-03-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1667162,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.029801130294799805 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= 1667162 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1667162, 'dashboard_run_id': 1676796, 'mtr_portfolio_id': 21431516, 'dashboard_result_id': 9452941, '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_P21431516_14-03-2025_15_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21431529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21431530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21431531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21431532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21431533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21431534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21431535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21431536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21431537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21431538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21431539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21431540, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1676796, 'mtr_portfolio_id': 21432602, 'dashboard_result_id': 9452942, '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_P21432602_14-03-2025_15_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21432700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21432701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21432702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21432703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21432704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21432705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21432706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21432707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21432708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21432709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21432710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21432711, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1676796, 'mtr_portfolio_id': 21433508, 'dashboard_result_id': 9452943, '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_P21433508_14-03-2025_15_48_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21433509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21433510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21433511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21433512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21433513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21433514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21433515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21433516, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21433517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21433518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21433519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21433520, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1676796, 'mtr_portfolio_id': 21434857, 'dashboard_result_id': 9452944, '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_P21434857_14-03-2025_15_52_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21434916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21434917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21434918, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21434919, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21434920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21434921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21434922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21434923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21434924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21434925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21434926, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21434927, '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 = 21431516 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': 2669554, 'mtr_portfolio_id': 21431516, 'created_at': datetime.datetime(2025, 3, 14, 15, 18, 59), 'result': '0.06338171451369397', 'result_long': None, 'result_double': None}] Qualite : 0.06338171451369397 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21431516 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21431516_14-03-2025_15_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21431516 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_P21431516_14-03-2025_15_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21431529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21431530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21431531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21431532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21431533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21431534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21431535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21431536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21431537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21431538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21431539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21431540, 'pht': 3726}}" where mtr_portfolio_id = 21431516 and dashboard_run_id = 1676796 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`=21431516 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9452941, 0.06338171451369397, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21431516_14-03-2025_15_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21431529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21431530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21431531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21431532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21431533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21431534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21431535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21431536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21431537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21431538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21431539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21431540, '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 = 21432602 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': 2669610, 'mtr_portfolio_id': 21432602, 'created_at': datetime.datetime(2025, 3, 14, 15, 32, 58), 'result': '0.06538699512952466', 'result_long': None, 'result_double': None}] Qualite : 0.06538699512952466 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21432602 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21432602_14-03-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21432602 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_P21432602_14-03-2025_15_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21432700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21432701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21432702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21432703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21432704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21432705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21432706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21432707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21432708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21432709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21432710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21432711, 'pht': 3726}}" where mtr_portfolio_id = 21432602 and dashboard_run_id = 1676796 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`=21432602 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9452942, 0.06538699512952466, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21432602_14-03-2025_15_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21432700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21432701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21432702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21432703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21432704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21432705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21432706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21432707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21432708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21432709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21432710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21432711, '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 = 21433508 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': 2669684, 'mtr_portfolio_id': 21433508, 'created_at': datetime.datetime(2025, 3, 14, 15, 48), 'result': '0.07333644680653612', 'result_long': None, 'result_double': None}] Qualite : 0.07333644680653612 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21433508 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21433508_14-03-2025_15_48_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21433508 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_P21433508_14-03-2025_15_48_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21433509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21433510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21433511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21433512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21433513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21433514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21433515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21433516, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21433517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21433518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21433519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21433520, 'pht': 3726}}" where mtr_portfolio_id = 21433508 and dashboard_run_id = 1676796 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`=21433508 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9452943, 0.07333644680653612, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21433508_14-03-2025_15_48_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21433509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21433510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21433511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21433512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21433513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21433514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21433515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21433516, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21433517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21433518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21433519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21433520, '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 = 21434857 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': 2669743, 'mtr_portfolio_id': 21434857, 'created_at': datetime.datetime(2025, 3, 14, 15, 53, 31), 'result': '0.08916923386795593', 'result_long': None, 'result_double': None}] Qualite : 0.08916923386795593 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21434857 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21434857_14-03-2025_15_53_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21434857 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_P21434857_14-03-2025_15_53_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21434916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21434917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21434918, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21434919, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21434920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21434921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21434922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21434923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21434924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21434925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21434926, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21434927, 'pht': 3726}}" where mtr_portfolio_id = 21434857 and dashboard_run_id = 1676796 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`=21434857 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9452944, 0.08916923386795593, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21434857_14-03-2025_15_53_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21434916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21434917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21434918, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21434919, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21434920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21434921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21434922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21434923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21434924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21434925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21434926, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21434927, '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 (21431516,21432602,21433508,21434857) result : ((1344165381,), (1344165386,), (1344165389,), (1344165391,), (1344165394,), (1344165651,), (1344165655,), (1344165659,), (1344165662,), (1344165666,), (1344165802,), (1344165841,), (1344165867,), (1344165895,), (1344165915,), (1344166331,), (1344166360,), (1344166390,), (1344166461,), (1344166511,), (1344166556,), (1344166819,), (1344166867,), (1344167025,), (1344167671,), (1344167694,), (1344167722,), (1344167747,), (1344167766,), (1344167792,), (1344168030,), (1344168043,), (1344168045,), (1344168065,), (1344168091,), (1344168536,), (1344168568,), (1344168620,), (1344168660,), (1344168725,), (1344168787,), (1344168927,), (1344168937,), (1344168951,), (1344169098,), (1344169120,), (1344169131,), (1344169137,), (1344169141,), (1344169143,), (1344169360,), (1344169399,), (1344169444,), (1344169518,), (1344169691,), (1344169698,), (1344169702,), (1344169703,), (1344169706,), (1344169710,), (1344169792,), (1344169812,), (1344169822,), (1344169830,), (1344169933,), (1344169939,), (1344169942,), (1344169944,), (1344169948,), (1344169952,), (1344170009,), (1344170012,), (1344170016,), (1344170026,), (1344170371,), (1344170241,), (1344170292,), (1344170304,), (1344170329,), (1344170344,), (1344170589,), (1344170616,), (1344170620,), (1344170622,), (1344170624,), (1344170647,), (1344170651,), (1344170660,), (1344170673,), (1344170702,), (1344170729,), (1344170970,), (1344170996,), (1344171023,), (1344171097,), (1344171119,), (1344171436,), (1344171498,), (1344171539,), (1344171560,), (1344171584,), (1344171837,), (1344171843,), (1344171856,), (1344171858,), (1344171866,), (1344171880,), (1344171978,), (1344171983,), (1344171988,), (1344172001,), (1344172459,), (1344172517,), (1344172584,), (1344172642,), (1344172685,), (1344172736,), (1344173177,), (1344173196,), (1344173200,), (1344173221,), (1344173370,), (1344173380,), (1344173385,), (1344173388,), (1344173390,), (1344173393,), (1344173577,), (1344173622,), (1344173738,), (1344173851,), (1344174014,), (1344174464,), (1344174508,), (1344174557,), (1344174610,), (1344174685,), (1344174704,), (1344174926,), (1344174945,), (1344174959,), (1344174984,), (1344175320,), (1344175325,), (1344175344,), (1344175359,), (1344175360,), (1344175369,), (1344175512,), (1344175551,), (1344175578,), (1344175588,), (1344175746,), (1344175710,), (1344175714,), (1344175729,), (1344175742,), (1344175794,), (1344175800,), (1344175869,), (1344175954,), (1344175976,), (1344176277,), (1344176310,), (1344176365,), (1344176386,), (1344176389,), (1344176398,), (1344176674,), (1344176705,), (1344176726,), (1344176750,), (1344177215,), (1344177237,), (1344177265,), (1344177303,), (1344177355,), (1344177402,), (1344177518,), (1344177533,), (1344177598,), (1344177619,), (1344177641,), (1344178035,), (1344178070,), (1344178088,), (1344178114,), (1344178127,), (1344178148,), (1344178423,), (1344178463,), (1344178507,), (1344178528,), (1344178917,), (1344178923,), (1344178928,), (1344178929,), (1344178930,), (1344178933,), (1344178999,), (1344179034,), (1344179041,), (1344179051,), (1344179464,), (1344179484,), (1344179496,), (1344179536,), (1344179541,), (1344179558,), (1344179795,), (1344179866,), (1344179909,), (1344179920,), (1344180143,), (1344180169,), (1344180196,), (1344180226,), (1344180253,), (1344180281,), (1344180522,), (1344180551,), (1344180585,), (1344180612,), (1344180901,), (1344180972,), (1344180988,), (1344181026,), (1344181049,), (1344181883,), (1344181588,), (1344181642,), (1344181757,), (1344181811,), (1344181858,), (1344182152,), (1344182195,), (1344182225,), (1344182248,), (1344182504,), (1344182512,), (1344182550,), (1344182603,), (1344182647,), (1344182669,), (1344182763,), (1344182769,), (1344182778,), (1344182801,), (1344182930,), (1344182947,), (1344182972,), (1344182988,), (1344182992,), (1344182997,), (1344183052,), (1344183057,), (1344183061,), (1344183063,), (1344183125,), (1344183130,), (1344183136,), (1344183145,), (1344183149,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14032025': {'nb_upload': 34, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21434857]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1344183149, 1344183145, 1344183136, 1344183130, 1344183125, 1344183063, 1344183061, 1344183057, 1344183052] map_info['map_portfolio_photo'] : {21434857: [1344183149, 1344183145, 1344183136, 1344183130, 1344183125, 1344183063, 1344183061, 1344183057, 1344183052, 1344182997, 1344182992, 1344182988, 1344182972, 1344182947, 1344182930, 1344182801, 1344182778, 1344182769, 1344182763, 1344182669, 1344182647, 1344182603, 1344182550, 1344182512, 1344182504, 1344182248, 1344182225, 1344182195, 1344182152, 1344181858, 1344181811, 1344181757, 1344181642, 1344181588]} final : True mtd_id 4302 list_pids : [1344183149, 1344183145, 1344183136, 1344183130, 1344183125, 1344183063, 1344183061, 1344183057, 1344183052] Looping around the photos to save general results len do output : 1 /21434857Didn'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, '2669743') ('4302', '21434857', '1344183149', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183145', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183136', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183130', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183125', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183063', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183061', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183057', None, None, None, None, None, '2669743') ('4302', None, None, None, None, None, None, None, '2669743') ('4302', '21434857', '1344183052', None, None, None, None, None, '2669743') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21434857', 'None', None, None, None, None, '2669743'), ('4302', '21434857', '1344183149', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183145', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183136', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183130', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183125', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183063', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183061', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183057', None, None, None, None, None, '2669743'), ('4302', '21434857', '1344183052', None, None, None, None, None, '2669743')] time used for this insertion : 0.013704776763916016 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33411693572998047 time spend to save output : 0.013873815536499023 total time spend for step 5 : 0.3479907512664795 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 (2669743) 2.30user 1.96system 0:11.62elapsed 36%CPU (0avgtext+0avgdata 160736maxresident)k 17976inputs+15176outputs (180major+84608minor)pagefaults 0swaps