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 : 2795587 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 (2764912) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2764912) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22457415 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2764912'] with mtr_portfolio_ids : ['22457415'] and first list_photo_ids : [] new path : /proc/2795587/ Name: python3 Umask: 0002 State: R (running) Tgid: 2795587 Ngid: 0 Pid: 2795587 PPid: 2795586 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2795587 NSpid: 2795587 NSpgid: 2792759 NSsid: 2792759 VmPeak: 943376 kB VmSize: 943376 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98856 kB VmRSS: 98856 kB RssAnon: 60192 kB RssFile: 38664 kB RssShmem: 0 kB VmData: 702124 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 536 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 185 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2795587', 'Ngid': '0', 'Pid': '2795587', 'PPid': '2795586', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2795587', 'NSpid': '2795587', 'NSpgid': '2792759', 'NSsid': '2792759', 'VmPeak': '943376 kB', 'VmSize': '943376 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98856 kB', 'VmRSS': '98856 kB', 'RssAnon': '60192 kB', 'RssFile': '38664 kB', 'RssShmem': '0 kB', 'VmData': '702124 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '536 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '185'} ('datou_batch_current', '2795587', '943376', '0', '943376', '702124', '98856', b'', 'marlene', '2764912') 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 (22457415) 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 (2764912 ) ) 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 (22457415) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1353948275, 'portfolio_id': 22457415}, {'photo_id': 1353948271, 'portfolio_id': 22457415}, {'photo_id': 1353948266, 'portfolio_id': 22457415}, {'photo_id': 1353948261, 'portfolio_id': 22457415}, {'photo_id': 1353948255, 'portfolio_id': 22457415}, {'photo_id': 1353948124, 'portfolio_id': 22457415}, {'photo_id': 1353948116, 'portfolio_id': 22457415}, {'photo_id': 1353948109, 'portfolio_id': 22457415}, {'photo_id': 1353948104, 'portfolio_id': 22457415}, {'photo_id': 1353948070, 'portfolio_id': 22457415}, {'photo_id': 1353948067, 'portfolio_id': 22457415}, {'photo_id': 1353948063, 'portfolio_id': 22457415}, {'photo_id': 1353948058, 'portfolio_id': 22457415}, {'photo_id': 1353948053, 'portfolio_id': 22457415}, {'photo_id': 1353948048, 'portfolio_id': 22457415}, {'photo_id': 1353948017, 'portfolio_id': 22457415}, {'photo_id': 1353948012, 'portfolio_id': 22457415}, {'photo_id': 1353948007, 'portfolio_id': 22457415}, {'photo_id': 1353948002, 'portfolio_id': 22457415}, {'photo_id': 1353947998, 'portfolio_id': 22457415}, {'photo_id': 1353947962, 'portfolio_id': 22457415}, {'photo_id': 1353947959, 'portfolio_id': 22457415}, {'photo_id': 1353947955, 'portfolio_id': 22457415}, {'photo_id': 1353947951, 'portfolio_id': 22457415}, {'photo_id': 1353947948, 'portfolio_id': 22457415}, {'photo_id': 1353947919, 'portfolio_id': 22457415}, {'photo_id': 1353947915, 'portfolio_id': 22457415}, {'photo_id': 1353947910, 'portfolio_id': 22457415}, {'photo_id': 1353947905, 'portfolio_id': 22457415}, {'photo_id': 1353947898, 'portfolio_id': 22457415}, {'photo_id': 1353947859, 'portfolio_id': 22457415}, {'photo_id': 1353947822, 'portfolio_id': 22457415}, {'photo_id': 1353947792, 'portfolio_id': 22457415}, {'photo_id': 1353947734, 'portfolio_id': 22457415}, {'photo_id': 1353947702, 'portfolio_id': 22457415}, {'photo_id': 1353947609, 'portfolio_id': 22457415}, {'photo_id': 1353947597, 'portfolio_id': 22457415}, {'photo_id': 1353947590, 'portfolio_id': 22457415}, {'photo_id': 1353947583, 'portfolio_id': 22457415}, {'photo_id': 1353947556, 'portfolio_id': 22457415}, {'photo_id': 1353947552, 'portfolio_id': 22457415}, {'photo_id': 1353947547, 'portfolio_id': 22457415}, {'photo_id': 1353947541, 'portfolio_id': 22457415}, {'photo_id': 1353947535, 'portfolio_id': 22457415}, {'photo_id': 1353947517, 'portfolio_id': 22457415}, {'photo_id': 1353947240, 'portfolio_id': 22457415}, {'photo_id': 1353947232, 'portfolio_id': 22457415}, {'photo_id': 1353947217, 'portfolio_id': 22457415}, {'photo_id': 1353947212, 'portfolio_id': 22457415}, {'photo_id': 1353947207, 'portfolio_id': 22457415}, {'photo_id': 1353947162, 'portfolio_id': 22457415}, {'photo_id': 1353947158, 'portfolio_id': 22457415}, {'photo_id': 1353947154, 'portfolio_id': 22457415}, {'photo_id': 1353947149, 'portfolio_id': 22457415}, {'photo_id': 1353947144, 'portfolio_id': 22457415}, {'photo_id': 1353947139, 'portfolio_id': 22457415}, {'photo_id': 1353947102, 'portfolio_id': 22457415}, {'photo_id': 1353947094, 'portfolio_id': 22457415}, {'photo_id': 1353947089, 'portfolio_id': 22457415}, {'photo_id': 1353947007, 'portfolio_id': 22457415}, {'photo_id': 1353946785, 'portfolio_id': 22457415}, {'photo_id': 1353946781, 'portfolio_id': 22457415}, {'photo_id': 1353946775, 'portfolio_id': 22457415}] map_portfolio_id_photo_id: {22457415: [1353948275, 1353948271, 1353948266, 1353948261, 1353948255, 1353948124, 1353948116, 1353948109, 1353948104, 1353948070, 1353948067, 1353948063, 1353948058, 1353948053, 1353948048, 1353948017, 1353948012, 1353948007, 1353948002, 1353947998, 1353947962, 1353947959, 1353947955, 1353947951, 1353947948, 1353947919, 1353947915, 1353947910, 1353947905, 1353947898, 1353947859, 1353947822, 1353947792, 1353947734, 1353947702, 1353947609, 1353947597, 1353947590, 1353947583, 1353947556, 1353947552, 1353947547, 1353947541, 1353947535, 1353947517, 1353947240, 1353947232, 1353947217, 1353947212, 1353947207, 1353947162, 1353947158, 1353947154, 1353947149, 1353947144, 1353947139, 1353947102, 1353947094, 1353947089, 1353947007, 1353946785, 1353946781, 1353946775]} ##### 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.014850854873657227 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Apr 28 16:44:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22457415) 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 : 22457415 get user id for portfolio 22457415 get sub ptf for main ptf 22457415, type 3726 and hashtags ['environnement', 'autre_refus', 'cartonnette', 'Carton_gris', 'metal', 'kraft', 'mal_croppe', 'plastique', 'Teint_Dans_La_Masse', 'papier', 'Carton_brun', 'flou'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22457415 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','cartonnette','Carton_gris','metal','kraft','mal_croppe','plastique','Teint_Dans_La_Masse','papier','Carton_brun','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22457415 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','cartonnette','Carton_gris','metal','kraft','mal_croppe','plastique','Teint_Dans_La_Masse','papier','Carton_brun','flou')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22457415, 'sub_port_id': 22457439, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901077, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 56)}, 'environnement': {'main_port_id': 22457415, 'sub_port_id': 22457440, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901078, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 56)}, 'cartonnette': {'main_port_id': 22457415, 'sub_port_id': 22457441, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901079, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 56)}, 'papier': {'main_port_id': 22457415, 'sub_port_id': 22457442, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901080, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 56)}, 'mal_croppe': {'main_port_id': 22457415, 'sub_port_id': 22457443, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901081, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 56)}, 'flou': {'main_port_id': 22457415, 'sub_port_id': 22457444, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901082, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 22457415, 'sub_port_id': 22457445, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901083, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 56)}, 'plastique': {'main_port_id': 22457415, 'sub_port_id': 22457446, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901084, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 56)}, 'metal': {'main_port_id': 22457415, 'sub_port_id': 22457447, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901085, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 56)}, 'Carton_gris': {'main_port_id': 22457415, 'sub_port_id': 22457448, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901086, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 56)}, 'autre_refus': {'main_port_id': 22457415, 'sub_port_id': 22457449, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901087, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 56)}, 'kraft': {'main_port_id': 22457415, 'sub_port_id': 22457450, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901088, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22457439 , 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=22457415 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 (22457439) result : ((1353947679,), (1353947680,), (1353947890,), (1353947891,), (1353947903,), (1353947904,), (1353947988,), (1353947989,), (1353947996,), (1353948105,), (1353948106,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22457415) result : ((1353946775,), (1353946781,), (1353946785,), (1353947007,), (1353947089,), (1353947094,), (1353947102,), (1353947139,), (1353947144,), (1353947149,), (1353947154,), (1353947158,), (1353947162,), (1353947207,), (1353947212,), (1353947217,), (1353947232,), (1353947240,), (1353947517,), (1353947535,), (1353947541,), (1353947547,), (1353947552,), (1353947556,), (1353947583,), (1353947590,), (1353947597,), (1353947609,), (1353947702,), (1353947734,), (1353947792,), (1353947822,), (1353947859,), (1353947898,), (1353947905,), (1353947910,), (1353947915,), (1353947919,), (1353947948,), (1353947951,), (1353947955,), (1353947959,), (1353947962,), (1353947998,), (1353948002,), (1353948007,), (1353948012,), (1353948017,), (1353948048,), (1353948053,), (1353948058,), (1353948063,), (1353948067,), (1353948070,), (1353948104,), (1353948109,), (1353948116,), (1353948124,), (1353948255,), (1353948261,), (1353948266,), (1353948271,), (1353948275,)) 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 22457440 , 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=22457415 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 (22457440) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22457415) result : ((1353946775,), (1353946781,), (1353946785,), (1353947007,), (1353947089,), (1353947094,), (1353947102,), (1353947139,), (1353947144,), (1353947149,), (1353947154,), (1353947158,), (1353947162,), (1353947207,), (1353947212,), (1353947217,), (1353947232,), (1353947240,), (1353947517,), (1353947535,), (1353947541,), (1353947547,), (1353947552,), (1353947556,), (1353947583,), (1353947590,), (1353947597,), (1353947609,), (1353947702,), (1353947734,), (1353947792,), (1353947822,), (1353947859,), (1353947898,), (1353947905,), (1353947910,), (1353947915,), (1353947919,), (1353947948,), (1353947951,), (1353947955,), (1353947959,), (1353947962,), (1353947998,), (1353948002,), (1353948007,), (1353948012,), (1353948017,), (1353948048,), (1353948053,), (1353948058,), (1353948063,), (1353948067,), (1353948070,), (1353948104,), (1353948109,), (1353948116,), (1353948124,), (1353948255,), (1353948261,), (1353948266,), (1353948271,), (1353948275,)) 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 22457441 , 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=22457415 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 (22457441) result : ((1353947674,), (1353947986,), (1353947987,), (1353948122,), (1353948123,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22457415) result : ((1353946775,), (1353946781,), (1353946785,), (1353947007,), (1353947089,), (1353947094,), (1353947102,), (1353947139,), (1353947144,), (1353947149,), (1353947154,), (1353947158,), (1353947162,), (1353947207,), (1353947212,), (1353947217,), (1353947232,), (1353947240,), (1353947517,), (1353947535,), (1353947541,), (1353947547,), (1353947552,), (1353947556,), (1353947583,), (1353947590,), (1353947597,), (1353947609,), (1353947702,), (1353947734,), (1353947792,), (1353947822,), (1353947859,), (1353947898,), (1353947905,), (1353947910,), (1353947915,), (1353947919,), (1353947948,), (1353947951,), (1353947955,), (1353947959,), (1353947962,), (1353947998,), (1353948002,), (1353948007,), (1353948012,), (1353948017,), (1353948048,), (1353948053,), (1353948058,), (1353948063,), (1353948067,), (1353948070,), (1353948104,), (1353948109,), (1353948116,), (1353948124,), (1353948255,), (1353948261,), (1353948266,), (1353948271,), (1353948275,)) 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 22457442 , 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=22457415 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 (22457442) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22457415) result : ((1353946775,), (1353946781,), (1353946785,), (1353947007,), (1353947089,), (1353947094,), (1353947102,), (1353947139,), (1353947144,), (1353947149,), (1353947154,), (1353947158,), (1353947162,), (1353947207,), (1353947212,), (1353947217,), (1353947232,), (1353947240,), (1353947517,), (1353947535,), (1353947541,), (1353947547,), (1353947552,), (1353947556,), (1353947583,), (1353947590,), (1353947597,), (1353947609,), (1353947702,), (1353947734,), (1353947792,), (1353947822,), (1353947859,), (1353947898,), (1353947905,), (1353947910,), (1353947915,), (1353947919,), (1353947948,), (1353947951,), (1353947955,), (1353947959,), (1353947962,), (1353947998,), (1353948002,), (1353948007,), (1353948012,), (1353948017,), (1353948048,), (1353948053,), (1353948058,), (1353948063,), (1353948067,), (1353948070,), (1353948104,), (1353948109,), (1353948116,), (1353948124,), (1353948255,), (1353948261,), (1353948266,), (1353948271,), (1353948275,)) 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 22457443 , 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=22457415 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 (22457443) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22457415) result : ((1353946775,), (1353946781,), (1353946785,), (1353947007,), (1353947089,), (1353947094,), (1353947102,), (1353947139,), (1353947144,), (1353947149,), (1353947154,), (1353947158,), (1353947162,), (1353947207,), (1353947212,), (1353947217,), (1353947232,), (1353947240,), (1353947517,), (1353947535,), (1353947541,), (1353947547,), (1353947552,), (1353947556,), (1353947583,), (1353947590,), (1353947597,), (1353947609,), (1353947702,), (1353947734,), (1353947792,), (1353947822,), (1353947859,), (1353947898,), (1353947905,), (1353947910,), (1353947915,), (1353947919,), (1353947948,), (1353947951,), (1353947955,), (1353947959,), (1353947962,), (1353947998,), (1353948002,), (1353948007,), (1353948012,), (1353948017,), (1353948048,), (1353948053,), (1353948058,), (1353948063,), (1353948067,), (1353948070,), (1353948104,), (1353948109,), (1353948116,), (1353948124,), (1353948255,), (1353948261,), (1353948266,), (1353948271,), (1353948275,)) 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 22457444 , 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=22457415 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 (22457444) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22457415) result : ((1353946775,), (1353946781,), (1353946785,), (1353947007,), (1353947089,), (1353947094,), (1353947102,), (1353947139,), (1353947144,), (1353947149,), (1353947154,), (1353947158,), (1353947162,), (1353947207,), (1353947212,), (1353947217,), (1353947232,), (1353947240,), (1353947517,), (1353947535,), (1353947541,), (1353947547,), (1353947552,), (1353947556,), (1353947583,), (1353947590,), (1353947597,), (1353947609,), (1353947702,), (1353947734,), (1353947792,), (1353947822,), (1353947859,), (1353947898,), (1353947905,), (1353947910,), (1353947915,), (1353947919,), (1353947948,), (1353947951,), (1353947955,), (1353947959,), (1353947962,), (1353947998,), (1353948002,), (1353948007,), (1353948012,), (1353948017,), (1353948048,), (1353948053,), (1353948058,), (1353948063,), (1353948067,), (1353948070,), (1353948104,), (1353948109,), (1353948116,), (1353948124,), (1353948255,), (1353948261,), (1353948266,), (1353948271,), (1353948275,)) 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 22457445 , 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=22457415 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 (22457445) result : ((1353947884,), (1353947885,), (1353947886,), (1353947899,), (1353947935,), (1353947937,), (1353947978,), (1353947979,), (1353947980,), (1353947981,), (1353948100,), (1353948101,), (1353948102,), (1353948114,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22457415) result : ((1353946775,), (1353946781,), (1353946785,), (1353947007,), (1353947089,), (1353947094,), (1353947102,), (1353947139,), (1353947144,), (1353947149,), (1353947154,), (1353947158,), (1353947162,), (1353947207,), (1353947212,), (1353947217,), (1353947232,), (1353947240,), (1353947517,), (1353947535,), (1353947541,), (1353947547,), (1353947552,), (1353947556,), (1353947583,), (1353947590,), (1353947597,), (1353947609,), (1353947702,), (1353947734,), (1353947792,), (1353947822,), (1353947859,), (1353947898,), (1353947905,), (1353947910,), (1353947915,), (1353947919,), (1353947948,), (1353947951,), (1353947955,), (1353947959,), (1353947962,), (1353947998,), (1353948002,), (1353948007,), (1353948012,), (1353948017,), (1353948048,), (1353948053,), (1353948058,), (1353948063,), (1353948067,), (1353948070,), (1353948104,), (1353948109,), (1353948116,), (1353948124,), (1353948255,), (1353948261,), (1353948266,), (1353948271,), (1353948275,)) 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 22457446 , 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=22457415 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 (22457446) result : ((1353947681,), (1353947682,), (1353947683,), (1353947893,), (1353947894,), (1353947990,), (1353947997,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22457415) result : ((1353946775,), (1353946781,), (1353946785,), (1353947007,), (1353947089,), (1353947094,), (1353947102,), (1353947139,), (1353947144,), (1353947149,), (1353947154,), (1353947158,), (1353947162,), (1353947207,), (1353947212,), (1353947217,), (1353947232,), (1353947240,), (1353947517,), (1353947535,), (1353947541,), (1353947547,), (1353947552,), (1353947556,), (1353947583,), (1353947590,), (1353947597,), (1353947609,), (1353947702,), (1353947734,), (1353947792,), (1353947822,), (1353947859,), (1353947898,), (1353947905,), (1353947910,), (1353947915,), (1353947919,), (1353947948,), (1353947951,), (1353947955,), (1353947959,), (1353947962,), (1353947998,), (1353948002,), (1353948007,), (1353948012,), (1353948017,), (1353948048,), (1353948053,), (1353948058,), (1353948063,), (1353948067,), (1353948070,), (1353948104,), (1353948109,), (1353948116,), (1353948124,), (1353948255,), (1353948261,), (1353948266,), (1353948271,), (1353948275,)) 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 22457447 , 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=22457415 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 (22457447) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22457415) result : ((1353946775,), (1353946781,), (1353946785,), (1353947007,), (1353947089,), (1353947094,), (1353947102,), (1353947139,), (1353947144,), (1353947149,), (1353947154,), (1353947158,), (1353947162,), (1353947207,), (1353947212,), (1353947217,), (1353947232,), (1353947240,), (1353947517,), (1353947535,), (1353947541,), (1353947547,), (1353947552,), (1353947556,), (1353947583,), (1353947590,), (1353947597,), (1353947609,), (1353947702,), (1353947734,), (1353947792,), (1353947822,), (1353947859,), (1353947898,), (1353947905,), (1353947910,), (1353947915,), (1353947919,), (1353947948,), (1353947951,), (1353947955,), (1353947959,), (1353947962,), (1353947998,), (1353948002,), (1353948007,), (1353948012,), (1353948017,), (1353948048,), (1353948053,), (1353948058,), (1353948063,), (1353948067,), (1353948070,), (1353948104,), (1353948109,), (1353948116,), (1353948124,), (1353948255,), (1353948261,), (1353948266,), (1353948271,), (1353948275,)) 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 22457448 , 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=22457415 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 (22457448) result : ((1353947887,), (1353947888,), (1353947889,), (1353947901,), (1353947985,), (1353947993,), (1353948119,), (1353948120,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22457415) result : ((1353946775,), (1353946781,), (1353946785,), (1353947007,), (1353947089,), (1353947094,), (1353947102,), (1353947139,), (1353947144,), (1353947149,), (1353947154,), (1353947158,), (1353947162,), (1353947207,), (1353947212,), (1353947217,), (1353947232,), (1353947240,), (1353947517,), (1353947535,), (1353947541,), (1353947547,), (1353947552,), (1353947556,), (1353947583,), (1353947590,), (1353947597,), (1353947609,), (1353947702,), (1353947734,), (1353947792,), (1353947822,), (1353947859,), (1353947898,), (1353947905,), (1353947910,), (1353947915,), (1353947919,), (1353947948,), (1353947951,), (1353947955,), (1353947959,), (1353947962,), (1353947998,), (1353948002,), (1353948007,), (1353948012,), (1353948017,), (1353948048,), (1353948053,), (1353948058,), (1353948063,), (1353948067,), (1353948070,), (1353948104,), (1353948109,), (1353948116,), (1353948124,), (1353948255,), (1353948261,), (1353948266,), (1353948271,), (1353948275,)) 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 22457449 , 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=22457415 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 (22457449) result : ((1353947666,), (1353947667,), (1353947983,), (1353948103,), (1353948115,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22457415) result : ((1353946775,), (1353946781,), (1353946785,), (1353947007,), (1353947089,), (1353947094,), (1353947102,), (1353947139,), (1353947144,), (1353947149,), (1353947154,), (1353947158,), (1353947162,), (1353947207,), (1353947212,), (1353947217,), (1353947232,), (1353947240,), (1353947517,), (1353947535,), (1353947541,), (1353947547,), (1353947552,), (1353947556,), (1353947583,), (1353947590,), (1353947597,), (1353947609,), (1353947702,), (1353947734,), (1353947792,), (1353947822,), (1353947859,), (1353947898,), (1353947905,), (1353947910,), (1353947915,), (1353947919,), (1353947948,), (1353947951,), (1353947955,), (1353947959,), (1353947962,), (1353947998,), (1353948002,), (1353948007,), (1353948012,), (1353948017,), (1353948048,), (1353948053,), (1353948058,), (1353948063,), (1353948067,), (1353948070,), (1353948104,), (1353948109,), (1353948116,), (1353948124,), (1353948255,), (1353948261,), (1353948266,), (1353948271,), (1353948275,)) 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 22457450 , 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=22457415 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 (22457450) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22457415) result : ((1353946775,), (1353946781,), (1353946785,), (1353947007,), (1353947089,), (1353947094,), (1353947102,), (1353947139,), (1353947144,), (1353947149,), (1353947154,), (1353947158,), (1353947162,), (1353947207,), (1353947212,), (1353947217,), (1353947232,), (1353947240,), (1353947517,), (1353947535,), (1353947541,), (1353947547,), (1353947552,), (1353947556,), (1353947583,), (1353947590,), (1353947597,), (1353947609,), (1353947702,), (1353947734,), (1353947792,), (1353947822,), (1353947859,), (1353947898,), (1353947905,), (1353947910,), (1353947915,), (1353947919,), (1353947948,), (1353947951,), (1353947955,), (1353947959,), (1353947962,), (1353947998,), (1353948002,), (1353948007,), (1353948012,), (1353948017,), (1353948048,), (1353948053,), (1353948058,), (1353948063,), (1353948067,), (1353948070,), (1353948104,), (1353948109,), (1353948116,), (1353948124,), (1353948255,), (1353948261,), (1353948266,), (1353948271,), (1353948275,)) 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`=22457415 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','cartonnette','Carton_gris','metal','kraft','mal_croppe','plastique','Teint_Dans_La_Masse','papier','Carton_brun','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22457415 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','cartonnette','Carton_gris','metal','kraft','mal_croppe','plastique','Teint_Dans_La_Masse','papier','Carton_brun','flou')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22457415, 'sub_port_id': 22457451, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901089, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 58)}, 'environnement': {'main_port_id': 22457415, 'sub_port_id': 22457452, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901090, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 58)}, 'cartonnette': {'main_port_id': 22457415, 'sub_port_id': 22457453, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901091, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 58)}, 'papier': {'main_port_id': 22457415, 'sub_port_id': 22457454, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901092, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 58)}, 'mal_croppe': {'main_port_id': 22457415, 'sub_port_id': 22457455, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901093, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 58)}, 'flou': {'main_port_id': 22457415, 'sub_port_id': 22457456, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901094, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22457415, 'sub_port_id': 22457457, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901095, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 58)}, 'plastique': {'main_port_id': 22457415, 'sub_port_id': 22457458, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901096, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 58)}, 'metal': {'main_port_id': 22457415, 'sub_port_id': 22457459, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901097, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 58)}, 'Carton_gris': {'main_port_id': 22457415, 'sub_port_id': 22457460, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901098, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 58)}, 'autre_refus': {'main_port_id': 22457415, 'sub_port_id': 22457461, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901099, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 58)}, 'kraft': {'main_port_id': 22457415, 'sub_port_id': 22457462, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14901100, 'last_updated_at': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 16, 43), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 16, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22457451,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22457439 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22457452,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22457440 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22457453,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22457441 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22457454,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22457442 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22457455,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22457443 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22457456,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22457444 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22457457,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22457445 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22457458,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22457446 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22457459,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22457447 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22457460,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22457448 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22457461,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22457449 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22457462,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22457450 lien utilise dans velours : https://www.fotonower.com/velours/22457451,22457452,22457453,22457454,22457455,22457456,22457457,22457458,22457459,22457460,22457461,22457462?tags=Carton_brun,environnement,cartonnette,papier,mal_croppe,flou,Teint_Dans_La_Masse,plastique,metal,Carton_gris,autre_refus,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22457415]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353948275, 1353948271, 1353948266, 1353948261, 1353948255] map_info['map_portfolio_photo'] : {22457415: [1353948275, 1353948271, 1353948266, 1353948261, 1353948255, 1353948124, 1353948116, 1353948109, 1353948104, 1353948070, 1353948067, 1353948063, 1353948058, 1353948053, 1353948048, 1353948017, 1353948012, 1353948007, 1353948002, 1353947998, 1353947962, 1353947959, 1353947955, 1353947951, 1353947948, 1353947919, 1353947915, 1353947910, 1353947905, 1353947898, 1353947859, 1353947822, 1353947792, 1353947734, 1353947702, 1353947609, 1353947597, 1353947590, 1353947583, 1353947556, 1353947552, 1353947547, 1353947541, 1353947535, 1353947517, 1353947240, 1353947232, 1353947217, 1353947212, 1353947207, 1353947162, 1353947158, 1353947154, 1353947149, 1353947144, 1353947139, 1353947102, 1353947094, 1353947089, 1353947007, 1353946785, 1353946781, 1353946775]} final : False mtd_id 4302 list_pids : [1353948275, 1353948271, 1353948266, 1353948261, 1353948255] Looping around the photos to save general results len do output : 1 /22457415. 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, '2764912') ('4302', '22457415', '1353948275', None, None, None, None, None, '2764912') ('4302', None, None, None, None, None, None, None, '2764912') ('4302', '22457415', '1353948271', None, None, None, None, None, '2764912') ('4302', None, None, None, None, None, None, None, '2764912') ('4302', '22457415', '1353948266', None, None, None, None, None, '2764912') ('4302', None, None, None, None, None, None, None, '2764912') ('4302', '22457415', '1353948261', None, None, None, None, None, '2764912') ('4302', None, None, None, None, None, None, None, '2764912') ('4302', '22457415', '1353948255', None, None, None, None, None, '2764912') 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, '22457415', "{'Carton_brun': 22457439, 'environnement': 22457440, 'cartonnette': 22457441, 'papier': 22457442, 'mal_croppe': 22457443, 'flou': 22457444, 'Teint_Dans_La_Masse': 22457445, 'plastique': 22457446, 'metal': 22457447, 'Carton_gris': 22457448, 'autre_refus': 22457449, 'kraft': 22457450}", None, None, None, None, '2764912'), ('4302', '22457415', '1353948275', None, None, None, None, None, '2764912'), ('4302', '22457415', '1353948271', None, None, None, None, None, '2764912'), ('4302', '22457415', '1353948266', None, None, None, None, None, '2764912'), ('4302', '22457415', '1353948261', None, None, None, None, None, '2764912'), ('4302', '22457415', '1353948255', None, None, None, None, None, '2764912')] time used for this insertion : 0.019317150115966797 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3792014122009277 time spend to save output : 0.019609451293945312 total time spend for step 1 : 1.398810863494873 step2:final Mon Apr 28 16:44:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22457415) 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 22457415 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353946785,1353946781,1353946775,1353947102,1353947094,1353947089,1353947007,1353947162,1353947158,1353947154,1353947149,1353947144,1353947139,1353947240,1353947232,1353947217,1353947212,1353947207,1353947556,1353947552,1353947547,1353947541,1353947535,1353947517,1353947609,1353947597,1353947590,1353947583,1353947859,1353947822,1353947792,1353947734,1353947702,1353947919,1353947915,1353947910,1353947905,1353947898,1353947962,1353947959,1353947955,1353947951,1353947948,1353948017,1353948012,1353948007,1353948002,1353947998,1353948070,1353948067,1353948063,1353948058,1353948053,1353948048,1353948124,1353948116,1353948109,1353948104,1353948275,1353948271,1353948266,1353948261,1353948255); 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([22457415]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353948275: ('0.05138632057889005',), 1353948271: ('0.05138632057889005',), 1353948266: ('0.05138632057889005',), 1353948261: ('0.05138632057889005',), 1353948255: ('0.05138632057889005',)} new output for save of step final : {1353948275: ('0.05138632057889005',), 1353948271: ('0.05138632057889005',), 1353948266: ('0.05138632057889005',), 1353948261: ('0.05138632057889005',), 1353948255: ('0.05138632057889005',)} [1353948275, 1353948271, 1353948266, 1353948261, 1353948255] map_info['map_portfolio_photo'] : {22457415: [1353948275, 1353948271, 1353948266, 1353948261, 1353948255, 1353948124, 1353948116, 1353948109, 1353948104, 1353948070, 1353948067, 1353948063, 1353948058, 1353948053, 1353948048, 1353948017, 1353948012, 1353948007, 1353948002, 1353947998, 1353947962, 1353947959, 1353947955, 1353947951, 1353947948, 1353947919, 1353947915, 1353947910, 1353947905, 1353947898, 1353947859, 1353947822, 1353947792, 1353947734, 1353947702, 1353947609, 1353947597, 1353947590, 1353947583, 1353947556, 1353947552, 1353947547, 1353947541, 1353947535, 1353947517, 1353947240, 1353947232, 1353947217, 1353947212, 1353947207, 1353947162, 1353947158, 1353947154, 1353947149, 1353947144, 1353947139, 1353947102, 1353947094, 1353947089, 1353947007, 1353946785, 1353946781, 1353946775]} final : False mtd_id 4302 list_pids : [1353948275, 1353948271, 1353948266, 1353948261, 1353948255] Looping around the photos to save general results len do output : 5 /1353948275.Didn't retrieve data . /1353948271.Didn't retrieve data . /1353948266.Didn't retrieve data . /1353948261.Didn't retrieve data . /1353948255.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, '2764912') ('4302', '22457415', '1353948275', None, None, None, None, None, '2764912') ('4302', None, None, None, None, None, None, None, '2764912') ('4302', '22457415', '1353948271', None, None, None, None, None, '2764912') ('4302', None, None, None, None, None, None, None, '2764912') ('4302', '22457415', '1353948266', None, None, None, None, None, '2764912') ('4302', None, None, None, None, None, None, None, '2764912') ('4302', '22457415', '1353948261', None, None, None, None, None, '2764912') ('4302', None, None, None, None, None, None, None, '2764912') ('4302', '22457415', '1353948255', None, None, None, None, None, '2764912') 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', '22457415', '1353948275', '0.05138632057889005', None, None, None, None, '2764912'), ('4302', '22457415', '1353948271', '0.05138632057889005', None, None, None, None, '2764912'), ('4302', '22457415', '1353948266', '0.05138632057889005', None, None, None, None, '2764912'), ('4302', '22457415', '1353948261', '0.05138632057889005', None, None, None, None, '2764912'), ('4302', '22457415', '1353948255', '0.05138632057889005', None, None, None, None, '2764912')] time used for this insertion : 0.01279759407043457 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0709989070892334 time spend to save output : 0.014040231704711914 total time spend for step 2 : 0.08503913879394531 step3:velours_tree Mon Apr 28 16:44:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22457415: [{'Carton_brun': 22457439, 'environnement': 22457440, 'cartonnette': 22457441, 'papier': 22457442, 'mal_croppe': 22457443, 'flou': 22457444, 'Teint_Dans_La_Masse': 22457445, 'plastique': 22457446, 'metal': 22457447, 'Carton_gris': 22457448, 'autre_refus': 22457449, 'kraft': 22457450}]} input_args_next_step : {22457415: ()} output_args : {22457415: [{'Carton_brun': 22457439, 'environnement': 22457440, 'cartonnette': 22457441, 'papier': 22457442, 'mal_croppe': 22457443, 'flou': 22457444, 'Teint_Dans_La_Masse': 22457445, 'plastique': 22457446, 'metal': 22457447, 'Carton_gris': 22457448, 'autre_refus': 22457449, 'kraft': 22457450}]} args : 22457415 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 22457439, 'environnement': 22457440, 'cartonnette': 22457441, 'papier': 22457442, 'mal_croppe': 22457443, 'flou': 22457444, 'Teint_Dans_La_Masse': 22457445, 'plastique': 22457446, 'metal': 22457447, 'Carton_gris': 22457448, 'autre_refus': 22457449, 'kraft': 22457450},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22457415) 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([22457415]) 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.3889784812927246 time spend to save output : 7.677078247070312e-05 total time spend for step 3 : 0.3890552520751953 step4:send_mail_cod Mon Apr 28 16:44:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1353948275: ('0.05138632057889005',), 1353948271: ('0.05138632057889005',), 1353948266: ('0.05138632057889005',), 1353948261: ('0.05138632057889005',), 1353948255: ('0.05138632057889005',)} input_args_next_step : {1353948275: ()} output_args : {1353948275: ('0.05138632057889005',), 1353948271: ('0.05138632057889005',), 1353948266: ('0.05138632057889005',), 1353948261: ('0.05138632057889005',), 1353948255: ('0.05138632057889005',)} args : 1353948275 depend.output_id : 0 input_args_next_step : {1353948275: ('0.05138632057889005',), 1353948271: ()} output_args : {1353948275: ('0.05138632057889005',), 1353948271: ('0.05138632057889005',), 1353948266: ('0.05138632057889005',), 1353948261: ('0.05138632057889005',), 1353948255: ('0.05138632057889005',)} args : 1353948271 depend.output_id : 0 input_args_next_step : {1353948275: ('0.05138632057889005',), 1353948271: ('0.05138632057889005',), 1353948266: ()} output_args : {1353948275: ('0.05138632057889005',), 1353948271: ('0.05138632057889005',), 1353948266: ('0.05138632057889005',), 1353948261: ('0.05138632057889005',), 1353948255: ('0.05138632057889005',)} args : 1353948266 depend.output_id : 0 input_args_next_step : {1353948275: ('0.05138632057889005',), 1353948271: ('0.05138632057889005',), 1353948266: ('0.05138632057889005',), 1353948261: ()} output_args : {1353948275: ('0.05138632057889005',), 1353948271: ('0.05138632057889005',), 1353948266: ('0.05138632057889005',), 1353948261: ('0.05138632057889005',), 1353948255: ('0.05138632057889005',)} args : 1353948261 depend.output_id : 0 input_args_next_step : {1353948275: ('0.05138632057889005',), 1353948271: ('0.05138632057889005',), 1353948266: ('0.05138632057889005',), 1353948261: ('0.05138632057889005',), 1353948255: ()} output_args : {1353948275: ('0.05138632057889005',), 1353948271: ('0.05138632057889005',), 1353948266: ('0.05138632057889005',), 1353948261: ('0.05138632057889005',), 1353948255: ('0.05138632057889005',)} args : 1353948255 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 : {22457415: [{'Carton_brun': 22457439, 'environnement': 22457440, 'cartonnette': 22457441, 'papier': 22457442, 'mal_croppe': 22457443, 'flou': 22457444, 'Teint_Dans_La_Masse': 22457445, 'plastique': 22457446, 'metal': 22457447, 'Carton_gris': 22457448, 'autre_refus': 22457449, 'kraft': 22457450}]} input_args_next_step : {1353948275: ('0.05138632057889005',), 1353948271: ('0.05138632057889005',), 1353948266: ('0.05138632057889005',), 1353948261: ('0.05138632057889005',), 1353948255: ('0.05138632057889005',), 22457415: ()} output_args : {22457415: [{'Carton_brun': 22457439, 'environnement': 22457440, 'cartonnette': 22457441, 'papier': 22457442, 'mal_croppe': 22457443, 'flou': 22457444, 'Teint_Dans_La_Masse': 22457445, 'plastique': 22457446, 'metal': 22457447, 'Carton_gris': 22457448, 'autre_refus': 22457449, 'kraft': 22457450}]} args : 22457415 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.05138632057889005',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22457415) 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 (1353948275,1353948271,1353948266,1353948261,1353948255) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353948255 begin to download photo : 1353948266 begin to download photo : 1353948275 download finish for photo 1353948266 begin to download photo : 1353948271 download finish for photo 1353948275 download finish for photo 1353948255 begin to download photo : 1353948261 download finish for photo 1353948271 download finish for photo 1353948261 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P22457415_28-04-2025_16_44_31.pdf 22457441 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=22457441 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353947674: '1745850972_3407028_1353947094_256ed5f686b639a7fd4c3d35e8299a74_rle_crop_3771150080_0.png', 1353947986: '1745851153_3408858_1353947822_171c6188c8d6a68b1de0207d6dcc7439_rle_crop_3771154146_0.png', 1353947987: '1745851153_3408858_1353947702_0a709fcd0bc0c264f101961784cc2a05_rle_crop_3771154274_0.png', 1353948122: '1745851306_2828276_1353947962_940010c3bff5837d2d51c8dcc4451035_rle_crop_3771156257_0.png', 1353948123: '1745851306_2828276_1353947910_7a774c178a861bed709e12aab24f3576_rle_crop_3771156293_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/d58f42be914d7d546dc107340825a892_7531208.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/ce0ff4d35a46794e72a797f2c5b77070_56210720.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/a4ab9bbf23524c0b22812cfe3d41ab4f_53772074.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/f23029ac8e3694add458b43fc18a1253_71381792.png change filename to text .imagette224574411745851471/ imagette224574411745851471/1745851153_3408858_1353947822_171c6188c8d6a68b1de0207d6dcc7439_rle_crop_3771154146_0.png.png imagette224574411745851471/1745851306_2828276_1353947962_940010c3bff5837d2d51c8dcc4451035_rle_crop_3771156257_0.png.png imagette224574411745851471/1745850972_3407028_1353947094_256ed5f686b639a7fd4c3d35e8299a74_rle_crop_3771150080_0.png.png imagette224574411745851471/1745851306_2828276_1353947910_7a774c178a861bed709e12aab24f3576_rle_crop_3771156293_0.png.png imagette224574411745851471/1745851153_3408858_1353947702_0a709fcd0bc0c264f101961784cc2a05_rle_crop_3771154274_0.png.png imagette224574431745851472/ imagette224574441745851472/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/2d442d0b9fea4b7901b669611ee0022a_51748458.png imagette224574411745851471 22457443 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=22457443 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224574431745851472 22457444 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=22457444 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224574441745851472 22457446 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=22457446 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353947681: '1745850972_3407028_1353947094_256ed5f686b639a7fd4c3d35e8299a74_rle_crop_3771150087_0.png', 1353947682: '1745850972_3407028_1353947094_256ed5f686b639a7fd4c3d35e8299a74_rle_crop_3771150082_0.png', 1353947683: '1745850972_3407028_1353947089_b5edb2a8ecf3c848b58fa603013e809e_rle_crop_3771150095_0.png', 1353947893: '1745851047_452968_1353947541_3b15d89509e7ef51094bc58af0be2a61_rle_crop_3771151401_0.png', 1353947894: '1745851047_452968_1353947535_e28045caed8dde4c734ee624efd6db50_rle_crop_3771151478_0.png', 1353947990: '1745851153_3408858_1353947702_0a709fcd0bc0c264f101961784cc2a05_rle_crop_3771154270_0.png', 1353947997: '1745851180_2825174_1353946781_39fa264b8ad9f8e9bd96711e462e2c8a_rle_crop_3771154303_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/7dfef2d26fe360f5e013d386fccb8cbf_31207741.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/bface02d1f371ff00f0241d3e0f3ea95_79428799.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/f0f0bfd99d09dd4c2462162e96144da4_57739381.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/96baeefc66fce8c97a735ad2d1d0008c_60233882.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/2f1257846af897080dc007a76545bf33_64045663.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/8d689cfc4f6981fc1e2f543b13d09b1b_44960842.png change filename to text .imagette224574461745851472/ imagette224574461745851472/1745851047_452968_1353947541_3b15d89509e7ef51094bc58af0be2a61_rle_crop_3771151401_0.png.png imagette224574461745851472/1745850972_3407028_1353947094_256ed5f686b639a7fd4c3d35e8299a74_rle_crop_3771150082_0.png.png imagette224574461745851472/1745850972_3407028_1353947089_b5edb2a8ecf3c848b58fa603013e809e_rle_crop_3771150095_0.png.png imagette224574461745851472/1745851047_452968_1353947535_e28045caed8dde4c734ee624efd6db50_rle_crop_3771151478_0.png.png imagette224574461745851472/1745851153_3408858_1353947702_0a709fcd0bc0c264f101961784cc2a05_rle_crop_3771154270_0.png.png imagette224574461745851472/1745850972_3407028_1353947094_256ed5f686b639a7fd4c3d35e8299a74_rle_crop_3771150087_0.png.png imagette224574461745851472/1745851180_2825174_1353946781_39fa264b8ad9f8e9bd96711e462e2c8a_rle_crop_3771154303_0.png.png imagette224574471745851472/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/1d29e3072227cbb38b32c2c81ecc0781_5165632.png imagette224574461745851472 22457447 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=22457447 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224574471745851472 22457449 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=22457449 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353947666: '1745850972_3407028_1353947089_b5edb2a8ecf3c848b58fa603013e809e_rle_crop_3771150091_0.png', 1353947667: '1745850972_3407028_1353947089_b5edb2a8ecf3c848b58fa603013e809e_rle_crop_3771150097_0.png', 1353947983: '1745851153_3408858_1353947822_171c6188c8d6a68b1de0207d6dcc7439_rle_crop_3771154152_0.png', 1353948103: '1745851272_3410450_1353947955_269ea3d20d088c6c6238090a76d9aa8f_rle_crop_3771156169_0.png', 1353948115: '1745851306_2828276_1353947962_940010c3bff5837d2d51c8dcc4451035_rle_crop_3771156252_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/a4f51da67735c00f8c0c9da3b673f331_93926657.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/3df9fa4695d36c01b3f5b2da5507e10b_97754693.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/c5bb6c187087a65a71156e58d3de4160_53612256.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/6eed8623467e121d34b49474935991dc_70470693.png change filename to text .imagette224574491745851472/ imagette224574491745851472/1745851306_2828276_1353947962_940010c3bff5837d2d51c8dcc4451035_rle_crop_3771156252_0.png.png imagette224574491745851472/1745851272_3410450_1353947955_269ea3d20d088c6c6238090a76d9aa8f_rle_crop_3771156169_0.png.png imagette224574491745851472/1745850972_3407028_1353947089_b5edb2a8ecf3c848b58fa603013e809e_rle_crop_3771150097_0.png.png imagette224574491745851472/1745851153_3408858_1353947822_171c6188c8d6a68b1de0207d6dcc7439_rle_crop_3771154152_0.png.png imagette224574491745851472/1745850972_3407028_1353947089_b5edb2a8ecf3c848b58fa603013e809e_rle_crop_3771150091_0.png.png imagette224574501745851472/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/fc34faa3b4033cd5b03442cf82385565_71531825.png imagette224574491745851472 22457450 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=22457450 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224574501745851472 22457439 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=22457439 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353947679: '1745850972_3407028_1353947089_b5edb2a8ecf3c848b58fa603013e809e_rle_crop_3771150096_0.png', 1353947680: '1745850972_3407028_1353947007_897784c2cf63041e193d672811c4ec1c_rle_crop_3771150104_0.png', 1353947890: '1745851047_452968_1353947552_9e563e809e1c311866838d6fb868a605_rle_crop_3771151376_0.png', 1353947891: '1745851047_452968_1353947517_128b6efaabb56b50e214f82e553c7197_rle_crop_3771151496_0.png', 1353947903: '1745851063_2821941_1353947583_9d30f6e6dbd3d88929b3b64975135a48_rle_crop_3771151530_0.png', 1353947904: '1745851063_2821941_1353947583_9d30f6e6dbd3d88929b3b64975135a48_rle_crop_3771151526_0.png', 1353947988: '1745851153_3408858_1353947792_f216cab52b5396f101a04ede26dd10d7_rle_crop_3771154171_0.png', 1353947989: '1745851153_3408858_1353947734_156cc5e56a2f0801da4276b8abcb4f47_rle_crop_3771154261_0.png', 1353947996: '1745851180_2825174_1353946775_d34e9cdb7b78403cef94af72f3650f19_rle_crop_3771154312_0.png', 1353948105: '1745851272_3410450_1353947959_87db19f40bb2ef4c957e3e4619bba650_rle_crop_3771156155_0.png', 1353948106: '1745851272_3410450_1353947948_59a0056486a945f558e18ffc1ff0e68a_rle_crop_3771156194_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/cb1795250444fc3a55b8a7587883ce40_69854046.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/87436b13a7524a583bd6d17fa4c02566_7695772.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/c0d54ea224406b03a93fc347cdadb97d_89922878.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/94fd93cfc56e42192e075eaa7f53cbb7_80707197.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/878a7de60f00e54250ae7a284b081167_82406635.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/329448b405c1deb212f53495c429f11b_44115351.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/79645e6f4368db52fabc0b55b1e82d39_13169251.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/cd0c3f0581e13eb2e1979a28239dab88_58710778.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/b5a146a3e8fdaf37c4c7be04a34e41b4_82842170.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/cdd1b3132ca6cc550090ba5437e16c30_43267895.png change filename to text .imagette224574391745851472/ imagette224574391745851472/1745850972_3407028_1353947007_897784c2cf63041e193d672811c4ec1c_rle_crop_3771150104_0.png.png imagette224574391745851472/1745851180_2825174_1353946775_d34e9cdb7b78403cef94af72f3650f19_rle_crop_3771154312_0.png.png imagette224574391745851472/1745851272_3410450_1353947959_87db19f40bb2ef4c957e3e4619bba650_rle_crop_3771156155_0.png.png imagette224574391745851472/1745851047_452968_1353947517_128b6efaabb56b50e214f82e553c7197_rle_crop_3771151496_0.png.png imagette224574391745851472/1745851153_3408858_1353947792_f216cab52b5396f101a04ede26dd10d7_rle_crop_3771154171_0.png.png imagette224574391745851472/1745850972_3407028_1353947089_b5edb2a8ecf3c848b58fa603013e809e_rle_crop_3771150096_0.png.png imagette224574391745851472/1745851272_3410450_1353947948_59a0056486a945f558e18ffc1ff0e68a_rle_crop_3771156194_0.png.png imagette224574391745851472/1745851063_2821941_1353947583_9d30f6e6dbd3d88929b3b64975135a48_rle_crop_3771151530_0.png.png imagette224574391745851472/1745851047_452968_1353947552_9e563e809e1c311866838d6fb868a605_rle_crop_3771151376_0.png.png imagette224574391745851472/1745851063_2821941_1353947583_9d30f6e6dbd3d88929b3b64975135a48_rle_crop_3771151526_0.png.png imagette224574391745851472/1745851153_3408858_1353947734_156cc5e56a2f0801da4276b8abcb4f47_rle_crop_3771154261_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/3aeeab757a6bc259cdfbce88bbe3e016_79916336.png imagette224574391745851472 22457445 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=22457445 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353947884: '1745851047_452968_1353947552_9e563e809e1c311866838d6fb868a605_rle_crop_3771151378_0.png', 1353947885: '1745851047_452968_1353947541_3b15d89509e7ef51094bc58af0be2a61_rle_crop_3771151397_0.png', 1353947886: '1745851047_452968_1353947535_e28045caed8dde4c734ee624efd6db50_rle_crop_3771151485_0.png', 1353947899: '1745851063_2821941_1353947590_839b5a52aec12406d374be7e27d5adde_rle_crop_3771151510_0.png', 1353947935: '1745851092_3408260_1353947212_e56b95af678d8075c7a112b079f119d0_rle_crop_3771152566_0.png', 1353947937: '1745851092_3408260_1353947212_e56b95af678d8075c7a112b079f119d0_rle_crop_3771152567_0.png', 1353947978: '1745851153_3408858_1353947822_171c6188c8d6a68b1de0207d6dcc7439_rle_crop_3771154151_0.png', 1353947979: '1745851153_3408858_1353947822_171c6188c8d6a68b1de0207d6dcc7439_rle_crop_3771154153_0.png', 1353947980: '1745851153_3408858_1353947792_f216cab52b5396f101a04ede26dd10d7_rle_crop_3771154165_0.png', 1353947981: '1745851153_3408858_1353947734_156cc5e56a2f0801da4276b8abcb4f47_rle_crop_3771154259_0.png', 1353948100: '1745851272_3410450_1353947955_269ea3d20d088c6c6238090a76d9aa8f_rle_crop_3771156172_0.png', 1353948101: '1745851272_3410450_1353947951_477d2961f8e5ec5f8790739c900e9b6a_rle_crop_3771156185_0.png', 1353948102: '1745851272_3410450_1353947948_59a0056486a945f558e18ffc1ff0e68a_rle_crop_3771156193_0.png', 1353948114: '1745851306_2828276_1353947898_0e8227f77908265eaa8c6e5a1523369f_rle_crop_3771156336_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/b77ba779390b6fd24a6ceaa89a8aedc9_52528920.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/9524327c25ab1cf0ea42ae404dbdc075_41612096.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/1d2ca840e5aedbe64d3c4d5b427e8c02_66424326.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/3cb51fc44d1a9449f89f230a7094f36a_68288764.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/bd80bf1c888b446afc1070bd797cf1bb_91686894.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/e106943500e7b9b16ccaf33de5f5938b_72645827.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/3dd12ac31ecf59bdbbff897b27b70b62_28222200.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/a4b5d09eb289fa8e8d0135a4522bc749_12513514.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/7aba4d3e3386bd0704cd9e922802e4a1_43809324.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/46a5267020bb8194b31a6c0be10d3ac2_7571469.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/06d680fbe186d67e89c1ffcc51dbefcd_69944591.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/554474678f0eda48b664263dd26613fd_21601972.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/1b53b3f0209f70fdcd44a13bad4dd27e_76341746.png change filename to text .imagette224574451745851473/ imagette224574451745851473/1745851047_452968_1353947535_e28045caed8dde4c734ee624efd6db50_rle_crop_3771151485_0.png.png imagette224574451745851473/1745851063_2821941_1353947590_839b5a52aec12406d374be7e27d5adde_rle_crop_3771151510_0.png.png imagette224574451745851473/1745851047_452968_1353947541_3b15d89509e7ef51094bc58af0be2a61_rle_crop_3771151397_0.png.png imagette224574451745851473/1745851272_3410450_1353947951_477d2961f8e5ec5f8790739c900e9b6a_rle_crop_3771156185_0.png.png imagette224574451745851473/1745851153_3408858_1353947822_171c6188c8d6a68b1de0207d6dcc7439_rle_crop_3771154153_0.png.png imagette224574451745851473/1745851153_3408858_1353947822_171c6188c8d6a68b1de0207d6dcc7439_rle_crop_3771154151_0.png.png imagette224574451745851473/1745851272_3410450_1353947955_269ea3d20d088c6c6238090a76d9aa8f_rle_crop_3771156172_0.png.png imagette224574451745851473/1745851092_3408260_1353947212_e56b95af678d8075c7a112b079f119d0_rle_crop_3771152567_0.png.png imagette224574451745851473/1745851153_3408858_1353947792_f216cab52b5396f101a04ede26dd10d7_rle_crop_3771154165_0.png.png imagette224574451745851473/1745851272_3410450_1353947948_59a0056486a945f558e18ffc1ff0e68a_rle_crop_3771156193_0.png.png imagette224574451745851473/1745851306_2828276_1353947898_0e8227f77908265eaa8c6e5a1523369f_rle_crop_3771156336_0.png.png imagette224574451745851473/1745851047_452968_1353947552_9e563e809e1c311866838d6fb868a605_rle_crop_3771151378_0.png.png imagette224574451745851473/1745851153_3408858_1353947734_156cc5e56a2f0801da4276b8abcb4f47_rle_crop_3771154259_0.png.png imagette224574451745851473/1745851092_3408260_1353947212_e56b95af678d8075c7a112b079f119d0_rle_crop_3771152566_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/3b895f4f400d390ae0ae6d35caa57a4c_80768163.png imagette224574451745851473 22457448 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=22457448 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353947887: '1745851047_452968_1353947535_e28045caed8dde4c734ee624efd6db50_rle_crop_3771151477_0.png', 1353947888: '1745851047_452968_1353947535_e28045caed8dde4c734ee624efd6db50_rle_crop_3771151476_0.png', 1353947889: '1745851047_452968_1353947517_128b6efaabb56b50e214f82e553c7197_rle_crop_3771151497_0.png', 1353947901: '1745851063_2821941_1353947590_839b5a52aec12406d374be7e27d5adde_rle_crop_3771151509_0.png', 1353947985: '1745851153_3408858_1353947734_156cc5e56a2f0801da4276b8abcb4f47_rle_crop_3771154262_0.png', 1353947993: '1745851180_2825174_1353946781_39fa264b8ad9f8e9bd96711e462e2c8a_rle_crop_3771154297_0.png', 1353948119: '1745851306_2828276_1353947905_5ebc3fd0a5e7beac94e404630cacc23c_rle_crop_3771156320_0.png', 1353948120: '1745851306_2828276_1353947905_5ebc3fd0a5e7beac94e404630cacc23c_rle_crop_3771156319_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/441e19f2474433dfda0bac836450511f_69574502.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/a026ed3ed6b329bdddec5e9cf22e9d36_72650618.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/71201fd92f7a83337b66d9884597a2bf_14822203.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/1378d15ababe971a92da80e36bda087e_12715580.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/1425094135f2e16d46620bcdfca58bdd_5292478.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/f418fbfcc865e4b875f634ba3aedddf9_88649718.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/8f62240c41e1927ec7c66f1da3214fe5_87944142.png change filename to text .imagette224574481745851474/ imagette224574481745851474/1745851047_452968_1353947535_e28045caed8dde4c734ee624efd6db50_rle_crop_3771151477_0.png.png imagette224574481745851474/1745851063_2821941_1353947590_839b5a52aec12406d374be7e27d5adde_rle_crop_3771151509_0.png.png imagette224574481745851474/1745851306_2828276_1353947905_5ebc3fd0a5e7beac94e404630cacc23c_rle_crop_3771156320_0.png.png imagette224574481745851474/1745851153_3408858_1353947734_156cc5e56a2f0801da4276b8abcb4f47_rle_crop_3771154262_0.png.png imagette224574481745851474/1745851180_2825174_1353946781_39fa264b8ad9f8e9bd96711e462e2c8a_rle_crop_3771154297_0.png.png imagette224574481745851474/1745851047_452968_1353947517_128b6efaabb56b50e214f82e553c7197_rle_crop_3771151497_0.png.png imagette224574481745851474/1745851306_2828276_1353947905_5ebc3fd0a5e7beac94e404630cacc23c_rle_crop_3771156319_0.png.png imagette224574481745851474/1745851047_452968_1353947535_e28045caed8dde4c734ee624efd6db50_rle_crop_3771151476_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/a703e46b0f27377bdc8b99e15f3204e2_26078290.png imagette224574481745851474 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22457415 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22457451,22457452,22457453,22457454,22457455,22457456,22457457,22457458,22457459,22457460,22457461,22457462?tags=Carton_brun,environnement,cartonnette,papier,mal_croppe,flou,Teint_Dans_La_Masse,plastique,metal,Carton_gris,autre_refus,kraft your option no_mail is active, we will not send the real mail to your client args[1353948275] : ('0.05138632057889005',) no score found for photo 1353948275 We are sending mail with results at report@fotonower.com args[1353948271] : ('0.05138632057889005',) no score found for photo 1353948271 We are sending mail with results at report@fotonower.com args[1353948266] : ('0.05138632057889005',) no score found for photo 1353948266 We are sending mail with results at report@fotonower.com args[1353948261] : ('0.05138632057889005',) no score found for photo 1353948261 We are sending mail with results at report@fotonower.com args[1353948255] : ('0.05138632057889005',) no score found for photo 1353948255 We are sending mail with results at report@fotonower.com refus_total : 0.05138632057889005 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=22457415 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_P22457415_28-04-2025_16_44_31.pdf results_Auto_P22457415_28-04-2025_16_44_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22457415_28-04-2025_16_44_31.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22457415','results_Auto_P22457415_28-04-2025_16_44_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22457415_28-04-2025_16_44_31.pdf','pdf','','0.18','0.05138632057889005') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22457415]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353948275, 1353948271, 1353948266, 1353948261, 1353948255] map_info['map_portfolio_photo'] : {22457415: [1353948275, 1353948271, 1353948266, 1353948261, 1353948255, 1353948124, 1353948116, 1353948109, 1353948104, 1353948070, 1353948067, 1353948063, 1353948058, 1353948053, 1353948048, 1353948017, 1353948012, 1353948007, 1353948002, 1353947998, 1353947962, 1353947959, 1353947955, 1353947951, 1353947948, 1353947919, 1353947915, 1353947910, 1353947905, 1353947898, 1353947859, 1353947822, 1353947792, 1353947734, 1353947702, 1353947609, 1353947597, 1353947590, 1353947583, 1353947556, 1353947552, 1353947547, 1353947541, 1353947535, 1353947517, 1353947240, 1353947232, 1353947217, 1353947212, 1353947207, 1353947162, 1353947158, 1353947154, 1353947149, 1353947144, 1353947139, 1353947102, 1353947094, 1353947089, 1353947007, 1353946785, 1353946781, 1353946775]} final : False mtd_id 4302 list_pids : [1353948275, 1353948271, 1353948266, 1353948261, 1353948255] 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, '2764912') ('4302', '22457415', '1353948275', None, None, None, None, None, '2764912') ('4302', None, None, None, None, None, None, None, '2764912') ('4302', '22457415', '1353948271', None, None, None, None, None, '2764912') ('4302', None, None, None, None, None, None, None, '2764912') ('4302', '22457415', '1353948266', None, None, None, None, None, '2764912') ('4302', None, None, None, None, None, None, None, '2764912') ('4302', '22457415', '1353948261', None, None, None, None, None, '2764912') ('4302', None, None, None, None, None, None, None, '2764912') ('4302', '22457415', '1353948255', None, None, None, None, None, '2764912') 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', '22457415', '1353948275', None, None, None, None, None, '2764912'), ('4302', '22457415', '1353948271', None, None, None, None, None, '2764912'), ('4302', '22457415', '1353948266', None, None, None, None, None, '2764912'), ('4302', '22457415', '1353948261', None, None, None, None, None, '2764912'), ('4302', '22457415', '1353948255', None, None, None, None, None, '2764912')] time used for this insertion : 0.012615203857421875 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.74189829826355 time spend to save output : 0.012872457504272461 total time spend for step 4 : 3.7547707557678223 step5:split_time_score Mon Apr 28 16:44:35 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 : ['22457415'] 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 : [('22457415',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22457415) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353948275: {'path': 'temp/1745851471_2795587_1353948275_edefe79adf21f24be9fe9aee41af908f.jpg', 'extension': 'jpg'}, 1353948266: {'path': 'temp/1745851471_2795587_1353948266_7a33b9ac72337b3b47678ecc2a196685.jpg', 'extension': 'jpg'}, 1353948271: {'path': 'temp/1745851471_2795587_1353948271_0c83686bcadcec1bd334fc6ed0ce15ed.jpg', 'extension': 'jpg'}, 1353948255: {'path': 'temp/1745851471_2795587_1353948255_327fcfe09c798d4087ed2211d6d8cb94.jpg', 'extension': 'jpg'}, 1353948261: {'path': 'temp/1745851471_2795587_1353948261_bb9c585610536b170702e3bf926d65c9.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 = 22457415; (('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 = 22457415 group by h (('16', 63),) 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=22457415 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 (22457415) 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 (22457415) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28042025 22457415 Nombre de photos uploadées : 63 / 23040 (0%) 28042025 22457415 Nombre de photos taguées (types de déchets): 0 / 63 (0%) 28042025 22457415 Nombre de photos taguées (volume) : 0 / 63 (0%) [{'photo_id': 1353946785, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/c79b440cd098d7e2ff37c972173fc98e.jpg', 'username': None, 'uploaded_at': 1745850667, 'text': 'image_28042025_16_30_04_010141m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1353946781, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/39fa264b8ad9f8e9bd96711e462e2c8a.jpg', 'username': None, 'uploaded_at': 1745850667, 'text': 'image_28042025_16_30_24_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353946775, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/d34e9cdb7b78403cef94af72f3650f19.jpg', 'username': None, 'uploaded_at': 1745850667, 'text': 'image_28042025_16_30_34_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353947102, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/c4477148930dab5d056c8e37f37ea9cd.jpg', 'username': None, 'uploaded_at': 1745850727, 'text': 'image_28042025_16_30_43_009124m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.1444091796875e-05 ??????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003052949905395508 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22457415, '2025-04-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1750587,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.030748844146728516 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= 1750587 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1750587, 'dashboard_run_id': 1759029, 'mtr_portfolio_id': 22456046, 'dashboard_result_id': 10117208, '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_P22456046_28-04-2025_16_02_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22456077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22456078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22456079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22456080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22456081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22456082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22456083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22456084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22456085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22456086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22456087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22456088, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1759029, 'mtr_portfolio_id': 22456621, 'dashboard_result_id': 10117209, '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_P22456621_28-04-2025_16_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22456626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22456627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22456628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22456629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22456630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22456631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22456632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22456633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22456634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22456635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22456636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22456637, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1759029, 'mtr_portfolio_id': 22457098, 'dashboard_result_id': 10117210, '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_P22457098_28-04-2025_16_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22457099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22457100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22457101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22457102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22457103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22457104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22457105, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22457106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22457107, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22457108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22457109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22457110, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1759029, 'mtr_portfolio_id': 22457415, 'dashboard_result_id': 10117211, '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_P22457415_28-04-2025_16_43_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22457439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22457440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22457441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22457442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22457443, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22457444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22457445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22457446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22457447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22457448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22457449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22457450, '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 = 22456046 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': 2764755, 'mtr_portfolio_id': 22456046, 'created_at': datetime.datetime(2025, 4, 28, 16, 2, 31), 'result': '0.0566092653677605', 'result_long': None, 'result_double': None}] Qualite : 0.0566092653677605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22456046 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22456046_28-04-2025_16_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22456046 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_P22456046_28-04-2025_16_02_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22456077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22456078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22456079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22456080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22456081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22456082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22456083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22456084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22456085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22456086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22456087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22456088, 'pht': 3726}}" where mtr_portfolio_id = 22456046 and dashboard_run_id = 1759029 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`=22456046 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10117208, 0.0566092653677605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22456046_28-04-2025_16_02_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22456077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22456078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22456079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22456080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22456081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22456082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22456083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22456084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22456085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22456086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22456087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22456088, '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 = 22456621 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': 2764814, 'mtr_portfolio_id': 22456621, 'created_at': datetime.datetime(2025, 4, 28, 16, 18, 58), 'result': '0.02753564893748372', 'result_long': None, 'result_double': None}] Qualite : 0.02753564893748372 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22456621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22456621_28-04-2025_16_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22456621 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_P22456621_28-04-2025_16_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22456626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22456627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22456628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22456629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22456630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22456631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22456632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22456633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22456634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22456635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22456636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22456637, 'pht': 3726}}" where mtr_portfolio_id = 22456621 and dashboard_run_id = 1759029 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`=22456621 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10117209, 0.02753564893748372, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22456621_28-04-2025_16_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22456626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22456627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22456628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22456629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22456630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22456631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22456632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22456633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22456634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22456635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22456636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22456637, '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 = 22457098 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': 2764868, 'mtr_portfolio_id': 22457098, 'created_at': datetime.datetime(2025, 4, 28, 16, 33), 'result': '0.05384356387322435', 'result_long': None, 'result_double': None}] Qualite : 0.05384356387322435 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22457098 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22457098_28-04-2025_16_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22457098 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_P22457098_28-04-2025_16_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22457099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22457100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22457101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22457102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22457103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22457104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22457105, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22457106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22457107, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22457108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22457109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22457110, 'pht': 3726}}" where mtr_portfolio_id = 22457098 and dashboard_run_id = 1759029 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`=22457098 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10117210, 0.05384356387322435, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22457098_28-04-2025_16_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22457099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22457100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22457101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22457102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22457103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22457104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22457105, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22457106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22457107, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22457108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22457109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22457110, '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 = 22457415 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': 2764912, 'mtr_portfolio_id': 22457415, 'created_at': datetime.datetime(2025, 4, 28, 16, 44, 31), 'result': '0.05138632057889005', 'result_long': None, 'result_double': None}] Qualite : 0.05138632057889005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22457415 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22457415_28-04-2025_16_44_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22457415 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_P22457415_28-04-2025_16_44_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22457439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22457440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22457441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22457442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22457443, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22457444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22457445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22457446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22457447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22457448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22457449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22457450, 'pht': 3726}}" where mtr_portfolio_id = 22457415 and dashboard_run_id = 1759029 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`=22457415 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10117211, 0.05138632057889005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22457415_28-04-2025_16_44_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22457439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22457440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22457441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22457442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22457443, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22457444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22457445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22457446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22457447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22457448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22457449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22457450, '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 (22456046,22456621,22457098,22457415) result : ((1353940306,), (1353940337,), (1353940423,), (1353940430,), (1353940446,), (1353940455,), (1353940507,), (1353940582,), (1353940782,), (1353940954,), (1353941070,), (1353941075,), (1353941080,), (1353941195,), (1353941200,), (1353941203,), (1353941206,), (1353941209,), (1353941212,), (1353941307,), (1353941309,), (1353941328,), (1353941329,), (1353941337,), (1353941338,), (1353941343,), (1353941344,), (1353941358,), (1353941361,), (1353941409,), (1353941414,), (1353941426,), (1353941440,), (1353941479,), (1353941533,), (1353941641,), (1353941665,), (1353941667,), (1353941671,), (1353941868,), (1353941873,), (1353941879,), (1353941884,), (1353941887,), (1353941941,), (1353941944,), (1353941948,), (1353941951,), (1353941957,), (1353941998,), (1353942003,), (1353942007,), (1353942010,), (1353942025,), (1353942034,), (1353942469,), (1353942530,), (1353943074,), (1353943140,), (1353943204,), (1353943239,), (1353943387,), (1353943393,), (1353943436,), (1353943440,), (1353943466,), (1353943476,), (1353943777,), (1353943735,), (1353943737,), (1353943741,), (1353943746,), (1353943883,), (1353943914,), (1353943949,), (1353944102,), (1353944106,), (1353944602,), (1353944603,), (1353944648,), (1353945011,), (1353945013,), (1353945152,), (1353945156,), (1353945205,), (1353945210,), (1353945215,), (1353945250,), (1353945297,), (1353945774,), (1353945775,), (1353945780,), (1353945782,), (1353945787,), (1353945789,), (1353945814,), (1353945818,), (1353945824,), (1353945828,), (1353945832,), (1353945837,), (1353945856,), (1353945858,), (1353945861,), (1353945864,), (1353946206,), (1353946213,), (1353946219,), (1353946224,), (1353946291,), (1353946296,), (1353946299,), (1353946302,), (1353946304,), (1353946307,), (1353946335,), (1353946339,), (1353946404,), (1353946475,), (1353946581,), (1353946590,), (1353946596,), (1353946599,), (1353946603,), (1353946606,), (1353946655,), (1353946658,), (1353946663,), (1353946667,), (1353946671,), (1353946713,), (1353946721,), (1353946726,), (1353946734,), (1353946789,), (1353946775,), (1353946781,), (1353946785,), (1353947007,), (1353947089,), (1353947094,), (1353947102,), (1353947139,), (1353947144,), (1353947149,), (1353947154,), (1353947158,), (1353947162,), (1353947207,), (1353947212,), (1353947217,), (1353947232,), (1353947240,), (1353947517,), (1353947535,), (1353947541,), (1353947547,), (1353947552,), (1353947556,), (1353947583,), (1353947590,), (1353947597,), (1353947609,), (1353947702,), (1353947734,), (1353947792,), (1353947822,), (1353947859,), (1353947898,), (1353947905,), (1353947910,), (1353947915,), (1353947919,), (1353947948,), (1353947951,), (1353947955,), (1353947959,), (1353947962,), (1353947998,), (1353948002,), (1353948007,), (1353948012,), (1353948017,), (1353948048,), (1353948053,), (1353948058,), (1353948063,), (1353948067,), (1353948070,), (1353948104,), (1353948109,), (1353948116,), (1353948124,), (1353948255,), (1353948261,), (1353948266,), (1353948271,), (1353948275,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28042025': {'nb_upload': 63, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22457415]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353948275, 1353948271, 1353948266, 1353948261, 1353948255] map_info['map_portfolio_photo'] : {22457415: [1353948275, 1353948271, 1353948266, 1353948261, 1353948255, 1353948124, 1353948116, 1353948109, 1353948104, 1353948070, 1353948067, 1353948063, 1353948058, 1353948053, 1353948048, 1353948017, 1353948012, 1353948007, 1353948002, 1353947998, 1353947962, 1353947959, 1353947955, 1353947951, 1353947948, 1353947919, 1353947915, 1353947910, 1353947905, 1353947898, 1353947859, 1353947822, 1353947792, 1353947734, 1353947702, 1353947609, 1353947597, 1353947590, 1353947583, 1353947556, 1353947552, 1353947547, 1353947541, 1353947535, 1353947517, 1353947240, 1353947232, 1353947217, 1353947212, 1353947207, 1353947162, 1353947158, 1353947154, 1353947149, 1353947144, 1353947139, 1353947102, 1353947094, 1353947089, 1353947007, 1353946785, 1353946781, 1353946775]} final : True mtd_id 4302 list_pids : [1353948275, 1353948271, 1353948266, 1353948261, 1353948255] Looping around the photos to save general results len do output : 1 /22457415Didn'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, '2764912') ('4302', '22457415', '1353948275', None, None, None, None, None, '2764912') ('4302', None, None, None, None, None, None, None, '2764912') ('4302', '22457415', '1353948271', None, None, None, None, None, '2764912') ('4302', None, None, None, None, None, None, None, '2764912') ('4302', '22457415', '1353948266', None, None, None, None, None, '2764912') ('4302', None, None, None, None, None, None, None, '2764912') ('4302', '22457415', '1353948261', None, None, None, None, None, '2764912') ('4302', None, None, None, None, None, None, None, '2764912') ('4302', '22457415', '1353948255', None, None, None, None, None, '2764912') 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, '22457415', 'None', None, None, None, None, '2764912'), ('4302', '22457415', '1353948275', None, None, None, None, None, '2764912'), ('4302', '22457415', '1353948271', None, None, None, None, None, '2764912'), ('4302', '22457415', '1353948266', None, None, None, None, None, '2764912'), ('4302', '22457415', '1353948261', None, None, None, None, None, '2764912'), ('4302', '22457415', '1353948255', None, None, None, None, None, '2764912')] time used for this insertion : 0.014571428298950195 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.36524009704589844 time spend to save output : 0.014789342880249023 total time spend for step 5 : 0.38002943992614746 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 (2764912) 2.19user 1.14system 0:10.59elapsed 31%CPU (0avgtext+0avgdata 158196maxresident)k 4208inputs+9160outputs (71major+76065minor)pagefaults 0swaps