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 : 329416 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 (2649458) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2649458) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21156349 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2649458'] with mtr_portfolio_ids : ['21156349'] and first list_photo_ids : [] new path : /proc/329416/ Name: python3 Umask: 0002 State: R (running) Tgid: 329416 Ngid: 0 Pid: 329416 PPid: 329415 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 329416 NSpid: 329416 NSpgid: 305321 NSsid: 305321 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98860 kB VmRSS: 98860 kB RssAnon: 59752 kB RssFile: 39108 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 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: 80 nonvoluntary_ctxt_switches: 115 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '329416', 'Ngid': '0', 'Pid': '329416', 'PPid': '329415', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '329416', 'NSpid': '329416', 'NSpgid': '305321', 'NSsid': '305321', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98860 kB', 'VmRSS': '98860 kB', 'RssAnon': '59752 kB', 'RssFile': '39108 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 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': '80', 'nonvoluntary_ctxt_switches': '115'} ('datou_batch_current', '329416', '1106848', '0', '1106848', '865596', '98860', b'', 'marlene', '2649458') 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 (21156349) 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 (2649458 ) ) 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 (21156349) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1341545301, 'portfolio_id': 21156349}, {'photo_id': 1341545297, 'portfolio_id': 21156349}, {'photo_id': 1341545287, 'portfolio_id': 21156349}, {'photo_id': 1341545282, 'portfolio_id': 21156349}, {'photo_id': 1341545207, 'portfolio_id': 21156349}, {'photo_id': 1341545096, 'portfolio_id': 21156349}, {'photo_id': 1341545081, 'portfolio_id': 21156349}, {'photo_id': 1341545070, 'portfolio_id': 21156349}, {'photo_id': 1341545063, 'portfolio_id': 21156349}, {'photo_id': 1341544999, 'portfolio_id': 21156349}, {'photo_id': 1341544963, 'portfolio_id': 21156349}, {'photo_id': 1341544914, 'portfolio_id': 21156349}, {'photo_id': 1341544864, 'portfolio_id': 21156349}, {'photo_id': 1341544844, 'portfolio_id': 21156349}, {'photo_id': 1341544777, 'portfolio_id': 21156349}, {'photo_id': 1341544776, 'portfolio_id': 21156349}, {'photo_id': 1341544768, 'portfolio_id': 21156349}, {'photo_id': 1341544749, 'portfolio_id': 21156349}, {'photo_id': 1341544746, 'portfolio_id': 21156349}, {'photo_id': 1341544742, 'portfolio_id': 21156349}, {'photo_id': 1341544733, 'portfolio_id': 21156349}, {'photo_id': 1341544726, 'portfolio_id': 21156349}, {'photo_id': 1341544702, 'portfolio_id': 21156349}, {'photo_id': 1341544698, 'portfolio_id': 21156349}, {'photo_id': 1341544695, 'portfolio_id': 21156349}, {'photo_id': 1341544688, 'portfolio_id': 21156349}, {'photo_id': 1341544604, 'portfolio_id': 21156349}, {'photo_id': 1341544422, 'portfolio_id': 21156349}, {'photo_id': 1341544350, 'portfolio_id': 21156349}, {'photo_id': 1341544253, 'portfolio_id': 21156349}, {'photo_id': 1341544243, 'portfolio_id': 21156349}, {'photo_id': 1341544230, 'portfolio_id': 21156349}, {'photo_id': 1341544224, 'portfolio_id': 21156349}, {'photo_id': 1341544218, 'portfolio_id': 21156349}, {'photo_id': 1341544211, 'portfolio_id': 21156349}, {'photo_id': 1341544177, 'portfolio_id': 21156349}, {'photo_id': 1341544173, 'portfolio_id': 21156349}, {'photo_id': 1341544169, 'portfolio_id': 21156349}, {'photo_id': 1341544161, 'portfolio_id': 21156349}, {'photo_id': 1341544149, 'portfolio_id': 21156349}, {'photo_id': 1341544112, 'portfolio_id': 21156349}, {'photo_id': 1341544109, 'portfolio_id': 21156349}, {'photo_id': 1341544104, 'portfolio_id': 21156349}, {'photo_id': 1341544021, 'portfolio_id': 21156349}, {'photo_id': 1341544016, 'portfolio_id': 21156349}, {'photo_id': 1341543859, 'portfolio_id': 21156349}, {'photo_id': 1341543855, 'portfolio_id': 21156349}, {'photo_id': 1341543818, 'portfolio_id': 21156349}, {'photo_id': 1341543741, 'portfolio_id': 21156349}, {'photo_id': 1341543647, 'portfolio_id': 21156349}, {'photo_id': 1341543585, 'portfolio_id': 21156349}, {'photo_id': 1341543581, 'portfolio_id': 21156349}, {'photo_id': 1341543573, 'portfolio_id': 21156349}, {'photo_id': 1341543567, 'portfolio_id': 21156349}, {'photo_id': 1341543556, 'portfolio_id': 21156349}, {'photo_id': 1341543547, 'portfolio_id': 21156349}, {'photo_id': 1341543441, 'portfolio_id': 21156349}, {'photo_id': 1341543410, 'portfolio_id': 21156349}] map_portfolio_id_photo_id: {21156349: [1341545301, 1341545297, 1341545287, 1341545282, 1341545207, 1341545096, 1341545081, 1341545070, 1341545063, 1341544999, 1341544963, 1341544914, 1341544864, 1341544844, 1341544777, 1341544776, 1341544768, 1341544749, 1341544746, 1341544742, 1341544733, 1341544726, 1341544702, 1341544698, 1341544695, 1341544688, 1341544604, 1341544422, 1341544350, 1341544253, 1341544243, 1341544230, 1341544224, 1341544218, 1341544211, 1341544177, 1341544173, 1341544169, 1341544161, 1341544149, 1341544112, 1341544109, 1341544104, 1341544021, 1341544016, 1341543859, 1341543855, 1341543818, 1341543741, 1341543647, 1341543585, 1341543581, 1341543573, 1341543567, 1341543556, 1341543547, 1341543441, 1341543410]} ##### 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.016393184661865234 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Mar 7 20:00:56 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 (21156349) 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 : 21156349 get user id for portfolio 21156349 get sub ptf for main ptf 21156349, type 3726 and hashtags ['plastique', 'papier', 'autre_refus', 'mal_croppe', 'Teint_Dans_La_Masse', 'Carton_gris', 'metal', 'flou', 'cartonnette', 'Carton_brun', 'environnement', 'kraft'] 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`=21156349 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','autre_refus','mal_croppe','Teint_Dans_La_Masse','Carton_gris','metal','flou','cartonnette','Carton_brun','environnement','kraft')) 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`=21156349 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','autre_refus','mal_croppe','Teint_Dans_La_Masse','Carton_gris','metal','flou','cartonnette','Carton_brun','environnement','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21156349, 'sub_port_id': 21156356, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754352, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 48, 58)}, 'Carton_brun': {'main_port_id': 21156349, 'sub_port_id': 21156357, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754353, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 48, 58)}, 'environnement': {'main_port_id': 21156349, 'sub_port_id': 21156358, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754354, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 48, 58)}, 'papier': {'main_port_id': 21156349, 'sub_port_id': 21156359, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754355, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 48, 58)}, 'flou': {'main_port_id': 21156349, 'sub_port_id': 21156360, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754356, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 48, 58)}, 'cartonnette': {'main_port_id': 21156349, 'sub_port_id': 21156361, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754357, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 48, 58)}, 'mal_croppe': {'main_port_id': 21156349, 'sub_port_id': 21156362, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754358, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 48, 58)}, 'autre_refus': {'main_port_id': 21156349, 'sub_port_id': 21156363, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754359, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 48, 58)}, 'plastique': {'main_port_id': 21156349, 'sub_port_id': 21156364, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754360, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 48, 58)}, 'kraft': {'main_port_id': 21156349, 'sub_port_id': 21156365, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754361, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 48, 58)}, 'Carton_gris': {'main_port_id': 21156349, 'sub_port_id': 21156366, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754362, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 48, 58)}, 'metal': {'main_port_id': 21156349, 'sub_port_id': 21156367, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754363, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 48, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21156356 , 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=21156349 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 (21156356) result : ((1341544229,), (1341544231,), (1341544899,), (1341544902,), (1341544904,), (1341545097,), (1341545199,), (1341545397,), (1341545398,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21156349) result : ((1341543410,), (1341543441,), (1341543547,), (1341543556,), (1341543567,), (1341543573,), (1341543581,), (1341543585,), (1341543647,), (1341543741,), (1341543818,), (1341543855,), (1341543859,), (1341544016,), (1341544021,), (1341544104,), (1341544109,), (1341544112,), (1341544149,), (1341544161,), (1341544169,), (1341544173,), (1341544177,), (1341544211,), (1341544218,), (1341544224,), (1341544230,), (1341544243,), (1341544253,), (1341544350,), (1341544422,), (1341544604,), (1341544688,), (1341544695,), (1341544698,), (1341544702,), (1341544726,), (1341544733,), (1341544742,), (1341544746,), (1341544749,), (1341544768,), (1341544776,), (1341544777,), (1341544844,), (1341544864,), (1341544914,), (1341544963,), (1341544999,), (1341545063,), (1341545070,), (1341545081,), (1341545096,), (1341545207,), (1341545282,), (1341545287,), (1341545297,), (1341545301,)) 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 21156357 , 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=21156349 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 (21156357) result : ((1341544153,), (1341544267,), (1341544268,), (1341544581,), (1341544582,), (1341544583,), (1341544584,), (1341544585,), (1341544788,), (1341544789,), (1341544816,), (1341544818,), (1341544819,), (1341544845,), (1341544921,), (1341544935,), (1341544937,), (1341545108,), (1341545145,), (1341545146,), (1341545147,), (1341545188,), (1341545189,), (1341545190,), (1341545266,), (1341545267,), (1341545403,), (1341545404,), (1341545405,), (1341545406,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21156349) result : ((1341543410,), (1341543441,), (1341543547,), (1341543556,), (1341543567,), (1341543573,), (1341543581,), (1341543585,), (1341543647,), (1341543741,), (1341543818,), (1341543855,), (1341543859,), (1341544016,), (1341544021,), (1341544104,), (1341544109,), (1341544112,), (1341544149,), (1341544161,), (1341544169,), (1341544173,), (1341544177,), (1341544211,), (1341544218,), (1341544224,), (1341544230,), (1341544243,), (1341544253,), (1341544350,), (1341544422,), (1341544604,), (1341544688,), (1341544695,), (1341544698,), (1341544702,), (1341544726,), (1341544733,), (1341544742,), (1341544746,), (1341544749,), (1341544768,), (1341544776,), (1341544777,), (1341544844,), (1341544864,), (1341544914,), (1341544963,), (1341544999,), (1341545063,), (1341545070,), (1341545081,), (1341545096,), (1341545207,), (1341545282,), (1341545287,), (1341545297,), (1341545301,)) 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 21156358 , 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=21156349 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 (21156358) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21156349) result : ((1341543410,), (1341543441,), (1341543547,), (1341543556,), (1341543567,), (1341543573,), (1341543581,), (1341543585,), (1341543647,), (1341543741,), (1341543818,), (1341543855,), (1341543859,), (1341544016,), (1341544021,), (1341544104,), (1341544109,), (1341544112,), (1341544149,), (1341544161,), (1341544169,), (1341544173,), (1341544177,), (1341544211,), (1341544218,), (1341544224,), (1341544230,), (1341544243,), (1341544253,), (1341544350,), (1341544422,), (1341544604,), (1341544688,), (1341544695,), (1341544698,), (1341544702,), (1341544726,), (1341544733,), (1341544742,), (1341544746,), (1341544749,), (1341544768,), (1341544776,), (1341544777,), (1341544844,), (1341544864,), (1341544914,), (1341544963,), (1341544999,), (1341545063,), (1341545070,), (1341545081,), (1341545096,), (1341545207,), (1341545282,), (1341545287,), (1341545297,), (1341545301,)) 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 21156359 , 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=21156349 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 (21156359) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21156349) result : ((1341543410,), (1341543441,), (1341543547,), (1341543556,), (1341543567,), (1341543573,), (1341543581,), (1341543585,), (1341543647,), (1341543741,), (1341543818,), (1341543855,), (1341543859,), (1341544016,), (1341544021,), (1341544104,), (1341544109,), (1341544112,), (1341544149,), (1341544161,), (1341544169,), (1341544173,), (1341544177,), (1341544211,), (1341544218,), (1341544224,), (1341544230,), (1341544243,), (1341544253,), (1341544350,), (1341544422,), (1341544604,), (1341544688,), (1341544695,), (1341544698,), (1341544702,), (1341544726,), (1341544733,), (1341544742,), (1341544746,), (1341544749,), (1341544768,), (1341544776,), (1341544777,), (1341544844,), (1341544864,), (1341544914,), (1341544963,), (1341544999,), (1341545063,), (1341545070,), (1341545081,), (1341545096,), (1341545207,), (1341545282,), (1341545287,), (1341545297,), (1341545301,)) 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 21156360 , 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=21156349 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 (21156360) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21156349) result : ((1341543410,), (1341543441,), (1341543547,), (1341543556,), (1341543567,), (1341543573,), (1341543581,), (1341543585,), (1341543647,), (1341543741,), (1341543818,), (1341543855,), (1341543859,), (1341544016,), (1341544021,), (1341544104,), (1341544109,), (1341544112,), (1341544149,), (1341544161,), (1341544169,), (1341544173,), (1341544177,), (1341544211,), (1341544218,), (1341544224,), (1341544230,), (1341544243,), (1341544253,), (1341544350,), (1341544422,), (1341544604,), (1341544688,), (1341544695,), (1341544698,), (1341544702,), (1341544726,), (1341544733,), (1341544742,), (1341544746,), (1341544749,), (1341544768,), (1341544776,), (1341544777,), (1341544844,), (1341544864,), (1341544914,), (1341544963,), (1341544999,), (1341545063,), (1341545070,), (1341545081,), (1341545096,), (1341545207,), (1341545282,), (1341545287,), (1341545297,), (1341545301,)) 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 21156361 , 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=21156349 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 (21156361) result : ((1341544251,), (1341544252,), (1341545259,), (1341545260,), (1341545261,), (1341545262,), (1341545263,), (1341545264,), (1341545402,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21156349) result : ((1341543410,), (1341543441,), (1341543547,), (1341543556,), (1341543567,), (1341543573,), (1341543581,), (1341543585,), (1341543647,), (1341543741,), (1341543818,), (1341543855,), (1341543859,), (1341544016,), (1341544021,), (1341544104,), (1341544109,), (1341544112,), (1341544149,), (1341544161,), (1341544169,), (1341544173,), (1341544177,), (1341544211,), (1341544218,), (1341544224,), (1341544230,), (1341544243,), (1341544253,), (1341544350,), (1341544422,), (1341544604,), (1341544688,), (1341544695,), (1341544698,), (1341544702,), (1341544726,), (1341544733,), (1341544742,), (1341544746,), (1341544749,), (1341544768,), (1341544776,), (1341544777,), (1341544844,), (1341544864,), (1341544914,), (1341544963,), (1341544999,), (1341545063,), (1341545070,), (1341545081,), (1341545096,), (1341545207,), (1341545282,), (1341545287,), (1341545297,), (1341545301,)) 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 21156362 , 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=21156349 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 (21156362) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21156349) result : ((1341543410,), (1341543441,), (1341543547,), (1341543556,), (1341543567,), (1341543573,), (1341543581,), (1341543585,), (1341543647,), (1341543741,), (1341543818,), (1341543855,), (1341543859,), (1341544016,), (1341544021,), (1341544104,), (1341544109,), (1341544112,), (1341544149,), (1341544161,), (1341544169,), (1341544173,), (1341544177,), (1341544211,), (1341544218,), (1341544224,), (1341544230,), (1341544243,), (1341544253,), (1341544350,), (1341544422,), (1341544604,), (1341544688,), (1341544695,), (1341544698,), (1341544702,), (1341544726,), (1341544733,), (1341544742,), (1341544746,), (1341544749,), (1341544768,), (1341544776,), (1341544777,), (1341544844,), (1341544864,), (1341544914,), (1341544963,), (1341544999,), (1341545063,), (1341545070,), (1341545081,), (1341545096,), (1341545207,), (1341545282,), (1341545287,), (1341545297,), (1341545301,)) 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 21156363 , 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=21156349 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 (21156363) result : ((1341544150,), (1341544151,), (1341544235,), (1341544236,), (1341544237,), (1341544238,), (1341544239,), (1341544240,), (1341544241,), (1341544242,), (1341544571,), (1341544572,), (1341544573,), (1341544787,), (1341544807,), (1341544808,), (1341544809,), (1341544811,), (1341544812,), (1341544896,), (1341544926,), (1341544927,), (1341544928,), (1341544929,), (1341545106,), (1341545155,), (1341545158,), (1341545160,), (1341545161,), (1341545162,), (1341545163,), (1341545164,), (1341545203,), (1341545204,), (1341545205,), (1341545206,), (1341545399,), (1341545400,), (1341545401,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21156349) result : ((1341543410,), (1341543441,), (1341543547,), (1341543556,), (1341543567,), (1341543573,), (1341543581,), (1341543585,), (1341543647,), (1341543741,), (1341543818,), (1341543855,), (1341543859,), (1341544016,), (1341544021,), (1341544104,), (1341544109,), (1341544112,), (1341544149,), (1341544161,), (1341544169,), (1341544173,), (1341544177,), (1341544211,), (1341544218,), (1341544224,), (1341544230,), (1341544243,), (1341544253,), (1341544350,), (1341544422,), (1341544604,), (1341544688,), (1341544695,), (1341544698,), (1341544702,), (1341544726,), (1341544733,), (1341544742,), (1341544746,), (1341544749,), (1341544768,), (1341544776,), (1341544777,), (1341544844,), (1341544864,), (1341544914,), (1341544963,), (1341544999,), (1341545063,), (1341545070,), (1341545081,), (1341545096,), (1341545207,), (1341545282,), (1341545287,), (1341545297,), (1341545301,)) 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 21156364 , 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=21156349 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 (21156364) result : ((1341544158,), (1341544586,), (1341544792,), (1341544925,), (1341545156,), (1341545157,), (1341545196,), (1341545197,), (1341545283,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21156349) result : ((1341543410,), (1341543441,), (1341543547,), (1341543556,), (1341543567,), (1341543573,), (1341543581,), (1341543585,), (1341543647,), (1341543741,), (1341543818,), (1341543855,), (1341543859,), (1341544016,), (1341544021,), (1341544104,), (1341544109,), (1341544112,), (1341544149,), (1341544161,), (1341544169,), (1341544173,), (1341544177,), (1341544211,), (1341544218,), (1341544224,), (1341544230,), (1341544243,), (1341544253,), (1341544350,), (1341544422,), (1341544604,), (1341544688,), (1341544695,), (1341544698,), (1341544702,), (1341544726,), (1341544733,), (1341544742,), (1341544746,), (1341544749,), (1341544768,), (1341544776,), (1341544777,), (1341544844,), (1341544864,), (1341544914,), (1341544963,), (1341544999,), (1341545063,), (1341545070,), (1341545081,), (1341545096,), (1341545207,), (1341545282,), (1341545287,), (1341545297,), (1341545301,)) 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 21156365 , 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=21156349 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 (21156365) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21156349) result : ((1341543410,), (1341543441,), (1341543547,), (1341543556,), (1341543567,), (1341543573,), (1341543581,), (1341543585,), (1341543647,), (1341543741,), (1341543818,), (1341543855,), (1341543859,), (1341544016,), (1341544021,), (1341544104,), (1341544109,), (1341544112,), (1341544149,), (1341544161,), (1341544169,), (1341544173,), (1341544177,), (1341544211,), (1341544218,), (1341544224,), (1341544230,), (1341544243,), (1341544253,), (1341544350,), (1341544422,), (1341544604,), (1341544688,), (1341544695,), (1341544698,), (1341544702,), (1341544726,), (1341544733,), (1341544742,), (1341544746,), (1341544749,), (1341544768,), (1341544776,), (1341544777,), (1341544844,), (1341544864,), (1341544914,), (1341544963,), (1341544999,), (1341545063,), (1341545070,), (1341545081,), (1341545096,), (1341545207,), (1341545282,), (1341545287,), (1341545297,), (1341545301,)) 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 21156366 , 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=21156349 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 (21156366) result : ((1341544246,), (1341544247,), (1341544248,), (1341544249,), (1341544813,), (1341544814,), (1341544932,), (1341544933,), (1341545186,), (1341545187,), (1341545211,), (1341545212,), (1341545213,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21156349) result : ((1341543410,), (1341543441,), (1341543547,), (1341543556,), (1341543567,), (1341543573,), (1341543581,), (1341543585,), (1341543647,), (1341543741,), (1341543818,), (1341543855,), (1341543859,), (1341544016,), (1341544021,), (1341544104,), (1341544109,), (1341544112,), (1341544149,), (1341544161,), (1341544169,), (1341544173,), (1341544177,), (1341544211,), (1341544218,), (1341544224,), (1341544230,), (1341544243,), (1341544253,), (1341544350,), (1341544422,), (1341544604,), (1341544688,), (1341544695,), (1341544698,), (1341544702,), (1341544726,), (1341544733,), (1341544742,), (1341544746,), (1341544749,), (1341544768,), (1341544776,), (1341544777,), (1341544844,), (1341544864,), (1341544914,), (1341544963,), (1341544999,), (1341545063,), (1341545070,), (1341545081,), (1341545096,), (1341545207,), (1341545282,), (1341545287,), (1341545297,), (1341545301,)) 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 21156367 , 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=21156349 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 (21156367) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21156349) result : ((1341543410,), (1341543441,), (1341543547,), (1341543556,), (1341543567,), (1341543573,), (1341543581,), (1341543585,), (1341543647,), (1341543741,), (1341543818,), (1341543855,), (1341543859,), (1341544016,), (1341544021,), (1341544104,), (1341544109,), (1341544112,), (1341544149,), (1341544161,), (1341544169,), (1341544173,), (1341544177,), (1341544211,), (1341544218,), (1341544224,), (1341544230,), (1341544243,), (1341544253,), (1341544350,), (1341544422,), (1341544604,), (1341544688,), (1341544695,), (1341544698,), (1341544702,), (1341544726,), (1341544733,), (1341544742,), (1341544746,), (1341544749,), (1341544768,), (1341544776,), (1341544777,), (1341544844,), (1341544864,), (1341544914,), (1341544963,), (1341544999,), (1341545063,), (1341545070,), (1341545081,), (1341545096,), (1341545207,), (1341545282,), (1341545287,), (1341545297,), (1341545301,)) 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`=21156349 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','autre_refus','mal_croppe','Teint_Dans_La_Masse','Carton_gris','metal','flou','cartonnette','Carton_brun','environnement','kraft')) 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`=21156349 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','autre_refus','mal_croppe','Teint_Dans_La_Masse','Carton_gris','metal','flou','cartonnette','Carton_brun','environnement','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21156349, 'sub_port_id': 21156369, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754364, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 49)}, 'Carton_brun': {'main_port_id': 21156349, 'sub_port_id': 21156370, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754365, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 49)}, 'environnement': {'main_port_id': 21156349, 'sub_port_id': 21156371, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754366, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 49)}, 'papier': {'main_port_id': 21156349, 'sub_port_id': 21156372, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754367, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 49)}, 'flou': {'main_port_id': 21156349, 'sub_port_id': 21156373, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754368, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 49)}, 'cartonnette': {'main_port_id': 21156349, 'sub_port_id': 21156374, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754369, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 49)}, 'mal_croppe': {'main_port_id': 21156349, 'sub_port_id': 21156375, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754370, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 49)}, 'autre_refus': {'main_port_id': 21156349, 'sub_port_id': 21156376, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754371, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 49)}, 'plastique': {'main_port_id': 21156349, 'sub_port_id': 21156377, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754372, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 49)}, 'kraft': {'main_port_id': 21156349, 'sub_port_id': 21156378, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754373, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 49)}, 'Carton_gris': {'main_port_id': 21156349, 'sub_port_id': 21156379, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754374, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 49), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 49)}, 'metal': {'main_port_id': 21156349, 'sub_port_id': 21156380, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13754375, 'last_updated_at': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 19, 58, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 19, 49)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21156369,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21156356 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21156370,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21156357 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21156371,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21156358 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21156372,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21156359 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21156373,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21156360 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21156374,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21156361 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21156375,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21156362 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21156376,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21156363 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21156377,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21156364 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21156378,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21156365 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21156379,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21156366 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21156380,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21156367 lien utilise dans velours : https://www.fotonower.com/velours/21156369,21156370,21156371,21156372,21156373,21156374,21156375,21156376,21156377,21156378,21156379,21156380?tags=Teint_Dans_La_Masse,Carton_brun,environnement,papier,flou,cartonnette,mal_croppe,autre_refus,plastique,kraft,Carton_gris,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21156349]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1341545301, 1341545297, 1341545287, 1341545282, 1341545207] map_info['map_portfolio_photo'] : {21156349: [1341545301, 1341545297, 1341545287, 1341545282, 1341545207, 1341545096, 1341545081, 1341545070, 1341545063, 1341544999, 1341544963, 1341544914, 1341544864, 1341544844, 1341544777, 1341544776, 1341544768, 1341544749, 1341544746, 1341544742, 1341544733, 1341544726, 1341544702, 1341544698, 1341544695, 1341544688, 1341544604, 1341544422, 1341544350, 1341544253, 1341544243, 1341544230, 1341544224, 1341544218, 1341544211, 1341544177, 1341544173, 1341544169, 1341544161, 1341544149, 1341544112, 1341544109, 1341544104, 1341544021, 1341544016, 1341543859, 1341543855, 1341543818, 1341543741, 1341543647, 1341543585, 1341543581, 1341543573, 1341543567, 1341543556, 1341543547, 1341543441, 1341543410]} final : False mtd_id 4302 list_pids : [1341545301, 1341545297, 1341545287, 1341545282, 1341545207] Looping around the photos to save general results len do output : 1 /21156349. 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, '2649458') ('4302', '21156349', '1341545301', None, None, None, None, None, '2649458') ('4302', None, None, None, None, None, None, None, '2649458') ('4302', '21156349', '1341545297', None, None, None, None, None, '2649458') ('4302', None, None, None, None, None, None, None, '2649458') ('4302', '21156349', '1341545287', None, None, None, None, None, '2649458') ('4302', None, None, None, None, None, None, None, '2649458') ('4302', '21156349', '1341545282', None, None, None, None, None, '2649458') ('4302', None, None, None, None, None, None, None, '2649458') ('4302', '21156349', '1341545207', None, None, None, None, None, '2649458') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21156349', "{'Teint_Dans_La_Masse': 21156356, 'Carton_brun': 21156357, 'environnement': 21156358, 'papier': 21156359, 'flou': 21156360, 'cartonnette': 21156361, 'mal_croppe': 21156362, 'autre_refus': 21156363, 'plastique': 21156364, 'kraft': 21156365, 'Carton_gris': 21156366, 'metal': 21156367}", None, None, None, None, '2649458'), ('4302', '21156349', '1341545301', None, None, None, None, None, '2649458'), ('4302', '21156349', '1341545297', None, None, None, None, None, '2649458'), ('4302', '21156349', '1341545287', None, None, None, None, None, '2649458'), ('4302', '21156349', '1341545282', None, None, None, None, None, '2649458'), ('4302', '21156349', '1341545207', None, None, None, None, None, '2649458')] time used for this insertion : 0.012544631958007812 save_final save missing photos in datou_result : time spend for datou_step_exec : 12.590313911437988 time spend to save output : 0.012917280197143555 total time spend for step 1 : 12.603231191635132 step2:final Fri Mar 7 20:01:09 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 (21156349) 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 21156349 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1341543441,1341543410,1341543585,1341543581,1341543573,1341543567,1341543556,1341543547,1341543859,1341543855,1341543818,1341543741,1341543647,1341544112,1341544109,1341544104,1341544021,1341544016,1341544177,1341544173,1341544169,1341544161,1341544149,1341544253,1341544243,1341544230,1341544224,1341544218,1341544211,1341544422,1341544350,1341544702,1341544698,1341544695,1341544688,1341544749,1341544604,1341544746,1341544742,1341544733,1341544726,1341544777,1341544776,1341544768,1341544999,1341544963,1341544914,1341544864,1341544844,1341545096,1341545081,1341545070,1341545063,1341545301,1341545297,1341545287,1341545282,1341545207); 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([21156349]) Inside saveOutput : final : False verbose : True original output for save of step final : {1341545301: ('0.08249590606009484',), 1341545297: ('0.08249590606009484',), 1341545287: ('0.08249590606009484',), 1341545282: ('0.08249590606009484',), 1341545207: ('0.08249590606009484',)} new output for save of step final : {1341545301: ('0.08249590606009484',), 1341545297: ('0.08249590606009484',), 1341545287: ('0.08249590606009484',), 1341545282: ('0.08249590606009484',), 1341545207: ('0.08249590606009484',)} [1341545301, 1341545297, 1341545287, 1341545282, 1341545207] map_info['map_portfolio_photo'] : {21156349: [1341545301, 1341545297, 1341545287, 1341545282, 1341545207, 1341545096, 1341545081, 1341545070, 1341545063, 1341544999, 1341544963, 1341544914, 1341544864, 1341544844, 1341544777, 1341544776, 1341544768, 1341544749, 1341544746, 1341544742, 1341544733, 1341544726, 1341544702, 1341544698, 1341544695, 1341544688, 1341544604, 1341544422, 1341544350, 1341544253, 1341544243, 1341544230, 1341544224, 1341544218, 1341544211, 1341544177, 1341544173, 1341544169, 1341544161, 1341544149, 1341544112, 1341544109, 1341544104, 1341544021, 1341544016, 1341543859, 1341543855, 1341543818, 1341543741, 1341543647, 1341543585, 1341543581, 1341543573, 1341543567, 1341543556, 1341543547, 1341543441, 1341543410]} final : False mtd_id 4302 list_pids : [1341545301, 1341545297, 1341545287, 1341545282, 1341545207] Looping around the photos to save general results len do output : 5 /1341545301.Didn't retrieve data . /1341545297.Didn't retrieve data . /1341545287.Didn't retrieve data . /1341545282.Didn't retrieve data . /1341545207.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, '2649458') ('4302', '21156349', '1341545301', None, None, None, None, None, '2649458') ('4302', None, None, None, None, None, None, None, '2649458') ('4302', '21156349', '1341545297', None, None, None, None, None, '2649458') ('4302', None, None, None, None, None, None, None, '2649458') ('4302', '21156349', '1341545287', None, None, None, None, None, '2649458') ('4302', None, None, None, None, None, None, None, '2649458') ('4302', '21156349', '1341545282', None, None, None, None, None, '2649458') ('4302', None, None, None, None, None, None, None, '2649458') ('4302', '21156349', '1341545207', None, None, None, None, None, '2649458') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '21156349', '1341545301', '0.08249590606009484', None, None, None, None, '2649458'), ('4302', '21156349', '1341545297', '0.08249590606009484', None, None, None, None, '2649458'), ('4302', '21156349', '1341545287', '0.08249590606009484', None, None, None, None, '2649458'), ('4302', '21156349', '1341545282', '0.08249590606009484', None, None, None, None, '2649458'), ('4302', '21156349', '1341545207', '0.08249590606009484', None, None, None, None, '2649458')] time used for this insertion : 0.012503623962402344 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2790181636810303 time spend to save output : 0.012867927551269531 total time spend for step 2 : 0.2918860912322998 step3:velours_tree Fri Mar 7 20:01:09 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 : {21156349: [{'Teint_Dans_La_Masse': 21156356, 'Carton_brun': 21156357, 'environnement': 21156358, 'papier': 21156359, 'flou': 21156360, 'cartonnette': 21156361, 'mal_croppe': 21156362, 'autre_refus': 21156363, 'plastique': 21156364, 'kraft': 21156365, 'Carton_gris': 21156366, 'metal': 21156367}]} input_args_next_step : {21156349: ()} output_args : {21156349: [{'Teint_Dans_La_Masse': 21156356, 'Carton_brun': 21156357, 'environnement': 21156358, 'papier': 21156359, 'flou': 21156360, 'cartonnette': 21156361, 'mal_croppe': 21156362, 'autre_refus': 21156363, 'plastique': 21156364, 'kraft': 21156365, 'Carton_gris': 21156366, 'metal': 21156367}]} args : 21156349 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 : ({'Teint_Dans_La_Masse': 21156356, 'Carton_brun': 21156357, 'environnement': 21156358, 'papier': 21156359, 'flou': 21156360, 'cartonnette': 21156361, 'mal_croppe': 21156362, 'autre_refus': 21156363, 'plastique': 21156364, 'kraft': 21156365, 'Carton_gris': 21156366, 'metal': 21156367},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21156349) 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([21156349]) 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.34215688705444336 time spend to save output : 5.269050598144531e-05 total time spend for step 3 : 0.3422095775604248 step4:send_mail_cod Fri Mar 7 20:01:09 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 : {1341545301: ('0.08249590606009484',), 1341545297: ('0.08249590606009484',), 1341545287: ('0.08249590606009484',), 1341545282: ('0.08249590606009484',), 1341545207: ('0.08249590606009484',)} input_args_next_step : {1341545301: ()} output_args : {1341545301: ('0.08249590606009484',), 1341545297: ('0.08249590606009484',), 1341545287: ('0.08249590606009484',), 1341545282: ('0.08249590606009484',), 1341545207: ('0.08249590606009484',)} args : 1341545301 depend.output_id : 0 input_args_next_step : {1341545301: ('0.08249590606009484',), 1341545297: ()} output_args : {1341545301: ('0.08249590606009484',), 1341545297: ('0.08249590606009484',), 1341545287: ('0.08249590606009484',), 1341545282: ('0.08249590606009484',), 1341545207: ('0.08249590606009484',)} args : 1341545297 depend.output_id : 0 input_args_next_step : {1341545301: ('0.08249590606009484',), 1341545297: ('0.08249590606009484',), 1341545287: ()} output_args : {1341545301: ('0.08249590606009484',), 1341545297: ('0.08249590606009484',), 1341545287: ('0.08249590606009484',), 1341545282: ('0.08249590606009484',), 1341545207: ('0.08249590606009484',)} args : 1341545287 depend.output_id : 0 input_args_next_step : {1341545301: ('0.08249590606009484',), 1341545297: ('0.08249590606009484',), 1341545287: ('0.08249590606009484',), 1341545282: ()} output_args : {1341545301: ('0.08249590606009484',), 1341545297: ('0.08249590606009484',), 1341545287: ('0.08249590606009484',), 1341545282: ('0.08249590606009484',), 1341545207: ('0.08249590606009484',)} args : 1341545282 depend.output_id : 0 input_args_next_step : {1341545301: ('0.08249590606009484',), 1341545297: ('0.08249590606009484',), 1341545287: ('0.08249590606009484',), 1341545282: ('0.08249590606009484',), 1341545207: ()} output_args : {1341545301: ('0.08249590606009484',), 1341545297: ('0.08249590606009484',), 1341545287: ('0.08249590606009484',), 1341545282: ('0.08249590606009484',), 1341545207: ('0.08249590606009484',)} args : 1341545207 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 : {21156349: [{'Teint_Dans_La_Masse': 21156356, 'Carton_brun': 21156357, 'environnement': 21156358, 'papier': 21156359, 'flou': 21156360, 'cartonnette': 21156361, 'mal_croppe': 21156362, 'autre_refus': 21156363, 'plastique': 21156364, 'kraft': 21156365, 'Carton_gris': 21156366, 'metal': 21156367}]} input_args_next_step : {1341545301: ('0.08249590606009484',), 1341545297: ('0.08249590606009484',), 1341545287: ('0.08249590606009484',), 1341545282: ('0.08249590606009484',), 1341545207: ('0.08249590606009484',), 21156349: ()} output_args : {21156349: [{'Teint_Dans_La_Masse': 21156356, 'Carton_brun': 21156357, 'environnement': 21156358, 'papier': 21156359, 'flou': 21156360, 'cartonnette': 21156361, 'mal_croppe': 21156362, 'autre_refus': 21156363, 'plastique': 21156364, 'kraft': 21156365, 'Carton_gris': 21156366, 'metal': 21156367}]} args : 21156349 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 :6, first value : ('0.08249590606009484',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21156349) 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 (1341545301,1341545297,1341545287,1341545282,1341545207) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1341545207 begin to download photo : 1341545287 begin to download photo : 1341545301 download finish for photo 1341545207 begin to download photo : 1341545282 download finish for photo 1341545287 begin to download photo : 1341545297 download finish for photo 1341545301 download finish for photo 1341545282 download finish for photo 1341545297 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette211563601741374070/ length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P21156349_07-03-2025_20_01_10.pdf 21156360 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=21156360 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette211563601741374070 21156361 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=21156361 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341544251: '1741373414_465480_1341543547_83a23517433b8cddf604526362a880fe_rle_crop_3697776503_0.png', 1341544252: '1741373414_465480_1341543547_83a23517433b8cddf604526362a880fe_rle_crop_3697776506_0.png', 1341545259: '1741373793_476071_1341544112_340c8df2a007c88668b81a7a09d15df7_rle_crop_3697781806_0.png', 1341545260: '1741373793_476071_1341543855_ac26884bee46cbcf67a290d3b4dc104d_rle_crop_3697782004_0.png', 1341545261: '1741373793_476071_1341543818_3d60b1f59fb20c58b8cd12064ea8e698_rle_crop_3697782022_0.png', 1341545262: '1741373793_476071_1341543741_8d12889367c2d5bd43066443192c2210_rle_crop_3697782062_0.png', 1341545263: '1741373793_476071_1341543647_c83336239b04ca2340f08954d9f71412_rle_crop_3697782079_0.png', 1341545264: '1741373793_476071_1341543647_c83336239b04ca2340f08954d9f71412_rle_crop_3697782083_0.png', 1341545402: '1741373967_650653_1341545081_3fb50d11547e4d5486b34163682b64b4_rle_crop_3697782250_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/50a97ffa79a480e9e4e80da349a4217b_97783052.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/20cf181a8d0d66a353b9c41ac88efe49_5982883.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/afdb7593230c3cb77ffd9ef03e10e80d_21934170.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/ab4dd2b94523fb2b6f6f05583bf7a2c1_1361.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/30770ca49f8fbb0b0255c6e7f383fc0c_45497011.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/0224d653715c9c12c03f164dc1630089_67000849.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/9380539d24c2eb8f1251b22a572a39cd_51362861.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/3d6416446ee17f1a4cda9e61374deb51_23084476.png change filename to text .imagette211563611741374070/ imagette211563611741374070/1741373793_476071_1341543741_8d12889367c2d5bd43066443192c2210_rle_crop_3697782062_0.png.png imagette211563611741374070/1741373414_465480_1341543547_83a23517433b8cddf604526362a880fe_rle_crop_3697776503_0.png.png imagette211563611741374070/1741373967_650653_1341545081_3fb50d11547e4d5486b34163682b64b4_rle_crop_3697782250_0.png.png imagette211563611741374070/1741373793_476071_1341543647_c83336239b04ca2340f08954d9f71412_rle_crop_3697782079_0.png.png imagette211563611741374070/1741373793_476071_1341543647_c83336239b04ca2340f08954d9f71412_rle_crop_3697782083_0.png.png imagette211563611741374070/1741373793_476071_1341544112_340c8df2a007c88668b81a7a09d15df7_rle_crop_3697781806_0.png.png imagette211563611741374070/1741373793_476071_1341543855_ac26884bee46cbcf67a290d3b4dc104d_rle_crop_3697782004_0.png.png imagette211563611741374070/1741373414_465480_1341543547_83a23517433b8cddf604526362a880fe_rle_crop_3697776506_0.png.png imagette211563611741374070/1741373793_476071_1341543818_3d60b1f59fb20c58b8cd12064ea8e698_rle_crop_3697782022_0.png.png imagette211563621741374070/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/6043fd1211ccf32011543ad79e5be912_98020714.png imagette211563611741374070 21156362 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=21156362 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette211563621741374070 21156363 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=21156363 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341545162: '1741373849_648119_1341544224_445fef1dd7584bb65a50f724b688a7ed_rle_crop_3697781600_0.png', 1341544926: '1741373735_475479_1341544698_62068d94183588d8bc3a0e43b2a31183_rle_crop_3697780720_0.png', 1341544927: '1741373735_475479_1341544695_dccf4a5950fa5681c649c1e947db10cd_rle_crop_3697780736_0.png', 1341544928: '1741373735_475479_1341544688_fb259f9ef136f9599aedb0877ee742f8_rle_crop_3697780744_0.png', 1341544929: '1741373735_475479_1341544604_8f67e536f2394b2e938aa5849e7f4700_rle_crop_3697780844_0.png', 1341545106: '1741373814_476282_1341543859_e05c79670621d5d7afa9c64d4eae1da6_rle_crop_3697781578_0.png', 1341545155: '1741373849_648119_1341544422_ab78d3523a0d062dffad3fa068aee7f8_rle_crop_3697781346_0.png', 1341545158: '1741373849_648119_1341544243_f53d9d26c64242e75d381cdc7a3275b9_rle_crop_3697781355_0.png', 1341545160: '1741373849_648119_1341544230_7c2f84f08d9fc07ef7ba1c86bba985c9_rle_crop_3697781466_0.png', 1341545161: '1741373849_648119_1341544230_7c2f84f08d9fc07ef7ba1c86bba985c9_rle_crop_3697781471_0.png', 1341544896: '1741373751_475585_1341544702_44b3bb066865dae32ce9a4d72db0d987_rle_crop_3697780761_0.png', 1341545163: '1741373849_648119_1341544218_a7b231bdf9e05cc8dfbf832fa7b9dd3f_rle_crop_3697781718_0.png', 1341545164: '1741373849_648119_1341544211_2f5f80124b370bd9b1e9c89efa595e49_rle_crop_3697781838_0.png', 1341545203: '1741373793_476071_1341543855_ac26884bee46cbcf67a290d3b4dc104d_rle_crop_3697782005_0.png', 1341545204: '1741373793_476071_1341543818_3d60b1f59fb20c58b8cd12064ea8e698_rle_crop_3697782027_0.png', 1341545205: '1741373793_476071_1341543741_8d12889367c2d5bd43066443192c2210_rle_crop_3697782068_0.png', 1341545206: '1741373793_476071_1341543647_c83336239b04ca2340f08954d9f71412_rle_crop_3697782076_0.png', 1341545399: '1741373967_650653_1341545070_f4abbf5819ac2729fdba2979d1a442d7_rle_crop_3697782264_0.png', 1341545400: '1741373967_650653_1341545070_f4abbf5819ac2729fdba2979d1a442d7_rle_crop_3697782267_0.png', 1341545401: '1741373967_650653_1341545063_5b47a6720076c31b1688dd3369923ff2_rle_crop_3697782281_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/11650ce20dc62978375b8d3f38a67784_20792558.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/4972840280dc3d871a7f731d97a57f86_11805334.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/8988c15b2327752191fd6aeccb7306af_15460183.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/de0dd5f39d8bbdd63748d0bc632d77d0_65049796.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/548a72a361b15aae4795de7c0672c782_15623025.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/9711c1202d62db115aff1ce677acff6e_38842612.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/3686858658bc5bfae82b93f724d19dfc_92631397.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/dde6b2e9f1eee59dc7e3a1c006163148_85489458.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/a5c70d7166e0541fe3504832c5007ccb_80172134.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/8aa7e9cc6992fff1cee2c7ddaec3f0e5_67546949.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/38f78659e6510c7a87c3ca38b39365f7_80326742.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/7cfe8d2252fd5e0f52f6ff77da40bbab_1494794.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/c9c51e5f54d3466962ec9e86325717eb_18017459.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/0db36e65ba006b2c278644355929ed02_99611486.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/15d227f655c77984fcd8c2bf403dcd04_4069006.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/1fe2344308d5d4c07e8fecbc4ca7b245_306386.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/266083eebe2e3e68441ca449675b5ce1_95151334.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/62d96cf7593b93a49e01b3bc25633ad4_87229430.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/e9f4e96bdc4a32a0fd82a72f1a60bf20_69199342.png change filename to text .imagette211563631741374070/ imagette211563631741374070/1741373735_475479_1341544695_dccf4a5950fa5681c649c1e947db10cd_rle_crop_3697780736_0.png.png imagette211563631741374070/1741373849_648119_1341544224_445fef1dd7584bb65a50f724b688a7ed_rle_crop_3697781600_0.png.png imagette211563631741374070/1741373793_476071_1341543818_3d60b1f59fb20c58b8cd12064ea8e698_rle_crop_3697782027_0.png.png imagette211563631741374070/1741373735_475479_1341544698_62068d94183588d8bc3a0e43b2a31183_rle_crop_3697780720_0.png.png imagette211563631741374070/1741373793_476071_1341543647_c83336239b04ca2340f08954d9f71412_rle_crop_3697782076_0.png.png imagette211563631741374070/1741373967_650653_1341545063_5b47a6720076c31b1688dd3369923ff2_rle_crop_3697782281_0.png.png imagette211563631741374070/1741373849_648119_1341544230_7c2f84f08d9fc07ef7ba1c86bba985c9_rle_crop_3697781471_0.png.png imagette211563631741374070/1741373793_476071_1341543741_8d12889367c2d5bd43066443192c2210_rle_crop_3697782068_0.png.png imagette211563631741374070/1741373735_475479_1341544688_fb259f9ef136f9599aedb0877ee742f8_rle_crop_3697780744_0.png.png imagette211563631741374070/1741373967_650653_1341545070_f4abbf5819ac2729fdba2979d1a442d7_rle_crop_3697782264_0.png.png imagette211563631741374070/1741373967_650653_1341545070_f4abbf5819ac2729fdba2979d1a442d7_rle_crop_3697782267_0.png.png imagette211563631741374070/1741373849_648119_1341544218_a7b231bdf9e05cc8dfbf832fa7b9dd3f_rle_crop_3697781718_0.png.png imagette211563631741374070/1741373849_648119_1341544422_ab78d3523a0d062dffad3fa068aee7f8_rle_crop_3697781346_0.png.png imagette211563631741374070/1741373849_648119_1341544230_7c2f84f08d9fc07ef7ba1c86bba985c9_rle_crop_3697781466_0.png.png imagette211563631741374070/1741373735_475479_1341544604_8f67e536f2394b2e938aa5849e7f4700_rle_crop_3697780844_0.png.png imagette211563631741374070/1741373849_648119_1341544243_f53d9d26c64242e75d381cdc7a3275b9_rle_crop_3697781355_0.png.png imagette211563631741374070/1741373814_476282_1341543859_e05c79670621d5d7afa9c64d4eae1da6_rle_crop_3697781578_0.png.png imagette211563631741374070/1741373793_476071_1341543855_ac26884bee46cbcf67a290d3b4dc104d_rle_crop_3697782005_0.png.png imagette211563631741374070/1741373751_475585_1341544702_44b3bb066865dae32ce9a4d72db0d987_rle_crop_3697780761_0.png.png imagette211563631741374070/1741373849_648119_1341544211_2f5f80124b370bd9b1e9c89efa595e49_rle_crop_3697781838_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/2ad86a421881df7e97d81be8474bcf64_17548159.png imagette211563631741374070 21156364 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=21156364 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341544158: '1741373391_465264_1341543441_cc11b07ec734293a7abd3d85dc1cc479_rle_crop_3697773611_0.png', 1341544586: '1741373515_466750_1341544109_e81f879979fa07c76b9cf0929202cff8_rle_crop_3697777904_0.png', 1341544792: '1741373727_912276_1341544177_4737339ce7304add30b8137affa84a49_rle_crop_3697779906_0.png', 1341544925: '1741373751_475585_1341544350_cb7829df78048ca89a7ab630158f45b6_rle_crop_3697780833_0.png', 1341545156: '1741373773_475772_1341544230_7c2f84f08d9fc07ef7ba1c86bba985c9_rle_crop_3697781464_0.png', 1341545157: '1741373773_475772_1341544224_445fef1dd7584bb65a50f724b688a7ed_rle_crop_3697781590_0.png', 1341545196: '1741373849_648119_1341544230_7c2f84f08d9fc07ef7ba1c86bba985c9_rle_crop_3697781464_0.png', 1341545197: '1741373849_648119_1341544224_445fef1dd7584bb65a50f724b688a7ed_rle_crop_3697781590_0.png', 1341545283: '1741373793_476071_1341543741_8d12889367c2d5bd43066443192c2210_rle_crop_3697782057_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/fb9ee263fe88015c392e4b3b71b68993_79571437.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/b81101a1574a4962ce0cbb4c9d788e9a_72214803.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/80e3176cb88c4d53a33b4886f90c5060_13100635.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/a9d608e2a9dde848776733e1c46eba72_60884995.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/a30c6b685b185882a13ac67089a2511a_95432355.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/fc9ee9c127e1506389ee0dc212455c67_18086514.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/a30c6b685b185882a13ac67089a2511a_98534140.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/fc9ee9c127e1506389ee0dc212455c67_75398037.png change filename to text .imagette211563641741374071/ imagette211563641741374071/1741373391_465264_1341543441_cc11b07ec734293a7abd3d85dc1cc479_rle_crop_3697773611_0.png.png imagette211563641741374071/1741373849_648119_1341544224_445fef1dd7584bb65a50f724b688a7ed_rle_crop_3697781590_0.png.png imagette211563641741374071/1741373515_466750_1341544109_e81f879979fa07c76b9cf0929202cff8_rle_crop_3697777904_0.png.png imagette211563641741374071/1741373727_912276_1341544177_4737339ce7304add30b8137affa84a49_rle_crop_3697779906_0.png.png imagette211563641741374071/1741373751_475585_1341544350_cb7829df78048ca89a7ab630158f45b6_rle_crop_3697780833_0.png.png imagette211563641741374071/1741373773_475772_1341544224_445fef1dd7584bb65a50f724b688a7ed_rle_crop_3697781590_0.png.png imagette211563641741374071/1741373793_476071_1341543741_8d12889367c2d5bd43066443192c2210_rle_crop_3697782057_0.png.png imagette211563641741374071/1741373773_475772_1341544230_7c2f84f08d9fc07ef7ba1c86bba985c9_rle_crop_3697781464_0.png.png imagette211563641741374071/1741373849_648119_1341544230_7c2f84f08d9fc07ef7ba1c86bba985c9_rle_crop_3697781464_0.png.png imagette211563651741374077/ imagette211563671741374077/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/a794469c5db0b39632ee497d89408261_40489898.png imagette211563641741374071 21156365 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=21156365 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette211563651741374077 21156367 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=21156367 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette211563671741374077 21156356 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=21156356 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341544229: '1741373414_465480_1341543573_01a11922e3c7e3271aee54ba3f4e6176_rle_crop_3697775898_0.png', 1341544231: '1741373414_465480_1341543556_d91be8da045c905755dfa0b491ca7441_rle_crop_3697776160_0.png', 1341544899: '1741373735_475479_1341544698_62068d94183588d8bc3a0e43b2a31183_rle_crop_3697780726_0.png', 1341544902: '1741373735_475479_1341544695_dccf4a5950fa5681c649c1e947db10cd_rle_crop_3697780737_0.png', 1341544904: '1741373735_475479_1341544604_8f67e536f2394b2e938aa5849e7f4700_rle_crop_3697780842_0.png', 1341545097: '1741373814_476282_1341543859_e05c79670621d5d7afa9c64d4eae1da6_rle_crop_3697781576_0.png', 1341545199: '1741373793_476071_1341543818_3d60b1f59fb20c58b8cd12064ea8e698_rle_crop_3697782028_0.png', 1341545397: '1741373967_650653_1341545081_3fb50d11547e4d5486b34163682b64b4_rle_crop_3697782254_0.png', 1341545398: '1741373967_650653_1341545070_f4abbf5819ac2729fdba2979d1a442d7_rle_crop_3697782274_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/02a240645e62cba38b470e48d2d9c266_33645433.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/a1cc80368c3ce0553a3aa770279306ee_77984147.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/06320431ec721a238407d83b4d5df22f_95544135.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/be7ccfe2334ec804a0ff95156dbee4d1_88218833.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/8fedf840726258f16f8b3696cd8a54fa_60740882.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/7ca4be9ce729d6a5e6db58c49c8fdc23_24538567.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/2f7035d316c115b4c761a6c77113ff1f_15861729.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/72bda76fe7faa974d0434dd77a8abea1_5111232.png change filename to text .imagette211563561741374077/ imagette211563561741374077/1741373814_476282_1341543859_e05c79670621d5d7afa9c64d4eae1da6_rle_crop_3697781576_0.png.png imagette211563561741374077/1741373793_476071_1341543818_3d60b1f59fb20c58b8cd12064ea8e698_rle_crop_3697782028_0.png.png imagette211563561741374077/1741373414_465480_1341543573_01a11922e3c7e3271aee54ba3f4e6176_rle_crop_3697775898_0.png.png imagette211563561741374077/1741373414_465480_1341543556_d91be8da045c905755dfa0b491ca7441_rle_crop_3697776160_0.png.png imagette211563561741374077/1741373967_650653_1341545070_f4abbf5819ac2729fdba2979d1a442d7_rle_crop_3697782274_0.png.png imagette211563561741374077/1741373735_475479_1341544695_dccf4a5950fa5681c649c1e947db10cd_rle_crop_3697780737_0.png.png imagette211563561741374077/1741373735_475479_1341544698_62068d94183588d8bc3a0e43b2a31183_rle_crop_3697780726_0.png.png imagette211563561741374077/1741373735_475479_1341544604_8f67e536f2394b2e938aa5849e7f4700_rle_crop_3697780842_0.png.png imagette211563561741374077/1741373967_650653_1341545081_3fb50d11547e4d5486b34163682b64b4_rle_crop_3697782254_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/a1d8332d12cfb6cea701fb3f50b6297c_56550366.png imagette211563561741374077 21156357 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=21156357 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341544935: '1741373735_475479_1341544698_62068d94183588d8bc3a0e43b2a31183_rle_crop_3697780719_0.png', 1341545406: '1741373967_650653_1341545070_f4abbf5819ac2729fdba2979d1a442d7_rle_crop_3697782268_0.png', 1341545405: '1741373967_650653_1341545070_f4abbf5819ac2729fdba2979d1a442d7_rle_crop_3697782277_0.png', 1341545404: '1741373967_650653_1341545081_3fb50d11547e4d5486b34163682b64b4_rle_crop_3697782253_0.png', 1341545403: '1741373967_650653_1341545081_3fb50d11547e4d5486b34163682b64b4_rle_crop_3697782261_0.png', 1341545267: '1741373793_476071_1341543741_8d12889367c2d5bd43066443192c2210_rle_crop_3697782063_0.png', 1341545266: '1741373793_476071_1341543855_ac26884bee46cbcf67a290d3b4dc104d_rle_crop_3697782007_0.png', 1341545190: '1741373849_648119_1341544224_445fef1dd7584bb65a50f724b688a7ed_rle_crop_3697781593_0.png', 1341545189: '1741373849_648119_1341544243_f53d9d26c64242e75d381cdc7a3275b9_rle_crop_3697781359_0.png', 1341545188: '1741373849_648119_1341544243_f53d9d26c64242e75d381cdc7a3275b9_rle_crop_3697781361_0.png', 1341545147: '1741373773_475772_1341544224_445fef1dd7584bb65a50f724b688a7ed_rle_crop_3697781593_0.png', 1341545146: '1741373773_475772_1341544243_f53d9d26c64242e75d381cdc7a3275b9_rle_crop_3697781359_0.png', 1341545145: '1741373773_475772_1341544243_f53d9d26c64242e75d381cdc7a3275b9_rle_crop_3697781361_0.png', 1341545108: '1741373814_476282_1341543859_e05c79670621d5d7afa9c64d4eae1da6_rle_crop_3697781573_0.png', 1341544937: '1741373735_475479_1341544695_dccf4a5950fa5681c649c1e947db10cd_rle_crop_3697780731_0.png', 1341544153: '1741373391_465264_1341543585_f7ff9c949c572e41e5f45aff74a5f973_rle_crop_3697773598_0.png', 1341544921: '1741373751_475585_1341544702_44b3bb066865dae32ce9a4d72db0d987_rle_crop_3697780763_0.png', 1341544845: '1741373727_645480_1341544149_de03a10df0082a3cdb64b824b8f6808f_rle_crop_3697780545_0.png', 1341544819: '1741373727_645480_1341544149_de03a10df0082a3cdb64b824b8f6808f_rle_crop_3697780543_0.png', 1341544818: '1741373727_645480_1341544173_68d2006982a18a778d7bc0fa8ca7b805_rle_crop_3697779941_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/68dc10333bcc273fd55df5b15ecf28bc_34488880.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/4b3de720aff6153aae3c3f0f2d38bf91_22389957.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/bfb2a0bad2c4e1c50534fcda170c1d16_65704097.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/0e58380a2da86def093c9de7d8aaf6c1_37163685.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/c53cbedd202d842ec32ef2c1a22cfd14_30166711.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/f170f48640a9cc809e9ba4bfc1892c9f_82773132.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/e76c3b77248cf4b7a871eaccc10ff0e1_74025227.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/914c9efbfca7682e8c378b2c54415cae_67093341.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/19da0cce2e59aa1686a6376b6130c42f_86208583.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/e64a339c5628232956b1313560c13693_28937167.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/914c9efbfca7682e8c378b2c54415cae_60210493.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/19da0cce2e59aa1686a6376b6130c42f_48649668.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/e64a339c5628232956b1313560c13693_77611909.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/59a5a97d7e5339257bef35e1b41311a6_87445574.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/c8945c6324217b98d69cbae99cba4e2a_47575913.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/e9d13fb82438e215cc840657792443fc_72412320.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/da83f5074b62768815afcf02d71f1c09_84421534.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/a05d7d9a2ef803a6803bc617445d0061_83217134.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/0c4f77d961c33751476bd99b6678b949_97338041.png change filename to text .imagette211563571741374078/ imagette211563571741374078/1741373967_650653_1341545070_f4abbf5819ac2729fdba2979d1a442d7_rle_crop_3697782277_0.png.png imagette211563571741374078/1741373849_648119_1341544243_f53d9d26c64242e75d381cdc7a3275b9_rle_crop_3697781359_0.png.png imagette211563571741374078/1741373967_650653_1341545081_3fb50d11547e4d5486b34163682b64b4_rle_crop_3697782261_0.png.png imagette211563571741374078/1741373391_465264_1341543585_f7ff9c949c572e41e5f45aff74a5f973_rle_crop_3697773598_0.png.png imagette211563571741374078/1741373773_475772_1341544224_445fef1dd7584bb65a50f724b688a7ed_rle_crop_3697781593_0.png.png imagette211563571741374078/1741373773_475772_1341544243_f53d9d26c64242e75d381cdc7a3275b9_rle_crop_3697781359_0.png.png imagette211563571741374078/1741373849_648119_1341544224_445fef1dd7584bb65a50f724b688a7ed_rle_crop_3697781593_0.png.png imagette211563571741374078/1741373793_476071_1341543741_8d12889367c2d5bd43066443192c2210_rle_crop_3697782063_0.png.png imagette211563571741374078/1741373735_475479_1341544695_dccf4a5950fa5681c649c1e947db10cd_rle_crop_3697780731_0.png.png imagette211563571741374078/1741373727_645480_1341544173_68d2006982a18a778d7bc0fa8ca7b805_rle_crop_3697779941_0.png.png imagette211563571741374078/1741373773_475772_1341544243_f53d9d26c64242e75d381cdc7a3275b9_rle_crop_3697781361_0.png.png imagette211563571741374078/1741373849_648119_1341544243_f53d9d26c64242e75d381cdc7a3275b9_rle_crop_3697781361_0.png.png imagette211563571741374078/1741373727_645480_1341544149_de03a10df0082a3cdb64b824b8f6808f_rle_crop_3697780543_0.png.png imagette211563571741374078/1741373735_475479_1341544698_62068d94183588d8bc3a0e43b2a31183_rle_crop_3697780719_0.png.png imagette211563571741374078/1741373967_650653_1341545081_3fb50d11547e4d5486b34163682b64b4_rle_crop_3697782253_0.png.png imagette211563571741374078/1741373727_645480_1341544149_de03a10df0082a3cdb64b824b8f6808f_rle_crop_3697780545_0.png.png imagette211563571741374078/1741373751_475585_1341544702_44b3bb066865dae32ce9a4d72db0d987_rle_crop_3697780763_0.png.png imagette211563571741374078/1741373814_476282_1341543859_e05c79670621d5d7afa9c64d4eae1da6_rle_crop_3697781573_0.png.png imagette211563571741374078/1741373967_650653_1341545070_f4abbf5819ac2729fdba2979d1a442d7_rle_crop_3697782268_0.png.png imagette211563571741374078/1741373793_476071_1341543855_ac26884bee46cbcf67a290d3b4dc104d_rle_crop_3697782007_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/4bce6f2f4f7f453d125f52ff9f6b1b80_79570781.png imagette211563571741374078 21156366 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=21156366 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341544246: '1741373414_465480_1341543581_b4c2cbed06279afd3997edbf17a05df7_rle_crop_3697775548_0.png', 1341544247: '1741373414_465480_1341543573_01a11922e3c7e3271aee54ba3f4e6176_rle_crop_3697775896_0.png', 1341544248: '1741373414_465480_1341543556_d91be8da045c905755dfa0b491ca7441_rle_crop_3697776154_0.png', 1341544249: '1741373414_465480_1341543547_83a23517433b8cddf604526362a880fe_rle_crop_3697776513_0.png', 1341544813: '1741373727_645480_1341544169_a8e685384b9c57e51b9df6830347d0b9_rle_crop_3697779979_0.png', 1341544814: '1741373727_645480_1341544161_e71bb4b453280cca17b65b29913a2875_rle_crop_3697780435_0.png', 1341544932: '1741373735_475479_1341544604_8f67e536f2394b2e938aa5849e7f4700_rle_crop_3697780841_0.png', 1341544933: '1741373735_475479_1341544604_8f67e536f2394b2e938aa5849e7f4700_rle_crop_3697780843_0.png', 1341545186: '1741373849_648119_1341544422_ab78d3523a0d062dffad3fa068aee7f8_rle_crop_3697781344_0.png', 1341545187: '1741373849_648119_1341544224_445fef1dd7584bb65a50f724b688a7ed_rle_crop_3697781599_0.png', 1341545211: '1741373793_476071_1341543855_ac26884bee46cbcf67a290d3b4dc104d_rle_crop_3697782010_0.png', 1341545212: '1741373793_476071_1341543647_c83336239b04ca2340f08954d9f71412_rle_crop_3697782075_0.png', 1341545213: '1741373793_476071_1341543647_c83336239b04ca2340f08954d9f71412_rle_crop_3697782077_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/f66b53d4567c0ca4110c56531863ac07_47294484.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/a84909419a1e8206a2498c717aca8545_2480879.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/b76ada20c7198d411beaa0713d28bea7_42418856.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/8e9686d05db07008d229b63c187a25d5_65026924.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/355e75c386bc71e01449478ca983ac1c_47893051.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/031aa05c9141e9706edde6ae97b126ef_20567564.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/eaf5b54cf43d7470bc7e28805a7276af_11433092.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/53f5704cd5c9909a84e447e683a09054_7490502.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/dd90ca9e3f6a453e5e12195cb7307a10_11561043.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/f2a17c4949141df7cdc10e98b1364b75_37878051.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/97263299d6924460796270cdfa8d0cb6_44529238.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/441ad53e10106fe3541c2a92096eb5b9_17527308.png change filename to text .imagette211563661741374079/ imagette211563661741374079/1741373414_465480_1341543581_b4c2cbed06279afd3997edbf17a05df7_rle_crop_3697775548_0.png.png imagette211563661741374079/1741373849_648119_1341544422_ab78d3523a0d062dffad3fa068aee7f8_rle_crop_3697781344_0.png.png imagette211563661741374079/1741373414_465480_1341543556_d91be8da045c905755dfa0b491ca7441_rle_crop_3697776154_0.png.png imagette211563661741374079/1741373793_476071_1341543647_c83336239b04ca2340f08954d9f71412_rle_crop_3697782077_0.png.png imagette211563661741374079/1741373793_476071_1341543855_ac26884bee46cbcf67a290d3b4dc104d_rle_crop_3697782010_0.png.png imagette211563661741374079/1741373727_645480_1341544161_e71bb4b453280cca17b65b29913a2875_rle_crop_3697780435_0.png.png imagette211563661741374079/1741373735_475479_1341544604_8f67e536f2394b2e938aa5849e7f4700_rle_crop_3697780843_0.png.png imagette211563661741374079/1741373414_465480_1341543547_83a23517433b8cddf604526362a880fe_rle_crop_3697776513_0.png.png imagette211563661741374079/1741373849_648119_1341544224_445fef1dd7584bb65a50f724b688a7ed_rle_crop_3697781599_0.png.png imagette211563661741374079/1741373735_475479_1341544604_8f67e536f2394b2e938aa5849e7f4700_rle_crop_3697780841_0.png.png imagette211563661741374079/1741373793_476071_1341543647_c83336239b04ca2340f08954d9f71412_rle_crop_3697782075_0.png.png imagette211563661741374079/1741373414_465480_1341543573_01a11922e3c7e3271aee54ba3f4e6176_rle_crop_3697775896_0.png.png imagette211563661741374079/1741373727_645480_1341544169_a8e685384b9c57e51b9df6830347d0b9_rle_crop_3697779979_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/ad2969d12ff81967f418a8ace48e1b52_8447437.png imagette211563661741374079 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21156349 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21156369,21156370,21156371,21156372,21156373,21156374,21156375,21156376,21156377,21156378,21156379,21156380?tags=Teint_Dans_La_Masse,Carton_brun,environnement,papier,flou,cartonnette,mal_croppe,autre_refus,plastique,kraft,Carton_gris,metal your option no_mail is active, we will not send the real mail to your client args[1341545301] : ('0.08249590606009484',) no score found for photo 1341545301 We are sending mail with results at report@fotonower.com args[1341545297] : ('0.08249590606009484',) no score found for photo 1341545297 We are sending mail with results at report@fotonower.com args[1341545287] : ('0.08249590606009484',) no score found for photo 1341545287 We are sending mail with results at report@fotonower.com args[1341545282] : ('0.08249590606009484',) no score found for photo 1341545282 We are sending mail with results at report@fotonower.com args[1341545207] : ('0.08249590606009484',) no score found for photo 1341545207 We are sending mail with results at report@fotonower.com refus_total : 0.08249590606009484 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=21156349 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_P21156349_07-03-2025_20_01_10.pdf results_Auto_P21156349_07-03-2025_20_01_10.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21156349_07-03-2025_20_01_10.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','21156349','results_Auto_P21156349_07-03-2025_20_01_10.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21156349_07-03-2025_20_01_10.pdf','pdf','','0.31','0.08249590606009484') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21156349]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1341545301, 1341545297, 1341545287, 1341545282, 1341545207] map_info['map_portfolio_photo'] : {21156349: [1341545301, 1341545297, 1341545287, 1341545282, 1341545207, 1341545096, 1341545081, 1341545070, 1341545063, 1341544999, 1341544963, 1341544914, 1341544864, 1341544844, 1341544777, 1341544776, 1341544768, 1341544749, 1341544746, 1341544742, 1341544733, 1341544726, 1341544702, 1341544698, 1341544695, 1341544688, 1341544604, 1341544422, 1341544350, 1341544253, 1341544243, 1341544230, 1341544224, 1341544218, 1341544211, 1341544177, 1341544173, 1341544169, 1341544161, 1341544149, 1341544112, 1341544109, 1341544104, 1341544021, 1341544016, 1341543859, 1341543855, 1341543818, 1341543741, 1341543647, 1341543585, 1341543581, 1341543573, 1341543567, 1341543556, 1341543547, 1341543441, 1341543410]} final : False mtd_id 4302 list_pids : [1341545301, 1341545297, 1341545287, 1341545282, 1341545207] 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, '2649458') ('4302', '21156349', '1341545301', None, None, None, None, None, '2649458') ('4302', None, None, None, None, None, None, None, '2649458') ('4302', '21156349', '1341545297', None, None, None, None, None, '2649458') ('4302', None, None, None, None, None, None, None, '2649458') ('4302', '21156349', '1341545287', None, None, None, None, None, '2649458') ('4302', None, None, None, None, None, None, None, '2649458') ('4302', '21156349', '1341545282', None, None, None, None, None, '2649458') ('4302', None, None, None, None, None, None, None, '2649458') ('4302', '21156349', '1341545207', None, None, None, None, None, '2649458') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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', '21156349', '1341545301', None, None, None, None, None, '2649458'), ('4302', '21156349', '1341545297', None, None, None, None, None, '2649458'), ('4302', '21156349', '1341545287', None, None, None, None, None, '2649458'), ('4302', '21156349', '1341545282', None, None, None, None, None, '2649458'), ('4302', '21156349', '1341545207', None, None, None, None, None, '2649458')] time used for this insertion : 0.26033616065979004 save_final save missing photos in datou_result : time spend for datou_step_exec : 18.080058813095093 time spend to save output : 0.2607235908508301 total time spend for step 4 : 18.340782403945923 step5:split_time_score Fri Mar 7 20:01:28 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 : ['21156349'] 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 : [('21156349',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21156349) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1341545301: {'path': 'temp/1741374069_329416_1341545301_ec0cd434e12942de4538a38c4a212c60.jpg', 'extension': 'jpg'}, 1341545207: {'path': 'temp/1741374069_329416_1341545207_ccf7728b3c2d9ea4625ca26d73b67b5a.jpg', 'extension': 'jpg'}, 1341545282: {'path': 'temp/1741374069_329416_1341545282_7b5bdb1b097784ca0dca61611eb5f37c.jpg', 'extension': 'jpg'}, 1341545287: {'path': 'temp/1741374069_329416_1341545287_fa3a9cdbe820c981c4235bec1b57bc9f.jpg', 'extension': 'jpg'}, 1341545297: {'path': 'temp/1741374069_329416_1341545297_43c2541b7f52370522d5b274e95a9940.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 = 21156349; (('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 = 21156349 group by h (('19', 58),) 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=21156349 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 (21156349) 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 (21156349) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07032025 21156349 Nombre de photos uploadées : 58 / 23040 (0%) 07032025 21156349 Nombre de photos taguées (types de déchets): 0 / 58 (0%) 07032025 21156349 Nombre de photos taguées (volume) : 0 / 58 (0%) [{'photo_id': 1341543441, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/cc11b07ec734293a7abd3d85dc1cc479.jpg', 'username': None, 'uploaded_at': 1741373190, 'text': 'image_07032025_19_45_05_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1341543410, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/2edb87adeb3e546591d4b82fa364653c.jpg', 'username': None, 'uploaded_at': 1741373190, 'text': 'image_07032025_19_45_44_010133m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1341543585, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/f7ff9c949c572e41e5f45aff74a5f973.jpg', 'username': None, 'uploaded_at': 1741373250, 'text': 'image_07032025_19_45_54_010131m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1341543581, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/b4c2cbed06279afd3997edbf17a05df7.jpg', 'username': None, 'uploaded_at': 1741373250, 'text': 'image_07032025_19_46_05_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ?????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0020835399627685547 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21156349, '2025-03-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1646019,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.021915435791015625 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= 1646019 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1646019, 'dashboard_run_id': 1656284, 'mtr_portfolio_id': 21154561, 'dashboard_result_id': 9293266, '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_P21154561_07-03-2025_19_32_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21154603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21154604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21154605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21154606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21154607, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21154608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21154609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21154610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21154611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21154612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21154613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21154614, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1656284, 'mtr_portfolio_id': 21155517, 'dashboard_result_id': 9293267, '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_P21155517_07-03-2025_19_49_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21155598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21155599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21155600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21155601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21155602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21155603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21155610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21155617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21155618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21155619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21155620, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21155621, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1656284, 'mtr_portfolio_id': 21156349, 'dashboard_result_id': 9293268, '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_P21156349_07-03-2025_19_58_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21156356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21156357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21156358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21156359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21156360, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21156361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21156362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21156363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21156364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21156365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21156366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21156367, '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 = 21154561 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': 2649345, 'mtr_portfolio_id': 21154561, 'created_at': datetime.datetime(2025, 3, 7, 19, 32, 30), 'result': '0.08132263102757366', 'result_long': None, 'result_double': None}] Qualite : 0.08132263102757366 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21154561 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21154561_07-03-2025_19_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21154561 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_P21154561_07-03-2025_19_32_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21154603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21154604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21154605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21154606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21154607, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21154608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21154609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21154610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21154611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21154612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21154613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21154614, 'pht': 3726}}" where mtr_portfolio_id = 21154561 and dashboard_run_id = 1656284 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`=21154561 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9293266, 0.08132263102757366, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21154561_07-03-2025_19_32_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21154603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21154604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21154605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21154606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21154607, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21154608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21154609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21154610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21154611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21154612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21154613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21154614, '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 = 21155517 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': 2649406, 'mtr_portfolio_id': 21155517, 'created_at': datetime.datetime(2025, 3, 7, 19, 49, 29), 'result': '0.07323929395910887', 'result_long': None, 'result_double': None}] Qualite : 0.07323929395910887 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21155517 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21155517_07-03-2025_19_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21155517 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_P21155517_07-03-2025_19_49_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21155598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21155599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21155600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21155601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21155602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21155603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21155610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21155617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21155618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21155619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21155620, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21155621, 'pht': 3726}}" where mtr_portfolio_id = 21155517 and dashboard_run_id = 1656284 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`=21155517 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9293267, 0.07323929395910887, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21155517_07-03-2025_19_49_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21155598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21155599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21155600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21155601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21155602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21155603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21155610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21155617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21155618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21155619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21155620, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21155621, '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 = 21156349 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': 2649458, 'mtr_portfolio_id': 21156349, 'created_at': datetime.datetime(2025, 3, 7, 20, 1, 9), 'result': '0.08249590606009484', 'result_long': None, 'result_double': None}] Qualite : 0.08249590606009484 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21156349 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21156349_07-03-2025_20_01_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21156349 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_P21156349_07-03-2025_20_01_10.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21156356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21156357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21156358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21156359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21156360, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21156361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21156362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21156363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21156364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21156365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21156366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21156367, 'pht': 3726}}" where mtr_portfolio_id = 21156349 and dashboard_run_id = 1656284 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`=21156349 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9293268, 0.08249590606009484, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21156349_07-03-2025_20_01_10.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21156356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21156357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21156358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21156359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21156360, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21156361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21156362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21156363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21156364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21156365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21156366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21156367, '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 (21154561,21155517,21156349) result : ((1341536965,), (1341536977,), (1341537073,), (1341537806,), (1341537877,), (1341537889,), (1341537894,), (1341537901,), (1341537906,), (1341538218,), (1341538300,), (1341538346,), (1341538350,), (1341538367,), (1341538369,), (1341538459,), (1341538469,), (1341538475,), (1341538480,), (1341538485,), (1341538570,), (1341538658,), (1341538827,), (1341538868,), (1341538928,), (1341539238,), (1341539242,), (1341539247,), (1341539259,), (1341539266,), (1341539277,), (1341539633,), (1341539689,), (1341539701,), (1341539705,), (1341539711,), (1341539999,), (1341540028,), (1341540071,), (1341540097,), (1341540101,), (1341540104,), (1341540297,), (1341540305,), (1341540308,), (1341540333,), (1341540431,), (1341540447,), (1341540460,), (1341540465,), (1341540468,), (1341540510,), (1341540522,), (1341540526,), (1341540529,), (1341540530,), (1341540560,), (1341540564,), (1341540631,), (1341540980,), (1341540986,), (1341541025,), (1341541164,), (1341541198,), (1341541204,), (1341541208,), (1341541288,), (1341541295,), (1341541300,), (1341541542,), (1341541458,), (1341541461,), (1341541500,), (1341541506,), (1341541528,), (1341541656,), (1341541669,), (1341541674,), (1341541710,), (1341541720,), (1341541774,), (1341541779,), (1341541790,), (1341541801,), (1341541813,), (1341541818,), (1341541894,), (1341541900,), (1341541909,), (1341541958,), (1341541992,), (1341542033,), (1341542038,), (1341542041,), (1341542049,), (1341542055,), (1341542111,), (1341542119,), (1341542125,), (1341542135,), (1341542346,), (1341542425,), (1341542497,), (1341542500,), (1341542503,), (1341542515,), (1341542582,), (1341542587,), (1341542595,), (1341542597,), (1341542695,), (1341542700,), (1341542706,), (1341542713,), (1341542718,), (1341542722,), (1341542765,), (1341542780,), (1341542786,), (1341542820,), (1341542828,), (1341542916,), (1341542922,), (1341542928,), (1341542991,), (1341543028,), (1341543108,), (1341543120,), (1341543126,), (1341543132,), (1341543136,), (1341543158,), (1341543161,), (1341543166,), (1341543170,), (1341543221,), (1341543224,), (1341543233,), (1341543236,), (1341543240,), (1341543244,), (1341543298,), (1341543304,), (1341543309,), (1341543314,), (1341543320,), (1341543323,), (1341543445,), (1341543410,), (1341543441,), (1341543547,), (1341543556,), (1341543567,), (1341543573,), (1341543581,), (1341543585,), (1341543647,), (1341543741,), (1341543818,), (1341543855,), (1341543859,), (1341544016,), (1341544021,), (1341544104,), (1341544109,), (1341544112,), (1341544149,), (1341544161,), (1341544169,), (1341544173,), (1341544177,), (1341544211,), (1341544218,), (1341544224,), (1341544230,), (1341544243,), (1341544253,), (1341544350,), (1341544422,), (1341544604,), (1341544688,), (1341544695,), (1341544698,), (1341544702,), (1341544726,), (1341544733,), (1341544742,), (1341544746,), (1341544749,), (1341544768,), (1341544776,), (1341544777,), (1341544844,), (1341544864,), (1341544914,), (1341544963,), (1341544999,), (1341545063,), (1341545070,), (1341545081,), (1341545096,), (1341545207,), (1341545282,), (1341545287,), (1341545297,), (1341545301,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07032025': {'nb_upload': 58, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21156349]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1341545301, 1341545297, 1341545287, 1341545282, 1341545207] map_info['map_portfolio_photo'] : {21156349: [1341545301, 1341545297, 1341545287, 1341545282, 1341545207, 1341545096, 1341545081, 1341545070, 1341545063, 1341544999, 1341544963, 1341544914, 1341544864, 1341544844, 1341544777, 1341544776, 1341544768, 1341544749, 1341544746, 1341544742, 1341544733, 1341544726, 1341544702, 1341544698, 1341544695, 1341544688, 1341544604, 1341544422, 1341544350, 1341544253, 1341544243, 1341544230, 1341544224, 1341544218, 1341544211, 1341544177, 1341544173, 1341544169, 1341544161, 1341544149, 1341544112, 1341544109, 1341544104, 1341544021, 1341544016, 1341543859, 1341543855, 1341543818, 1341543741, 1341543647, 1341543585, 1341543581, 1341543573, 1341543567, 1341543556, 1341543547, 1341543441, 1341543410]} final : True mtd_id 4302 list_pids : [1341545301, 1341545297, 1341545287, 1341545282, 1341545207] Looping around the photos to save general results len do output : 1 /21156349Didn'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, '2649458') ('4302', '21156349', '1341545301', None, None, None, None, None, '2649458') ('4302', None, None, None, None, None, None, None, '2649458') ('4302', '21156349', '1341545297', None, None, None, None, None, '2649458') ('4302', None, None, None, None, None, None, None, '2649458') ('4302', '21156349', '1341545287', None, None, None, None, None, '2649458') ('4302', None, None, None, None, None, None, None, '2649458') ('4302', '21156349', '1341545282', None, None, None, None, None, '2649458') ('4302', None, None, None, None, None, None, None, '2649458') ('4302', '21156349', '1341545207', None, None, None, None, None, '2649458') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21156349', 'None', None, None, None, None, '2649458'), ('4302', '21156349', '1341545301', None, None, None, None, None, '2649458'), ('4302', '21156349', '1341545297', None, None, None, None, None, '2649458'), ('4302', '21156349', '1341545287', None, None, None, None, None, '2649458'), ('4302', '21156349', '1341545282', None, None, None, None, None, '2649458'), ('4302', '21156349', '1341545207', None, None, None, None, None, '2649458')] time used for this insertion : 0.012689828872680664 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5157933235168457 time spend to save output : 0.012981891632080078 total time spend for step 5 : 1.5287752151489258 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 (2649458) 2.23user 2.10system 0:35.52elapsed 12%CPU (0avgtext+0avgdata 159120maxresident)k 240inputs+16776outputs (12major+75409minor)pagefaults 0swaps