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 : 3359123 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 (2629962) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2629962) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20984411 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2629962'] with mtr_portfolio_ids : ['20984411'] and first list_photo_ids : [] new path : /proc/3359123/ Name: python3 Umask: 0002 State: R (running) Tgid: 3359123 Ngid: 0 Pid: 3359123 PPid: 3359122 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3359123 NSpid: 3359123 NSpgid: 3355772 NSsid: 3355772 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100224 kB VmRSS: 100224 kB RssAnon: 59760 kB RssFile: 40464 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/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: 64 nonvoluntary_ctxt_switches: 176 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3359123', 'Ngid': '0', 'Pid': '3359123', 'PPid': '3359122', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3359123', 'NSpid': '3359123', 'NSpgid': '3355772', 'NSsid': '3355772', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100224 kB', 'VmRSS': '100224 kB', 'RssAnon': '59760 kB', 'RssFile': '40464 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/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': '64', 'nonvoluntary_ctxt_switches': '176'} ('datou_batch_current', '3359123', '1106844', '0', '1106844', '865592', '100224', b'', 'marlene', '2629962') 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 (20984411) 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 (2629962 ) ) 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 (20984411) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340648301, 'portfolio_id': 20984411}, {'photo_id': 1340648295, 'portfolio_id': 20984411}, {'photo_id': 1340648085, 'portfolio_id': 20984411}, {'photo_id': 1340648082, 'portfolio_id': 20984411}, {'photo_id': 1340648070, 'portfolio_id': 20984411}, {'photo_id': 1340648030, 'portfolio_id': 20984411}, {'photo_id': 1340648025, 'portfolio_id': 20984411}, {'photo_id': 1340648017, 'portfolio_id': 20984411}, {'photo_id': 1340648012, 'portfolio_id': 20984411}, {'photo_id': 1340648006, 'portfolio_id': 20984411}, {'photo_id': 1340647958, 'portfolio_id': 20984411}, {'photo_id': 1340647952, 'portfolio_id': 20984411}, {'photo_id': 1340647949, 'portfolio_id': 20984411}, {'photo_id': 1340647945, 'portfolio_id': 20984411}, {'photo_id': 1340647940, 'portfolio_id': 20984411}, {'photo_id': 1340647909, 'portfolio_id': 20984411}, {'photo_id': 1340647904, 'portfolio_id': 20984411}, {'photo_id': 1340647896, 'portfolio_id': 20984411}, {'photo_id': 1340647888, 'portfolio_id': 20984411}, {'photo_id': 1340647877, 'portfolio_id': 20984411}, {'photo_id': 1340647815, 'portfolio_id': 20984411}, {'photo_id': 1340647813, 'portfolio_id': 20984411}, {'photo_id': 1340647810, 'portfolio_id': 20984411}, {'photo_id': 1340647805, 'portfolio_id': 20984411}, {'photo_id': 1340647781, 'portfolio_id': 20984411}, {'photo_id': 1340647777, 'portfolio_id': 20984411}, {'photo_id': 1340647773, 'portfolio_id': 20984411}, {'photo_id': 1340647771, 'portfolio_id': 20984411}, {'photo_id': 1340647766, 'portfolio_id': 20984411}, {'photo_id': 1340647762, 'portfolio_id': 20984411}, {'photo_id': 1340647722, 'portfolio_id': 20984411}, {'photo_id': 1340647717, 'portfolio_id': 20984411}, {'photo_id': 1340647712, 'portfolio_id': 20984411}, {'photo_id': 1340647707, 'portfolio_id': 20984411}, {'photo_id': 1340647703, 'portfolio_id': 20984411}, {'photo_id': 1340647691, 'portfolio_id': 20984411}, {'photo_id': 1340647623, 'portfolio_id': 20984411}, {'photo_id': 1340647620, 'portfolio_id': 20984411}, {'photo_id': 1340647615, 'portfolio_id': 20984411}, {'photo_id': 1340647612, 'portfolio_id': 20984411}, {'photo_id': 1340647566, 'portfolio_id': 20984411}, {'photo_id': 1340647544, 'portfolio_id': 20984411}, {'photo_id': 1340647534, 'portfolio_id': 20984411}, {'photo_id': 1340647531, 'portfolio_id': 20984411}, {'photo_id': 1340647525, 'portfolio_id': 20984411}, {'photo_id': 1340647520, 'portfolio_id': 20984411}, {'photo_id': 1340647351, 'portfolio_id': 20984411}] map_portfolio_id_photo_id: {20984411: [1340648301, 1340648295, 1340648085, 1340648082, 1340648070, 1340648030, 1340648025, 1340648017, 1340648012, 1340648006, 1340647958, 1340647952, 1340647949, 1340647945, 1340647940, 1340647909, 1340647904, 1340647896, 1340647888, 1340647877, 1340647815, 1340647813, 1340647810, 1340647805, 1340647781, 1340647777, 1340647773, 1340647771, 1340647766, 1340647762, 1340647722, 1340647717, 1340647712, 1340647707, 1340647703, 1340647691, 1340647623, 1340647620, 1340647615, 1340647612, 1340647566, 1340647544, 1340647534, 1340647531, 1340647525, 1340647520, 1340647351]} ##### 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.015241384506225586 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Mar 3 17:16:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20984411) 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 : 20984411 get user id for portfolio 20984411 get sub ptf for main ptf 20984411, type 3726 and hashtags ['autre_refus', 'metal', 'Teint_Dans_La_Masse', 'cartonnette', 'mal_croppe', 'kraft', 'Carton_brun', 'environnement', 'plastique', 'Carton_gris', 'flou', 'papier'] 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`=20984411 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','Teint_Dans_La_Masse','cartonnette','mal_croppe','kraft','Carton_brun','environnement','plastique','Carton_gris','flou','papier')) 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`=20984411 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','Teint_Dans_La_Masse','cartonnette','mal_croppe','kraft','Carton_brun','environnement','plastique','Carton_gris','flou','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20984411, 'sub_port_id': 20984414, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604389, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 56)}, 'kraft': {'main_port_id': 20984411, 'sub_port_id': 20984415, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604390, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 56)}, 'metal': {'main_port_id': 20984411, 'sub_port_id': 20984416, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604391, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 56)}, 'papier': {'main_port_id': 20984411, 'sub_port_id': 20984417, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604392, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 20984411, 'sub_port_id': 20984418, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604393, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 56)}, 'mal_croppe': {'main_port_id': 20984411, 'sub_port_id': 20984419, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604394, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 56)}, 'plastique': {'main_port_id': 20984411, 'sub_port_id': 20984420, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604395, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 56)}, 'environnement': {'main_port_id': 20984411, 'sub_port_id': 20984421, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604396, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 56)}, 'cartonnette': {'main_port_id': 20984411, 'sub_port_id': 20984422, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604397, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 56)}, 'autre_refus': {'main_port_id': 20984411, 'sub_port_id': 20984423, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604398, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 56)}, 'flou': {'main_port_id': 20984411, 'sub_port_id': 20984424, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604399, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 56)}, 'Carton_brun': {'main_port_id': 20984411, 'sub_port_id': 20984425, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604400, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20984414 , 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=20984411 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 (20984414) result : ((1340647748,), (1340647880,), (1340647881,), (1340647882,), (1340647988,), (1340647989,), (1340647990,), (1340647991,), (1340647992,), (1340647993,), (1340647994,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20984411) result : ((1340647351,), (1340647520,), (1340647525,), (1340647531,), (1340647534,), (1340647544,), (1340647566,), (1340647612,), (1340647615,), (1340647620,), (1340647623,), (1340647691,), (1340647703,), (1340647707,), (1340647712,), (1340647717,), (1340647722,), (1340647762,), (1340647766,), (1340647771,), (1340647773,), (1340647777,), (1340647781,), (1340647805,), (1340647810,), (1340647813,), (1340647815,), (1340647877,), (1340647888,), (1340647896,), (1340647904,), (1340647909,), (1340647940,), (1340647945,), (1340647949,), (1340647952,), (1340647958,), (1340648006,), (1340648012,), (1340648017,), (1340648025,), (1340648030,), (1340648070,), (1340648082,), (1340648085,), (1340648295,), (1340648301,)) 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 20984415 , 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=20984411 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 (20984415) result : ((1340647885,), (1340647886,), (1340647997,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20984411) result : ((1340647351,), (1340647520,), (1340647525,), (1340647531,), (1340647534,), (1340647544,), (1340647566,), (1340647612,), (1340647615,), (1340647620,), (1340647623,), (1340647691,), (1340647703,), (1340647707,), (1340647712,), (1340647717,), (1340647722,), (1340647762,), (1340647766,), (1340647771,), (1340647773,), (1340647777,), (1340647781,), (1340647805,), (1340647810,), (1340647813,), (1340647815,), (1340647877,), (1340647888,), (1340647896,), (1340647904,), (1340647909,), (1340647940,), (1340647945,), (1340647949,), (1340647952,), (1340647958,), (1340648006,), (1340648012,), (1340648017,), (1340648025,), (1340648030,), (1340648070,), (1340648082,), (1340648085,), (1340648295,), (1340648301,)) 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 20984416 , 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=20984411 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 (20984416) result : ((1340647889,), (1340648266,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20984411) result : ((1340647351,), (1340647520,), (1340647525,), (1340647531,), (1340647534,), (1340647544,), (1340647566,), (1340647612,), (1340647615,), (1340647620,), (1340647623,), (1340647691,), (1340647703,), (1340647707,), (1340647712,), (1340647717,), (1340647722,), (1340647762,), (1340647766,), (1340647771,), (1340647773,), (1340647777,), (1340647781,), (1340647805,), (1340647810,), (1340647813,), (1340647815,), (1340647877,), (1340647888,), (1340647896,), (1340647904,), (1340647909,), (1340647940,), (1340647945,), (1340647949,), (1340647952,), (1340647958,), (1340648006,), (1340648012,), (1340648017,), (1340648025,), (1340648030,), (1340648070,), (1340648082,), (1340648085,), (1340648295,), (1340648301,)) 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 20984417 , 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=20984411 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 (20984417) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20984411) result : ((1340647351,), (1340647520,), (1340647525,), (1340647531,), (1340647534,), (1340647544,), (1340647566,), (1340647612,), (1340647615,), (1340647620,), (1340647623,), (1340647691,), (1340647703,), (1340647707,), (1340647712,), (1340647717,), (1340647722,), (1340647762,), (1340647766,), (1340647771,), (1340647773,), (1340647777,), (1340647781,), (1340647805,), (1340647810,), (1340647813,), (1340647815,), (1340647877,), (1340647888,), (1340647896,), (1340647904,), (1340647909,), (1340647940,), (1340647945,), (1340647949,), (1340647952,), (1340647958,), (1340648006,), (1340648012,), (1340648017,), (1340648025,), (1340648030,), (1340648070,), (1340648082,), (1340648085,), (1340648295,), (1340648301,)) 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 20984418 , 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=20984411 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 (20984418) result : ((1340647975,), (1340647976,), (1340647977,), (1340647978,), (1340647979,), (1340647980,), (1340648126,), (1340648248,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20984411) result : ((1340647351,), (1340647520,), (1340647525,), (1340647531,), (1340647534,), (1340647544,), (1340647566,), (1340647612,), (1340647615,), (1340647620,), (1340647623,), (1340647691,), (1340647703,), (1340647707,), (1340647712,), (1340647717,), (1340647722,), (1340647762,), (1340647766,), (1340647771,), (1340647773,), (1340647777,), (1340647781,), (1340647805,), (1340647810,), (1340647813,), (1340647815,), (1340647877,), (1340647888,), (1340647896,), (1340647904,), (1340647909,), (1340647940,), (1340647945,), (1340647949,), (1340647952,), (1340647958,), (1340648006,), (1340648012,), (1340648017,), (1340648025,), (1340648030,), (1340648070,), (1340648082,), (1340648085,), (1340648295,), (1340648301,)) 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 20984419 , 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=20984411 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 (20984419) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20984411) result : ((1340647351,), (1340647520,), (1340647525,), (1340647531,), (1340647534,), (1340647544,), (1340647566,), (1340647612,), (1340647615,), (1340647620,), (1340647623,), (1340647691,), (1340647703,), (1340647707,), (1340647712,), (1340647717,), (1340647722,), (1340647762,), (1340647766,), (1340647771,), (1340647773,), (1340647777,), (1340647781,), (1340647805,), (1340647810,), (1340647813,), (1340647815,), (1340647877,), (1340647888,), (1340647896,), (1340647904,), (1340647909,), (1340647940,), (1340647945,), (1340647949,), (1340647952,), (1340647958,), (1340648006,), (1340648012,), (1340648017,), (1340648025,), (1340648030,), (1340648070,), (1340648082,), (1340648085,), (1340648295,), (1340648301,)) 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 20984420 , 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=20984411 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 (20984420) result : ((1340647883,), (1340647972,), (1340647973,), (1340647996,), (1340648140,), (1340648260,), (1340648261,), (1340648262,), (1340648263,), (1340648264,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20984411) result : ((1340647351,), (1340647520,), (1340647525,), (1340647531,), (1340647534,), (1340647544,), (1340647566,), (1340647612,), (1340647615,), (1340647620,), (1340647623,), (1340647691,), (1340647703,), (1340647707,), (1340647712,), (1340647717,), (1340647722,), (1340647762,), (1340647766,), (1340647771,), (1340647773,), (1340647777,), (1340647781,), (1340647805,), (1340647810,), (1340647813,), (1340647815,), (1340647877,), (1340647888,), (1340647896,), (1340647904,), (1340647909,), (1340647940,), (1340647945,), (1340647949,), (1340647952,), (1340647958,), (1340648006,), (1340648012,), (1340648017,), (1340648025,), (1340648030,), (1340648070,), (1340648082,), (1340648085,), (1340648295,), (1340648301,)) 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 20984421 , 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=20984411 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 (20984421) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20984411) result : ((1340647351,), (1340647520,), (1340647525,), (1340647531,), (1340647534,), (1340647544,), (1340647566,), (1340647612,), (1340647615,), (1340647620,), (1340647623,), (1340647691,), (1340647703,), (1340647707,), (1340647712,), (1340647717,), (1340647722,), (1340647762,), (1340647766,), (1340647771,), (1340647773,), (1340647777,), (1340647781,), (1340647805,), (1340647810,), (1340647813,), (1340647815,), (1340647877,), (1340647888,), (1340647896,), (1340647904,), (1340647909,), (1340647940,), (1340647945,), (1340647949,), (1340647952,), (1340647958,), (1340648006,), (1340648012,), (1340648017,), (1340648025,), (1340648030,), (1340648070,), (1340648082,), (1340648085,), (1340648295,), (1340648301,)) 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 20984422 , 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=20984411 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 (20984422) result : ((1340647850,), (1340647851,), (1340647971,), (1340647995,), (1340648132,), (1340648133,), (1340648134,), (1340648135,), (1340648136,), (1340648257,), (1340648258,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20984411) result : ((1340647351,), (1340647520,), (1340647525,), (1340647531,), (1340647534,), (1340647544,), (1340647566,), (1340647612,), (1340647615,), (1340647620,), (1340647623,), (1340647691,), (1340647703,), (1340647707,), (1340647712,), (1340647717,), (1340647722,), (1340647762,), (1340647766,), (1340647771,), (1340647773,), (1340647777,), (1340647781,), (1340647805,), (1340647810,), (1340647813,), (1340647815,), (1340647877,), (1340647888,), (1340647896,), (1340647904,), (1340647909,), (1340647940,), (1340647945,), (1340647949,), (1340647952,), (1340647958,), (1340648006,), (1340648012,), (1340648017,), (1340648025,), (1340648030,), (1340648070,), (1340648082,), (1340648085,), (1340648295,), (1340648301,)) 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 20984423 , 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=20984411 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 (20984423) result : ((1340647746,), (1340647843,), (1340647844,), (1340647845,), (1340647846,), (1340647847,), (1340647872,), (1340647873,), (1340647874,), (1340647875,), (1340647876,), (1340647968,), (1340647969,), (1340647981,), (1340647982,), (1340647983,), (1340647984,), (1340647985,), (1340647986,), (1340648128,), (1340648129,), (1340648130,), (1340648131,), (1340648242,), (1340648243,), (1340648244,), (1340648251,), (1340648252,), (1340648253,), (1340648254,), (1340648255,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20984411) result : ((1340647351,), (1340647520,), (1340647525,), (1340647531,), (1340647534,), (1340647544,), (1340647566,), (1340647612,), (1340647615,), (1340647620,), (1340647623,), (1340647691,), (1340647703,), (1340647707,), (1340647712,), (1340647717,), (1340647722,), (1340647762,), (1340647766,), (1340647771,), (1340647773,), (1340647777,), (1340647781,), (1340647805,), (1340647810,), (1340647813,), (1340647815,), (1340647877,), (1340647888,), (1340647896,), (1340647904,), (1340647909,), (1340647940,), (1340647945,), (1340647949,), (1340647952,), (1340647958,), (1340648006,), (1340648012,), (1340648017,), (1340648025,), (1340648030,), (1340648070,), (1340648082,), (1340648085,), (1340648295,), (1340648301,)) 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 20984424 , 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=20984411 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 (20984424) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20984411) result : ((1340647351,), (1340647520,), (1340647525,), (1340647531,), (1340647534,), (1340647544,), (1340647566,), (1340647612,), (1340647615,), (1340647620,), (1340647623,), (1340647691,), (1340647703,), (1340647707,), (1340647712,), (1340647717,), (1340647722,), (1340647762,), (1340647766,), (1340647771,), (1340647773,), (1340647777,), (1340647781,), (1340647805,), (1340647810,), (1340647813,), (1340647815,), (1340647877,), (1340647888,), (1340647896,), (1340647904,), (1340647909,), (1340647940,), (1340647945,), (1340647949,), (1340647952,), (1340647958,), (1340648006,), (1340648012,), (1340648017,), (1340648025,), (1340648030,), (1340648070,), (1340648082,), (1340648085,), (1340648295,), (1340648301,)) 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 20984425 , 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=20984411 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 (20984425) result : ((1340647853,), (1340647854,), (1340647855,), (1340647856,), (1340648138,), (1340648139,), (1340648246,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20984411) result : ((1340647351,), (1340647520,), (1340647525,), (1340647531,), (1340647534,), (1340647544,), (1340647566,), (1340647612,), (1340647615,), (1340647620,), (1340647623,), (1340647691,), (1340647703,), (1340647707,), (1340647712,), (1340647717,), (1340647722,), (1340647762,), (1340647766,), (1340647771,), (1340647773,), (1340647777,), (1340647781,), (1340647805,), (1340647810,), (1340647813,), (1340647815,), (1340647877,), (1340647888,), (1340647896,), (1340647904,), (1340647909,), (1340647940,), (1340647945,), (1340647949,), (1340647952,), (1340647958,), (1340648006,), (1340648012,), (1340648017,), (1340648025,), (1340648030,), (1340648070,), (1340648082,), (1340648085,), (1340648295,), (1340648301,)) 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`=20984411 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','Teint_Dans_La_Masse','cartonnette','mal_croppe','kraft','Carton_brun','environnement','plastique','Carton_gris','flou','papier')) 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`=20984411 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','Teint_Dans_La_Masse','cartonnette','mal_croppe','kraft','Carton_brun','environnement','plastique','Carton_gris','flou','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20984411, 'sub_port_id': 20984426, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604401, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 58)}, 'kraft': {'main_port_id': 20984411, 'sub_port_id': 20984427, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604402, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 58)}, 'metal': {'main_port_id': 20984411, 'sub_port_id': 20984428, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604403, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 58)}, 'papier': {'main_port_id': 20984411, 'sub_port_id': 20984429, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604404, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20984411, 'sub_port_id': 20984430, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604405, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 58)}, 'mal_croppe': {'main_port_id': 20984411, 'sub_port_id': 20984431, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604406, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 58)}, 'plastique': {'main_port_id': 20984411, 'sub_port_id': 20984432, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604407, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 58)}, 'environnement': {'main_port_id': 20984411, 'sub_port_id': 20984433, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604408, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 58)}, 'cartonnette': {'main_port_id': 20984411, 'sub_port_id': 20984434, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604409, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 58)}, 'autre_refus': {'main_port_id': 20984411, 'sub_port_id': 20984435, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604410, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 58)}, 'flou': {'main_port_id': 20984411, 'sub_port_id': 20984436, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604411, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 58)}, 'Carton_brun': {'main_port_id': 20984411, 'sub_port_id': 20984437, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13604412, 'last_updated_at': datetime.datetime(2025, 3, 3, 17, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 17, 6, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20984426,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20984414 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20984427,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20984415 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20984428,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20984416 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20984429,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20984417 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20984430,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20984418 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20984431,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20984419 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20984432,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20984420 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20984433,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20984421 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20984434,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20984422 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20984435,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20984423 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20984436,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20984424 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20984437,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20984425 lien utilise dans velours : https://www.fotonower.com/velours/20984426,20984427,20984428,20984429,20984430,20984431,20984432,20984433,20984434,20984435,20984436,20984437?tags=Carton_gris,kraft,metal,papier,Teint_Dans_La_Masse,mal_croppe,plastique,environnement,cartonnette,autre_refus,flou,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20984411]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340648301, 1340648295] map_info['map_portfolio_photo'] : {20984411: [1340648301, 1340648295, 1340648085, 1340648082, 1340648070, 1340648030, 1340648025, 1340648017, 1340648012, 1340648006, 1340647958, 1340647952, 1340647949, 1340647945, 1340647940, 1340647909, 1340647904, 1340647896, 1340647888, 1340647877, 1340647815, 1340647813, 1340647810, 1340647805, 1340647781, 1340647777, 1340647773, 1340647771, 1340647766, 1340647762, 1340647722, 1340647717, 1340647712, 1340647707, 1340647703, 1340647691, 1340647623, 1340647620, 1340647615, 1340647612, 1340647566, 1340647544, 1340647534, 1340647531, 1340647525, 1340647520, 1340647351]} final : False mtd_id 4302 list_pids : [1340648301, 1340648295] Looping around the photos to save general results len do output : 1 /20984411. 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, '2629962') ('4302', '20984411', '1340648301', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648295', None, None, None, None, None, '2629962') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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, '20984411', "{'Carton_gris': 20984414, 'kraft': 20984415, 'metal': 20984416, 'papier': 20984417, 'Teint_Dans_La_Masse': 20984418, 'mal_croppe': 20984419, 'plastique': 20984420, 'environnement': 20984421, 'cartonnette': 20984422, 'autre_refus': 20984423, 'flou': 20984424, 'Carton_brun': 20984425}", None, None, None, None, '2629962'), ('4302', '20984411', '1340648301', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648295', None, None, None, None, None, '2629962')] time used for this insertion : 0.012513399124145508 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4523351192474365 time spend to save output : 0.012916803359985352 total time spend for step 1 : 1.4652519226074219 step2:final Mon Mar 3 17:16:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20984411) 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 20984411 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340647351,1340647566,1340647544,1340647534,1340647531,1340647525,1340647520,1340647623,1340647620,1340647615,1340647612,1340647722,1340647717,1340647712,1340647707,1340647703,1340647691,1340647781,1340647777,1340647773,1340647771,1340647766,1340647762,1340647815,1340647813,1340647810,1340647805,1340647909,1340647904,1340647896,1340647888,1340647877,1340647958,1340647952,1340647949,1340647945,1340647940,1340648030,1340648025,1340648017,1340648012,1340648006,1340648085,1340648082,1340648070,1340648301,1340648295); 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([20984411]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340648301: ('0.08586678763354452',), 1340648295: ('0.08586678763354452',)} new output for save of step final : {1340648301: ('0.08586678763354452',), 1340648295: ('0.08586678763354452',)} [1340648301, 1340648295] map_info['map_portfolio_photo'] : {20984411: [1340648301, 1340648295, 1340648085, 1340648082, 1340648070, 1340648030, 1340648025, 1340648017, 1340648012, 1340648006, 1340647958, 1340647952, 1340647949, 1340647945, 1340647940, 1340647909, 1340647904, 1340647896, 1340647888, 1340647877, 1340647815, 1340647813, 1340647810, 1340647805, 1340647781, 1340647777, 1340647773, 1340647771, 1340647766, 1340647762, 1340647722, 1340647717, 1340647712, 1340647707, 1340647703, 1340647691, 1340647623, 1340647620, 1340647615, 1340647612, 1340647566, 1340647544, 1340647534, 1340647531, 1340647525, 1340647520, 1340647351]} final : False mtd_id 4302 list_pids : [1340648301, 1340648295] Looping around the photos to save general results len do output : 2 /1340648301.Didn't retrieve data . /1340648295.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, '2629962') ('4302', '20984411', '1340648301', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648295', None, None, None, None, None, '2629962') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20984411', '1340648301', '0.08586678763354452', None, None, None, None, '2629962'), ('4302', '20984411', '1340648295', '0.08586678763354452', None, None, None, None, '2629962')] time used for this insertion : 0.012666940689086914 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06808018684387207 time spend to save output : 0.01303720474243164 total time spend for step 2 : 0.08111739158630371 step3:velours_tree Mon Mar 3 17:16:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20984411: [{'Carton_gris': 20984414, 'kraft': 20984415, 'metal': 20984416, 'papier': 20984417, 'Teint_Dans_La_Masse': 20984418, 'mal_croppe': 20984419, 'plastique': 20984420, 'environnement': 20984421, 'cartonnette': 20984422, 'autre_refus': 20984423, 'flou': 20984424, 'Carton_brun': 20984425}]} input_args_next_step : {20984411: ()} output_args : {20984411: [{'Carton_gris': 20984414, 'kraft': 20984415, 'metal': 20984416, 'papier': 20984417, 'Teint_Dans_La_Masse': 20984418, 'mal_croppe': 20984419, 'plastique': 20984420, 'environnement': 20984421, 'cartonnette': 20984422, 'autre_refus': 20984423, 'flou': 20984424, 'Carton_brun': 20984425}]} args : 20984411 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': 20984414, 'kraft': 20984415, 'metal': 20984416, 'papier': 20984417, 'Teint_Dans_La_Masse': 20984418, 'mal_croppe': 20984419, 'plastique': 20984420, 'environnement': 20984421, 'cartonnette': 20984422, 'autre_refus': 20984423, 'flou': 20984424, 'Carton_brun': 20984425},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20984411) 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([20984411]) 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.3854033946990967 time spend to save output : 7.319450378417969e-05 total time spend for step 3 : 0.38547658920288086 step4:send_mail_cod Mon Mar 3 17:17:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1340648301: ('0.08586678763354452',), 1340648295: ('0.08586678763354452',)} input_args_next_step : {1340648301: ()} output_args : {1340648301: ('0.08586678763354452',), 1340648295: ('0.08586678763354452',)} args : 1340648301 depend.output_id : 0 input_args_next_step : {1340648301: ('0.08586678763354452',), 1340648295: ()} output_args : {1340648301: ('0.08586678763354452',), 1340648295: ('0.08586678763354452',)} args : 1340648295 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 : {20984411: [{'Carton_gris': 20984414, 'kraft': 20984415, 'metal': 20984416, 'papier': 20984417, 'Teint_Dans_La_Masse': 20984418, 'mal_croppe': 20984419, 'plastique': 20984420, 'environnement': 20984421, 'cartonnette': 20984422, 'autre_refus': 20984423, 'flou': 20984424, 'Carton_brun': 20984425}]} input_args_next_step : {1340648301: ('0.08586678763354452',), 1340648295: ('0.08586678763354452',), 20984411: ()} output_args : {20984411: [{'Carton_gris': 20984414, 'kraft': 20984415, 'metal': 20984416, 'papier': 20984417, 'Teint_Dans_La_Masse': 20984418, 'mal_croppe': 20984419, 'plastique': 20984420, 'environnement': 20984421, 'cartonnette': 20984422, 'autre_refus': 20984423, 'flou': 20984424, 'Carton_brun': 20984425}]} args : 20984411 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 :3, first value : ('0.08586678763354452',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20984411) 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 (1340648301,1340648295) Found this number of photos: 2 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340648295 begin to download photo : 1340648301 download finish for photo 1340648301 download finish for photo 1340648295 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 2 ; length of list_pids : 2 ; length of list_args : 2 results_Auto_P20984411_03-03-2025_17_17_01.pdf 20984415 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=20984415 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340647885: '1741018052_2876829_1340647620_8f80f3b3a4a4c9c656e47892dc715a7a_rle_crop_3692495393_0.png', 1340647886: '1741018052_2876829_1340647615_8da51aa29bcbccb368cfb80cc22bdd37_rle_crop_3692495420_0.png', 1340647997: '1741018142_2877844_1340647777_191e980583f9ac9313b5f12631e6c972_rle_crop_3692495984_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d447ccf4a53de0d9406d118950479cef_1912531.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d5c8be48f44e949090ac5de6fc0ceb96_43146214.png change filename to text .imagette209844151741018621/ imagette209844151741018621/1741018052_2876829_1340647620_8f80f3b3a4a4c9c656e47892dc715a7a_rle_crop_3692495393_0.png.png imagette209844151741018621/1741018142_2877844_1340647777_191e980583f9ac9313b5f12631e6c972_rle_crop_3692495984_0.png.png imagette209844151741018621/1741018052_2876829_1340647615_8da51aa29bcbccb368cfb80cc22bdd37_rle_crop_3692495420_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6172305ff42fc0dd7e9cb7f7d1f7af29_16429561.png imagette209844151741018621 20984416 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=20984416 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340647889: '1741018052_2876829_1340647615_8da51aa29bcbccb368cfb80cc22bdd37_rle_crop_3692495432_0.png', 1340648266: '1741018395_2880943_1340648025_7b4d101e40128d569178fe04e94c20fb_rle_crop_3692497401_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b4052dfdb0f019e63ae38267d320b185_35255123.png change filename to text .imagette209844161741018622/ imagette209844161741018622/1741018395_2880943_1340648025_7b4d101e40128d569178fe04e94c20fb_rle_crop_3692497401_0.png.png imagette209844161741018622/1741018052_2876829_1340647615_8da51aa29bcbccb368cfb80cc22bdd37_rle_crop_3692495432_0.png.png imagette209844191741018622/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6a362a0b255d90658d67fd3faad626bc_48312984.png imagette209844161741018622 20984419 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=20984419 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209844191741018622 20984420 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=20984420 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340647883: '1741018052_2876829_1340647612_d019a3431ded062685baca73ea8fe7a9_rle_crop_3692495442_0.png', 1340647972: '1741018152_2878030_1340647810_1d26895b28e8277e7a1b4bd7464e31f7_rle_crop_3692495971_0.png', 1340647973: '1741018152_2878030_1340647805_79b7ec8a23392972b7c765e1ea16c147_rle_crop_3692496009_0.png', 1340647996: '1741018142_2877844_1340647762_ed89f415585631e4c228a1d99598f379_rle_crop_3692496080_0.png', 1340648140: '1741018271_2879557_1340647896_23562f3c9ca3f51150d56afc4e8514e1_rle_crop_3692496722_0.png', 1340648260: '1741018395_2880943_1340648025_7b4d101e40128d569178fe04e94c20fb_rle_crop_3692497410_0.png', 1340648261: '1741018395_2880943_1340648025_7b4d101e40128d569178fe04e94c20fb_rle_crop_3692497404_0.png', 1340648262: '1741018395_2880943_1340648017_091b7a0abcd79d53a974664169739dac_rle_crop_3692498135_0.png', 1340648263: '1741018395_2880943_1340648012_08a789700a63af33d748c98cf82d2d0f_rle_crop_3692498147_0.png', 1340648264: '1741018395_2880943_1340648012_08a789700a63af33d748c98cf82d2d0f_rle_crop_3692498153_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d44b18a92f69a8182ae8638d451fe1ca_81171941.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/554755245a83c6fa71301b100d6f8851_84443526.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/73f019dfda90f204baa6c516d4f4eaff_3363242.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0b32497772bc26e8b7800d0ca9dc3bc3_23421253.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d6dbb283a6c21464711df01903d3e087_47666082.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b0a48608169310bbb2c7b79aa4d2c5a9_39348725.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0c3b4a0b6fe1cd41b6402211258be96e_44455759.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/182aa579be55c0729f2016b79a78b135_11281039.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/44fdf206ea34de6de9951a33df30ec03_98835133.png change filename to text .imagette209844201741018622/ imagette209844201741018622/1741018142_2877844_1340647762_ed89f415585631e4c228a1d99598f379_rle_crop_3692496080_0.png.png imagette209844201741018622/1741018271_2879557_1340647896_23562f3c9ca3f51150d56afc4e8514e1_rle_crop_3692496722_0.png.png imagette209844201741018622/1741018395_2880943_1340648012_08a789700a63af33d748c98cf82d2d0f_rle_crop_3692498153_0.png.png imagette209844201741018622/1741018395_2880943_1340648025_7b4d101e40128d569178fe04e94c20fb_rle_crop_3692497404_0.png.png imagette209844201741018622/1741018395_2880943_1340648025_7b4d101e40128d569178fe04e94c20fb_rle_crop_3692497410_0.png.png imagette209844201741018622/1741018395_2880943_1340648012_08a789700a63af33d748c98cf82d2d0f_rle_crop_3692498147_0.png.png imagette209844201741018622/1741018052_2876829_1340647612_d019a3431ded062685baca73ea8fe7a9_rle_crop_3692495442_0.png.png imagette209844201741018622/1741018152_2878030_1340647805_79b7ec8a23392972b7c765e1ea16c147_rle_crop_3692496009_0.png.png imagette209844201741018622/1741018395_2880943_1340648017_091b7a0abcd79d53a974664169739dac_rle_crop_3692498135_0.png.png imagette209844201741018622/1741018152_2878030_1340647810_1d26895b28e8277e7a1b4bd7464e31f7_rle_crop_3692495971_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/82f42e88570ba4a03a04e89b9cbed1ed_62364037.png imagette209844201741018622 20984422 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=20984422 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340647850: '1741018033_2876659_1340647707_e60d6f473a0dd7db2fe5e4152f5e95d0_rle_crop_3692495306_0.png', 1340647851: '1741018033_2876659_1340647691_d7ac21124b2ca25336cfb4178376ceed_rle_crop_3692495362_0.png', 1340647971: '1741018152_2878030_1340647813_35b089e972c7218027e27f7ffaf0efc5_rle_crop_3692495963_0.png', 1340647995: '1741018142_2877844_1340647762_ed89f415585631e4c228a1d99598f379_rle_crop_3692496077_0.png', 1340648132: '1741018271_2879557_1340647904_9c73438d3cfacff5e933b264f79301cc_rle_crop_3692496707_0.png', 1340648133: '1741018271_2879557_1340647904_9c73438d3cfacff5e933b264f79301cc_rle_crop_3692496706_0.png', 1340648134: '1741018271_2879557_1340647896_23562f3c9ca3f51150d56afc4e8514e1_rle_crop_3692496727_0.png', 1340648135: '1741018271_2879557_1340647888_1202905d43d0ec577c87efbcdaaabf87_rle_crop_3692496734_0.png', 1340648136: '1741018271_2879557_1340647888_1202905d43d0ec577c87efbcdaaabf87_rle_crop_3692496736_0.png', 1340648257: '1741018395_2880943_1340648017_091b7a0abcd79d53a974664169739dac_rle_crop_3692498134_0.png', 1340648258: '1741018395_2880943_1340648012_08a789700a63af33d748c98cf82d2d0f_rle_crop_3692498149_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/3bc8fcbf6d67b22593e3537c70d34174_46699716.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4dab3299c90c3a288e272e911225114a_7202216.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/5991569a84824dfd69ee9c63d6bf7116_4020147.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b6651a91687f3d69689110f60c264be9_47731773.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/618caca69bae04e2182d16d20fb8a2bd_40757445.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4cc844b3cbd44c14557e0ff65652fe18_6713033.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f725dcecb487113b9dc1b8051ad56a95_19287065.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f7ddec3d2e66696b365acaa5b29de7cf_15245475.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2532d3a847bb3b1af09da060309288b7_91024670.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/1c6d0379f0c47ac5fa41b74b56a5a950_27514431.png change filename to text .imagette209844221741018623/ imagette209844221741018623/1741018142_2877844_1340647762_ed89f415585631e4c228a1d99598f379_rle_crop_3692496077_0.png.png imagette209844221741018623/1741018395_2880943_1340648017_091b7a0abcd79d53a974664169739dac_rle_crop_3692498134_0.png.png imagette209844221741018623/1741018271_2879557_1340647888_1202905d43d0ec577c87efbcdaaabf87_rle_crop_3692496734_0.png.png imagette209844221741018623/1741018271_2879557_1340647896_23562f3c9ca3f51150d56afc4e8514e1_rle_crop_3692496727_0.png.png imagette209844221741018623/1741018033_2876659_1340647691_d7ac21124b2ca25336cfb4178376ceed_rle_crop_3692495362_0.png.png imagette209844221741018623/1741018271_2879557_1340647904_9c73438d3cfacff5e933b264f79301cc_rle_crop_3692496706_0.png.png imagette209844221741018623/1741018271_2879557_1340647888_1202905d43d0ec577c87efbcdaaabf87_rle_crop_3692496736_0.png.png imagette209844221741018623/1741018395_2880943_1340648012_08a789700a63af33d748c98cf82d2d0f_rle_crop_3692498149_0.png.png imagette209844221741018623/1741018033_2876659_1340647707_e60d6f473a0dd7db2fe5e4152f5e95d0_rle_crop_3692495306_0.png.png imagette209844221741018623/1741018152_2878030_1340647813_35b089e972c7218027e27f7ffaf0efc5_rle_crop_3692495963_0.png.png imagette209844221741018623/1741018271_2879557_1340647904_9c73438d3cfacff5e933b264f79301cc_rle_crop_3692496707_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ae16b90b612b4952d61e4001e8dc9122_33331256.png imagette209844221741018623 20984423 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=20984423 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340647983: '1741018142_2877844_1340647773_44d41e94b8df82b520c80f4308ddfc23_rle_crop_3692496028_0.png', 1340648255: '1741018395_2880943_1340648012_08a789700a63af33d748c98cf82d2d0f_rle_crop_3692498148_0.png', 1340648254: '1741018395_2880943_1340648012_08a789700a63af33d748c98cf82d2d0f_rle_crop_3692498152_0.png', 1340648253: '1741018395_2880943_1340648017_091b7a0abcd79d53a974664169739dac_rle_crop_3692498138_0.png', 1340648252: '1741018395_2880943_1340648025_7b4d101e40128d569178fe04e94c20fb_rle_crop_3692497409_0.png', 1340648251: '1741018395_2880943_1340648085_42e2da072d397d7eacd7a3c275b8893a_rle_crop_3692497388_0.png', 1340648244: '1741018416_2881055_1340648070_15b9a415e18a39a67381b4d87370f341_rle_crop_3692498116_0.png', 1340648243: '1741018416_2881055_1340648070_15b9a415e18a39a67381b4d87370f341_rle_crop_3692498124_0.png', 1340648242: '1741018416_2881055_1340648070_15b9a415e18a39a67381b4d87370f341_rle_crop_3692498123_0.png', 1340648131: '1741018271_2879557_1340647877_003c1625bc21b6df1b15fbee03ef9ccf_rle_crop_3692496761_0.png', 1340648130: '1741018271_2879557_1340647888_1202905d43d0ec577c87efbcdaaabf87_rle_crop_3692496742_0.png', 1340648129: '1741018271_2879557_1340647896_23562f3c9ca3f51150d56afc4e8514e1_rle_crop_3692496730_0.png', 1340648128: '1741018271_2879557_1340647904_9c73438d3cfacff5e933b264f79301cc_rle_crop_3692496714_0.png', 1340647986: '1741018142_2877844_1340647762_ed89f415585631e4c228a1d99598f379_rle_crop_3692496079_0.png', 1340647985: '1741018142_2877844_1340647766_e3d9aa7a5938118b991c73672557fc10_rle_crop_3692496063_0.png', 1340647984: '1741018142_2877844_1340647771_1a1946f5ac88273f3f37d7a1242c4f52_rle_crop_3692496047_0.png', 1340647746: '1741017913_2873873_1340647351_366f53e2edbea8cfca6ef03469585f9a_rle_crop_3692494211_0.png', 1340647982: '1741018142_2877844_1340647777_191e980583f9ac9313b5f12631e6c972_rle_crop_3692495993_0.png', 1340647981: '1741018142_2877844_1340647815_52dbd2534137efdde58624a02de2ba4b_rle_crop_3692495967_0.png', 1340647969: '1741018152_2878030_1340647805_79b7ec8a23392972b7c765e1ea16c147_rle_crop_3692496006_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/264f2b230893aab09e51b8aa5e853ae5_13885430.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7ff8c406bf021b17fed9d7925fd6de4c_32229710.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/1ae813e26ae05aeada830da1758bb49f_78931183.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/56d57b4f3998ad72af945e498626be36_97695202.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0b5e6623f21a71c3929927fa1d89fd38_7063104.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8015308fdf8b4776699e9415300c8bb9_14985822.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c8984f2cacc31176452ffe22177de8f1_77950944.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7b92ec06144b7bbdc32a2982b5a3e563_10236331.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/337e00462f4848060c6d8540a5399475_63148015.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/fcac6471defa28cda01d85dd02c06a03_46462076.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8f25106391d2ca2a96f816ab9e5fa720_78684707.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/35ac28c1884c9cf7ca9b49318c00f9b7_59969168.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8262f996b314a17bb0ba7c64b8dc7ea9_43609931.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/eadcee8121004857966c8fedc7631c96_87570262.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/309154b571814d447bacd7a312c76712_11021113.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/829fb8e148e13d21c0aa51099fb95d55_46807894.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/84a7b455b6ece3c31f55f7d2ef6666e7_98256668.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4cfc7a09dbc59c05c53b8f92f915c75c_41229155.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4fb81982b3fe57ba7b681cc616eb8678_39475037.png change filename to text .imagette209844231741018624/ imagette209844231741018624/1741018142_2877844_1340647773_44d41e94b8df82b520c80f4308ddfc23_rle_crop_3692496028_0.png.png imagette209844231741018624/1741018395_2880943_1340648025_7b4d101e40128d569178fe04e94c20fb_rle_crop_3692497409_0.png.png imagette209844231741018624/1741018271_2879557_1340647904_9c73438d3cfacff5e933b264f79301cc_rle_crop_3692496714_0.png.png imagette209844231741018624/1741018142_2877844_1340647815_52dbd2534137efdde58624a02de2ba4b_rle_crop_3692495967_0.png.png imagette209844231741018624/1741018271_2879557_1340647877_003c1625bc21b6df1b15fbee03ef9ccf_rle_crop_3692496761_0.png.png imagette209844231741018624/1741018416_2881055_1340648070_15b9a415e18a39a67381b4d87370f341_rle_crop_3692498124_0.png.png imagette209844231741018624/1741017913_2873873_1340647351_366f53e2edbea8cfca6ef03469585f9a_rle_crop_3692494211_0.png.png imagette209844231741018624/1741018395_2880943_1340648012_08a789700a63af33d748c98cf82d2d0f_rle_crop_3692498148_0.png.png imagette209844231741018624/1741018395_2880943_1340648012_08a789700a63af33d748c98cf82d2d0f_rle_crop_3692498152_0.png.png imagette209844231741018624/1741018142_2877844_1340647777_191e980583f9ac9313b5f12631e6c972_rle_crop_3692495993_0.png.png imagette209844231741018624/1741018395_2880943_1340648017_091b7a0abcd79d53a974664169739dac_rle_crop_3692498138_0.png.png imagette209844231741018624/1741018152_2878030_1340647805_79b7ec8a23392972b7c765e1ea16c147_rle_crop_3692496006_0.png.png imagette209844231741018624/1741018395_2880943_1340648085_42e2da072d397d7eacd7a3c275b8893a_rle_crop_3692497388_0.png.png imagette209844231741018624/1741018416_2881055_1340648070_15b9a415e18a39a67381b4d87370f341_rle_crop_3692498123_0.png.png imagette209844231741018624/1741018271_2879557_1340647888_1202905d43d0ec577c87efbcdaaabf87_rle_crop_3692496742_0.png.png imagette209844231741018624/1741018271_2879557_1340647896_23562f3c9ca3f51150d56afc4e8514e1_rle_crop_3692496730_0.png.png imagette209844231741018624/1741018142_2877844_1340647771_1a1946f5ac88273f3f37d7a1242c4f52_rle_crop_3692496047_0.png.png imagette209844231741018624/1741018142_2877844_1340647762_ed89f415585631e4c228a1d99598f379_rle_crop_3692496079_0.png.png imagette209844231741018624/1741018416_2881055_1340648070_15b9a415e18a39a67381b4d87370f341_rle_crop_3692498116_0.png.png imagette209844231741018624/1741018142_2877844_1340647766_e3d9aa7a5938118b991c73672557fc10_rle_crop_3692496063_0.png.png imagette209844241741018625/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/68e2e29fcc27708c471132cc5eccf7f2_86529180.png imagette209844231741018624 20984424 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=20984424 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209844241741018625 20984414 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=20984414 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340647748: '1741017913_2873873_1340647351_366f53e2edbea8cfca6ef03469585f9a_rle_crop_3692494210_0.png', 1340647880: '1741018052_2876829_1340647620_8f80f3b3a4a4c9c656e47892dc715a7a_rle_crop_3692495395_0.png', 1340647881: '1741018052_2876829_1340647615_8da51aa29bcbccb368cfb80cc22bdd37_rle_crop_3692495417_0.png', 1340647882: '1741018052_2876829_1340647612_d019a3431ded062685baca73ea8fe7a9_rle_crop_3692495439_0.png', 1340647988: '1741018142_2877844_1340647777_191e980583f9ac9313b5f12631e6c972_rle_crop_3692495981_0.png', 1340647989: '1741018142_2877844_1340647773_44d41e94b8df82b520c80f4308ddfc23_rle_crop_3692496015_0.png', 1340647990: '1741018142_2877844_1340647771_1a1946f5ac88273f3f37d7a1242c4f52_rle_crop_3692496036_0.png', 1340647991: '1741018142_2877844_1340647771_1a1946f5ac88273f3f37d7a1242c4f52_rle_crop_3692496048_0.png', 1340647992: '1741018142_2877844_1340647766_e3d9aa7a5938118b991c73672557fc10_rle_crop_3692496052_0.png', 1340647993: '1741018142_2877844_1340647766_e3d9aa7a5938118b991c73672557fc10_rle_crop_3692496053_0.png', 1340647994: '1741018142_2877844_1340647766_e3d9aa7a5938118b991c73672557fc10_rle_crop_3692496054_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/85dffff899f4ede008b2dcc4ed8b9812_34218019.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/86ab1bd3176b1858332dea4eee53221f_92806139.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/619bfd8aaafe4e24edb640eea2412b20_69039919.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/1ac38d70a2bf8824714f0b0dcc217759_71651705.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c61efa74240c8ed717c89190d65e9862_82282497.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/5183cb0db70f8a8a8b42226fc476b2ea_95785468.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0ffdd6f0541a2fcfe0ed555381e5fa35_42552193.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/141ab36b52f51645807bbd84bd1fef74_26167898.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b9e8f87397f5c3c16857cb575b605b79_735875.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/021b8549a977b6783e4d3b451690cf30_20205610.png change filename to text .imagette209844141741018625/ imagette209844141741018625/1741018142_2877844_1340647777_191e980583f9ac9313b5f12631e6c972_rle_crop_3692495981_0.png.png imagette209844141741018625/1741018142_2877844_1340647771_1a1946f5ac88273f3f37d7a1242c4f52_rle_crop_3692496036_0.png.png imagette209844141741018625/1741017913_2873873_1340647351_366f53e2edbea8cfca6ef03469585f9a_rle_crop_3692494210_0.png.png imagette209844141741018625/1741018142_2877844_1340647773_44d41e94b8df82b520c80f4308ddfc23_rle_crop_3692496015_0.png.png imagette209844141741018625/1741018052_2876829_1340647612_d019a3431ded062685baca73ea8fe7a9_rle_crop_3692495439_0.png.png imagette209844141741018625/1741018142_2877844_1340647766_e3d9aa7a5938118b991c73672557fc10_rle_crop_3692496052_0.png.png imagette209844141741018625/1741018052_2876829_1340647620_8f80f3b3a4a4c9c656e47892dc715a7a_rle_crop_3692495395_0.png.png imagette209844141741018625/1741018052_2876829_1340647615_8da51aa29bcbccb368cfb80cc22bdd37_rle_crop_3692495417_0.png.png imagette209844141741018625/1741018142_2877844_1340647766_e3d9aa7a5938118b991c73672557fc10_rle_crop_3692496053_0.png.png imagette209844141741018625/1741018142_2877844_1340647766_e3d9aa7a5938118b991c73672557fc10_rle_crop_3692496054_0.png.png imagette209844141741018625/1741018142_2877844_1340647771_1a1946f5ac88273f3f37d7a1242c4f52_rle_crop_3692496048_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/76a4bddff0bf0d93b566ed03384df169_18435970.png imagette209844141741018625 20984418 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=20984418 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340647975: '1741018142_2877844_1340647777_191e980583f9ac9313b5f12631e6c972_rle_crop_3692495987_0.png', 1340647976: '1741018142_2877844_1340647777_191e980583f9ac9313b5f12631e6c972_rle_crop_3692495990_0.png', 1340647977: '1741018142_2877844_1340647773_44d41e94b8df82b520c80f4308ddfc23_rle_crop_3692496026_0.png', 1340647978: '1741018142_2877844_1340647773_44d41e94b8df82b520c80f4308ddfc23_rle_crop_3692496024_0.png', 1340647979: '1741018142_2877844_1340647771_1a1946f5ac88273f3f37d7a1242c4f52_rle_crop_3692496040_0.png', 1340647980: '1741018142_2877844_1340647766_e3d9aa7a5938118b991c73672557fc10_rle_crop_3692496058_0.png', 1340648126: '1741018271_2879557_1340647896_23562f3c9ca3f51150d56afc4e8514e1_rle_crop_3692496724_0.png', 1340648248: '1741018395_2880943_1340648012_08a789700a63af33d748c98cf82d2d0f_rle_crop_3692498150_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/71b43c1b0c7a8ae6818c753deb527652_34406621.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8a09317988fdfd4ccb63496195c04cee_94888282.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b35ae615af817c80fc2d1ad92932ffd3_98475621.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/1f3e5b28cffe17342a701d251254eda0_30339786.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c29c3b03d15008d172ad2741567ef9e6_22109084.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7bbd630458f80055aac47e1101821fa6_32516769.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0a6cfdb27caa48d4c3ee7efcdbb07a60_30612844.png change filename to text .imagette209844181741018625/ imagette209844181741018625/1741018142_2877844_1340647777_191e980583f9ac9313b5f12631e6c972_rle_crop_3692495987_0.png.png imagette209844181741018625/1741018271_2879557_1340647896_23562f3c9ca3f51150d56afc4e8514e1_rle_crop_3692496724_0.png.png imagette209844181741018625/1741018142_2877844_1340647777_191e980583f9ac9313b5f12631e6c972_rle_crop_3692495990_0.png.png imagette209844181741018625/1741018142_2877844_1340647766_e3d9aa7a5938118b991c73672557fc10_rle_crop_3692496058_0.png.png imagette209844181741018625/1741018142_2877844_1340647773_44d41e94b8df82b520c80f4308ddfc23_rle_crop_3692496026_0.png.png imagette209844181741018625/1741018142_2877844_1340647773_44d41e94b8df82b520c80f4308ddfc23_rle_crop_3692496024_0.png.png imagette209844181741018625/1741018395_2880943_1340648012_08a789700a63af33d748c98cf82d2d0f_rle_crop_3692498150_0.png.png imagette209844181741018625/1741018142_2877844_1340647771_1a1946f5ac88273f3f37d7a1242c4f52_rle_crop_3692496040_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2af60138b8c85bb9afa1ca68e52a7b6d_80246507.png imagette209844181741018625 20984425 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=20984425 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340647853: '1741018033_2876659_1340647712_50e351bc02c5b461972fdab17634eba1_rle_crop_3692495285_0.png', 1340647854: '1741018033_2876659_1340647707_e60d6f473a0dd7db2fe5e4152f5e95d0_rle_crop_3692495307_0.png', 1340647855: '1741018033_2876659_1340647707_e60d6f473a0dd7db2fe5e4152f5e95d0_rle_crop_3692495308_0.png', 1340647856: '1741018033_2876659_1340647691_d7ac21124b2ca25336cfb4178376ceed_rle_crop_3692495369_0.png', 1340648138: '1741018271_2879557_1340647888_1202905d43d0ec577c87efbcdaaabf87_rle_crop_3692496735_0.png', 1340648139: '1741018271_2879557_1340647877_003c1625bc21b6df1b15fbee03ef9ccf_rle_crop_3692496759_0.png', 1340648246: '1741018416_2881055_1340648070_15b9a415e18a39a67381b4d87370f341_rle_crop_3692498118_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/fb9f512f8b62ddd937ccfef05cfd381a_4681256.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/21cd0bf66f7a4973a2f496aa2cc70b1b_74806522.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/78d39021d14549b55cc45c83fe2646a0_30705822.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2ed0f9e2a870dc42b6de2685ede1f135_28213587.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f3cf5652f4d707eca2f232e0024caf51_60663035.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/a53109b89c09ca1e8bcb0cce99880cba_77291736.png change filename to text .imagette209844251741018626/ imagette209844251741018626/1741018033_2876659_1340647712_50e351bc02c5b461972fdab17634eba1_rle_crop_3692495285_0.png.png imagette209844251741018626/1741018271_2879557_1340647888_1202905d43d0ec577c87efbcdaaabf87_rle_crop_3692496735_0.png.png imagette209844251741018626/1741018416_2881055_1340648070_15b9a415e18a39a67381b4d87370f341_rle_crop_3692498118_0.png.png imagette209844251741018626/1741018033_2876659_1340647707_e60d6f473a0dd7db2fe5e4152f5e95d0_rle_crop_3692495307_0.png.png imagette209844251741018626/1741018271_2879557_1340647877_003c1625bc21b6df1b15fbee03ef9ccf_rle_crop_3692496759_0.png.png imagette209844251741018626/1741018033_2876659_1340647707_e60d6f473a0dd7db2fe5e4152f5e95d0_rle_crop_3692495308_0.png.png imagette209844251741018626/1741018033_2876659_1340647691_d7ac21124b2ca25336cfb4178376ceed_rle_crop_3692495369_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4eec29eaa8c80abd0f42a4918e719d5d_20997115.png imagette209844251741018626 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20984411 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20984426,20984427,20984428,20984429,20984430,20984431,20984432,20984433,20984434,20984435,20984436,20984437?tags=Carton_gris,kraft,metal,papier,Teint_Dans_La_Masse,mal_croppe,plastique,environnement,cartonnette,autre_refus,flou,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1340648301] : ('0.08586678763354452',) no score found for photo 1340648301 We are sending mail with results at report@fotonower.com args[1340648295] : ('0.08586678763354452',) no score found for photo 1340648295 We are sending mail with results at report@fotonower.com refus_total : 0.08586678763354452 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=20984411 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_P20984411_03-03-2025_17_17_01.pdf results_Auto_P20984411_03-03-2025_17_17_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20984411_03-03-2025_17_17_01.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','20984411','results_Auto_P20984411_03-03-2025_17_17_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20984411_03-03-2025_17_17_01.pdf','pdf','','0.27','0.08586678763354452') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20984411]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340648301, 1340648295] map_info['map_portfolio_photo'] : {20984411: [1340648301, 1340648295, 1340648085, 1340648082, 1340648070, 1340648030, 1340648025, 1340648017, 1340648012, 1340648006, 1340647958, 1340647952, 1340647949, 1340647945, 1340647940, 1340647909, 1340647904, 1340647896, 1340647888, 1340647877, 1340647815, 1340647813, 1340647810, 1340647805, 1340647781, 1340647777, 1340647773, 1340647771, 1340647766, 1340647762, 1340647722, 1340647717, 1340647712, 1340647707, 1340647703, 1340647691, 1340647623, 1340647620, 1340647615, 1340647612, 1340647566, 1340647544, 1340647534, 1340647531, 1340647525, 1340647520, 1340647351]} final : False mtd_id 4302 list_pids : [1340648301, 1340648295] 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, '2629962') ('4302', '20984411', '1340648301', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648295', None, None, None, None, None, '2629962') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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', '20984411', '1340648301', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648295', None, None, None, None, None, '2629962')] time used for this insertion : 0.011792898178100586 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.2351086139678955 time spend to save output : 0.012017965316772461 total time spend for step 4 : 7.247126579284668 step5:split_time_score Mon Mar 3 17:17:07 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 : ['20984411'] 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 : [('20984411',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20984411) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340648301: {'path': 'temp/1741018620_3359123_1340648301_8f5367075f4758dfca60cf74864bd095.jpg', 'extension': 'jpg'}, 1340648295: {'path': 'temp/1741018620_3359123_1340648295_cb6385f5dd48972ea811f8cf148c2dcb.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 = 20984411; (('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 = 20984411 group by h (('17', 47),) 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=20984411 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 (20984411) 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 (20984411) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03032025 20984411 Nombre de photos uploadées : 47 / 23040 (0%) 03032025 20984411 Nombre de photos taguées (types de déchets): 0 / 47 (0%) 03032025 20984411 Nombre de photos taguées (volume) : 0 / 47 (0%) [{'photo_id': 1340647351, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/366f53e2edbea8cfca6ef03469585f9a.jpg', 'username': None, 'uploaded_at': 1741017679, 'text': 'image_03032025_17_00_14_010187m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1340647566, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c1a191d35ac6d052e862c16fb2c98bc5.jpg', 'username': None, 'uploaded_at': 1741017799, 'text': 'image_03032025_17_00_24_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340647544, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f84f12207f0dc681d28694925dedaae3.jpg', 'username': None, 'uploaded_at': 1741017799, 'text': 'image_03032025_17_02_05_10143.jpg'}, {'photo_id': 1340647534, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/a7b423da05d53c7fccbb69b23c26929a.jpg', 'username': None, 'uploaded_at': 1741017799, 'text': 'image_03032025_17_02_15_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 1.1205673217773438e-05 ??????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0021877288818359375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20984411, '2025-03-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1634063,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022791385650634766 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= 1634063 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1634063, 'dashboard_run_id': 1643002, 'mtr_portfolio_id': 20983052, 'dashboard_result_id': 9175213, '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_P20983052_03-03-2025_16_48_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20983103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20983104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20983105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20983106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20983107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20983108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20983109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20983110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20983111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20983112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20983113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20983114, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1643002, 'mtr_portfolio_id': 20983803, 'dashboard_result_id': 9175214, '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_P20983803_03-03-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20983806, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20983807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20983808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20983809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20983810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20983811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20983812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20983813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20983814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20983815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20983816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20983817, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1643002, 'mtr_portfolio_id': 20984411, 'dashboard_result_id': 9175215, '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_P20984411_03-03-2025_17_12_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20984414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20984415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20984416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20984417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20984418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20984419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20984420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20984421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20984422, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20984423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20984424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20984425, '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 = 20983052 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': 2629864, 'mtr_portfolio_id': 20983052, 'created_at': datetime.datetime(2025, 3, 3, 16, 48, 28), 'result': '0.08338843090317972', 'result_long': None, 'result_double': None}] Qualite : 0.08338843090317972 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20983052 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20983052_03-03-2025_16_48_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20983052 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_P20983052_03-03-2025_16_48_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20983103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20983104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20983105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20983106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20983107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20983108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20983109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20983110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20983111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20983112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20983113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20983114, 'pht': 3726}}" where mtr_portfolio_id = 20983052 and dashboard_run_id = 1643002 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`=20983052 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9175213, 0.08338843090317972, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20983052_03-03-2025_16_48_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20983103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20983104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20983105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20983106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20983107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20983108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20983109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20983110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20983111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20983112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20983113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20983114, '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 = 20983803 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': 2629902, 'mtr_portfolio_id': 20983803, 'created_at': datetime.datetime(2025, 3, 3, 17, 3), 'result': '0.07000998584327799', 'result_long': None, 'result_double': None}] Qualite : 0.07000998584327799 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20983803 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20983803_03-03-2025_17_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20983803 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_P20983803_03-03-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20983806, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20983807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20983808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20983809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20983810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20983811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20983812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20983813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20983814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20983815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20983816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20983817, 'pht': 3726}}" where mtr_portfolio_id = 20983803 and dashboard_run_id = 1643002 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`=20983803 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9175214, 0.07000998584327799, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20983803_03-03-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20983806, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20983807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20983808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20983809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20983810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20983811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20983812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20983813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20983814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20983815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20983816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20983817, '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 = 20984411 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': 2629962, 'mtr_portfolio_id': 20984411, 'created_at': datetime.datetime(2025, 3, 3, 17, 16, 59), 'result': '0.08586678763354452', 'result_long': None, 'result_double': None}] Qualite : 0.08586678763354452 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20984411 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20984411_03-03-2025_17_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20984411 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_P20984411_03-03-2025_17_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20984414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20984415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20984416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20984417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20984418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20984419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20984420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20984421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20984422, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20984423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20984424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20984425, 'pht': 3726}}" where mtr_portfolio_id = 20984411 and dashboard_run_id = 1643002 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`=20984411 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9175215, 0.08586678763354452, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20984411_03-03-2025_17_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20984414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20984415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20984416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20984417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20984418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20984419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20984420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20984421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20984422, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20984423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20984424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20984425, '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 (20983052,20983803,20984411) result : ((1340644487,), (1340644491,), (1340644514,), (1340644587,), (1340644752,), (1340644753,), (1340644755,), (1340644757,), (1340644763,), (1340644769,), (1340644804,), (1340644806,), (1340644808,), (1340644819,), (1340644891,), (1340644893,), (1340644897,), (1340644905,), (1340644917,), (1340644924,), (1340644967,), (1340644973,), (1340644986,), (1340644991,), (1340645026,), (1340645029,), (1340645031,), (1340645033,), (1340645050,), (1340645059,), (1340645290,), (1340645293,), (1340645305,), (1340645497,), (1340645500,), (1340645511,), (1340645520,), (1340645558,), (1340645560,), (1340645563,), (1340645567,), (1340645571,), (1340645607,), (1340645617,), (1340645629,), (1340645640,), (1340645676,), (1340645678,), (1340645682,), (1340645685,), (1340645690,), (1340645695,), (1340645933,), (1340645962,), (1340645976,), (1340645986,), (1340646108,), (1340646112,), (1340646114,), (1340646118,), (1340646125,), (1340646130,), (1340646165,), (1340646175,), (1340646179,), (1340646181,), (1340646188,), (1340646192,), (1340646213,), (1340646217,), (1340646222,), (1340646225,), (1340646232,), (1340646393,), (1340646379,), (1340646384,), (1340646443,), (1340646447,), (1340646450,), (1340646459,), (1340646473,), (1340646523,), (1340646526,), (1340646528,), (1340646530,), (1340646541,), (1340646586,), (1340646590,), (1340646595,), (1340646598,), (1340646610,), (1340646623,), (1340646681,), (1340646685,), (1340646689,), (1340646721,), (1340646725,), (1340646772,), (1340646820,), (1340646824,), (1340646875,), (1340646880,), (1340646884,), (1340646887,), (1340646892,), (1340646932,), (1340646939,), (1340646943,), (1340646958,), (1340646986,), (1340646991,), (1340646998,), (1340647001,), (1340647006,), (1340647010,), (1340647030,), (1340647035,), (1340647038,), (1340647043,), (1340647053,), (1340647083,), (1340647097,), (1340647099,), (1340647102,), (1340647107,), (1340647169,), (1340647175,), (1340647184,), (1340647191,), (1340647376,), (1340647351,), (1340647520,), (1340647525,), (1340647531,), (1340647534,), (1340647544,), (1340647566,), (1340647612,), (1340647615,), (1340647620,), (1340647623,), (1340647691,), (1340647703,), (1340647707,), (1340647712,), (1340647717,), (1340647722,), (1340647762,), (1340647766,), (1340647771,), (1340647773,), (1340647777,), (1340647781,), (1340647805,), (1340647810,), (1340647813,), (1340647815,), (1340647877,), (1340647888,), (1340647896,), (1340647904,), (1340647909,), (1340647940,), (1340647945,), (1340647949,), (1340647952,), (1340647958,), (1340648006,), (1340648012,), (1340648017,), (1340648025,), (1340648030,), (1340648070,), (1340648082,), (1340648085,), (1340648295,), (1340648301,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03032025': {'nb_upload': 47, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20984411]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340648301, 1340648295] map_info['map_portfolio_photo'] : {20984411: [1340648301, 1340648295, 1340648085, 1340648082, 1340648070, 1340648030, 1340648025, 1340648017, 1340648012, 1340648006, 1340647958, 1340647952, 1340647949, 1340647945, 1340647940, 1340647909, 1340647904, 1340647896, 1340647888, 1340647877, 1340647815, 1340647813, 1340647810, 1340647805, 1340647781, 1340647777, 1340647773, 1340647771, 1340647766, 1340647762, 1340647722, 1340647717, 1340647712, 1340647707, 1340647703, 1340647691, 1340647623, 1340647620, 1340647615, 1340647612, 1340647566, 1340647544, 1340647534, 1340647531, 1340647525, 1340647520, 1340647351]} final : True mtd_id 4302 list_pids : [1340648301, 1340648295] Looping around the photos to save general results len do output : 1 /20984411Didn'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, '2629962') ('4302', '20984411', '1340648301', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648295', None, None, None, None, None, '2629962') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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, '20984411', 'None', None, None, None, None, '2629962'), ('4302', '20984411', '1340648301', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648295', None, None, None, None, None, '2629962')] time used for this insertion : 0.011895418167114258 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.29176974296569824 time spend to save output : 0.012146472930908203 total time spend for step 5 : 0.30391621589660645 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 (2629962) 2.14user 2.36system 0:11.86elapsed 37%CPU (0avgtext+0avgdata 159252maxresident)k 6240inputs+13112outputs (65major+74240minor)pagefaults 0swaps