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 : 3340836 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/3340836/ Name: python3 Umask: 0002 State: R (running) Tgid: 3340836 Ngid: 0 Pid: 3340836 PPid: 3340835 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3340836 NSpid: 3340836 NSpgid: 3338893 NSsid: 3338893 VmPeak: 385952 kB VmSize: 385952 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100096 kB VmRSS: 100096 kB RssAnon: 59764 kB RssFile: 40332 kB RssShmem: 0 kB VmData: 144700 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 540 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: 49 nonvoluntary_ctxt_switches: 174 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3340836', 'Ngid': '0', 'Pid': '3340836', 'PPid': '3340835', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3340836', 'NSpid': '3340836', 'NSpgid': '3338893', 'NSsid': '3338893', 'VmPeak': '385952 kB', 'VmSize': '385952 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100096 kB', 'VmRSS': '100096 kB', 'RssAnon': '59764 kB', 'RssFile': '40332 kB', 'RssShmem': '0 kB', 'VmData': '144700 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '540 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': '49', 'nonvoluntary_ctxt_switches': '174'} ('datou_batch_current', '3340836', '385952', '0', '385952', '144700', '100096', 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': 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: [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.014962196350097656 #### 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:12:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (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', 'Teint_Dans_La_Masse', 'plastique', 'Carton_gris', 'environnement', 'metal', 'cartonnette', 'mal_croppe', 'flou', 'kraft', 'Carton_brun', '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','Teint_Dans_La_Masse','plastique','Carton_gris','environnement','metal','cartonnette','mal_croppe','flou','kraft','Carton_brun','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','Teint_Dans_La_Masse','plastique','Carton_gris','environnement','metal','cartonnette','mal_croppe','flou','kraft','Carton_brun','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, 11), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 11), '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, 11), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 11), '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, 11), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 11), '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, 11), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 11), '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, 11), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 11), '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, 11), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 11), '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, 11), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 11), '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, 11), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 11), '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, 11), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 11), '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, 11), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 11), '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, 11), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 11), '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, 11), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 11), '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,)) 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,)) 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,),) 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,)) 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,)) 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,)) 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,)) 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,)) 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,)) 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,)) 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,)) 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,)) 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,)) 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,)) 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,)) 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,)) 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,)) 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,)) 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','Teint_Dans_La_Masse','plastique','Carton_gris','environnement','metal','cartonnette','mal_croppe','flou','kraft','Carton_brun','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','Teint_Dans_La_Masse','plastique','Carton_gris','environnement','metal','cartonnette','mal_croppe','flou','kraft','Carton_brun','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, 11), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 17, 11), '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 [1340648085, 1340648082, 1340648070, 1340648030, 1340648025, 1340648017, 1340648012, 1340648006] map_info['map_portfolio_photo'] : {20984411: [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 : [1340648085, 1340648082, 1340648070, 1340648030, 1340648025, 1340648017, 1340648012, 1340648006] 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', '1340648085', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648082', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648070', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648030', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648025', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648017', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648012', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648006', None, None, None, None, None, '2629962') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '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', '1340648085', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648082', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648070', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648030', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648025', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648017', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648012', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648006', None, None, None, None, None, '2629962')] time used for this insertion : 0.013468742370605469 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9930295944213867 time spend to save output : 0.013826847076416016 total time spend for step 1 : 2.0068564414978027 step2:final Mon Mar 3 17:12:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (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); 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 : {1340648085: ('0.08615463697851039',), 1340648082: ('0.08615463697851039',), 1340648070: ('0.08615463697851039',), 1340648030: ('0.08615463697851039',), 1340648025: ('0.08615463697851039',), 1340648017: ('0.08615463697851039',), 1340648012: ('0.08615463697851039',), 1340648006: ('0.08615463697851039',)} new output for save of step final : {1340648085: ('0.08615463697851039',), 1340648082: ('0.08615463697851039',), 1340648070: ('0.08615463697851039',), 1340648030: ('0.08615463697851039',), 1340648025: ('0.08615463697851039',), 1340648017: ('0.08615463697851039',), 1340648012: ('0.08615463697851039',), 1340648006: ('0.08615463697851039',)} [1340648085, 1340648082, 1340648070, 1340648030, 1340648025, 1340648017, 1340648012, 1340648006] map_info['map_portfolio_photo'] : {20984411: [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 : [1340648085, 1340648082, 1340648070, 1340648030, 1340648025, 1340648017, 1340648012, 1340648006] Looping around the photos to save general results len do output : 8 /1340648085.Didn't retrieve data . /1340648082.Didn't retrieve data . /1340648070.Didn't retrieve data . /1340648030.Didn't retrieve data . /1340648025.Didn't retrieve data . /1340648017.Didn't retrieve data . /1340648012.Didn't retrieve data . /1340648006.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', '1340648085', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648082', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648070', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648030', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648025', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648017', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648012', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648006', None, None, None, None, None, '2629962') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20984411', '1340648085', '0.08615463697851039', None, None, None, None, '2629962'), ('4302', '20984411', '1340648082', '0.08615463697851039', None, None, None, None, '2629962'), ('4302', '20984411', '1340648070', '0.08615463697851039', None, None, None, None, '2629962'), ('4302', '20984411', '1340648030', '0.08615463697851039', None, None, None, None, '2629962'), ('4302', '20984411', '1340648025', '0.08615463697851039', None, None, None, None, '2629962'), ('4302', '20984411', '1340648017', '0.08615463697851039', None, None, None, None, '2629962'), ('4302', '20984411', '1340648012', '0.08615463697851039', None, None, None, None, '2629962'), ('4302', '20984411', '1340648006', '0.08615463697851039', None, None, None, None, '2629962')] time used for this insertion : 0.012693405151367188 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06488919258117676 time spend to save output : 0.013109683990478516 total time spend for step 2 : 0.07799887657165527 step3:velours_tree Mon Mar 3 17:12:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {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.3369903564453125 time spend to save output : 6.937980651855469e-05 total time spend for step 3 : 0.33705973625183105 step4:send_mail_cod Mon Mar 3 17:12:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1340648085: ('0.08615463697851039',), 1340648082: ('0.08615463697851039',), 1340648070: ('0.08615463697851039',), 1340648030: ('0.08615463697851039',), 1340648025: ('0.08615463697851039',), 1340648017: ('0.08615463697851039',), 1340648012: ('0.08615463697851039',), 1340648006: ('0.08615463697851039',)} input_args_next_step : {1340648085: ()} output_args : {1340648085: ('0.08615463697851039',), 1340648082: ('0.08615463697851039',), 1340648070: ('0.08615463697851039',), 1340648030: ('0.08615463697851039',), 1340648025: ('0.08615463697851039',), 1340648017: ('0.08615463697851039',), 1340648012: ('0.08615463697851039',), 1340648006: ('0.08615463697851039',)} args : 1340648085 depend.output_id : 0 input_args_next_step : {1340648085: ('0.08615463697851039',), 1340648082: ()} output_args : {1340648085: ('0.08615463697851039',), 1340648082: ('0.08615463697851039',), 1340648070: ('0.08615463697851039',), 1340648030: ('0.08615463697851039',), 1340648025: ('0.08615463697851039',), 1340648017: ('0.08615463697851039',), 1340648012: ('0.08615463697851039',), 1340648006: ('0.08615463697851039',)} args : 1340648082 depend.output_id : 0 input_args_next_step : {1340648085: ('0.08615463697851039',), 1340648082: ('0.08615463697851039',), 1340648070: ()} output_args : {1340648085: ('0.08615463697851039',), 1340648082: ('0.08615463697851039',), 1340648070: ('0.08615463697851039',), 1340648030: ('0.08615463697851039',), 1340648025: ('0.08615463697851039',), 1340648017: ('0.08615463697851039',), 1340648012: ('0.08615463697851039',), 1340648006: ('0.08615463697851039',)} args : 1340648070 depend.output_id : 0 input_args_next_step : {1340648085: ('0.08615463697851039',), 1340648082: ('0.08615463697851039',), 1340648070: ('0.08615463697851039',), 1340648030: ()} output_args : {1340648085: ('0.08615463697851039',), 1340648082: ('0.08615463697851039',), 1340648070: ('0.08615463697851039',), 1340648030: ('0.08615463697851039',), 1340648025: ('0.08615463697851039',), 1340648017: ('0.08615463697851039',), 1340648012: ('0.08615463697851039',), 1340648006: ('0.08615463697851039',)} args : 1340648030 depend.output_id : 0 input_args_next_step : {1340648085: ('0.08615463697851039',), 1340648082: ('0.08615463697851039',), 1340648070: ('0.08615463697851039',), 1340648030: ('0.08615463697851039',), 1340648025: ()} output_args : {1340648085: ('0.08615463697851039',), 1340648082: ('0.08615463697851039',), 1340648070: ('0.08615463697851039',), 1340648030: ('0.08615463697851039',), 1340648025: ('0.08615463697851039',), 1340648017: ('0.08615463697851039',), 1340648012: ('0.08615463697851039',), 1340648006: ('0.08615463697851039',)} args : 1340648025 depend.output_id : 0 input_args_next_step : {1340648085: ('0.08615463697851039',), 1340648082: ('0.08615463697851039',), 1340648070: ('0.08615463697851039',), 1340648030: ('0.08615463697851039',), 1340648025: ('0.08615463697851039',), 1340648017: ()} output_args : {1340648085: ('0.08615463697851039',), 1340648082: ('0.08615463697851039',), 1340648070: ('0.08615463697851039',), 1340648030: ('0.08615463697851039',), 1340648025: ('0.08615463697851039',), 1340648017: ('0.08615463697851039',), 1340648012: ('0.08615463697851039',), 1340648006: ('0.08615463697851039',)} args : 1340648017 depend.output_id : 0 input_args_next_step : {1340648085: ('0.08615463697851039',), 1340648082: ('0.08615463697851039',), 1340648070: ('0.08615463697851039',), 1340648030: ('0.08615463697851039',), 1340648025: ('0.08615463697851039',), 1340648017: ('0.08615463697851039',), 1340648012: ()} output_args : {1340648085: ('0.08615463697851039',), 1340648082: ('0.08615463697851039',), 1340648070: ('0.08615463697851039',), 1340648030: ('0.08615463697851039',), 1340648025: ('0.08615463697851039',), 1340648017: ('0.08615463697851039',), 1340648012: ('0.08615463697851039',), 1340648006: ('0.08615463697851039',)} args : 1340648012 depend.output_id : 0 input_args_next_step : {1340648085: ('0.08615463697851039',), 1340648082: ('0.08615463697851039',), 1340648070: ('0.08615463697851039',), 1340648030: ('0.08615463697851039',), 1340648025: ('0.08615463697851039',), 1340648017: ('0.08615463697851039',), 1340648012: ('0.08615463697851039',), 1340648006: ()} output_args : {1340648085: ('0.08615463697851039',), 1340648082: ('0.08615463697851039',), 1340648070: ('0.08615463697851039',), 1340648030: ('0.08615463697851039',), 1340648025: ('0.08615463697851039',), 1340648017: ('0.08615463697851039',), 1340648012: ('0.08615463697851039',), 1340648006: ('0.08615463697851039',)} args : 1340648006 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 : {1340648085: ('0.08615463697851039',), 1340648082: ('0.08615463697851039',), 1340648070: ('0.08615463697851039',), 1340648030: ('0.08615463697851039',), 1340648025: ('0.08615463697851039',), 1340648017: ('0.08615463697851039',), 1340648012: ('0.08615463697851039',), 1340648006: ('0.08615463697851039',), 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 :9, first value : ('0.08615463697851039',) 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 (1340648085,1340648082,1340648070,1340648030,1340648025,1340648017,1340648012,1340648006) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340648006 begin to download photo : 1340648017 begin to download photo : 1340648030 begin to download photo : 1340648082 download finish for photo 1340648006 begin to download photo : 1340648012 download finish for photo 1340648030 begin to download photo : 1340648070 download finish for photo 1340648017 begin to download photo : 1340648025 download finish for photo 1340648082 begin to download photo : 1340648085 download finish for photo 1340648012 download finish for photo 1340648085 download finish for photo 1340648025 download finish for photo 1340648070 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P20984411_03-03-2025_17_12_31.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 .imagette209844151741018351/ imagette209844151741018351/1741018052_2876829_1340647620_8f80f3b3a4a4c9c656e47892dc715a7a_rle_crop_3692495393_0.png.png imagette209844151741018351/1741018142_2877844_1340647777_191e980583f9ac9313b5f12631e6c972_rle_crop_3692495984_0.png.png imagette209844151741018351/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 imagette209844151741018351 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'} change filename to text .imagette209844161741018351/ imagette209844161741018351/1741018052_2876829_1340647615_8da51aa29bcbccb368cfb80cc22bdd37_rle_crop_3692495432_0.png.png imagette209844191741018351/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b4052dfdb0f019e63ae38267d320b185_35255123.png imagette209844161741018351 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 : {} imagette209844191741018351 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'} 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 .imagette209844201741018351/ imagette209844201741018351/1741018142_2877844_1340647762_ed89f415585631e4c228a1d99598f379_rle_crop_3692496080_0.png.png imagette209844201741018351/1741018271_2879557_1340647896_23562f3c9ca3f51150d56afc4e8514e1_rle_crop_3692496722_0.png.png imagette209844201741018351/1741018052_2876829_1340647612_d019a3431ded062685baca73ea8fe7a9_rle_crop_3692495442_0.png.png imagette209844201741018351/1741018152_2878030_1340647805_79b7ec8a23392972b7c765e1ea16c147_rle_crop_3692496009_0.png.png imagette209844201741018351/1741018152_2878030_1340647810_1d26895b28e8277e7a1b4bd7464e31f7_rle_crop_3692495971_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d6dbb283a6c21464711df01903d3e087_47666082.png imagette209844201741018351 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'} 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 .imagette209844221741018352/ imagette209844221741018352/1741018142_2877844_1340647762_ed89f415585631e4c228a1d99598f379_rle_crop_3692496077_0.png.png imagette209844221741018352/1741018271_2879557_1340647888_1202905d43d0ec577c87efbcdaaabf87_rle_crop_3692496734_0.png.png imagette209844221741018352/1741018271_2879557_1340647896_23562f3c9ca3f51150d56afc4e8514e1_rle_crop_3692496727_0.png.png imagette209844221741018352/1741018033_2876659_1340647691_d7ac21124b2ca25336cfb4178376ceed_rle_crop_3692495362_0.png.png imagette209844221741018352/1741018271_2879557_1340647904_9c73438d3cfacff5e933b264f79301cc_rle_crop_3692496706_0.png.png imagette209844221741018352/1741018271_2879557_1340647888_1202905d43d0ec577c87efbcdaaabf87_rle_crop_3692496736_0.png.png imagette209844221741018352/1741018033_2876659_1340647707_e60d6f473a0dd7db2fe5e4152f5e95d0_rle_crop_3692495306_0.png.png imagette209844221741018352/1741018152_2878030_1340647813_35b089e972c7218027e27f7ffaf0efc5_rle_crop_3692495963_0.png.png imagette209844221741018352/1741018271_2879557_1340647904_9c73438d3cfacff5e933b264f79301cc_rle_crop_3692496707_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2532d3a847bb3b1af09da060309288b7_91024670.png imagette209844221741018352 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 : {1340647968: '1741018152_2878030_1340647810_1d26895b28e8277e7a1b4bd7464e31f7_rle_crop_3692495972_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', 1340647983: '1741018142_2877844_1340647773_44d41e94b8df82b520c80f4308ddfc23_rle_crop_3692496028_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', 1340647746: '1741017913_2873873_1340647351_366f53e2edbea8cfca6ef03469585f9a_rle_crop_3692494211_0.png', 1340647876: '1741018052_2876829_1340647612_d019a3431ded062685baca73ea8fe7a9_rle_crop_3692495443_0.png', 1340647875: '1741018052_2876829_1340647615_8da51aa29bcbccb368cfb80cc22bdd37_rle_crop_3692495429_0.png', 1340647874: '1741018052_2876829_1340647620_8f80f3b3a4a4c9c656e47892dc715a7a_rle_crop_3692495396_0.png', 1340647873: '1741018052_2876829_1340647620_8f80f3b3a4a4c9c656e47892dc715a7a_rle_crop_3692495394_0.png', 1340647872: '1741018052_2876829_1340647620_8f80f3b3a4a4c9c656e47892dc715a7a_rle_crop_3692495385_0.png', 1340647847: '1741018033_2876659_1340647691_d7ac21124b2ca25336cfb4178376ceed_rle_crop_3692495372_0.png', 1340647846: '1741018033_2876659_1340647703_4afe0c1ac8b58373a39f8454f5ca6f0a_rle_crop_3692495332_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/481f8969accb1ecc8fe946d9ee642c62_41953768.png change filename to text .wget -O 2.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 3.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 4.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 5.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 6.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 7.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 8.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 9.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 10.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 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4fb81982b3fe57ba7b681cc616eb8678_39475037.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/68e2e29fcc27708c471132cc5eccf7f2_86529180.png change filename to text .wget -O 13.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 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9f27c1d7c3bfbd945c472e8abaac5a06_74165406.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9910b463334d14d5490d45795fe22a47_32451165.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7228a9cbbc1c9def60afa6463a67b623_99766518.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/419c925b3e26d95e3dfe11a1c0aa642a_3265982.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/3b27a71f14bd1f36e52fc773e3915d05_54755893.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7733c2bcf0fdd2bfc7eadd1db6821dc6_48883742.png change filename to text .imagette209844231741018352/ imagette209844231741018352/1741018142_2877844_1340647773_44d41e94b8df82b520c80f4308ddfc23_rle_crop_3692496028_0.png.png imagette209844231741018352/1741018271_2879557_1340647904_9c73438d3cfacff5e933b264f79301cc_rle_crop_3692496714_0.png.png imagette209844231741018352/1741018142_2877844_1340647815_52dbd2534137efdde58624a02de2ba4b_rle_crop_3692495967_0.png.png imagette209844231741018352/1741018271_2879557_1340647877_003c1625bc21b6df1b15fbee03ef9ccf_rle_crop_3692496761_0.png.png imagette209844231741018352/1741018152_2878030_1340647810_1d26895b28e8277e7a1b4bd7464e31f7_rle_crop_3692495972_0.png.png imagette209844231741018352/1741018052_2876829_1340647612_d019a3431ded062685baca73ea8fe7a9_rle_crop_3692495443_0.png.png imagette209844231741018352/1741018052_2876829_1340647615_8da51aa29bcbccb368cfb80cc22bdd37_rle_crop_3692495429_0.png.png imagette209844231741018352/1741018052_2876829_1340647620_8f80f3b3a4a4c9c656e47892dc715a7a_rle_crop_3692495385_0.png.png imagette209844231741018352/1741017913_2873873_1340647351_366f53e2edbea8cfca6ef03469585f9a_rle_crop_3692494211_0.png.png imagette209844231741018352/1741018033_2876659_1340647691_d7ac21124b2ca25336cfb4178376ceed_rle_crop_3692495372_0.png.png imagette209844231741018352/1741018142_2877844_1340647777_191e980583f9ac9313b5f12631e6c972_rle_crop_3692495993_0.png.png imagette209844231741018352/1741018052_2876829_1340647620_8f80f3b3a4a4c9c656e47892dc715a7a_rle_crop_3692495396_0.png.png imagette209844231741018352/1741018033_2876659_1340647703_4afe0c1ac8b58373a39f8454f5ca6f0a_rle_crop_3692495332_0.png.png imagette209844231741018352/1741018052_2876829_1340647620_8f80f3b3a4a4c9c656e47892dc715a7a_rle_crop_3692495394_0.png.png imagette209844231741018352/1741018152_2878030_1340647805_79b7ec8a23392972b7c765e1ea16c147_rle_crop_3692496006_0.png.png imagette209844231741018352/1741018271_2879557_1340647888_1202905d43d0ec577c87efbcdaaabf87_rle_crop_3692496742_0.png.png imagette209844231741018352/1741018271_2879557_1340647896_23562f3c9ca3f51150d56afc4e8514e1_rle_crop_3692496730_0.png.png imagette209844231741018352/1741018142_2877844_1340647771_1a1946f5ac88273f3f37d7a1242c4f52_rle_crop_3692496047_0.png.png imagette209844231741018352/1741018142_2877844_1340647762_ed89f415585631e4c228a1d99598f379_rle_crop_3692496079_0.png.png imagette209844231741018352/1741018142_2877844_1340647766_e3d9aa7a5938118b991c73672557fc10_rle_crop_3692496063_0.png.png imagette209844241741018353/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b6788931354c394f824638be7adf115f_50970791.png imagette209844231741018352 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 : {} imagette209844241741018353 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 .imagette209844141741018353/ imagette209844141741018353/1741018142_2877844_1340647777_191e980583f9ac9313b5f12631e6c972_rle_crop_3692495981_0.png.png imagette209844141741018353/1741018142_2877844_1340647771_1a1946f5ac88273f3f37d7a1242c4f52_rle_crop_3692496036_0.png.png imagette209844141741018353/1741017913_2873873_1340647351_366f53e2edbea8cfca6ef03469585f9a_rle_crop_3692494210_0.png.png imagette209844141741018353/1741018142_2877844_1340647773_44d41e94b8df82b520c80f4308ddfc23_rle_crop_3692496015_0.png.png imagette209844141741018353/1741018052_2876829_1340647612_d019a3431ded062685baca73ea8fe7a9_rle_crop_3692495439_0.png.png imagette209844141741018353/1741018142_2877844_1340647766_e3d9aa7a5938118b991c73672557fc10_rle_crop_3692496052_0.png.png imagette209844141741018353/1741018052_2876829_1340647620_8f80f3b3a4a4c9c656e47892dc715a7a_rle_crop_3692495395_0.png.png imagette209844141741018353/1741018052_2876829_1340647615_8da51aa29bcbccb368cfb80cc22bdd37_rle_crop_3692495417_0.png.png imagette209844141741018353/1741018142_2877844_1340647766_e3d9aa7a5938118b991c73672557fc10_rle_crop_3692496053_0.png.png imagette209844141741018353/1741018142_2877844_1340647766_e3d9aa7a5938118b991c73672557fc10_rle_crop_3692496054_0.png.png imagette209844141741018353/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 imagette209844141741018353 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'} 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 .imagette209844181741018354/ imagette209844181741018354/1741018142_2877844_1340647777_191e980583f9ac9313b5f12631e6c972_rle_crop_3692495987_0.png.png imagette209844181741018354/1741018271_2879557_1340647896_23562f3c9ca3f51150d56afc4e8514e1_rle_crop_3692496724_0.png.png imagette209844181741018354/1741018142_2877844_1340647777_191e980583f9ac9313b5f12631e6c972_rle_crop_3692495990_0.png.png imagette209844181741018354/1741018142_2877844_1340647766_e3d9aa7a5938118b991c73672557fc10_rle_crop_3692496058_0.png.png imagette209844181741018354/1741018142_2877844_1340647773_44d41e94b8df82b520c80f4308ddfc23_rle_crop_3692496026_0.png.png imagette209844181741018354/1741018142_2877844_1340647773_44d41e94b8df82b520c80f4308ddfc23_rle_crop_3692496024_0.png.png imagette209844181741018354/1741018142_2877844_1340647771_1a1946f5ac88273f3f37d7a1242c4f52_rle_crop_3692496040_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0a6cfdb27caa48d4c3ee7efcdbb07a60_30612844.png imagette209844181741018354 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'} 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 .imagette209844251741018354/ imagette209844251741018354/1741018033_2876659_1340647712_50e351bc02c5b461972fdab17634eba1_rle_crop_3692495285_0.png.png imagette209844251741018354/1741018271_2879557_1340647888_1202905d43d0ec577c87efbcdaaabf87_rle_crop_3692496735_0.png.png imagette209844251741018354/1741018033_2876659_1340647707_e60d6f473a0dd7db2fe5e4152f5e95d0_rle_crop_3692495307_0.png.png imagette209844251741018354/1741018271_2879557_1340647877_003c1625bc21b6df1b15fbee03ef9ccf_rle_crop_3692496759_0.png.png imagette209844251741018354/1741018033_2876659_1340647707_e60d6f473a0dd7db2fe5e4152f5e95d0_rle_crop_3692495308_0.png.png imagette209844251741018354/1741018033_2876659_1340647691_d7ac21124b2ca25336cfb4178376ceed_rle_crop_3692495369_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/a53109b89c09ca1e8bcb0cce99880cba_77291736.png imagette209844251741018354 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[1340648085] : ('0.08615463697851039',) no score found for photo 1340648085 We are sending mail with results at report@fotonower.com args[1340648082] : ('0.08615463697851039',) no score found for photo 1340648082 We are sending mail with results at report@fotonower.com args[1340648070] : ('0.08615463697851039',) no score found for photo 1340648070 We are sending mail with results at report@fotonower.com args[1340648030] : ('0.08615463697851039',) no score found for photo 1340648030 We are sending mail with results at report@fotonower.com args[1340648025] : ('0.08615463697851039',) no score found for photo 1340648025 We are sending mail with results at report@fotonower.com args[1340648017] : ('0.08615463697851039',) no score found for photo 1340648017 We are sending mail with results at report@fotonower.com args[1340648012] : ('0.08615463697851039',) no score found for photo 1340648012 We are sending mail with results at report@fotonower.com args[1340648006] : ('0.08615463697851039',) no score found for photo 1340648006 We are sending mail with results at report@fotonower.com refus_total : 0.08615463697851039 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_12_31.pdf results_Auto_P20984411_03-03-2025_17_12_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20984411_03-03-2025_17_12_31.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20984411','results_Auto_P20984411_03-03-2025_17_12_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20984411_03-03-2025_17_12_31.pdf','pdf','','0.28','0.08615463697851039') 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 [1340648085, 1340648082, 1340648070, 1340648030, 1340648025, 1340648017, 1340648012, 1340648006] map_info['map_portfolio_photo'] : {20984411: [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 : [1340648085, 1340648082, 1340648070, 1340648030, 1340648025, 1340648017, 1340648012, 1340648006] 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', '1340648085', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648082', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648070', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648030', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648025', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648017', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648012', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648006', None, None, None, None, None, '2629962') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20984411', '1340648085', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648082', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648070', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648030', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648025', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648017', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648012', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648006', None, None, None, None, None, '2629962')] time used for this insertion : 0.014101743698120117 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.830052375793457 time spend to save output : 0.01446986198425293 total time spend for step 4 : 4.84452223777771 step5:split_time_score Mon Mar 3 17:12:36 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['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 : {1340648006: {'path': 'temp/1741018351_3340836_1340648006_6c90cf21e12abcca63aaa425ad954941.jpg', 'extension': 'jpg'}, 1340648012: {'path': 'temp/1741018351_3340836_1340648012_08a789700a63af33d748c98cf82d2d0f.jpg', 'extension': 'jpg'}, 1340648082: {'path': 'temp/1741018351_3340836_1340648082_6dee26b6267f3fd0cc912d831613ab17.jpg', 'extension': 'jpg'}, 1340648085: {'path': 'temp/1741018351_3340836_1340648085_42e2da072d397d7eacd7a3c275b8893a.jpg', 'extension': 'jpg'}, 1340648017: {'path': 'temp/1741018351_3340836_1340648017_091b7a0abcd79d53a974664169739dac.jpg', 'extension': 'jpg'}, 1340648025: {'path': 'temp/1741018351_3340836_1340648025_7b4d101e40128d569178fe04e94c20fb.jpg', 'extension': 'jpg'}, 1340648030: {'path': 'temp/1741018351_3340836_1340648030_a90d0ba0844b948ba297f18c1172bd03.jpg', 'extension': 'jpg'}, 1340648070: {'path': 'temp/1741018351_3340836_1340648070_15b9a415e18a39a67381b4d87370f341.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', 45),) 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 : 45 / 23040 (0%) 03032025 20984411 Nombre de photos taguées (types de déchets): 0 / 45 (0%) 03032025 20984411 Nombre de photos taguées (volume) : 0 / 45 (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 8.344650268554688e-06 ????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001817941665649414 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.02212238311767578 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': 1642994, 'mtr_portfolio_id': 20982201, 'dashboard_result_id': 9175097, '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_P20982201_03-03-2025_16_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20982251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20982252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20982253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20982254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20982255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20982256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20982257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20982258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20982259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20982260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20982261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20982262, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1642994, 'mtr_portfolio_id': 20983052, 'dashboard_result_id': 9175098, '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': 1642994, 'mtr_portfolio_id': 20983803, 'dashboard_result_id': 9175099, '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': 1642994, 'mtr_portfolio_id': 20984411, 'dashboard_result_id': 9175100, '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_11_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}}"}] 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 = 20982201 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': 2629822, 'mtr_portfolio_id': 20982201, 'created_at': datetime.datetime(2025, 3, 3, 16, 32, 58), 'result': '0.07702628148387156', 'result_long': None, 'result_double': None}] Qualite : 0.07702628148387156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20982201 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20982201_03-03-2025_16_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20982201 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_P20982201_03-03-2025_16_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20982251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20982252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20982253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20982254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20982255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20982256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20982257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20982258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20982259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20982260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20982261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20982262, 'pht': 3726}}" where mtr_portfolio_id = 20982201 and dashboard_run_id = 1642994 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`=20982201 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9175097, 0.07702628148387156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20982201_03-03-2025_16_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20982251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20982252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20982253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20982254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20982255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20982256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20982257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20982258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20982259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20982260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20982261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20982262, '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 = 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 = 1642994 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 (9175098, 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 = 1642994 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 (9175099, 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, 12, 31), 'result': '0.08615463697851039', 'result_long': None, 'result_double': None}] Qualite : 0.08615463697851039 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_12_31.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_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}}" where mtr_portfolio_id = 20984411 and dashboard_run_id = 1642994 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 (9175100, 0.08615463697851039, "{'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}}") 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 (20982201,20983052,20983803,20984411) result : ((1340642021,), (1340642026,), (1340642030,), (1340642034,), (1340642379,), (1340642404,), (1340642416,), (1340642420,), (1340642427,), (1340642432,), (1340642476,), (1340642482,), (1340642495,), (1340642500,), (1340642505,), (1340642564,), (1340642576,), (1340642579,), (1340642585,), (1340642591,), (1340642603,), (1340642629,), (1340642668,), (1340642920,), (1340643243,), (1340643252,), (1340643351,), (1340643355,), (1340643403,), (1340643458,), (1340643551,), (1340643609,), (1340643624,), (1340643631,), (1340643812,), (1340643816,), (1340643821,), (1340643826,), (1340643875,), (1340643877,), (1340643881,), (1340643884,), (1340643890,), (1340643895,), (1340643922,), (1340643926,), (1340643928,), (1340643934,), (1340643937,), (1340643986,), (1340643989,), (1340644005,), (1340644094,), (1340644101,), (1340644213,), (1340644218,), (1340644220,), (1340644224,), (1340644267,), (1340644271,), (1340644275,), (1340644278,), (1340644283,), (1340644287,), (1340644333,), (1340644335,), (1340644339,), (1340644345,), (1340644392,), (1340644396,), (1340644400,), (1340644404,), (1340644412,), (1340644418,), (1340644593,), (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,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03032025': {'nb_upload': 45, '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 [1340648085, 1340648082, 1340648070, 1340648030, 1340648025, 1340648017, 1340648012, 1340648006] map_info['map_portfolio_photo'] : {20984411: [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 : [1340648085, 1340648082, 1340648070, 1340648030, 1340648025, 1340648017, 1340648012, 1340648006] 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', '1340648085', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648082', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648070', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648030', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648025', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648017', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648012', None, None, None, None, None, '2629962') ('4302', None, None, None, None, None, None, None, '2629962') ('4302', '20984411', '1340648006', None, None, None, None, None, '2629962') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20984411', 'None', None, None, None, None, '2629962'), ('4302', '20984411', '1340648085', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648082', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648070', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648030', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648025', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648017', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648012', None, None, None, None, None, '2629962'), ('4302', '20984411', '1340648006', None, None, None, None, None, '2629962')] time used for this insertion : 0.012197017669677734 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.34510231018066406 time spend to save output : 0.012376546859741211 total time spend for step 5 : 0.3574788570404053 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.60user 1.71system 0:11.96elapsed 36%CPU (0avgtext+0avgdata 160944maxresident)k 1488inputs+14256outputs (10major+78263minor)pagefaults 0swaps