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 : 1456533 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 (2628480) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2628480) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20967705 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2628480'] with mtr_portfolio_ids : ['20967705'] and first list_photo_ids : [] new path : /proc/1456533/ Name: python3 Umask: 0002 State: R (running) Tgid: 1456533 Ngid: 0 Pid: 1456533 PPid: 1456532 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1456533 NSpid: 1456533 NSpgid: 1440051 NSsid: 1440051 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98644 kB VmRSS: 98644 kB RssAnon: 59768 kB RssFile: 38876 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 48 nonvoluntary_ctxt_switches: 98 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1456533', 'Ngid': '0', 'Pid': '1456533', 'PPid': '1456532', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1456533', 'NSpid': '1456533', 'NSpgid': '1440051', 'NSsid': '1440051', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98644 kB', 'VmRSS': '98644 kB', 'RssAnon': '59768 kB', 'RssFile': '38876 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '48', 'nonvoluntary_ctxt_switches': '98'} ('datou_batch_current', '1456533', '1106844', '0', '1106844', '865592', '98644', b'', 'marlene', '2628480') 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 (20967705) 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 (2628480 ) ) 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 (20967705) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340601374, 'portfolio_id': 20967705}, {'photo_id': 1340601368, 'portfolio_id': 20967705}, {'photo_id': 1340601360, 'portfolio_id': 20967705}, {'photo_id': 1340601345, 'portfolio_id': 20967705}, {'photo_id': 1340601340, 'portfolio_id': 20967705}, {'photo_id': 1340601302, 'portfolio_id': 20967705}, {'photo_id': 1340601143, 'portfolio_id': 20967705}, {'photo_id': 1340601140, 'portfolio_id': 20967705}, {'photo_id': 1340601135, 'portfolio_id': 20967705}, {'photo_id': 1340601133, 'portfolio_id': 20967705}, {'photo_id': 1340601127, 'portfolio_id': 20967705}, {'photo_id': 1340601120, 'portfolio_id': 20967705}, {'photo_id': 1340601083, 'portfolio_id': 20967705}, {'photo_id': 1340601080, 'portfolio_id': 20967705}, {'photo_id': 1340601074, 'portfolio_id': 20967705}, {'photo_id': 1340601064, 'portfolio_id': 20967705}, {'photo_id': 1340601028, 'portfolio_id': 20967705}, {'photo_id': 1340601023, 'portfolio_id': 20967705}, {'photo_id': 1340601018, 'portfolio_id': 20967705}, {'photo_id': 1340601003, 'portfolio_id': 20967705}, {'photo_id': 1340600998, 'portfolio_id': 20967705}, {'photo_id': 1340600996, 'portfolio_id': 20967705}, {'photo_id': 1340600963, 'portfolio_id': 20967705}, {'photo_id': 1340600957, 'portfolio_id': 20967705}, {'photo_id': 1340600954, 'portfolio_id': 20967705}, {'photo_id': 1340600946, 'portfolio_id': 20967705}, {'photo_id': 1340600941, 'portfolio_id': 20967705}, {'photo_id': 1340600888, 'portfolio_id': 20967705}, {'photo_id': 1340600886, 'portfolio_id': 20967705}, {'photo_id': 1340600857, 'portfolio_id': 20967705}, {'photo_id': 1340600787, 'portfolio_id': 20967705}, {'photo_id': 1340600774, 'portfolio_id': 20967705}, {'photo_id': 1340600766, 'portfolio_id': 20967705}, {'photo_id': 1340600757, 'portfolio_id': 20967705}, {'photo_id': 1340600753, 'portfolio_id': 20967705}, {'photo_id': 1340600743, 'portfolio_id': 20967705}, {'photo_id': 1340600643, 'portfolio_id': 20967705}, {'photo_id': 1340600636, 'portfolio_id': 20967705}, {'photo_id': 1340600627, 'portfolio_id': 20967705}, {'photo_id': 1340600588, 'portfolio_id': 20967705}, {'photo_id': 1340600584, 'portfolio_id': 20967705}, {'photo_id': 1340600578, 'portfolio_id': 20967705}, {'photo_id': 1340600573, 'portfolio_id': 20967705}, {'photo_id': 1340600567, 'portfolio_id': 20967705}, {'photo_id': 1340600564, 'portfolio_id': 20967705}, {'photo_id': 1340600529, 'portfolio_id': 20967705}, {'photo_id': 1340600525, 'portfolio_id': 20967705}, {'photo_id': 1340600518, 'portfolio_id': 20967705}, {'photo_id': 1340600513, 'portfolio_id': 20967705}, {'photo_id': 1340600508, 'portfolio_id': 20967705}, {'photo_id': 1340600506, 'portfolio_id': 20967705}, {'photo_id': 1340600476, 'portfolio_id': 20967705}, {'photo_id': 1340600470, 'portfolio_id': 20967705}, {'photo_id': 1340600432, 'portfolio_id': 20967705}, {'photo_id': 1340600426, 'portfolio_id': 20967705}, {'photo_id': 1340600423, 'portfolio_id': 20967705}, {'photo_id': 1340600349, 'portfolio_id': 20967705}, {'photo_id': 1340600346, 'portfolio_id': 20967705}, {'photo_id': 1340600341, 'portfolio_id': 20967705}, {'photo_id': 1340600339, 'portfolio_id': 20967705}, {'photo_id': 1340600147, 'portfolio_id': 20967705}, {'photo_id': 1340600142, 'portfolio_id': 20967705}, {'photo_id': 1340600138, 'portfolio_id': 20967705}, {'photo_id': 1340600135, 'portfolio_id': 20967705}] map_portfolio_id_photo_id: {20967705: [1340601374, 1340601368, 1340601360, 1340601345, 1340601340, 1340601302, 1340601143, 1340601140, 1340601135, 1340601133, 1340601127, 1340601120, 1340601083, 1340601080, 1340601074, 1340601064, 1340601028, 1340601023, 1340601018, 1340601003, 1340600998, 1340600996, 1340600963, 1340600957, 1340600954, 1340600946, 1340600941, 1340600888, 1340600886, 1340600857, 1340600787, 1340600774, 1340600766, 1340600757, 1340600753, 1340600743, 1340600643, 1340600636, 1340600627, 1340600588, 1340600584, 1340600578, 1340600573, 1340600567, 1340600564, 1340600529, 1340600525, 1340600518, 1340600513, 1340600508, 1340600506, 1340600476, 1340600470, 1340600432, 1340600426, 1340600423, 1340600349, 1340600346, 1340600341, 1340600339, 1340600147, 1340600142, 1340600138, 1340600135]} ##### 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.016228199005126953 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Mar 3 10:00:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20967705) 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 : 20967705 get user id for portfolio 20967705 get sub ptf for main ptf 20967705, type 3726 and hashtags ['environnement', 'Teint_Dans_La_Masse', 'metal', 'Carton_brun', 'cartonnette', 'papier', 'Carton_gris', 'kraft', 'flou', 'autre_refus', 'plastique', 'mal_croppe'] 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`=20967705 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','metal','Carton_brun','cartonnette','papier','Carton_gris','kraft','flou','autre_refus','plastique','mal_croppe')) 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`=20967705 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','metal','Carton_brun','cartonnette','papier','Carton_gris','kraft','flou','autre_refus','plastique','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 20967705, 'sub_port_id': 20967726, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589108, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 29)}, 'environnement': {'main_port_id': 20967705, 'sub_port_id': 20967727, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589109, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 29)}, 'metal': {'main_port_id': 20967705, 'sub_port_id': 20967728, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589110, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 29)}, 'kraft': {'main_port_id': 20967705, 'sub_port_id': 20967729, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589111, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 29)}, 'mal_croppe': {'main_port_id': 20967705, 'sub_port_id': 20967730, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589112, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 29)}, 'papier': {'main_port_id': 20967705, 'sub_port_id': 20967731, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589113, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 20967705, 'sub_port_id': 20967732, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589114, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 29)}, 'flou': {'main_port_id': 20967705, 'sub_port_id': 20967733, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589115, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 29)}, 'plastique': {'main_port_id': 20967705, 'sub_port_id': 20967734, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589116, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 29)}, 'Carton_gris': {'main_port_id': 20967705, 'sub_port_id': 20967735, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589117, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 29)}, 'Carton_brun': {'main_port_id': 20967705, 'sub_port_id': 20967736, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589118, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 29)}, 'autre_refus': {'main_port_id': 20967705, 'sub_port_id': 20967737, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589119, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20967726 , 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=20967705 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 (20967726) result : ((1340600788,), (1340600936,), (1340600953,), (1340601040,), (1340601041,), (1340601042,), (1340601418,), (1340601419,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20967705) result : ((1340600135,), (1340600138,), (1340600142,), (1340600147,), (1340600339,), (1340600341,), (1340600346,), (1340600349,), (1340600423,), (1340600426,), (1340600432,), (1340600470,), (1340600476,), (1340600506,), (1340600508,), (1340600513,), (1340600518,), (1340600525,), (1340600529,), (1340600564,), (1340600567,), (1340600573,), (1340600578,), (1340600584,), (1340600588,), (1340600627,), (1340600636,), (1340600643,), (1340600743,), (1340600753,), (1340600757,), (1340600766,), (1340600774,), (1340600787,), (1340600857,), (1340600886,), (1340600888,), (1340600941,), (1340600946,), (1340600954,), (1340600957,), (1340600963,), (1340600996,), (1340600998,), (1340601003,), (1340601018,), (1340601023,), (1340601028,), (1340601064,), (1340601074,), (1340601080,), (1340601083,), (1340601120,), (1340601127,), (1340601133,), (1340601135,), (1340601140,), (1340601143,), (1340601302,), (1340601340,), (1340601345,), (1340601360,), (1340601368,), (1340601374,)) 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 20967727 , 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=20967705 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 (20967727) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20967705) result : ((1340600135,), (1340600138,), (1340600142,), (1340600147,), (1340600339,), (1340600341,), (1340600346,), (1340600349,), (1340600423,), (1340600426,), (1340600432,), (1340600470,), (1340600476,), (1340600506,), (1340600508,), (1340600513,), (1340600518,), (1340600525,), (1340600529,), (1340600564,), (1340600567,), (1340600573,), (1340600578,), (1340600584,), (1340600588,), (1340600627,), (1340600636,), (1340600643,), (1340600743,), (1340600753,), (1340600757,), (1340600766,), (1340600774,), (1340600787,), (1340600857,), (1340600886,), (1340600888,), (1340600941,), (1340600946,), (1340600954,), (1340600957,), (1340600963,), (1340600996,), (1340600998,), (1340601003,), (1340601018,), (1340601023,), (1340601028,), (1340601064,), (1340601074,), (1340601080,), (1340601083,), (1340601120,), (1340601127,), (1340601133,), (1340601135,), (1340601140,), (1340601143,), (1340601302,), (1340601340,), (1340601345,), (1340601360,), (1340601368,), (1340601374,)) 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 20967728 , 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=20967705 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 (20967728) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20967705) result : ((1340600135,), (1340600138,), (1340600142,), (1340600147,), (1340600339,), (1340600341,), (1340600346,), (1340600349,), (1340600423,), (1340600426,), (1340600432,), (1340600470,), (1340600476,), (1340600506,), (1340600508,), (1340600513,), (1340600518,), (1340600525,), (1340600529,), (1340600564,), (1340600567,), (1340600573,), (1340600578,), (1340600584,), (1340600588,), (1340600627,), (1340600636,), (1340600643,), (1340600743,), (1340600753,), (1340600757,), (1340600766,), (1340600774,), (1340600787,), (1340600857,), (1340600886,), (1340600888,), (1340600941,), (1340600946,), (1340600954,), (1340600957,), (1340600963,), (1340600996,), (1340600998,), (1340601003,), (1340601018,), (1340601023,), (1340601028,), (1340601064,), (1340601074,), (1340601080,), (1340601083,), (1340601120,), (1340601127,), (1340601133,), (1340601135,), (1340601140,), (1340601143,), (1340601302,), (1340601340,), (1340601345,), (1340601360,), (1340601368,), (1340601374,)) 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 20967729 , 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=20967705 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 (20967729) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20967705) result : ((1340600135,), (1340600138,), (1340600142,), (1340600147,), (1340600339,), (1340600341,), (1340600346,), (1340600349,), (1340600423,), (1340600426,), (1340600432,), (1340600470,), (1340600476,), (1340600506,), (1340600508,), (1340600513,), (1340600518,), (1340600525,), (1340600529,), (1340600564,), (1340600567,), (1340600573,), (1340600578,), (1340600584,), (1340600588,), (1340600627,), (1340600636,), (1340600643,), (1340600743,), (1340600753,), (1340600757,), (1340600766,), (1340600774,), (1340600787,), (1340600857,), (1340600886,), (1340600888,), (1340600941,), (1340600946,), (1340600954,), (1340600957,), (1340600963,), (1340600996,), (1340600998,), (1340601003,), (1340601018,), (1340601023,), (1340601028,), (1340601064,), (1340601074,), (1340601080,), (1340601083,), (1340601120,), (1340601127,), (1340601133,), (1340601135,), (1340601140,), (1340601143,), (1340601302,), (1340601340,), (1340601345,), (1340601360,), (1340601368,), (1340601374,)) 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 20967730 , 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=20967705 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 (20967730) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20967705) result : ((1340600135,), (1340600138,), (1340600142,), (1340600147,), (1340600339,), (1340600341,), (1340600346,), (1340600349,), (1340600423,), (1340600426,), (1340600432,), (1340600470,), (1340600476,), (1340600506,), (1340600508,), (1340600513,), (1340600518,), (1340600525,), (1340600529,), (1340600564,), (1340600567,), (1340600573,), (1340600578,), (1340600584,), (1340600588,), (1340600627,), (1340600636,), (1340600643,), (1340600743,), (1340600753,), (1340600757,), (1340600766,), (1340600774,), (1340600787,), (1340600857,), (1340600886,), (1340600888,), (1340600941,), (1340600946,), (1340600954,), (1340600957,), (1340600963,), (1340600996,), (1340600998,), (1340601003,), (1340601018,), (1340601023,), (1340601028,), (1340601064,), (1340601074,), (1340601080,), (1340601083,), (1340601120,), (1340601127,), (1340601133,), (1340601135,), (1340601140,), (1340601143,), (1340601302,), (1340601340,), (1340601345,), (1340601360,), (1340601368,), (1340601374,)) 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 20967731 , 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=20967705 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 (20967731) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20967705) result : ((1340600135,), (1340600138,), (1340600142,), (1340600147,), (1340600339,), (1340600341,), (1340600346,), (1340600349,), (1340600423,), (1340600426,), (1340600432,), (1340600470,), (1340600476,), (1340600506,), (1340600508,), (1340600513,), (1340600518,), (1340600525,), (1340600529,), (1340600564,), (1340600567,), (1340600573,), (1340600578,), (1340600584,), (1340600588,), (1340600627,), (1340600636,), (1340600643,), (1340600743,), (1340600753,), (1340600757,), (1340600766,), (1340600774,), (1340600787,), (1340600857,), (1340600886,), (1340600888,), (1340600941,), (1340600946,), (1340600954,), (1340600957,), (1340600963,), (1340600996,), (1340600998,), (1340601003,), (1340601018,), (1340601023,), (1340601028,), (1340601064,), (1340601074,), (1340601080,), (1340601083,), (1340601120,), (1340601127,), (1340601133,), (1340601135,), (1340601140,), (1340601143,), (1340601302,), (1340601340,), (1340601345,), (1340601360,), (1340601368,), (1340601374,)) 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 20967732 , 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=20967705 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 (20967732) result : ((1340600768,), (1340600924,), (1340600925,), (1340600942,), (1340600943,), (1340600944,), (1340600945,), (1340601059,), (1340601060,), (1340601061,), (1340601062,), (1340601401,), (1340601407,), (1340601408,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20967705) result : ((1340600135,), (1340600138,), (1340600142,), (1340600147,), (1340600339,), (1340600341,), (1340600346,), (1340600349,), (1340600423,), (1340600426,), (1340600432,), (1340600470,), (1340600476,), (1340600506,), (1340600508,), (1340600513,), (1340600518,), (1340600525,), (1340600529,), (1340600564,), (1340600567,), (1340600573,), (1340600578,), (1340600584,), (1340600588,), (1340600627,), (1340600636,), (1340600643,), (1340600743,), (1340600753,), (1340600757,), (1340600766,), (1340600774,), (1340600787,), (1340600857,), (1340600886,), (1340600888,), (1340600941,), (1340600946,), (1340600954,), (1340600957,), (1340600963,), (1340600996,), (1340600998,), (1340601003,), (1340601018,), (1340601023,), (1340601028,), (1340601064,), (1340601074,), (1340601080,), (1340601083,), (1340601120,), (1340601127,), (1340601133,), (1340601135,), (1340601140,), (1340601143,), (1340601302,), (1340601340,), (1340601345,), (1340601360,), (1340601368,), (1340601374,)) 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 20967733 , 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=20967705 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 (20967733) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20967705) result : ((1340600135,), (1340600138,), (1340600142,), (1340600147,), (1340600339,), (1340600341,), (1340600346,), (1340600349,), (1340600423,), (1340600426,), (1340600432,), (1340600470,), (1340600476,), (1340600506,), (1340600508,), (1340600513,), (1340600518,), (1340600525,), (1340600529,), (1340600564,), (1340600567,), (1340600573,), (1340600578,), (1340600584,), (1340600588,), (1340600627,), (1340600636,), (1340600643,), (1340600743,), (1340600753,), (1340600757,), (1340600766,), (1340600774,), (1340600787,), (1340600857,), (1340600886,), (1340600888,), (1340600941,), (1340600946,), (1340600954,), (1340600957,), (1340600963,), (1340600996,), (1340600998,), (1340601003,), (1340601018,), (1340601023,), (1340601028,), (1340601064,), (1340601074,), (1340601080,), (1340601083,), (1340601120,), (1340601127,), (1340601133,), (1340601135,), (1340601140,), (1340601143,), (1340601302,), (1340601340,), (1340601345,), (1340601360,), (1340601368,), (1340601374,)) 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 20967734 , 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=20967705 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 (20967734) result : ((1340600790,), (1340600937,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20967705) result : ((1340600135,), (1340600138,), (1340600142,), (1340600147,), (1340600339,), (1340600341,), (1340600346,), (1340600349,), (1340600423,), (1340600426,), (1340600432,), (1340600470,), (1340600476,), (1340600506,), (1340600508,), (1340600513,), (1340600518,), (1340600525,), (1340600529,), (1340600564,), (1340600567,), (1340600573,), (1340600578,), (1340600584,), (1340600588,), (1340600627,), (1340600636,), (1340600643,), (1340600743,), (1340600753,), (1340600757,), (1340600766,), (1340600774,), (1340600787,), (1340600857,), (1340600886,), (1340600888,), (1340600941,), (1340600946,), (1340600954,), (1340600957,), (1340600963,), (1340600996,), (1340600998,), (1340601003,), (1340601018,), (1340601023,), (1340601028,), (1340601064,), (1340601074,), (1340601080,), (1340601083,), (1340601120,), (1340601127,), (1340601133,), (1340601135,), (1340601140,), (1340601143,), (1340601302,), (1340601340,), (1340601345,), (1340601360,), (1340601368,), (1340601374,)) 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 20967735 , 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=20967705 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 (20967735) result : ((1340600781,), (1340600782,), (1340600934,), (1340601037,), (1340601073,), (1340601416,), (1340601417,), (1340601480,), (1340601481,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20967705) result : ((1340600135,), (1340600138,), (1340600142,), (1340600147,), (1340600339,), (1340600341,), (1340600346,), (1340600349,), (1340600423,), (1340600426,), (1340600432,), (1340600470,), (1340600476,), (1340600506,), (1340600508,), (1340600513,), (1340600518,), (1340600525,), (1340600529,), (1340600564,), (1340600567,), (1340600573,), (1340600578,), (1340600584,), (1340600588,), (1340600627,), (1340600636,), (1340600643,), (1340600743,), (1340600753,), (1340600757,), (1340600766,), (1340600774,), (1340600787,), (1340600857,), (1340600886,), (1340600888,), (1340600941,), (1340600946,), (1340600954,), (1340600957,), (1340600963,), (1340600996,), (1340600998,), (1340601003,), (1340601018,), (1340601023,), (1340601028,), (1340601064,), (1340601074,), (1340601080,), (1340601083,), (1340601120,), (1340601127,), (1340601133,), (1340601135,), (1340601140,), (1340601143,), (1340601302,), (1340601340,), (1340601345,), (1340601360,), (1340601368,), (1340601374,)) 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 20967736 , 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=20967705 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 (20967736) result : ((1340601358,), (1340601405,), (1340601420,), (1340601421,), (1340601482,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20967705) result : ((1340600135,), (1340600138,), (1340600142,), (1340600147,), (1340600339,), (1340600341,), (1340600346,), (1340600349,), (1340600423,), (1340600426,), (1340600432,), (1340600470,), (1340600476,), (1340600506,), (1340600508,), (1340600513,), (1340600518,), (1340600525,), (1340600529,), (1340600564,), (1340600567,), (1340600573,), (1340600578,), (1340600584,), (1340600588,), (1340600627,), (1340600636,), (1340600643,), (1340600743,), (1340600753,), (1340600757,), (1340600766,), (1340600774,), (1340600787,), (1340600857,), (1340600886,), (1340600888,), (1340600941,), (1340600946,), (1340600954,), (1340600957,), (1340600963,), (1340600996,), (1340600998,), (1340601003,), (1340601018,), (1340601023,), (1340601028,), (1340601064,), (1340601074,), (1340601080,), (1340601083,), (1340601120,), (1340601127,), (1340601133,), (1340601135,), (1340601140,), (1340601143,), (1340601302,), (1340601340,), (1340601345,), (1340601360,), (1340601368,), (1340601374,)) 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 20967737 , 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=20967705 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 (20967737) result : ((1340600775,), (1340600776,), (1340600777,), (1340600778,), (1340600779,), (1340600929,), (1340600930,), (1340600931,), (1340600932,), (1340600950,), (1340600951,), (1340601029,), (1340601030,), (1340601031,), (1340601032,), (1340601033,), (1340601034,), (1340601035,), (1340601067,), (1340601068,), (1340601069,), (1340601070,), (1340601071,), (1340601072,), (1340601351,), (1340601352,), (1340601353,), (1340601354,), (1340601355,), (1340601356,), (1340601402,), (1340601403,), (1340601404,), (1340601409,), (1340601410,), (1340601411,), (1340601412,), (1340601413,), (1340601414,), (1340601415,), (1340601474,), (1340601475,), (1340601476,), (1340601477,), (1340601478,), (1340601497,), (1340601498,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20967705) result : ((1340600135,), (1340600138,), (1340600142,), (1340600147,), (1340600339,), (1340600341,), (1340600346,), (1340600349,), (1340600423,), (1340600426,), (1340600432,), (1340600470,), (1340600476,), (1340600506,), (1340600508,), (1340600513,), (1340600518,), (1340600525,), (1340600529,), (1340600564,), (1340600567,), (1340600573,), (1340600578,), (1340600584,), (1340600588,), (1340600627,), (1340600636,), (1340600643,), (1340600743,), (1340600753,), (1340600757,), (1340600766,), (1340600774,), (1340600787,), (1340600857,), (1340600886,), (1340600888,), (1340600941,), (1340600946,), (1340600954,), (1340600957,), (1340600963,), (1340600996,), (1340600998,), (1340601003,), (1340601018,), (1340601023,), (1340601028,), (1340601064,), (1340601074,), (1340601080,), (1340601083,), (1340601120,), (1340601127,), (1340601133,), (1340601135,), (1340601140,), (1340601143,), (1340601302,), (1340601340,), (1340601345,), (1340601360,), (1340601368,), (1340601374,)) 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`=20967705 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','metal','Carton_brun','cartonnette','papier','Carton_gris','kraft','flou','autre_refus','plastique','mal_croppe')) 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`=20967705 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','metal','Carton_brun','cartonnette','papier','Carton_gris','kraft','flou','autre_refus','plastique','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 20967705, 'sub_port_id': 20967738, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589120, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 30)}, 'environnement': {'main_port_id': 20967705, 'sub_port_id': 20967739, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589121, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 30)}, 'metal': {'main_port_id': 20967705, 'sub_port_id': 20967740, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589122, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 30)}, 'kraft': {'main_port_id': 20967705, 'sub_port_id': 20967741, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589123, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 30)}, 'mal_croppe': {'main_port_id': 20967705, 'sub_port_id': 20967742, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589124, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 30)}, 'papier': {'main_port_id': 20967705, 'sub_port_id': 20967743, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589125, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 20967705, 'sub_port_id': 20967744, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589126, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 30)}, 'flou': {'main_port_id': 20967705, 'sub_port_id': 20967745, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589127, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 30)}, 'plastique': {'main_port_id': 20967705, 'sub_port_id': 20967746, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589128, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 30)}, 'Carton_gris': {'main_port_id': 20967705, 'sub_port_id': 20967747, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589129, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 30)}, 'Carton_brun': {'main_port_id': 20967705, 'sub_port_id': 20967748, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589130, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 30)}, 'autre_refus': {'main_port_id': 20967705, 'sub_port_id': 20967749, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13589131, 'last_updated_at': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 9, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 9, 49, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20967738,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20967726 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20967739,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20967727 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20967740,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20967728 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20967741,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20967729 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20967742,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20967730 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20967743,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20967731 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20967744,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20967732 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20967745,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20967733 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20967746,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20967734 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20967747,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20967735 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20967748,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20967736 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20967749,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20967737 lien utilise dans velours : https://www.fotonower.com/velours/20967738,20967739,20967740,20967741,20967742,20967743,20967744,20967745,20967746,20967747,20967748,20967749?tags=cartonnette,environnement,metal,kraft,mal_croppe,papier,Teint_Dans_La_Masse,flou,plastique,Carton_gris,Carton_brun,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20967705]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340601374, 1340601368, 1340601360, 1340601345, 1340601340, 1340601302] map_info['map_portfolio_photo'] : {20967705: [1340601374, 1340601368, 1340601360, 1340601345, 1340601340, 1340601302, 1340601143, 1340601140, 1340601135, 1340601133, 1340601127, 1340601120, 1340601083, 1340601080, 1340601074, 1340601064, 1340601028, 1340601023, 1340601018, 1340601003, 1340600998, 1340600996, 1340600963, 1340600957, 1340600954, 1340600946, 1340600941, 1340600888, 1340600886, 1340600857, 1340600787, 1340600774, 1340600766, 1340600757, 1340600753, 1340600743, 1340600643, 1340600636, 1340600627, 1340600588, 1340600584, 1340600578, 1340600573, 1340600567, 1340600564, 1340600529, 1340600525, 1340600518, 1340600513, 1340600508, 1340600506, 1340600476, 1340600470, 1340600432, 1340600426, 1340600423, 1340600349, 1340600346, 1340600341, 1340600339, 1340600147, 1340600142, 1340600138, 1340600135]} final : False mtd_id 4302 list_pids : [1340601374, 1340601368, 1340601360, 1340601345, 1340601340, 1340601302] Looping around the photos to save general results len do output : 1 /20967705. 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, '2628480') ('4302', '20967705', '1340601374', None, None, None, None, None, '2628480') ('4302', None, None, None, None, None, None, None, '2628480') ('4302', '20967705', '1340601368', None, None, None, None, None, '2628480') ('4302', None, None, None, None, None, None, None, '2628480') ('4302', '20967705', '1340601360', None, None, None, None, None, '2628480') ('4302', None, None, None, None, None, None, None, '2628480') ('4302', '20967705', '1340601345', None, None, None, None, None, '2628480') ('4302', None, None, None, None, None, None, None, '2628480') ('4302', '20967705', '1340601340', None, None, None, None, None, '2628480') ('4302', None, None, None, None, None, None, None, '2628480') ('4302', '20967705', '1340601302', None, None, None, None, None, '2628480') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '20967705', "{'cartonnette': 20967726, 'environnement': 20967727, 'metal': 20967728, 'kraft': 20967729, 'mal_croppe': 20967730, 'papier': 20967731, 'Teint_Dans_La_Masse': 20967732, 'flou': 20967733, 'plastique': 20967734, 'Carton_gris': 20967735, 'Carton_brun': 20967736, 'autre_refus': 20967737}", None, None, None, None, '2628480'), ('4302', '20967705', '1340601374', None, None, None, None, None, '2628480'), ('4302', '20967705', '1340601368', None, None, None, None, None, '2628480'), ('4302', '20967705', '1340601360', None, None, None, None, None, '2628480'), ('4302', '20967705', '1340601345', None, None, None, None, None, '2628480'), ('4302', '20967705', '1340601340', None, None, None, None, None, '2628480'), ('4302', '20967705', '1340601302', None, None, None, None, None, '2628480')] time used for this insertion : 0.012729644775390625 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.578721284866333 time spend to save output : 0.013015270233154297 total time spend for step 1 : 1.5917365550994873 step2:final Mon Mar 3 10:00:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (20967705) 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 20967705 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340600147,1340600142,1340600138,1340600135,1340600349,1340600346,1340600341,1340600339,1340600476,1340600470,1340600432,1340600426,1340600423,1340600529,1340600525,1340600518,1340600513,1340600508,1340600506,1340600588,1340600584,1340600578,1340600573,1340600567,1340600564,1340600643,1340600636,1340600627,1340600787,1340600774,1340600766,1340600757,1340600753,1340600743,1340600888,1340600886,1340600857,1340600963,1340600957,1340600954,1340600946,1340600941,1340601028,1340601023,1340601018,1340601003,1340600998,1340600996,1340601083,1340601080,1340601074,1340601064,1340601143,1340601140,1340601135,1340601133,1340601127,1340601120,1340601374,1340601368,1340601360,1340601345,1340601340,1340601302); 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([20967705]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340601374: ('0.07521741630410503',), 1340601368: ('0.07521741630410503',), 1340601360: ('0.07521741630410503',), 1340601345: ('0.07521741630410503',), 1340601340: ('0.07521741630410503',), 1340601302: ('0.07521741630410503',)} new output for save of step final : {1340601374: ('0.07521741630410503',), 1340601368: ('0.07521741630410503',), 1340601360: ('0.07521741630410503',), 1340601345: ('0.07521741630410503',), 1340601340: ('0.07521741630410503',), 1340601302: ('0.07521741630410503',)} [1340601374, 1340601368, 1340601360, 1340601345, 1340601340, 1340601302] map_info['map_portfolio_photo'] : {20967705: [1340601374, 1340601368, 1340601360, 1340601345, 1340601340, 1340601302, 1340601143, 1340601140, 1340601135, 1340601133, 1340601127, 1340601120, 1340601083, 1340601080, 1340601074, 1340601064, 1340601028, 1340601023, 1340601018, 1340601003, 1340600998, 1340600996, 1340600963, 1340600957, 1340600954, 1340600946, 1340600941, 1340600888, 1340600886, 1340600857, 1340600787, 1340600774, 1340600766, 1340600757, 1340600753, 1340600743, 1340600643, 1340600636, 1340600627, 1340600588, 1340600584, 1340600578, 1340600573, 1340600567, 1340600564, 1340600529, 1340600525, 1340600518, 1340600513, 1340600508, 1340600506, 1340600476, 1340600470, 1340600432, 1340600426, 1340600423, 1340600349, 1340600346, 1340600341, 1340600339, 1340600147, 1340600142, 1340600138, 1340600135]} final : False mtd_id 4302 list_pids : [1340601374, 1340601368, 1340601360, 1340601345, 1340601340, 1340601302] Looping around the photos to save general results len do output : 6 /1340601374.Didn't retrieve data . /1340601368.Didn't retrieve data . /1340601360.Didn't retrieve data . /1340601345.Didn't retrieve data . /1340601340.Didn't retrieve data . /1340601302.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, '2628480') ('4302', '20967705', '1340601374', None, None, None, None, None, '2628480') ('4302', None, None, None, None, None, None, None, '2628480') ('4302', '20967705', '1340601368', None, None, None, None, None, '2628480') ('4302', None, None, None, None, None, None, None, '2628480') ('4302', '20967705', '1340601360', None, None, None, None, None, '2628480') ('4302', None, None, None, None, None, None, None, '2628480') ('4302', '20967705', '1340601345', None, None, None, None, None, '2628480') ('4302', None, None, None, None, None, None, None, '2628480') ('4302', '20967705', '1340601340', None, None, None, None, None, '2628480') ('4302', None, None, None, None, None, None, None, '2628480') ('4302', '20967705', '1340601302', None, None, None, None, None, '2628480') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '20967705', '1340601374', '0.07521741630410503', None, None, None, None, '2628480'), ('4302', '20967705', '1340601368', '0.07521741630410503', None, None, None, None, '2628480'), ('4302', '20967705', '1340601360', '0.07521741630410503', None, None, None, None, '2628480'), ('4302', '20967705', '1340601345', '0.07521741630410503', None, None, None, None, '2628480'), ('4302', '20967705', '1340601340', '0.07521741630410503', None, None, None, None, '2628480'), ('4302', '20967705', '1340601302', '0.07521741630410503', None, None, None, None, '2628480')] time used for this insertion : 0.012806177139282227 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0700068473815918 time spend to save output : 0.013192415237426758 total time spend for step 2 : 0.08319926261901855 step3:velours_tree Mon Mar 3 10:00:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {20967705: [{'cartonnette': 20967726, 'environnement': 20967727, 'metal': 20967728, 'kraft': 20967729, 'mal_croppe': 20967730, 'papier': 20967731, 'Teint_Dans_La_Masse': 20967732, 'flou': 20967733, 'plastique': 20967734, 'Carton_gris': 20967735, 'Carton_brun': 20967736, 'autre_refus': 20967737}]} input_args_next_step : {20967705: ()} output_args : {20967705: [{'cartonnette': 20967726, 'environnement': 20967727, 'metal': 20967728, 'kraft': 20967729, 'mal_croppe': 20967730, 'papier': 20967731, 'Teint_Dans_La_Masse': 20967732, 'flou': 20967733, 'plastique': 20967734, 'Carton_gris': 20967735, 'Carton_brun': 20967736, 'autre_refus': 20967737}]} args : 20967705 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 : ({'cartonnette': 20967726, 'environnement': 20967727, 'metal': 20967728, 'kraft': 20967729, 'mal_croppe': 20967730, 'papier': 20967731, 'Teint_Dans_La_Masse': 20967732, 'flou': 20967733, 'plastique': 20967734, 'Carton_gris': 20967735, 'Carton_brun': 20967736, 'autre_refus': 20967737},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20967705) 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([20967705]) 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.29041290283203125 time spend to save output : 6.079673767089844e-05 total time spend for step 3 : 0.29047369956970215 step4:send_mail_cod Mon Mar 3 10:00:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1340601374: ('0.07521741630410503',), 1340601368: ('0.07521741630410503',), 1340601360: ('0.07521741630410503',), 1340601345: ('0.07521741630410503',), 1340601340: ('0.07521741630410503',), 1340601302: ('0.07521741630410503',)} input_args_next_step : {1340601374: ()} output_args : {1340601374: ('0.07521741630410503',), 1340601368: ('0.07521741630410503',), 1340601360: ('0.07521741630410503',), 1340601345: ('0.07521741630410503',), 1340601340: ('0.07521741630410503',), 1340601302: ('0.07521741630410503',)} args : 1340601374 depend.output_id : 0 input_args_next_step : {1340601374: ('0.07521741630410503',), 1340601368: ()} output_args : {1340601374: ('0.07521741630410503',), 1340601368: ('0.07521741630410503',), 1340601360: ('0.07521741630410503',), 1340601345: ('0.07521741630410503',), 1340601340: ('0.07521741630410503',), 1340601302: ('0.07521741630410503',)} args : 1340601368 depend.output_id : 0 input_args_next_step : {1340601374: ('0.07521741630410503',), 1340601368: ('0.07521741630410503',), 1340601360: ()} output_args : {1340601374: ('0.07521741630410503',), 1340601368: ('0.07521741630410503',), 1340601360: ('0.07521741630410503',), 1340601345: ('0.07521741630410503',), 1340601340: ('0.07521741630410503',), 1340601302: ('0.07521741630410503',)} args : 1340601360 depend.output_id : 0 input_args_next_step : {1340601374: ('0.07521741630410503',), 1340601368: ('0.07521741630410503',), 1340601360: ('0.07521741630410503',), 1340601345: ()} output_args : {1340601374: ('0.07521741630410503',), 1340601368: ('0.07521741630410503',), 1340601360: ('0.07521741630410503',), 1340601345: ('0.07521741630410503',), 1340601340: ('0.07521741630410503',), 1340601302: ('0.07521741630410503',)} args : 1340601345 depend.output_id : 0 input_args_next_step : {1340601374: ('0.07521741630410503',), 1340601368: ('0.07521741630410503',), 1340601360: ('0.07521741630410503',), 1340601345: ('0.07521741630410503',), 1340601340: ()} output_args : {1340601374: ('0.07521741630410503',), 1340601368: ('0.07521741630410503',), 1340601360: ('0.07521741630410503',), 1340601345: ('0.07521741630410503',), 1340601340: ('0.07521741630410503',), 1340601302: ('0.07521741630410503',)} args : 1340601340 depend.output_id : 0 input_args_next_step : {1340601374: ('0.07521741630410503',), 1340601368: ('0.07521741630410503',), 1340601360: ('0.07521741630410503',), 1340601345: ('0.07521741630410503',), 1340601340: ('0.07521741630410503',), 1340601302: ()} output_args : {1340601374: ('0.07521741630410503',), 1340601368: ('0.07521741630410503',), 1340601360: ('0.07521741630410503',), 1340601345: ('0.07521741630410503',), 1340601340: ('0.07521741630410503',), 1340601302: ('0.07521741630410503',)} args : 1340601302 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 : {20967705: [{'cartonnette': 20967726, 'environnement': 20967727, 'metal': 20967728, 'kraft': 20967729, 'mal_croppe': 20967730, 'papier': 20967731, 'Teint_Dans_La_Masse': 20967732, 'flou': 20967733, 'plastique': 20967734, 'Carton_gris': 20967735, 'Carton_brun': 20967736, 'autre_refus': 20967737}]} input_args_next_step : {1340601374: ('0.07521741630410503',), 1340601368: ('0.07521741630410503',), 1340601360: ('0.07521741630410503',), 1340601345: ('0.07521741630410503',), 1340601340: ('0.07521741630410503',), 1340601302: ('0.07521741630410503',), 20967705: ()} output_args : {20967705: [{'cartonnette': 20967726, 'environnement': 20967727, 'metal': 20967728, 'kraft': 20967729, 'mal_croppe': 20967730, 'papier': 20967731, 'Teint_Dans_La_Masse': 20967732, 'flou': 20967733, 'plastique': 20967734, 'Carton_gris': 20967735, 'Carton_brun': 20967736, 'autre_refus': 20967737}]} args : 20967705 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 :7, first value : ('0.07521741630410503',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20967705) 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 (1340601374,1340601368,1340601360,1340601345,1340601340,1340601302) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340601302 begin to download photo : 1340601345 begin to download photo : 1340601368 download finish for photo 1340601368 begin to download photo : 1340601374 download finish for photo 1340601302 begin to download photo : 1340601340 download finish for photo 1340601345 begin to download photo : 1340601360 download finish for photo 1340601374 download finish for photo 1340601360 download finish for photo 1340601340 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 : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P20967705_03-03-2025_10_00_58.pdf 20967726 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=20967726 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340600788: '1740991853_2194763_1340600147_3ee5e0c28ca694c7e7066fff1517d465_rle_crop_3692227635_0.png', 1340600936: '1740991952_2198629_1340600470_5558fedd33919db289c4dd4308d9cf64_rle_crop_3692229086_0.png', 1340600953: '1740991994_2199031_1340600627_9453bd9cb4679597172dd21b1d5cf83f_rle_crop_3692229141_0.png', 1340601040: '1740992032_2199936_1340600573_725259cc5713f1d9ef426c751faeb97f_rle_crop_3692229569_0.png', 1340601041: '1740992032_2199936_1340600567_92dee96bcc96930fdd2d2e6fc820f2b3_rle_crop_3692229597_0.png', 1340601042: '1740992032_2199936_1340600564_f954c6d09e7beaefcf9597f9f2fe7bca_rle_crop_3692229633_0.png', 1340601418: '1740992293_2210826_1340600888_7f5786e7693b7f8dc0d462dfb0f137d7_rle_crop_3692232003_0.png', 1340601419: '1740992293_2210826_1340600753_43a500461a9773d16c14a16cac63351b_rle_crop_3692232101_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ea3381474cf3b02f6dac6d5c5fa51d60_3564772.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/40e53c48fa4cceb3b0290b0cfc13c15c_19406152.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9594246b02cb23d1181d128d020239bb_52424189.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c308d4f2127b0910e074a7900f88f235_54919341.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c5ac9fa42830418deb31323228fb0b4e_15866480.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c6ff5f38443f7c33e6cda8d6b31c2063_29480632.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/01610ff70494d8440e76b00cfa2c891c_91552743.png change filename to text .imagette209677261740992458/ imagette209677261740992458/1740991853_2194763_1340600147_3ee5e0c28ca694c7e7066fff1517d465_rle_crop_3692227635_0.png.png imagette209677261740992458/1740992293_2210826_1340600753_43a500461a9773d16c14a16cac63351b_rle_crop_3692232101_0.png.png imagette209677261740992458/1740991994_2199031_1340600627_9453bd9cb4679597172dd21b1d5cf83f_rle_crop_3692229141_0.png.png imagette209677261740992458/1740991952_2198629_1340600470_5558fedd33919db289c4dd4308d9cf64_rle_crop_3692229086_0.png.png imagette209677261740992458/1740992032_2199936_1340600573_725259cc5713f1d9ef426c751faeb97f_rle_crop_3692229569_0.png.png imagette209677261740992458/1740992293_2210826_1340600888_7f5786e7693b7f8dc0d462dfb0f137d7_rle_crop_3692232003_0.png.png imagette209677261740992458/1740992032_2199936_1340600567_92dee96bcc96930fdd2d2e6fc820f2b3_rle_crop_3692229597_0.png.png imagette209677261740992458/1740992032_2199936_1340600564_f954c6d09e7beaefcf9597f9f2fe7bca_rle_crop_3692229633_0.png.png imagette209677281740992459/ imagette209677291740992459/ imagette209677301740992459/ imagette209677331740992459/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c6b6cfc0d0d9f670901a9ee6dfeb8205_4279060.png imagette209677261740992458 20967728 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=20967728 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209677281740992459 20967729 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=20967729 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209677291740992459 20967730 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=20967730 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209677301740992459 20967733 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=20967733 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209677331740992459 20967734 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=20967734 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340600790: '1740991853_2194763_1340600147_3ee5e0c28ca694c7e7066fff1517d465_rle_crop_3692227636_0.png', 1340600937: '1740991952_2198629_1340600432_8a3696250b9c6d6ff5d607b2d123e25e_rle_crop_3692229097_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c704de2878035f04b034b67263b66bec_46875973.png change filename to text .imagette209677341740992459/ imagette209677341740992459/1740991853_2194763_1340600147_3ee5e0c28ca694c7e7066fff1517d465_rle_crop_3692227636_0.png.png imagette209677341740992459/1740991952_2198629_1340600432_8a3696250b9c6d6ff5d607b2d123e25e_rle_crop_3692229097_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/154f962dd37a76d269f5a5df1659baae_39740670.png imagette209677341740992459 20967737 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=20967737 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340601411: '1740992293_2210826_1340600766_f21856a45cc679e846456edee2988fcc_rle_crop_3692232046_0.png', 1340601351: '1740992232_2208978_1340601023_68f046a7ea3746294b3195695e0dce7c_rle_crop_3692231640_0.png', 1340601352: '1740992232_2208978_1340601018_ed973c1c0e2b29f86bef784aad870987_rle_crop_3692231653_0.png', 1340601353: '1740992232_2208978_1340601003_caa1b1277ac388b301f65a82d6b0a22d_rle_crop_3692231724_0.png', 1340601354: '1740992232_2208978_1340601003_caa1b1277ac388b301f65a82d6b0a22d_rle_crop_3692231726_0.png', 1340601355: '1740992232_2208978_1340600998_8656c5f7c8fd1aa7a05b3c460fba0392_rle_crop_3692231741_0.png', 1340601356: '1740992232_2208978_1340600996_1c2a16901045ab7fde27bf317338e206_rle_crop_3692231758_0.png', 1340601402: '1740992312_2210997_1340600963_5bc588c66e5132d14fb733c1eb8e8a8a_rle_crop_3692232015_0.png', 1340601403: '1740992312_2210997_1340600886_6eee54da060c83c29f55e8cccbbcff0d_rle_crop_3692232040_0.png', 1340601404: '1740992312_2210997_1340600857_89e6450b3f6b14e663fe5dbc3fe38450_rle_crop_3692232075_0.png', 1340601409: '1740992293_2210826_1340600888_7f5786e7693b7f8dc0d462dfb0f137d7_rle_crop_3692232008_0.png', 1340601410: '1740992293_2210826_1340600774_702956f2e59c5583e14d327d23e3f9b8_rle_crop_3692232026_0.png', 1340601072: '1740992056_2200325_1340600506_72c24ec643d658b338b8b607c9865098_rle_crop_3692229190_0.png', 1340601412: '1740992293_2210826_1340600766_f21856a45cc679e846456edee2988fcc_rle_crop_3692232049_0.png', 1340601413: '1740992293_2210826_1340600757_636574362ac600f204a1a0f6d79bafa2_rle_crop_3692232061_0.png', 1340601414: '1740992293_2210826_1340600753_43a500461a9773d16c14a16cac63351b_rle_crop_3692232103_0.png', 1340601415: '1740992293_2210826_1340600743_9afc816e565fc5612e37ef17c56684a2_rle_crop_3692232242_0.png', 1340601474: '1740992334_2211230_1340601028_d897314916563469a6220cb0ac44ce2e_rle_crop_3692232470_0.png', 1340601475: '1740992334_2211230_1340600957_386514696799fd09489e34fc91cab62d_rle_crop_3692232543_0.png', 1340601476: '1740992334_2211230_1340600954_310524ace848feae51c69bb66b377800_rle_crop_3692232562_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b6abeeb0162d27542d247dd6ec0e97df_45114028.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/80f91e10b019a960d1d629d44cce7a3f_57503720.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/91364ee9747381a3c937842802ca8cc3_26250114.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6fdf5f054c1898954d93f6d5ecf119fa_57772872.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/65974bc1afb5d04efdbfb132d8fd27fb_83376866.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b66824b18916c374c8892aa4dfce9106_89676322.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2a301ade3ce7992e9615aa978ed34468_59228608.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/cf298fd08c56b6ad035254b9d867b407_24403904.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0ee6a7d9d047de4b21f85f64314f3fc7_30437189.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/cd789f2f58374af5fd54fd54c245f642_3344528.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/05c070808fab6072ecd6bdafe4570d6e_70582986.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/1af3e5d0aa3b8a137045d70aeb38d8bd_93875.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2bb21cc06bd26628a7323d5b9860b66b_22136121.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7fe4b487bc1190c491554ccc70159ec1_63242334.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d2e8180fddd59102403cfca9b563dc5c_35342393.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/50d892e0d4fa220cb852859ab817b360_50498514.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f6c2368956d59affc9ef2f5aefe2dd38_62956421.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ab794c8924d7fc34cebb89de0a276680_10589610.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/5f6b49b8acdb723c15484e46da53db19_14116763.png change filename to text .imagette209677371740992459/ imagette209677371740992459/1740992293_2210826_1340600757_636574362ac600f204a1a0f6d79bafa2_rle_crop_3692232061_0.png.png imagette209677371740992459/1740992312_2210997_1340600857_89e6450b3f6b14e663fe5dbc3fe38450_rle_crop_3692232075_0.png.png imagette209677371740992459/1740992334_2211230_1340600957_386514696799fd09489e34fc91cab62d_rle_crop_3692232543_0.png.png imagette209677371740992459/1740992232_2208978_1340601003_caa1b1277ac388b301f65a82d6b0a22d_rle_crop_3692231726_0.png.png imagette209677371740992459/1740992232_2208978_1340601018_ed973c1c0e2b29f86bef784aad870987_rle_crop_3692231653_0.png.png imagette209677371740992459/1740992232_2208978_1340600996_1c2a16901045ab7fde27bf317338e206_rle_crop_3692231758_0.png.png imagette209677371740992459/1740992293_2210826_1340600766_f21856a45cc679e846456edee2988fcc_rle_crop_3692232046_0.png.png imagette209677371740992459/1740992056_2200325_1340600506_72c24ec643d658b338b8b607c9865098_rle_crop_3692229190_0.png.png imagette209677371740992459/1740992293_2210826_1340600753_43a500461a9773d16c14a16cac63351b_rle_crop_3692232103_0.png.png imagette209677371740992459/1740992312_2210997_1340600886_6eee54da060c83c29f55e8cccbbcff0d_rle_crop_3692232040_0.png.png imagette209677371740992459/1740992232_2208978_1340600998_8656c5f7c8fd1aa7a05b3c460fba0392_rle_crop_3692231741_0.png.png imagette209677371740992459/1740992293_2210826_1340600766_f21856a45cc679e846456edee2988fcc_rle_crop_3692232049_0.png.png imagette209677371740992459/1740992293_2210826_1340600888_7f5786e7693b7f8dc0d462dfb0f137d7_rle_crop_3692232008_0.png.png imagette209677371740992459/1740992232_2208978_1340601003_caa1b1277ac388b301f65a82d6b0a22d_rle_crop_3692231724_0.png.png imagette209677371740992459/1740992293_2210826_1340600774_702956f2e59c5583e14d327d23e3f9b8_rle_crop_3692232026_0.png.png imagette209677371740992459/1740992232_2208978_1340601023_68f046a7ea3746294b3195695e0dce7c_rle_crop_3692231640_0.png.png imagette209677371740992459/1740992293_2210826_1340600743_9afc816e565fc5612e37ef17c56684a2_rle_crop_3692232242_0.png.png imagette209677371740992459/1740992334_2211230_1340600954_310524ace848feae51c69bb66b377800_rle_crop_3692232562_0.png.png imagette209677371740992459/1740992312_2210997_1340600963_5bc588c66e5132d14fb733c1eb8e8a8a_rle_crop_3692232015_0.png.png imagette209677371740992459/1740992334_2211230_1340601028_d897314916563469a6220cb0ac44ce2e_rle_crop_3692232470_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/41c68fd4fbaca4edd8bcbaa3f8a6b951_46467005.png imagette209677371740992459 20967732 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=20967732 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340600768: '1740991853_2194763_1340600138_1c53dbc626c75622daaa5c5cafaaa48d_rle_crop_3692227736_0.png', 1340600924: '1740991952_2198629_1340600470_5558fedd33919db289c4dd4308d9cf64_rle_crop_3692229087_0.png', 1340600925: '1740991952_2198629_1340600470_5558fedd33919db289c4dd4308d9cf64_rle_crop_3692229084_0.png', 1340600942: '1740991994_2199031_1340600636_0491a4ac0097e7add654ef3e2e26ccf0_rle_crop_3692229117_0.png', 1340600943: '1740991994_2199031_1340600636_0491a4ac0097e7add654ef3e2e26ccf0_rle_crop_3692229118_0.png', 1340600944: '1740991994_2199031_1340600627_9453bd9cb4679597172dd21b1d5cf83f_rle_crop_3692229146_0.png', 1340600945: '1740991994_2199031_1340600627_9453bd9cb4679597172dd21b1d5cf83f_rle_crop_3692229144_0.png', 1340601059: '1740992056_2200325_1340600518_5f7e84ccdc636ccd6d77cd108c046f59_rle_crop_3692229157_0.png', 1340601060: '1740992056_2200325_1340600518_5f7e84ccdc636ccd6d77cd108c046f59_rle_crop_3692229154_0.png', 1340601061: '1740992056_2200325_1340600513_f5e348873f136385e53afbf2cd654fcf_rle_crop_3692229170_0.png', 1340601062: '1740992056_2200325_1340600506_72c24ec643d658b338b8b607c9865098_rle_crop_3692229195_0.png', 1340601401: '1740992312_2210997_1340600886_6eee54da060c83c29f55e8cccbbcff0d_rle_crop_3692232041_0.png', 1340601407: '1740992293_2210826_1340600888_7f5786e7693b7f8dc0d462dfb0f137d7_rle_crop_3692232006_0.png', 1340601408: '1740992293_2210826_1340600888_7f5786e7693b7f8dc0d462dfb0f137d7_rle_crop_3692232007_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7e217f885a424b0a92cbdb3d9a90964f_42992046.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4098e1cae5013a9e6a5f8377ed1a32f6_34913028.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/169e842be6ce560be901906453478b04_11147579.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ea510bde7eb3492a2f962930eadbc91d_20140686.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2804daddba87c1a6ccacac3d3dfc11bd_96176602.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7abd201629822db226d8882df566777b_40097573.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/5fa524ae43d5b5153a6de5d884341a79_45062379.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f191965ea600266e3137cda03dadda68_9912774.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/207e01144092eb0b0e0fc834523515c5_22444477.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/39f9f65eac56bbd3ced0824c21a0cf53_91062844.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/3e744c606372856a3c824e2b00819fc6_50940337.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7d10f370ddb5f2b59481e9c989965c65_3747730.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/fbe7b50cfb0c84dad78a776e4cd37026_69115084.png change filename to text .imagette209677321740992460/ imagette209677321740992460/1740992293_2210826_1340600888_7f5786e7693b7f8dc0d462dfb0f137d7_rle_crop_3692232007_0.png.png imagette209677321740992460/1740992293_2210826_1340600888_7f5786e7693b7f8dc0d462dfb0f137d7_rle_crop_3692232006_0.png.png imagette209677321740992460/1740991952_2198629_1340600470_5558fedd33919db289c4dd4308d9cf64_rle_crop_3692229087_0.png.png imagette209677321740992460/1740992056_2200325_1340600513_f5e348873f136385e53afbf2cd654fcf_rle_crop_3692229170_0.png.png imagette209677321740992460/1740992312_2210997_1340600886_6eee54da060c83c29f55e8cccbbcff0d_rle_crop_3692232041_0.png.png imagette209677321740992460/1740991994_2199031_1340600636_0491a4ac0097e7add654ef3e2e26ccf0_rle_crop_3692229117_0.png.png imagette209677321740992460/1740992056_2200325_1340600518_5f7e84ccdc636ccd6d77cd108c046f59_rle_crop_3692229154_0.png.png imagette209677321740992460/1740991994_2199031_1340600636_0491a4ac0097e7add654ef3e2e26ccf0_rle_crop_3692229118_0.png.png imagette209677321740992460/1740991994_2199031_1340600627_9453bd9cb4679597172dd21b1d5cf83f_rle_crop_3692229146_0.png.png imagette209677321740992460/1740991853_2194763_1340600138_1c53dbc626c75622daaa5c5cafaaa48d_rle_crop_3692227736_0.png.png imagette209677321740992460/1740992056_2200325_1340600518_5f7e84ccdc636ccd6d77cd108c046f59_rle_crop_3692229157_0.png.png imagette209677321740992460/1740991952_2198629_1340600470_5558fedd33919db289c4dd4308d9cf64_rle_crop_3692229084_0.png.png imagette209677321740992460/1740992056_2200325_1340600506_72c24ec643d658b338b8b607c9865098_rle_crop_3692229195_0.png.png imagette209677321740992460/1740991994_2199031_1340600627_9453bd9cb4679597172dd21b1d5cf83f_rle_crop_3692229144_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f2cd00ea3fc9bbd582e3208fc56125a1_54996216.png imagette209677321740992460 20967735 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=20967735 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340600781: '1740991853_2194763_1340600138_1c53dbc626c75622daaa5c5cafaaa48d_rle_crop_3692227737_0.png', 1340600782: '1740991853_2194763_1340600135_60b8bb2448fc256e5bf69ca657b1e652_rle_crop_3692227770_0.png', 1340600934: '1740991952_2198629_1340600470_5558fedd33919db289c4dd4308d9cf64_rle_crop_3692229088_0.png', 1340601037: '1740992032_2199936_1340600578_0654e6918c2031c9917470ba18d2f24b_rle_crop_3692229562_0.png', 1340601073: '1740992056_2200325_1340600508_209f861ec7158422ad5da4c27a7751ca_rle_crop_3692229178_0.png', 1340601416: '1740992293_2210826_1340600888_7f5786e7693b7f8dc0d462dfb0f137d7_rle_crop_3692232001_0.png', 1340601417: '1740992293_2210826_1340600888_7f5786e7693b7f8dc0d462dfb0f137d7_rle_crop_3692232010_0.png', 1340601480: '1740992334_2211230_1340601028_d897314916563469a6220cb0ac44ce2e_rle_crop_3692232466_0.png', 1340601481: '1740992334_2211230_1340600941_1d88a99ac8b60745eb7dafef6f939da6_rle_crop_3692232585_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/bb0a2082c3f4093c7943c2a71649773d_76457998.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/a3255572351fcb70e11625d83a83eb23_62332862.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/75118425dd67233aa4f946660655c472_1708441.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b94f4201973106655632e6723d020883_5868256.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0753cfdca69a4b36a47bb06a0b24105a_58403798.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/295498a1eaba20f1d0f5754c37c89acc_41289073.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ff31192ff7f62776563d7bdeecbbaf9a_12901289.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8b2352befcc0926182f45b53d320096a_74746554.png change filename to text .imagette209677351740992461/ imagette209677351740992461/1740992293_2210826_1340600888_7f5786e7693b7f8dc0d462dfb0f137d7_rle_crop_3692232010_0.png.png imagette209677351740992461/1740991853_2194763_1340600135_60b8bb2448fc256e5bf69ca657b1e652_rle_crop_3692227770_0.png.png imagette209677351740992461/1740991952_2198629_1340600470_5558fedd33919db289c4dd4308d9cf64_rle_crop_3692229088_0.png.png imagette209677351740992461/1740992334_2211230_1340601028_d897314916563469a6220cb0ac44ce2e_rle_crop_3692232466_0.png.png imagette209677351740992461/1740992334_2211230_1340600941_1d88a99ac8b60745eb7dafef6f939da6_rle_crop_3692232585_0.png.png imagette209677351740992461/1740992032_2199936_1340600578_0654e6918c2031c9917470ba18d2f24b_rle_crop_3692229562_0.png.png imagette209677351740992461/1740992056_2200325_1340600508_209f861ec7158422ad5da4c27a7751ca_rle_crop_3692229178_0.png.png imagette209677351740992461/1740991853_2194763_1340600138_1c53dbc626c75622daaa5c5cafaaa48d_rle_crop_3692227737_0.png.png imagette209677351740992461/1740992293_2210826_1340600888_7f5786e7693b7f8dc0d462dfb0f137d7_rle_crop_3692232001_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/a772cfc75adcff002637aac6e130ca04_25732190.png imagette209677351740992461 20967736 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=20967736 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340601358: '1740992232_2208978_1340600998_8656c5f7c8fd1aa7a05b3c460fba0392_rle_crop_3692231740_0.png', 1340601405: '1740992312_2210997_1340600886_6eee54da060c83c29f55e8cccbbcff0d_rle_crop_3692232038_0.png', 1340601420: '1740992293_2210826_1340600774_702956f2e59c5583e14d327d23e3f9b8_rle_crop_3692232028_0.png', 1340601421: '1740992293_2210826_1340600774_702956f2e59c5583e14d327d23e3f9b8_rle_crop_3692232027_0.png', 1340601482: '1740992334_2211230_1340601028_d897314916563469a6220cb0ac44ce2e_rle_crop_3692232473_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/363f2d0fc44efec31189112cc2cc947c_94080091.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/210d0da72f06de34ff447cf1a1182ce5_65313490.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4d73159d4a1d80d1f4261317359b477c_33750343.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/1841ecd0689852de5992a79a6ccb9a68_39351250.png change filename to text .imagette209677361740992461/ imagette209677361740992461/1740992312_2210997_1340600886_6eee54da060c83c29f55e8cccbbcff0d_rle_crop_3692232038_0.png.png imagette209677361740992461/1740992293_2210826_1340600774_702956f2e59c5583e14d327d23e3f9b8_rle_crop_3692232028_0.png.png imagette209677361740992461/1740992334_2211230_1340601028_d897314916563469a6220cb0ac44ce2e_rle_crop_3692232473_0.png.png imagette209677361740992461/1740992232_2208978_1340600998_8656c5f7c8fd1aa7a05b3c460fba0392_rle_crop_3692231740_0.png.png imagette209677361740992461/1740992293_2210826_1340600774_702956f2e59c5583e14d327d23e3f9b8_rle_crop_3692232027_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7c0a32c6b1a8b69db2f1eefe82153227_24321491.png imagette209677361740992461 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20967705 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20967738,20967739,20967740,20967741,20967742,20967743,20967744,20967745,20967746,20967747,20967748,20967749?tags=cartonnette,environnement,metal,kraft,mal_croppe,papier,Teint_Dans_La_Masse,flou,plastique,Carton_gris,Carton_brun,autre_refus your option no_mail is active, we will not send the real mail to your client args[1340601374] : ('0.07521741630410503',) no score found for photo 1340601374 We are sending mail with results at report@fotonower.com args[1340601368] : ('0.07521741630410503',) no score found for photo 1340601368 We are sending mail with results at report@fotonower.com args[1340601360] : ('0.07521741630410503',) no score found for photo 1340601360 We are sending mail with results at report@fotonower.com args[1340601345] : ('0.07521741630410503',) no score found for photo 1340601345 We are sending mail with results at report@fotonower.com args[1340601340] : ('0.07521741630410503',) no score found for photo 1340601340 We are sending mail with results at report@fotonower.com args[1340601302] : ('0.07521741630410503',) no score found for photo 1340601302 We are sending mail with results at report@fotonower.com refus_total : 0.07521741630410503 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=20967705 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_P20967705_03-03-2025_10_00_58.pdf results_Auto_P20967705_03-03-2025_10_00_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20967705_03-03-2025_10_00_58.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','20967705','results_Auto_P20967705_03-03-2025_10_00_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20967705_03-03-2025_10_00_58.pdf','pdf','','0.28','0.07521741630410503') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20967705]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340601374, 1340601368, 1340601360, 1340601345, 1340601340, 1340601302] map_info['map_portfolio_photo'] : {20967705: [1340601374, 1340601368, 1340601360, 1340601345, 1340601340, 1340601302, 1340601143, 1340601140, 1340601135, 1340601133, 1340601127, 1340601120, 1340601083, 1340601080, 1340601074, 1340601064, 1340601028, 1340601023, 1340601018, 1340601003, 1340600998, 1340600996, 1340600963, 1340600957, 1340600954, 1340600946, 1340600941, 1340600888, 1340600886, 1340600857, 1340600787, 1340600774, 1340600766, 1340600757, 1340600753, 1340600743, 1340600643, 1340600636, 1340600627, 1340600588, 1340600584, 1340600578, 1340600573, 1340600567, 1340600564, 1340600529, 1340600525, 1340600518, 1340600513, 1340600508, 1340600506, 1340600476, 1340600470, 1340600432, 1340600426, 1340600423, 1340600349, 1340600346, 1340600341, 1340600339, 1340600147, 1340600142, 1340600138, 1340600135]} final : False mtd_id 4302 list_pids : [1340601374, 1340601368, 1340601360, 1340601345, 1340601340, 1340601302] 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, '2628480') ('4302', '20967705', '1340601374', None, None, None, None, None, '2628480') ('4302', None, None, None, None, None, None, None, '2628480') ('4302', '20967705', '1340601368', None, None, None, None, None, '2628480') ('4302', None, None, None, None, None, None, None, '2628480') ('4302', '20967705', '1340601360', None, None, None, None, None, '2628480') ('4302', None, None, None, None, None, None, None, '2628480') ('4302', '20967705', '1340601345', None, None, None, None, None, '2628480') ('4302', None, None, None, None, None, None, None, '2628480') ('4302', '20967705', '1340601340', None, None, None, None, None, '2628480') ('4302', None, None, None, None, None, None, None, '2628480') ('4302', '20967705', '1340601302', None, None, None, None, None, '2628480') 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', '20967705', '1340601374', None, None, None, None, None, '2628480'), ('4302', '20967705', '1340601368', None, None, None, None, None, '2628480'), ('4302', '20967705', '1340601360', None, None, None, None, None, '2628480'), ('4302', '20967705', '1340601345', None, None, None, None, None, '2628480'), ('4302', '20967705', '1340601340', None, None, None, None, None, '2628480'), ('4302', '20967705', '1340601302', None, None, None, None, None, '2628480')] time used for this insertion : 0.012000083923339844 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.54854416847229 time spend to save output : 0.012215375900268555 total time spend for step 4 : 4.560759544372559 step5:split_time_score Mon Mar 3 10:01:03 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 : ['20967705'] 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 : [('20967705',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20967705) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340601368: {'path': 'temp/1740992458_1456533_1340601368_a2ce60baac07bfa332310e663fbd27a9.jpg', 'extension': 'jpg'}, 1340601374: {'path': 'temp/1740992458_1456533_1340601374_2f331fe3f183d548993ab228dfb0b37d.jpg', 'extension': 'jpg'}, 1340601345: {'path': 'temp/1740992458_1456533_1340601345_692901cd773afa4a9efe92547074ead4.jpg', 'extension': 'jpg'}, 1340601360: {'path': 'temp/1740992458_1456533_1340601360_bce74676bcdaaded8837a6177f542766.jpg', 'extension': 'jpg'}, 1340601302: {'path': 'temp/1740992458_1456533_1340601302_a6307a9dd3356dbed8e3acb7496a1cba.jpg', 'extension': 'jpg'}, 1340601340: {'path': 'temp/1740992458_1456533_1340601340_0668119cec5adedb2ab3a561f2ea7f7c.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 = 20967705; (('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 = 20967705 group by h (('09', 64),) 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=20967705 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 (20967705) 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 (20967705) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03032025 20967705 Nombre de photos uploadées : 64 / 23040 (0%) 03032025 20967705 Nombre de photos taguées (types de déchets): 0 / 64 (0%) 03032025 20967705 Nombre de photos taguées (volume) : 0 / 64 (0%) [{'photo_id': 1340600147, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/3ee5e0c28ca694c7e7066fff1517d465.jpg', 'username': None, 'uploaded_at': 1740991579, 'text': 'image_03032025_09_45_04_010148m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340600142, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/a2810c54e84546b6cde03dea823a1bdb.jpg', 'username': None, 'uploaded_at': 1740991579, 'text': 'image_03032025_09_45_14_010135m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1340600138, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/1c53dbc626c75622daaa5c5cafaaa48d.jpg', 'username': None, 'uploaded_at': 1740991579, 'text': 'image_03032025_09_45_34_009124m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340600135, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/60b8bb2448fc256e5bf69ca657b1e652.jpg', 'username': None, 'uploaded_at': 1740991579, 'text': 'image_03032025_09_45_44_010135m0.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.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 7.867813110351562e-06 ???????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003200531005859375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20967705, '2025-03-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1634063,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02172541618347168 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1634063 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1634063, 'dashboard_run_id': 1642034, 'mtr_portfolio_id': 20966655, 'dashboard_result_id': 9162612, '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_P20966655_03-03-2025_09_18_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20966660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20966661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20966662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20966663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20966664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20966665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20966666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20966667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20966668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20966669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20966670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20966671, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1642034, 'mtr_portfolio_id': 20966718, 'dashboard_result_id': 9162613, '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_P20966718_03-03-2025_09_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20966750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20966751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20966752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20966753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20966754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20966755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20966756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20966757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20966758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20966759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20966760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20966761, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1642034, 'mtr_portfolio_id': 20967368, 'dashboard_result_id': 9162614, '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_P20967368_03-03-2025_09_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20967396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20967397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20967398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20967399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20967400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20967401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20967402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20967403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20967404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20967405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20967406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20967407, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1642034, 'mtr_portfolio_id': 20967705, 'dashboard_result_id': 9162615, '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_P20967705_03-03-2025_09_58_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20967726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20967727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20967728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20967729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20967730, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20967731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20967732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20967733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20967734, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20967735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20967736, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20967737, '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 = 20966655 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': 2628380, 'mtr_portfolio_id': 20966655, 'created_at': datetime.datetime(2025, 3, 3, 9, 18, 58), 'result': '0.06487079031904448', 'result_long': None, 'result_double': None}] Qualite : 0.06487079031904448 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20966655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20966655_03-03-2025_09_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20966655 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_P20966655_03-03-2025_09_18_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20966660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20966661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20966662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20966663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20966664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20966665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20966666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20966667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20966668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20966669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20966670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20966671, 'pht': 3726}}" where mtr_portfolio_id = 20966655 and dashboard_run_id = 1642034 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`=20966655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9162612, 0.06487079031904448, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20966655_03-03-2025_09_18_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20966660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20966661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20966662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20966663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20966664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20966665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20966666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20966667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20966668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20966669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20966670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20966671, '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 = 20966718 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': 2628395, 'mtr_portfolio_id': 20966718, 'created_at': datetime.datetime(2025, 3, 3, 9, 32, 58), 'result': '0.06516843503892028', 'result_long': None, 'result_double': None}] Qualite : 0.06516843503892028 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20966718 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20966718_03-03-2025_09_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20966718 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_P20966718_03-03-2025_09_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20966750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20966751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20966752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20966753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20966754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20966755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20966756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20966757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20966758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20966759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20966760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20966761, 'pht': 3726}}" where mtr_portfolio_id = 20966718 and dashboard_run_id = 1642034 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`=20966718 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9162613, 0.06516843503892028, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20966718_03-03-2025_09_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20966750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20966751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20966752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20966753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20966754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20966755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20966756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20966757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20966758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20966759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20966760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20966761, '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 = 20967368 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': 2628450, 'mtr_portfolio_id': 20967368, 'created_at': datetime.datetime(2025, 3, 3, 9, 49), 'result': '0.06210593380412685', 'result_long': None, 'result_double': None}] Qualite : 0.06210593380412685 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20967368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20967368_03-03-2025_09_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20967368 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_P20967368_03-03-2025_09_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20967396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20967397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20967398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20967399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20967400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20967401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20967402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20967403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20967404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20967405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20967406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20967407, 'pht': 3726}}" where mtr_portfolio_id = 20967368 and dashboard_run_id = 1642034 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`=20967368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9162614, 0.06210593380412685, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20967368_03-03-2025_09_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20967396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20967397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20967398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20967399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20967400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20967401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20967402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20967403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20967404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20967405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20967406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20967407, '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 = 20967705 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': 2628480, 'mtr_portfolio_id': 20967705, 'created_at': datetime.datetime(2025, 3, 3, 10, 0, 58), 'result': '0.07521741630410503', 'result_long': None, 'result_double': None}] Qualite : 0.07521741630410503 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20967705 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20967705_03-03-2025_10_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20967705 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_P20967705_03-03-2025_10_00_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20967726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20967727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20967728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20967729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20967730, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20967731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20967732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20967733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20967734, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20967735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20967736, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20967737, 'pht': 3726}}" where mtr_portfolio_id = 20967705 and dashboard_run_id = 1642034 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`=20967705 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9162615, 0.07521741630410503, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20967705_03-03-2025_10_00_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20967726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20967727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20967728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20967729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20967730, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20967731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20967732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20967733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20967734, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20967735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20967736, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20967737, '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 (20966655,20966718,20967368,20967705) result : ((1340596464,), (1340596466,), (1340596472,), (1340596475,), (1340596540,), (1340596545,), (1340596555,), (1340596613,), (1340596616,), (1340596619,), (1340596623,), (1340596630,), (1340596635,), (1340596665,), (1340596669,), (1340596674,), (1340596679,), (1340596684,), (1340596689,), (1340596732,), (1340596735,), (1340596781,), (1340596839,), (1340596846,), (1340596853,), (1340596860,), (1340596866,), (1340596870,), (1340596921,), (1340596898,), (1340596903,), (1340596910,), (1340596916,), (1340596952,), (1340596956,), (1340596961,), (1340596966,), (1340596973,), (1340597301,), (1340597305,), (1340597311,), (1340597361,), (1340597374,), (1340597378,), (1340597546,), (1340597550,), (1340597557,), (1340597562,), (1340597570,), (1340597577,), (1340597632,), (1340597637,), (1340597642,), (1340597647,), (1340597685,), (1340597690,), (1340597694,), (1340597704,), (1340598027,), (1340598031,), (1340598036,), (1340598053,), (1340598060,), (1340598066,), (1340598111,), (1340598116,), (1340598122,), (1340598127,), (1340598133,), (1340598142,), (1340598182,), (1340598186,), (1340598192,), (1340598205,), (1340598213,), (1340598263,), (1340598272,), (1340598328,), (1340598336,), (1340598343,), (1340598345,), (1340598359,), (1340598364,), (1340598388,), (1340598394,), (1340598400,), (1340598576,), (1340598580,), (1340598584,), (1340598591,), (1340598613,), (1340598623,), (1340598662,), (1340598667,), (1340598671,), (1340598677,), (1340598684,), (1340598688,), (1340598746,), (1340598750,), (1340598778,), (1340598887,), (1340598861,), (1340598865,), (1340598871,), (1340598874,), (1340598881,), (1340599001,), (1340599005,), (1340599012,), (1340599014,), (1340599020,), (1340599059,), (1340599063,), (1340599070,), (1340599080,), (1340599121,), (1340599124,), (1340599132,), (1340599142,), (1340599158,), (1340599166,), (1340599366,), (1340599372,), (1340599380,), (1340599428,), (1340599431,), (1340599440,), (1340599446,), (1340599451,), (1340599456,), (1340599492,), (1340599497,), (1340599503,), (1340599510,), (1340599548,), (1340599709,), (1340600081,), (1340600084,), (1340600154,), (1340600135,), (1340600138,), (1340600142,), (1340600147,), (1340600339,), (1340600341,), (1340600346,), (1340600349,), (1340600423,), (1340600426,), (1340600432,), (1340600470,), (1340600476,), (1340600506,), (1340600508,), (1340600513,), (1340600518,), (1340600525,), (1340600529,), (1340600564,), (1340600567,), (1340600573,), (1340600578,), (1340600584,), (1340600588,), (1340600627,), (1340600636,), (1340600643,), (1340600743,), (1340600753,), (1340600757,), (1340600766,), (1340600774,), (1340600787,), (1340600857,), (1340600886,), (1340600888,), (1340600941,), (1340600946,), (1340600954,), (1340600957,), (1340600963,), (1340600996,), (1340600998,), (1340601003,), (1340601018,), (1340601023,), (1340601028,), (1340601064,), (1340601074,), (1340601080,), (1340601083,), (1340601120,), (1340601127,), (1340601133,), (1340601135,), (1340601140,), (1340601143,), (1340601302,), (1340601340,), (1340601345,), (1340601360,), (1340601368,), (1340601374,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03032025': {'nb_upload': 64, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20967705]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340601374, 1340601368, 1340601360, 1340601345, 1340601340, 1340601302] map_info['map_portfolio_photo'] : {20967705: [1340601374, 1340601368, 1340601360, 1340601345, 1340601340, 1340601302, 1340601143, 1340601140, 1340601135, 1340601133, 1340601127, 1340601120, 1340601083, 1340601080, 1340601074, 1340601064, 1340601028, 1340601023, 1340601018, 1340601003, 1340600998, 1340600996, 1340600963, 1340600957, 1340600954, 1340600946, 1340600941, 1340600888, 1340600886, 1340600857, 1340600787, 1340600774, 1340600766, 1340600757, 1340600753, 1340600743, 1340600643, 1340600636, 1340600627, 1340600588, 1340600584, 1340600578, 1340600573, 1340600567, 1340600564, 1340600529, 1340600525, 1340600518, 1340600513, 1340600508, 1340600506, 1340600476, 1340600470, 1340600432, 1340600426, 1340600423, 1340600349, 1340600346, 1340600341, 1340600339, 1340600147, 1340600142, 1340600138, 1340600135]} final : True mtd_id 4302 list_pids : [1340601374, 1340601368, 1340601360, 1340601345, 1340601340, 1340601302] Looping around the photos to save general results len do output : 1 /20967705Didn'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, '2628480') ('4302', '20967705', '1340601374', None, None, None, None, None, '2628480') ('4302', None, None, None, None, None, None, None, '2628480') ('4302', '20967705', '1340601368', None, None, None, None, None, '2628480') ('4302', None, None, None, None, None, None, None, '2628480') ('4302', '20967705', '1340601360', None, None, None, None, None, '2628480') ('4302', None, None, None, None, None, None, None, '2628480') ('4302', '20967705', '1340601345', None, None, None, None, None, '2628480') ('4302', None, None, None, None, None, None, None, '2628480') ('4302', '20967705', '1340601340', None, None, None, None, None, '2628480') ('4302', None, None, None, None, None, None, None, '2628480') ('4302', '20967705', '1340601302', None, None, None, None, None, '2628480') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '20967705', 'None', None, None, None, None, '2628480'), ('4302', '20967705', '1340601374', None, None, None, None, None, '2628480'), ('4302', '20967705', '1340601368', None, None, None, None, None, '2628480'), ('4302', '20967705', '1340601360', None, None, None, None, None, '2628480'), ('4302', '20967705', '1340601345', None, None, None, None, None, '2628480'), ('4302', '20967705', '1340601340', None, None, None, None, None, '2628480'), ('4302', '20967705', '1340601302', None, None, None, None, None, '2628480')] time used for this insertion : 0.013754129409790039 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.348935604095459 time spend to save output : 0.013956069946289062 total time spend for step 5 : 0.36289167404174805 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 (2628480) 2.22user 2.65system 0:08.83elapsed 55%CPU (0avgtext+0avgdata 158892maxresident)k 48inputs+13672outputs (2major+71412minor)pagefaults 0swaps