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 : 56731 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 (2733823) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2733823) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168817 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2733823'] with mtr_portfolio_ids : ['22168817'] and first list_photo_ids : [] new path : /proc/56731/ Name: python3 Umask: 0002 State: R (running) Tgid: 56731 Ngid: 0 Pid: 56731 PPid: 56730 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 56731 NSpid: 56731 NSpgid: 52100 NSsid: 52100 VmPeak: 1106828 kB VmSize: 1106828 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98252 kB VmRSS: 98252 kB RssAnon: 59800 kB RssFile: 38452 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 65 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '56731', 'Ngid': '0', 'Pid': '56731', 'PPid': '56730', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '56731', 'NSpid': '56731', 'NSpgid': '52100', 'NSsid': '52100', 'VmPeak': '1106828 kB', 'VmSize': '1106828 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98252 kB', 'VmRSS': '98252 kB', 'RssAnon': '59800 kB', 'RssFile': '38452 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '65', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '56731', '1106828', '0', '1106828', '865576', '98252', b'', 'marlene', '2733823') 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 (22168817) 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 (2733823 ) ) 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 (22168817) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350935371, 'portfolio_id': 22168817}, {'photo_id': 1350935364, 'portfolio_id': 22168817}, {'photo_id': 1350935357, 'portfolio_id': 22168817}, {'photo_id': 1350935353, 'portfolio_id': 22168817}, {'photo_id': 1350935331, 'portfolio_id': 22168817}, {'photo_id': 1350935327, 'portfolio_id': 22168817}, {'photo_id': 1350935324, 'portfolio_id': 22168817}, {'photo_id': 1350935321, 'portfolio_id': 22168817}, {'photo_id': 1350935320, 'portfolio_id': 22168817}, {'photo_id': 1350935319, 'portfolio_id': 22168817}, {'photo_id': 1350935289, 'portfolio_id': 22168817}, {'photo_id': 1350935286, 'portfolio_id': 22168817}, {'photo_id': 1350935284, 'portfolio_id': 22168817}, {'photo_id': 1350935259, 'portfolio_id': 22168817}, {'photo_id': 1350935257, 'portfolio_id': 22168817}, {'photo_id': 1350935256, 'portfolio_id': 22168817}, {'photo_id': 1350935255, 'portfolio_id': 22168817}, {'photo_id': 1350935254, 'portfolio_id': 22168817}, {'photo_id': 1350935218, 'portfolio_id': 22168817}, {'photo_id': 1350935211, 'portfolio_id': 22168817}, {'photo_id': 1350935199, 'portfolio_id': 22168817}, {'photo_id': 1350935193, 'portfolio_id': 22168817}, {'photo_id': 1350935189, 'portfolio_id': 22168817}, {'photo_id': 1350935184, 'portfolio_id': 22168817}, {'photo_id': 1350935141, 'portfolio_id': 22168817}, {'photo_id': 1350935139, 'portfolio_id': 22168817}, {'photo_id': 1350935137, 'portfolio_id': 22168817}, {'photo_id': 1350935134, 'portfolio_id': 22168817}, {'photo_id': 1350935097, 'portfolio_id': 22168817}, {'photo_id': 1350935094, 'portfolio_id': 22168817}, {'photo_id': 1350935089, 'portfolio_id': 22168817}, {'photo_id': 1350935084, 'portfolio_id': 22168817}, {'photo_id': 1350935076, 'portfolio_id': 22168817}, {'photo_id': 1350935074, 'portfolio_id': 22168817}, {'photo_id': 1350935032, 'portfolio_id': 22168817}, {'photo_id': 1350935027, 'portfolio_id': 22168817}, {'photo_id': 1350935023, 'portfolio_id': 22168817}, {'photo_id': 1350935020, 'portfolio_id': 22168817}, {'photo_id': 1350935016, 'portfolio_id': 22168817}, {'photo_id': 1350934965, 'portfolio_id': 22168817}, {'photo_id': 1350934963, 'portfolio_id': 22168817}, {'photo_id': 1350934962, 'portfolio_id': 22168817}, {'photo_id': 1350934960, 'portfolio_id': 22168817}, {'photo_id': 1350934908, 'portfolio_id': 22168817}, {'photo_id': 1350934905, 'portfolio_id': 22168817}, {'photo_id': 1350934903, 'portfolio_id': 22168817}, {'photo_id': 1350934901, 'portfolio_id': 22168817}, {'photo_id': 1350934899, 'portfolio_id': 22168817}, {'photo_id': 1350934896, 'portfolio_id': 22168817}, {'photo_id': 1350934860, 'portfolio_id': 22168817}, {'photo_id': 1350934856, 'portfolio_id': 22168817}, {'photo_id': 1350934853, 'portfolio_id': 22168817}, {'photo_id': 1350934849, 'portfolio_id': 22168817}] map_portfolio_id_photo_id: {22168817: [1350935371, 1350935364, 1350935357, 1350935353, 1350935331, 1350935327, 1350935324, 1350935321, 1350935320, 1350935319, 1350935289, 1350935286, 1350935284, 1350935259, 1350935257, 1350935256, 1350935255, 1350935254, 1350935218, 1350935211, 1350935199, 1350935193, 1350935189, 1350935184, 1350935141, 1350935139, 1350935137, 1350935134, 1350935097, 1350935094, 1350935089, 1350935084, 1350935076, 1350935074, 1350935032, 1350935027, 1350935023, 1350935020, 1350935016, 1350934965, 1350934963, 1350934962, 1350934960, 1350934908, 1350934905, 1350934903, 1350934901, 1350934899, 1350934896, 1350934860, 1350934856, 1350934853, 1350934849]} ##### 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.014542818069458008 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Apr 18 03:26: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 (22168817) 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 : 22168817 get user id for portfolio 22168817 get sub ptf for main ptf 22168817, type 3726 and hashtags ['Teint_Dans_La_Masse', 'environnement', 'plastique', 'papier', 'mal_croppe', 'flou', 'cartonnette', 'Carton_brun', 'Carton_gris', 'metal', 'autre_refus', 'kraft'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22168817 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','plastique','papier','mal_croppe','flou','cartonnette','Carton_brun','Carton_gris','metal','autre_refus','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22168817 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','plastique','papier','mal_croppe','flou','cartonnette','Carton_brun','Carton_gris','metal','autre_refus','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 22168817, 'sub_port_id': 22168819, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647061, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 18, 58)}, 'metal': {'main_port_id': 22168817, 'sub_port_id': 22168820, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647062, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 18, 58)}, 'mal_croppe': {'main_port_id': 22168817, 'sub_port_id': 22168821, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647063, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 18, 58)}, 'cartonnette': {'main_port_id': 22168817, 'sub_port_id': 22168822, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647064, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 18, 58)}, 'papier': {'main_port_id': 22168817, 'sub_port_id': 22168823, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647065, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 18, 58)}, 'Carton_gris': {'main_port_id': 22168817, 'sub_port_id': 22168824, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647066, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 18, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22168817, 'sub_port_id': 22168825, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647067, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 18, 58)}, 'autre_refus': {'main_port_id': 22168817, 'sub_port_id': 22168826, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647068, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 18, 58)}, 'Carton_brun': {'main_port_id': 22168817, 'sub_port_id': 22168827, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647069, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 18, 58)}, 'flou': {'main_port_id': 22168817, 'sub_port_id': 22168828, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647070, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 18, 58)}, 'kraft': {'main_port_id': 22168817, 'sub_port_id': 22168829, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647071, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 18, 58)}, 'environnement': {'main_port_id': 22168817, 'sub_port_id': 22168830, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647072, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 18, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22168819 , 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=22168817 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 (22168819) result : ((1350935365,), (1350935366,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168817) result : ((1350934849,), (1350934853,), (1350934856,), (1350934860,), (1350934896,), (1350934899,), (1350934901,), (1350934903,), (1350934905,), (1350934908,), (1350934960,), (1350934962,), (1350934963,), (1350934965,), (1350935016,), (1350935020,), (1350935023,), (1350935027,), (1350935032,), (1350935074,), (1350935076,), (1350935084,), (1350935089,), (1350935094,), (1350935097,), (1350935134,), (1350935137,), (1350935139,), (1350935141,), (1350935184,), (1350935189,), (1350935193,), (1350935199,), (1350935211,), (1350935218,), (1350935254,), (1350935255,), (1350935256,), (1350935257,), (1350935259,), (1350935284,), (1350935286,), (1350935289,), (1350935319,), (1350935320,), (1350935321,), (1350935324,), (1350935327,), (1350935331,), (1350935353,), (1350935357,), (1350935364,), (1350935371,)) 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 22168820 , 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=22168817 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 (22168820) result : ((1350935247,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168817) result : ((1350934849,), (1350934853,), (1350934856,), (1350934860,), (1350934896,), (1350934899,), (1350934901,), (1350934903,), (1350934905,), (1350934908,), (1350934960,), (1350934962,), (1350934963,), (1350934965,), (1350935016,), (1350935020,), (1350935023,), (1350935027,), (1350935032,), (1350935074,), (1350935076,), (1350935084,), (1350935089,), (1350935094,), (1350935097,), (1350935134,), (1350935137,), (1350935139,), (1350935141,), (1350935184,), (1350935189,), (1350935193,), (1350935199,), (1350935211,), (1350935218,), (1350935254,), (1350935255,), (1350935256,), (1350935257,), (1350935259,), (1350935284,), (1350935286,), (1350935289,), (1350935319,), (1350935320,), (1350935321,), (1350935324,), (1350935327,), (1350935331,), (1350935353,), (1350935357,), (1350935364,), (1350935371,)) 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 22168821 , 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=22168817 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 (22168821) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168817) result : ((1350934849,), (1350934853,), (1350934856,), (1350934860,), (1350934896,), (1350934899,), (1350934901,), (1350934903,), (1350934905,), (1350934908,), (1350934960,), (1350934962,), (1350934963,), (1350934965,), (1350935016,), (1350935020,), (1350935023,), (1350935027,), (1350935032,), (1350935074,), (1350935076,), (1350935084,), (1350935089,), (1350935094,), (1350935097,), (1350935134,), (1350935137,), (1350935139,), (1350935141,), (1350935184,), (1350935189,), (1350935193,), (1350935199,), (1350935211,), (1350935218,), (1350935254,), (1350935255,), (1350935256,), (1350935257,), (1350935259,), (1350935284,), (1350935286,), (1350935289,), (1350935319,), (1350935320,), (1350935321,), (1350935324,), (1350935327,), (1350935331,), (1350935353,), (1350935357,), (1350935364,), (1350935371,)) 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 22168822 , 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=22168817 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 (22168822) result : ((1350935168,), (1350935169,), (1350935212,), (1350935213,), (1350935363,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168817) result : ((1350934849,), (1350934853,), (1350934856,), (1350934860,), (1350934896,), (1350934899,), (1350934901,), (1350934903,), (1350934905,), (1350934908,), (1350934960,), (1350934962,), (1350934963,), (1350934965,), (1350935016,), (1350935020,), (1350935023,), (1350935027,), (1350935032,), (1350935074,), (1350935076,), (1350935084,), (1350935089,), (1350935094,), (1350935097,), (1350935134,), (1350935137,), (1350935139,), (1350935141,), (1350935184,), (1350935189,), (1350935193,), (1350935199,), (1350935211,), (1350935218,), (1350935254,), (1350935255,), (1350935256,), (1350935257,), (1350935259,), (1350935284,), (1350935286,), (1350935289,), (1350935319,), (1350935320,), (1350935321,), (1350935324,), (1350935327,), (1350935331,), (1350935353,), (1350935357,), (1350935364,), (1350935371,)) 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 22168823 , 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=22168817 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 (22168823) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168817) result : ((1350934849,), (1350934853,), (1350934856,), (1350934860,), (1350934896,), (1350934899,), (1350934901,), (1350934903,), (1350934905,), (1350934908,), (1350934960,), (1350934962,), (1350934963,), (1350934965,), (1350935016,), (1350935020,), (1350935023,), (1350935027,), (1350935032,), (1350935074,), (1350935076,), (1350935084,), (1350935089,), (1350935094,), (1350935097,), (1350935134,), (1350935137,), (1350935139,), (1350935141,), (1350935184,), (1350935189,), (1350935193,), (1350935199,), (1350935211,), (1350935218,), (1350935254,), (1350935255,), (1350935256,), (1350935257,), (1350935259,), (1350935284,), (1350935286,), (1350935289,), (1350935319,), (1350935320,), (1350935321,), (1350935324,), (1350935327,), (1350935331,), (1350935353,), (1350935357,), (1350935364,), (1350935371,)) 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 22168824 , 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=22168817 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 (22168824) result : ((1350935165,), (1350935204,), (1350935205,), (1350935206,), (1350935207,), (1350935208,), (1350935240,), (1350935241,), (1350935362,), (1350935386,), (1350935387,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168817) result : ((1350934849,), (1350934853,), (1350934856,), (1350934860,), (1350934896,), (1350934899,), (1350934901,), (1350934903,), (1350934905,), (1350934908,), (1350934960,), (1350934962,), (1350934963,), (1350934965,), (1350935016,), (1350935020,), (1350935023,), (1350935027,), (1350935032,), (1350935074,), (1350935076,), (1350935084,), (1350935089,), (1350935094,), (1350935097,), (1350935134,), (1350935137,), (1350935139,), (1350935141,), (1350935184,), (1350935189,), (1350935193,), (1350935199,), (1350935211,), (1350935218,), (1350935254,), (1350935255,), (1350935256,), (1350935257,), (1350935259,), (1350935284,), (1350935286,), (1350935289,), (1350935319,), (1350935320,), (1350935321,), (1350935324,), (1350935327,), (1350935331,), (1350935353,), (1350935357,), (1350935364,), (1350935371,)) 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 22168825 , 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=22168817 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 (22168825) result : ((1350935201,), (1350935202,), (1350935234,), (1350935235,), (1350935236,), (1350935237,), (1350935238,), (1350935239,), (1350935333,), (1350935355,), (1350935356,), (1350935385,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168817) result : ((1350934849,), (1350934853,), (1350934856,), (1350934860,), (1350934896,), (1350934899,), (1350934901,), (1350934903,), (1350934905,), (1350934908,), (1350934960,), (1350934962,), (1350934963,), (1350934965,), (1350935016,), (1350935020,), (1350935023,), (1350935027,), (1350935032,), (1350935074,), (1350935076,), (1350935084,), (1350935089,), (1350935094,), (1350935097,), (1350935134,), (1350935137,), (1350935139,), (1350935141,), (1350935184,), (1350935189,), (1350935193,), (1350935199,), (1350935211,), (1350935218,), (1350935254,), (1350935255,), (1350935256,), (1350935257,), (1350935259,), (1350935284,), (1350935286,), (1350935289,), (1350935319,), (1350935320,), (1350935321,), (1350935324,), (1350935327,), (1350935331,), (1350935353,), (1350935357,), (1350935364,), (1350935371,)) 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 22168826 , 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=22168817 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 (22168826) result : ((1350935163,), (1350935335,), (1350935359,), (1350935360,), (1350935361,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168817) result : ((1350934849,), (1350934853,), (1350934856,), (1350934860,), (1350934896,), (1350934899,), (1350934901,), (1350934903,), (1350934905,), (1350934908,), (1350934960,), (1350934962,), (1350934963,), (1350934965,), (1350935016,), (1350935020,), (1350935023,), (1350935027,), (1350935032,), (1350935074,), (1350935076,), (1350935084,), (1350935089,), (1350935094,), (1350935097,), (1350935134,), (1350935137,), (1350935139,), (1350935141,), (1350935184,), (1350935189,), (1350935193,), (1350935199,), (1350935211,), (1350935218,), (1350935254,), (1350935255,), (1350935256,), (1350935257,), (1350935259,), (1350935284,), (1350935286,), (1350935289,), (1350935319,), (1350935320,), (1350935321,), (1350935324,), (1350935327,), (1350935331,), (1350935353,), (1350935357,), (1350935364,), (1350935371,)) 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 22168827 , 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=22168817 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 (22168827) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168817) result : ((1350934849,), (1350934853,), (1350934856,), (1350934860,), (1350934896,), (1350934899,), (1350934901,), (1350934903,), (1350934905,), (1350934908,), (1350934960,), (1350934962,), (1350934963,), (1350934965,), (1350935016,), (1350935020,), (1350935023,), (1350935027,), (1350935032,), (1350935074,), (1350935076,), (1350935084,), (1350935089,), (1350935094,), (1350935097,), (1350935134,), (1350935137,), (1350935139,), (1350935141,), (1350935184,), (1350935189,), (1350935193,), (1350935199,), (1350935211,), (1350935218,), (1350935254,), (1350935255,), (1350935256,), (1350935257,), (1350935259,), (1350935284,), (1350935286,), (1350935289,), (1350935319,), (1350935320,), (1350935321,), (1350935324,), (1350935327,), (1350935331,), (1350935353,), (1350935357,), (1350935364,), (1350935371,)) 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 22168828 , 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=22168817 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 (22168828) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168817) result : ((1350934849,), (1350934853,), (1350934856,), (1350934860,), (1350934896,), (1350934899,), (1350934901,), (1350934903,), (1350934905,), (1350934908,), (1350934960,), (1350934962,), (1350934963,), (1350934965,), (1350935016,), (1350935020,), (1350935023,), (1350935027,), (1350935032,), (1350935074,), (1350935076,), (1350935084,), (1350935089,), (1350935094,), (1350935097,), (1350935134,), (1350935137,), (1350935139,), (1350935141,), (1350935184,), (1350935189,), (1350935193,), (1350935199,), (1350935211,), (1350935218,), (1350935254,), (1350935255,), (1350935256,), (1350935257,), (1350935259,), (1350935284,), (1350935286,), (1350935289,), (1350935319,), (1350935320,), (1350935321,), (1350935324,), (1350935327,), (1350935331,), (1350935353,), (1350935357,), (1350935364,), (1350935371,)) 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 22168829 , 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=22168817 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 (22168829) result : ((1350935243,), (1350935244,), (1350935369,), (1350935370,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168817) result : ((1350934849,), (1350934853,), (1350934856,), (1350934860,), (1350934896,), (1350934899,), (1350934901,), (1350934903,), (1350934905,), (1350934908,), (1350934960,), (1350934962,), (1350934963,), (1350934965,), (1350935016,), (1350935020,), (1350935023,), (1350935027,), (1350935032,), (1350935074,), (1350935076,), (1350935084,), (1350935089,), (1350935094,), (1350935097,), (1350935134,), (1350935137,), (1350935139,), (1350935141,), (1350935184,), (1350935189,), (1350935193,), (1350935199,), (1350935211,), (1350935218,), (1350935254,), (1350935255,), (1350935256,), (1350935257,), (1350935259,), (1350935284,), (1350935286,), (1350935289,), (1350935319,), (1350935320,), (1350935321,), (1350935324,), (1350935327,), (1350935331,), (1350935353,), (1350935357,), (1350935364,), (1350935371,)) 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 22168830 , 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=22168817 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 (22168830) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168817) result : ((1350934849,), (1350934853,), (1350934856,), (1350934860,), (1350934896,), (1350934899,), (1350934901,), (1350934903,), (1350934905,), (1350934908,), (1350934960,), (1350934962,), (1350934963,), (1350934965,), (1350935016,), (1350935020,), (1350935023,), (1350935027,), (1350935032,), (1350935074,), (1350935076,), (1350935084,), (1350935089,), (1350935094,), (1350935097,), (1350935134,), (1350935137,), (1350935139,), (1350935141,), (1350935184,), (1350935189,), (1350935193,), (1350935199,), (1350935211,), (1350935218,), (1350935254,), (1350935255,), (1350935256,), (1350935257,), (1350935259,), (1350935284,), (1350935286,), (1350935289,), (1350935319,), (1350935320,), (1350935321,), (1350935324,), (1350935327,), (1350935331,), (1350935353,), (1350935357,), (1350935364,), (1350935371,)) 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`=22168817 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','plastique','papier','mal_croppe','flou','cartonnette','Carton_brun','Carton_gris','metal','autre_refus','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22168817 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','plastique','papier','mal_croppe','flou','cartonnette','Carton_brun','Carton_gris','metal','autre_refus','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 22168817, 'sub_port_id': 22168831, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647073, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 19)}, 'metal': {'main_port_id': 22168817, 'sub_port_id': 22168832, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647074, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 19)}, 'mal_croppe': {'main_port_id': 22168817, 'sub_port_id': 22168833, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647075, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 19)}, 'cartonnette': {'main_port_id': 22168817, 'sub_port_id': 22168834, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647076, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 19)}, 'papier': {'main_port_id': 22168817, 'sub_port_id': 22168835, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647077, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 19)}, 'Carton_gris': {'main_port_id': 22168817, 'sub_port_id': 22168836, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647078, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 19)}, 'Teint_Dans_La_Masse': {'main_port_id': 22168817, 'sub_port_id': 22168837, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647079, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 19)}, 'autre_refus': {'main_port_id': 22168817, 'sub_port_id': 22168838, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647080, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 19)}, 'Carton_brun': {'main_port_id': 22168817, 'sub_port_id': 22168839, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647081, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 19)}, 'flou': {'main_port_id': 22168817, 'sub_port_id': 22168840, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647082, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 19)}, 'kraft': {'main_port_id': 22168817, 'sub_port_id': 22168841, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647083, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 19)}, 'environnement': {'main_port_id': 22168817, 'sub_port_id': 22168842, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14647084, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 25, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 19)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168831,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168819 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168832,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168820 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168833,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168821 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168834,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168822 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168835,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168823 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168836,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168824 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168837,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168825 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168838,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168826 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168839,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168827 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168840,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168828 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168841,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168829 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168842,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168830 lien utilise dans velours : https://www.fotonower.com/velours/22168831,22168832,22168833,22168834,22168835,22168836,22168837,22168838,22168839,22168840,22168841,22168842?tags=plastique,metal,mal_croppe,cartonnette,papier,Carton_gris,Teint_Dans_La_Masse,autre_refus,Carton_brun,flou,kraft,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22168817]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350935371, 1350935364, 1350935357, 1350935353, 1350935331, 1350935327, 1350935324, 1350935321, 1350935320, 1350935319] map_info['map_portfolio_photo'] : {22168817: [1350935371, 1350935364, 1350935357, 1350935353, 1350935331, 1350935327, 1350935324, 1350935321, 1350935320, 1350935319, 1350935289, 1350935286, 1350935284, 1350935259, 1350935257, 1350935256, 1350935255, 1350935254, 1350935218, 1350935211, 1350935199, 1350935193, 1350935189, 1350935184, 1350935141, 1350935139, 1350935137, 1350935134, 1350935097, 1350935094, 1350935089, 1350935084, 1350935076, 1350935074, 1350935032, 1350935027, 1350935023, 1350935020, 1350935016, 1350934965, 1350934963, 1350934962, 1350934960, 1350934908, 1350934905, 1350934903, 1350934901, 1350934899, 1350934896, 1350934860, 1350934856, 1350934853, 1350934849]} final : False mtd_id 4302 list_pids : [1350935371, 1350935364, 1350935357, 1350935353, 1350935331, 1350935327, 1350935324, 1350935321, 1350935320, 1350935319] Looping around the photos to save general results len do output : 1 /22168817. 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, '2733823') ('4302', '22168817', '1350935371', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935364', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935357', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935353', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935331', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935327', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935324', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935321', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935320', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935319', None, None, None, None, None, '2733823') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '22168817', "{'plastique': 22168819, 'metal': 22168820, 'mal_croppe': 22168821, 'cartonnette': 22168822, 'papier': 22168823, 'Carton_gris': 22168824, 'Teint_Dans_La_Masse': 22168825, 'autre_refus': 22168826, 'Carton_brun': 22168827, 'flou': 22168828, 'kraft': 22168829, 'environnement': 22168830}", None, None, None, None, '2733823'), ('4302', '22168817', '1350935371', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935364', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935357', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935353', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935331', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935327', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935324', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935321', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935320', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935319', None, None, None, None, None, '2733823')] time used for this insertion : 0.01599431037902832 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.545377492904663 time spend to save output : 0.016280651092529297 total time spend for step 1 : 1.5616581439971924 step2:final Fri Apr 18 03:26: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 (22168817) 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 22168817 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350934860,1350934856,1350934853,1350934849,1350934908,1350934905,1350934903,1350934901,1350934899,1350934896,1350934965,1350934963,1350934962,1350934960,1350935032,1350935027,1350935023,1350935020,1350935016,1350935097,1350935094,1350935089,1350935084,1350935076,1350935074,1350935141,1350935139,1350935137,1350935134,1350935218,1350935211,1350935199,1350935193,1350935189,1350935184,1350935259,1350935257,1350935256,1350935255,1350935254,1350935289,1350935286,1350935284,1350935331,1350935319,1350935327,1350935324,1350935321,1350935320,1350935371,1350935364,1350935357,1350935353); 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([22168817]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ('0.06006678168935497',), 1350935331: ('0.06006678168935497',), 1350935327: ('0.06006678168935497',), 1350935324: ('0.06006678168935497',), 1350935321: ('0.06006678168935497',), 1350935320: ('0.06006678168935497',), 1350935319: ('0.06006678168935497',)} new output for save of step final : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ('0.06006678168935497',), 1350935331: ('0.06006678168935497',), 1350935327: ('0.06006678168935497',), 1350935324: ('0.06006678168935497',), 1350935321: ('0.06006678168935497',), 1350935320: ('0.06006678168935497',), 1350935319: ('0.06006678168935497',)} [1350935371, 1350935364, 1350935357, 1350935353, 1350935331, 1350935327, 1350935324, 1350935321, 1350935320, 1350935319] map_info['map_portfolio_photo'] : {22168817: [1350935371, 1350935364, 1350935357, 1350935353, 1350935331, 1350935327, 1350935324, 1350935321, 1350935320, 1350935319, 1350935289, 1350935286, 1350935284, 1350935259, 1350935257, 1350935256, 1350935255, 1350935254, 1350935218, 1350935211, 1350935199, 1350935193, 1350935189, 1350935184, 1350935141, 1350935139, 1350935137, 1350935134, 1350935097, 1350935094, 1350935089, 1350935084, 1350935076, 1350935074, 1350935032, 1350935027, 1350935023, 1350935020, 1350935016, 1350934965, 1350934963, 1350934962, 1350934960, 1350934908, 1350934905, 1350934903, 1350934901, 1350934899, 1350934896, 1350934860, 1350934856, 1350934853, 1350934849]} final : False mtd_id 4302 list_pids : [1350935371, 1350935364, 1350935357, 1350935353, 1350935331, 1350935327, 1350935324, 1350935321, 1350935320, 1350935319] Looping around the photos to save general results len do output : 10 /1350935371.Didn't retrieve data . /1350935364.Didn't retrieve data . /1350935357.Didn't retrieve data . /1350935353.Didn't retrieve data . /1350935331.Didn't retrieve data . /1350935327.Didn't retrieve data . /1350935324.Didn't retrieve data . /1350935321.Didn't retrieve data . /1350935320.Didn't retrieve data . /1350935319.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, '2733823') ('4302', '22168817', '1350935371', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935364', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935357', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935353', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935331', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935327', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935324', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935321', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935320', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935319', None, None, None, None, None, '2733823') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '22168817', '1350935371', '0.06006678168935497', None, None, None, None, '2733823'), ('4302', '22168817', '1350935364', '0.06006678168935497', None, None, None, None, '2733823'), ('4302', '22168817', '1350935357', '0.06006678168935497', None, None, None, None, '2733823'), ('4302', '22168817', '1350935353', '0.06006678168935497', None, None, None, None, '2733823'), ('4302', '22168817', '1350935331', '0.06006678168935497', None, None, None, None, '2733823'), ('4302', '22168817', '1350935327', '0.06006678168935497', None, None, None, None, '2733823'), ('4302', '22168817', '1350935324', '0.06006678168935497', None, None, None, None, '2733823'), ('4302', '22168817', '1350935321', '0.06006678168935497', None, None, None, None, '2733823'), ('4302', '22168817', '1350935320', '0.06006678168935497', None, None, None, None, '2733823'), ('4302', '22168817', '1350935319', '0.06006678168935497', None, None, None, None, '2733823')] time used for this insertion : 0.015487194061279297 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06880974769592285 time spend to save output : 0.016035079956054688 total time spend for step 2 : 0.08484482765197754 step3:velours_tree Fri Apr 18 03:26: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 : {22168817: [{'plastique': 22168819, 'metal': 22168820, 'mal_croppe': 22168821, 'cartonnette': 22168822, 'papier': 22168823, 'Carton_gris': 22168824, 'Teint_Dans_La_Masse': 22168825, 'autre_refus': 22168826, 'Carton_brun': 22168827, 'flou': 22168828, 'kraft': 22168829, 'environnement': 22168830}]} input_args_next_step : {22168817: ()} output_args : {22168817: [{'plastique': 22168819, 'metal': 22168820, 'mal_croppe': 22168821, 'cartonnette': 22168822, 'papier': 22168823, 'Carton_gris': 22168824, 'Teint_Dans_La_Masse': 22168825, 'autre_refus': 22168826, 'Carton_brun': 22168827, 'flou': 22168828, 'kraft': 22168829, 'environnement': 22168830}]} args : 22168817 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 : ({'plastique': 22168819, 'metal': 22168820, 'mal_croppe': 22168821, 'cartonnette': 22168822, 'papier': 22168823, 'Carton_gris': 22168824, 'Teint_Dans_La_Masse': 22168825, 'autre_refus': 22168826, 'Carton_brun': 22168827, 'flou': 22168828, 'kraft': 22168829, 'environnement': 22168830},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22168817) 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([22168817]) 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.32011985778808594 time spend to save output : 7.343292236328125e-05 total time spend for step 3 : 0.3201932907104492 step4:send_mail_cod Fri Apr 18 03:26: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 : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ('0.06006678168935497',), 1350935331: ('0.06006678168935497',), 1350935327: ('0.06006678168935497',), 1350935324: ('0.06006678168935497',), 1350935321: ('0.06006678168935497',), 1350935320: ('0.06006678168935497',), 1350935319: ('0.06006678168935497',)} input_args_next_step : {1350935371: ()} output_args : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ('0.06006678168935497',), 1350935331: ('0.06006678168935497',), 1350935327: ('0.06006678168935497',), 1350935324: ('0.06006678168935497',), 1350935321: ('0.06006678168935497',), 1350935320: ('0.06006678168935497',), 1350935319: ('0.06006678168935497',)} args : 1350935371 depend.output_id : 0 input_args_next_step : {1350935371: ('0.06006678168935497',), 1350935364: ()} output_args : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ('0.06006678168935497',), 1350935331: ('0.06006678168935497',), 1350935327: ('0.06006678168935497',), 1350935324: ('0.06006678168935497',), 1350935321: ('0.06006678168935497',), 1350935320: ('0.06006678168935497',), 1350935319: ('0.06006678168935497',)} args : 1350935364 depend.output_id : 0 input_args_next_step : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ()} output_args : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ('0.06006678168935497',), 1350935331: ('0.06006678168935497',), 1350935327: ('0.06006678168935497',), 1350935324: ('0.06006678168935497',), 1350935321: ('0.06006678168935497',), 1350935320: ('0.06006678168935497',), 1350935319: ('0.06006678168935497',)} args : 1350935357 depend.output_id : 0 input_args_next_step : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ()} output_args : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ('0.06006678168935497',), 1350935331: ('0.06006678168935497',), 1350935327: ('0.06006678168935497',), 1350935324: ('0.06006678168935497',), 1350935321: ('0.06006678168935497',), 1350935320: ('0.06006678168935497',), 1350935319: ('0.06006678168935497',)} args : 1350935353 depend.output_id : 0 input_args_next_step : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ('0.06006678168935497',), 1350935331: ()} output_args : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ('0.06006678168935497',), 1350935331: ('0.06006678168935497',), 1350935327: ('0.06006678168935497',), 1350935324: ('0.06006678168935497',), 1350935321: ('0.06006678168935497',), 1350935320: ('0.06006678168935497',), 1350935319: ('0.06006678168935497',)} args : 1350935331 depend.output_id : 0 input_args_next_step : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ('0.06006678168935497',), 1350935331: ('0.06006678168935497',), 1350935327: ()} output_args : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ('0.06006678168935497',), 1350935331: ('0.06006678168935497',), 1350935327: ('0.06006678168935497',), 1350935324: ('0.06006678168935497',), 1350935321: ('0.06006678168935497',), 1350935320: ('0.06006678168935497',), 1350935319: ('0.06006678168935497',)} args : 1350935327 depend.output_id : 0 input_args_next_step : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ('0.06006678168935497',), 1350935331: ('0.06006678168935497',), 1350935327: ('0.06006678168935497',), 1350935324: ()} output_args : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ('0.06006678168935497',), 1350935331: ('0.06006678168935497',), 1350935327: ('0.06006678168935497',), 1350935324: ('0.06006678168935497',), 1350935321: ('0.06006678168935497',), 1350935320: ('0.06006678168935497',), 1350935319: ('0.06006678168935497',)} args : 1350935324 depend.output_id : 0 input_args_next_step : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ('0.06006678168935497',), 1350935331: ('0.06006678168935497',), 1350935327: ('0.06006678168935497',), 1350935324: ('0.06006678168935497',), 1350935321: ()} output_args : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ('0.06006678168935497',), 1350935331: ('0.06006678168935497',), 1350935327: ('0.06006678168935497',), 1350935324: ('0.06006678168935497',), 1350935321: ('0.06006678168935497',), 1350935320: ('0.06006678168935497',), 1350935319: ('0.06006678168935497',)} args : 1350935321 depend.output_id : 0 input_args_next_step : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ('0.06006678168935497',), 1350935331: ('0.06006678168935497',), 1350935327: ('0.06006678168935497',), 1350935324: ('0.06006678168935497',), 1350935321: ('0.06006678168935497',), 1350935320: ()} output_args : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ('0.06006678168935497',), 1350935331: ('0.06006678168935497',), 1350935327: ('0.06006678168935497',), 1350935324: ('0.06006678168935497',), 1350935321: ('0.06006678168935497',), 1350935320: ('0.06006678168935497',), 1350935319: ('0.06006678168935497',)} args : 1350935320 depend.output_id : 0 input_args_next_step : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ('0.06006678168935497',), 1350935331: ('0.06006678168935497',), 1350935327: ('0.06006678168935497',), 1350935324: ('0.06006678168935497',), 1350935321: ('0.06006678168935497',), 1350935320: ('0.06006678168935497',), 1350935319: ()} output_args : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ('0.06006678168935497',), 1350935331: ('0.06006678168935497',), 1350935327: ('0.06006678168935497',), 1350935324: ('0.06006678168935497',), 1350935321: ('0.06006678168935497',), 1350935320: ('0.06006678168935497',), 1350935319: ('0.06006678168935497',)} args : 1350935319 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 : {22168817: [{'plastique': 22168819, 'metal': 22168820, 'mal_croppe': 22168821, 'cartonnette': 22168822, 'papier': 22168823, 'Carton_gris': 22168824, 'Teint_Dans_La_Masse': 22168825, 'autre_refus': 22168826, 'Carton_brun': 22168827, 'flou': 22168828, 'kraft': 22168829, 'environnement': 22168830}]} input_args_next_step : {1350935371: ('0.06006678168935497',), 1350935364: ('0.06006678168935497',), 1350935357: ('0.06006678168935497',), 1350935353: ('0.06006678168935497',), 1350935331: ('0.06006678168935497',), 1350935327: ('0.06006678168935497',), 1350935324: ('0.06006678168935497',), 1350935321: ('0.06006678168935497',), 1350935320: ('0.06006678168935497',), 1350935319: ('0.06006678168935497',), 22168817: ()} output_args : {22168817: [{'plastique': 22168819, 'metal': 22168820, 'mal_croppe': 22168821, 'cartonnette': 22168822, 'papier': 22168823, 'Carton_gris': 22168824, 'Teint_Dans_La_Masse': 22168825, 'autre_refus': 22168826, 'Carton_brun': 22168827, 'flou': 22168828, 'kraft': 22168829, 'environnement': 22168830}]} args : 22168817 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 :11, first value : ('0.06006678168935497',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22168817) 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 (1350935371,1350935364,1350935357,1350935353,1350935331,1350935327,1350935324,1350935321,1350935320,1350935319) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350935319 begin to download photo : 1350935324 begin to download photo : 1350935353 begin to download photo : 1350935371 download finish for photo 1350935371 download finish for photo 1350935353 begin to download photo : 1350935357 download finish for photo 1350935319 begin to download photo : 1350935320 download finish for photo 1350935324 begin to download photo : 1350935327 download finish for photo 1350935327 begin to download photo : 1350935331 download finish for photo 1350935357 begin to download photo : 1350935364 download finish for photo 1350935320 begin to download photo : 1350935321 download finish for photo 1350935364 download finish for photo 1350935321 download finish for photo 1350935331 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 : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P22168817_18-04-2025_03_26_59.pdf 22168819 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=22168819 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350935365: '1744939540_1818864_1350935289_edfa1b1093586885b8a172a918e83486_rle_crop_3753185851_0.png', 1350935366: '1744939540_1818864_1350935254_be21b757e4b25a383f218217abf88e21_rle_crop_3753185913_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f71529eddede7c362c3abc0e010a02a2_7291298.png change filename to text .imagette221688191744939619/ imagette221688191744939619/1744939540_1818864_1350935254_be21b757e4b25a383f218217abf88e21_rle_crop_3753185913_0.png.png imagette221688191744939619/1744939540_1818864_1350935289_edfa1b1093586885b8a172a918e83486_rle_crop_3753185851_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/7e7b1a86c372353a388c826703dcbcce_69614094.png imagette221688191744939619 22168820 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=22168820 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350935247: '1744939331_3615292_1350934856_d74fca2042e793e5e038c7118c3a8130_rle_crop_3753185287_0.png'} change filename to text .imagette221688201744939619/ imagette221688201744939619/1744939331_3615292_1350934856_d74fca2042e793e5e038c7118c3a8130_rle_crop_3753185287_0.png.png imagette221688211744939619/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/871fc8a5bdaf6445119fe57754c10207_92709103.png imagette221688201744939619 22168821 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=22168821 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221688211744939619 22168822 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=22168822 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350935168: '1744939273_3614700_1350935023_dd415705611d71e990fbadf6f5a60d8d_rle_crop_3753184833_0.png', 1350935169: '1744939273_3614700_1350935016_35db6eda6415323a62a60d5f754f6697_rle_crop_3753184855_0.png', 1350935212: '1744939306_1813039_1350934965_87b3e7fea175fc0cccebd36cf1b9d15d_rle_crop_3753185051_0.png', 1350935213: '1744939306_1813039_1350934899_843831bd1dbd5cbe62b5db6dfe323e4a_rle_crop_3753185113_0.png', 1350935363: '1744939540_1818864_1350935255_482821dc82f11ee5b8b43f3e8e9ed025_rle_crop_3753185905_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f2ca953e97ca7eacb544fd01f8d500a1_20968892.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b78333c9ba5b1770b7087abcd66a1a91_98510723.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/2e02a807b211d0d3156143a75437666a_84457721.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/078796b7da2206e14b42117e4d0d4a1c_24925830.png change filename to text .imagette221688221744939619/ imagette221688221744939619/1744939540_1818864_1350935255_482821dc82f11ee5b8b43f3e8e9ed025_rle_crop_3753185905_0.png.png imagette221688221744939619/1744939306_1813039_1350934965_87b3e7fea175fc0cccebd36cf1b9d15d_rle_crop_3753185051_0.png.png imagette221688221744939619/1744939306_1813039_1350934899_843831bd1dbd5cbe62b5db6dfe323e4a_rle_crop_3753185113_0.png.png imagette221688221744939619/1744939273_3614700_1350935023_dd415705611d71e990fbadf6f5a60d8d_rle_crop_3753184833_0.png.png imagette221688221744939619/1744939273_3614700_1350935016_35db6eda6415323a62a60d5f754f6697_rle_crop_3753184855_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/83fe0fe20d24c2c5558e1b15cb9f1c55_99239191.png imagette221688221744939619 22168826 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=22168826 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350935163: '1744939273_3614700_1350935016_35db6eda6415323a62a60d5f754f6697_rle_crop_3753184858_0.png', 1350935335: '1744939511_3617153_1350935286_3619f2c84dfdb2701a44087a417e7e38_rle_crop_3753185638_0.png', 1350935359: '1744939540_1818864_1350935255_482821dc82f11ee5b8b43f3e8e9ed025_rle_crop_3753185902_0.png', 1350935360: '1744939540_1818864_1350935255_482821dc82f11ee5b8b43f3e8e9ed025_rle_crop_3753185904_0.png', 1350935361: '1744939540_1818864_1350935254_be21b757e4b25a383f218217abf88e21_rle_crop_3753185917_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/fb31676519204c17b90b2cf2b1bf83c8_13195699.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/da5e7d142fd5a52abcb01daa5f179fdf_83375723.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/c27da92ec17dc1778918cb431f4abed2_57207631.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/da8da8ac2c0d0f12d13e73fcfb6f3c75_32236787.png change filename to text .imagette221688261744939619/ imagette221688261744939619/1744939540_1818864_1350935255_482821dc82f11ee5b8b43f3e8e9ed025_rle_crop_3753185902_0.png.png imagette221688261744939619/1744939273_3614700_1350935016_35db6eda6415323a62a60d5f754f6697_rle_crop_3753184858_0.png.png imagette221688261744939619/1744939540_1818864_1350935254_be21b757e4b25a383f218217abf88e21_rle_crop_3753185917_0.png.png imagette221688261744939619/1744939540_1818864_1350935255_482821dc82f11ee5b8b43f3e8e9ed025_rle_crop_3753185904_0.png.png imagette221688261744939619/1744939511_3617153_1350935286_3619f2c84dfdb2701a44087a417e7e38_rle_crop_3753185638_0.png.png imagette221688281744939622/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/689ccbdbd5e922af9937382c3b54a6d4_94360340.png imagette221688261744939619 22168828 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=22168828 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221688281744939622 22168829 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=22168829 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350935243: '1744939331_3615292_1350934860_665ec4670c493d2d4637dec668b566db_rle_crop_3753185268_0.png', 1350935244: '1744939331_3615292_1350934849_2f5dec23a840e717759e739c992add1e_rle_crop_3753185306_0.png', 1350935369: '1744939540_1818864_1350935257_39d09d509912136244e833ff2f6e9b80_rle_crop_3753185866_0.png', 1350935370: '1744939540_1818864_1350935256_59eb82c5718cbbf976e10dd6f114c5d8_rle_crop_3753185893_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/78d2e1ef618e1876b299ce9703310707_62683728.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/9bdc52204354cc284defadf6f471c834_63241816.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/43c014ab357832519b9cc5e2cbb534bc_53105342.png change filename to text .imagette221688291744939622/ imagette221688291744939622/1744939540_1818864_1350935257_39d09d509912136244e833ff2f6e9b80_rle_crop_3753185866_0.png.png imagette221688291744939622/1744939331_3615292_1350934860_665ec4670c493d2d4637dec668b566db_rle_crop_3753185268_0.png.png imagette221688291744939622/1744939331_3615292_1350934849_2f5dec23a840e717759e739c992add1e_rle_crop_3753185306_0.png.png imagette221688291744939622/1744939540_1818864_1350935256_59eb82c5718cbbf976e10dd6f114c5d8_rle_crop_3753185893_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b3657a618701c10b93a7b8c676671f52_48341594.png imagette221688291744939622 22168824 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=22168824 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350935165: '1744939273_3614700_1350935016_35db6eda6415323a62a60d5f754f6697_rle_crop_3753184853_0.png', 1350935204: '1744939306_1813039_1350934903_526e72b35847385a693b131b4679adf2_rle_crop_3753185082_0.png', 1350935205: '1744939306_1813039_1350934901_6d4e63677c149bbf4bd3797628760b70_rle_crop_3753185097_0.png', 1350935206: '1744939306_1813039_1350934901_6d4e63677c149bbf4bd3797628760b70_rle_crop_3753185102_0.png', 1350935207: '1744939306_1813039_1350934901_6d4e63677c149bbf4bd3797628760b70_rle_crop_3753185096_0.png', 1350935208: '1744939306_1813039_1350934899_843831bd1dbd5cbe62b5db6dfe323e4a_rle_crop_3753185112_0.png', 1350935240: '1744939331_3615292_1350934860_665ec4670c493d2d4637dec668b566db_rle_crop_3753185269_0.png', 1350935241: '1744939331_3615292_1350934860_665ec4670c493d2d4637dec668b566db_rle_crop_3753185271_0.png', 1350935362: '1744939540_1818864_1350935257_39d09d509912136244e833ff2f6e9b80_rle_crop_3753185861_0.png', 1350935386: '1744939572_3617802_1350935139_55f3b0e42219182d25f1385f859983a2_rle_crop_3753185620_0.png', 1350935387: '1744939572_3617802_1350935137_5b06b7843e47a40fa2cc325a7ac27318_rle_crop_3753185649_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/a3cc8af8e9e406557cc077ffb577c881_65500677.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/e05a0079c3147f1449a758a577ace07b_10055832.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/22d25ab5647c368885ae6dfd5cb00f5d_29782204.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/fc377183dc5b6a655d4295cc4abdc89c_45929578.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/eefc039204b109c7c81968490784d402_6192833.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/fd39d45e7fa2884eb7daf0f9882c3903_51229674.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/50336a644b58cbd57c19f66656e3aa61_9003192.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/69b11d98a38f9ddcaa50b11ad8cf3ba9_14164340.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/3eb4f067d84e7fff70878180899e359a_88165487.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/95cc7da7d18e0d920838f846169526d6_46303429.png change filename to text .imagette221688241744939622/ imagette221688241744939622/1744939331_3615292_1350934860_665ec4670c493d2d4637dec668b566db_rle_crop_3753185269_0.png.png imagette221688241744939622/1744939306_1813039_1350934901_6d4e63677c149bbf4bd3797628760b70_rle_crop_3753185097_0.png.png imagette221688241744939622/1744939306_1813039_1350934901_6d4e63677c149bbf4bd3797628760b70_rle_crop_3753185102_0.png.png imagette221688241744939622/1744939540_1818864_1350935257_39d09d509912136244e833ff2f6e9b80_rle_crop_3753185861_0.png.png imagette221688241744939622/1744939331_3615292_1350934860_665ec4670c493d2d4637dec668b566db_rle_crop_3753185271_0.png.png imagette221688241744939622/1744939306_1813039_1350934899_843831bd1dbd5cbe62b5db6dfe323e4a_rle_crop_3753185112_0.png.png imagette221688241744939622/1744939273_3614700_1350935016_35db6eda6415323a62a60d5f754f6697_rle_crop_3753184853_0.png.png imagette221688241744939622/1744939572_3617802_1350935139_55f3b0e42219182d25f1385f859983a2_rle_crop_3753185620_0.png.png imagette221688241744939622/1744939306_1813039_1350934901_6d4e63677c149bbf4bd3797628760b70_rle_crop_3753185096_0.png.png imagette221688241744939622/1744939572_3617802_1350935137_5b06b7843e47a40fa2cc325a7ac27318_rle_crop_3753185649_0.png.png imagette221688241744939622/1744939306_1813039_1350934903_526e72b35847385a693b131b4679adf2_rle_crop_3753185082_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/1cb84af037daceb5a1a25f853282ff9e_99352978.png imagette221688241744939622 22168825 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=22168825 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350935201: '1744939306_1813039_1350934903_526e72b35847385a693b131b4679adf2_rle_crop_3753185085_0.png', 1350935202: '1744939306_1813039_1350934899_843831bd1dbd5cbe62b5db6dfe323e4a_rle_crop_3753185117_0.png', 1350935234: '1744939331_3615292_1350934860_665ec4670c493d2d4637dec668b566db_rle_crop_3753185275_0.png', 1350935235: '1744939331_3615292_1350934860_665ec4670c493d2d4637dec668b566db_rle_crop_3753185273_0.png', 1350935236: '1744939331_3615292_1350934856_d74fca2042e793e5e038c7118c3a8130_rle_crop_3753185290_0.png', 1350935237: '1744939331_3615292_1350934853_091eb906bd83273a1b79c58d2aa0bc49_rle_crop_3753185300_0.png', 1350935238: '1744939331_3615292_1350934849_2f5dec23a840e717759e739c992add1e_rle_crop_3753185309_0.png', 1350935239: '1744939331_3615292_1350934849_2f5dec23a840e717759e739c992add1e_rle_crop_3753185310_0.png', 1350935333: '1744939511_3617153_1350935286_3619f2c84dfdb2701a44087a417e7e38_rle_crop_3753185644_0.png', 1350935355: '1744939540_1818864_1350935289_edfa1b1093586885b8a172a918e83486_rle_crop_3753185849_0.png', 1350935356: '1744939540_1818864_1350935254_be21b757e4b25a383f218217abf88e21_rle_crop_3753185916_0.png', 1350935385: '1744939572_3617802_1350935139_55f3b0e42219182d25f1385f859983a2_rle_crop_3753185629_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/c92ea5b028391e6bdeab52d3fd1c34fc_4341508.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/44258b985acd4e880b64c7544ecebf91_66411855.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/607bf0642efa4c4898e0dcf5a1e229b1_25130778.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f3f537ae8a46c520ad19d32ae15c8388_66485325.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/2a55bd4a2b35d702e09aef0f2391538b_71922386.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/3fb3508ff76ec365b0d2b9ab5ac97305_2510476.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/68fd2d33bec184cc563c2f3ddc6feed7_61071778.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/abeeca2ebe3782984c2b120fe1b7cf2f_6483688.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/804c83693638ea91b00c3fe159f0a2fb_80166783.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/88484e852ee9474a753d5b8a1b21f432_99743509.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/4a638bd422bbc89ab3e9b9e433c6e911_88417028.png change filename to text .imagette221688251744939623/ imagette221688251744939623/1744939331_3615292_1350934849_2f5dec23a840e717759e739c992add1e_rle_crop_3753185310_0.png.png imagette221688251744939623/1744939511_3617153_1350935286_3619f2c84dfdb2701a44087a417e7e38_rle_crop_3753185644_0.png.png imagette221688251744939623/1744939331_3615292_1350934860_665ec4670c493d2d4637dec668b566db_rle_crop_3753185275_0.png.png imagette221688251744939623/1744939306_1813039_1350934903_526e72b35847385a693b131b4679adf2_rle_crop_3753185085_0.png.png imagette221688251744939623/1744939540_1818864_1350935289_edfa1b1093586885b8a172a918e83486_rle_crop_3753185849_0.png.png imagette221688251744939623/1744939331_3615292_1350934860_665ec4670c493d2d4637dec668b566db_rle_crop_3753185273_0.png.png imagette221688251744939623/1744939306_1813039_1350934899_843831bd1dbd5cbe62b5db6dfe323e4a_rle_crop_3753185117_0.png.png imagette221688251744939623/1744939331_3615292_1350934853_091eb906bd83273a1b79c58d2aa0bc49_rle_crop_3753185300_0.png.png imagette221688251744939623/1744939331_3615292_1350934856_d74fca2042e793e5e038c7118c3a8130_rle_crop_3753185290_0.png.png imagette221688251744939623/1744939331_3615292_1350934849_2f5dec23a840e717759e739c992add1e_rle_crop_3753185309_0.png.png imagette221688251744939623/1744939572_3617802_1350935139_55f3b0e42219182d25f1385f859983a2_rle_crop_3753185629_0.png.png imagette221688251744939623/1744939540_1818864_1350935254_be21b757e4b25a383f218217abf88e21_rle_crop_3753185916_0.png.png imagette221688271744939624/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b1e45ccd60dfc379111b852a6e6df8fe_88686582.png imagette221688251744939623 22168827 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=22168827 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221688271744939624 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22168817 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22168831,22168832,22168833,22168834,22168835,22168836,22168837,22168838,22168839,22168840,22168841,22168842?tags=plastique,metal,mal_croppe,cartonnette,papier,Carton_gris,Teint_Dans_La_Masse,autre_refus,Carton_brun,flou,kraft,environnement your option no_mail is active, we will not send the real mail to your client args[1350935371] : ('0.06006678168935497',) no score found for photo 1350935371 We are sending mail with results at report@fotonower.com args[1350935364] : ('0.06006678168935497',) no score found for photo 1350935364 We are sending mail with results at report@fotonower.com args[1350935357] : ('0.06006678168935497',) no score found for photo 1350935357 We are sending mail with results at report@fotonower.com args[1350935353] : ('0.06006678168935497',) no score found for photo 1350935353 We are sending mail with results at report@fotonower.com args[1350935331] : ('0.06006678168935497',) no score found for photo 1350935331 We are sending mail with results at report@fotonower.com args[1350935327] : ('0.06006678168935497',) no score found for photo 1350935327 We are sending mail with results at report@fotonower.com args[1350935324] : ('0.06006678168935497',) no score found for photo 1350935324 We are sending mail with results at report@fotonower.com args[1350935321] : ('0.06006678168935497',) no score found for photo 1350935321 We are sending mail with results at report@fotonower.com args[1350935320] : ('0.06006678168935497',) no score found for photo 1350935320 We are sending mail with results at report@fotonower.com args[1350935319] : ('0.06006678168935497',) no score found for photo 1350935319 We are sending mail with results at report@fotonower.com refus_total : 0.06006678168935497 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=22168817 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_P22168817_18-04-2025_03_26_59.pdf results_Auto_P22168817_18-04-2025_03_26_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168817_18-04-2025_03_26_59.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','22168817','results_Auto_P22168817_18-04-2025_03_26_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168817_18-04-2025_03_26_59.pdf','pdf','','0.22','0.06006678168935497') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22168817]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350935371, 1350935364, 1350935357, 1350935353, 1350935331, 1350935327, 1350935324, 1350935321, 1350935320, 1350935319] map_info['map_portfolio_photo'] : {22168817: [1350935371, 1350935364, 1350935357, 1350935353, 1350935331, 1350935327, 1350935324, 1350935321, 1350935320, 1350935319, 1350935289, 1350935286, 1350935284, 1350935259, 1350935257, 1350935256, 1350935255, 1350935254, 1350935218, 1350935211, 1350935199, 1350935193, 1350935189, 1350935184, 1350935141, 1350935139, 1350935137, 1350935134, 1350935097, 1350935094, 1350935089, 1350935084, 1350935076, 1350935074, 1350935032, 1350935027, 1350935023, 1350935020, 1350935016, 1350934965, 1350934963, 1350934962, 1350934960, 1350934908, 1350934905, 1350934903, 1350934901, 1350934899, 1350934896, 1350934860, 1350934856, 1350934853, 1350934849]} final : False mtd_id 4302 list_pids : [1350935371, 1350935364, 1350935357, 1350935353, 1350935331, 1350935327, 1350935324, 1350935321, 1350935320, 1350935319] 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, '2733823') ('4302', '22168817', '1350935371', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935364', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935357', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935353', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935331', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935327', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935324', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935321', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935320', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935319', None, None, None, None, None, '2733823') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '22168817', '1350935371', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935364', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935357', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935353', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935331', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935327', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935324', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935321', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935320', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935319', None, None, None, None, None, '2733823')] time used for this insertion : 0.014449834823608398 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.501677513122559 time spend to save output : 0.014661073684692383 total time spend for step 4 : 6.516338586807251 step5:split_time_score Fri Apr 18 03:27:05 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 : ['22168817'] 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 : [('22168817',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22168817) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350935371: {'path': 'temp/1744939618_56731_1350935371_08459831a61d8b4cef9e7291d589a1cd.jpg', 'extension': 'jpg'}, 1350935353: {'path': 'temp/1744939618_56731_1350935353_5ee3f4d0d170ccb12d85a48a3bd483e7.jpg', 'extension': 'jpg'}, 1350935357: {'path': 'temp/1744939618_56731_1350935357_12b61dee20541a8d0a15542edbd0530f.jpg', 'extension': 'jpg'}, 1350935364: {'path': 'temp/1744939618_56731_1350935364_2a58013e8d445d22deb8df7944ef2e68.jpg', 'extension': 'jpg'}, 1350935319: {'path': 'temp/1744939618_56731_1350935319_ac1f36c9e3cf72fc75195262e1b246af.jpg', 'extension': 'jpg'}, 1350935320: {'path': 'temp/1744939618_56731_1350935320_dd7faca441ad43245ee0444b46ad7498.jpg', 'extension': 'jpg'}, 1350935321: {'path': 'temp/1744939618_56731_1350935321_086eb7cafea68e6d78c915ac61b6a20a.jpg', 'extension': 'jpg'}, 1350935324: {'path': 'temp/1744939618_56731_1350935324_c3181abab50b40ee1ce57b760bca60e2.jpg', 'extension': 'jpg'}, 1350935327: {'path': 'temp/1744939618_56731_1350935327_0fb85a706b371ddbf124948302352f30.jpg', 'extension': 'jpg'}, 1350935331: {'path': 'temp/1744939618_56731_1350935331_f68b9527ca1b7e7d0a0d7bcc40a0a6e3.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 = 22168817; (('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 = 22168817 group by h (('03', 53),) 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=22168817 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 (22168817) 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 (22168817) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18042025 22168817 Nombre de photos uploadées : 53 / 23040 (0%) 18042025 22168817 Nombre de photos taguées (types de déchets): 0 / 53 (0%) 18042025 22168817 Nombre de photos taguées (volume) : 0 / 53 (0%) [{'photo_id': 1350934860, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/665ec4670c493d2d4637dec668b566db.jpg', 'username': None, 'uploaded_at': 1744938967, 'text': 'image_18042025_03_15_04_010150m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1350934856, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/d74fca2042e793e5e038c7118c3a8130.jpg', 'username': None, 'uploaded_at': 1744938967, 'text': 'image_18042025_03_15_14_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350934853, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/091eb906bd83273a1b79c58d2aa0bc49.jpg', 'username': None, 'uploaded_at': 1744938967, 'text': 'image_18042025_03_15_24_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350934849, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/2f5dec23a840e717759e739c992add1e.jpg', 'username': None, 'uploaded_at': 1744938967, 'text': 'image_18042025_03_15_33_009131m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017244815826416016 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22168817, '2025-04-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1725253,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024135351181030273 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= 1725253 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1725253, 'dashboard_run_id': 1733067, 'mtr_portfolio_id': 22167282, 'dashboard_result_id': 9961364, '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_P22167282_18-04-2025_02_46_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167294, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1733067, 'mtr_portfolio_id': 22167840, 'dashboard_result_id': 9961366, '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_P22167840_18-04-2025_03_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167852, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1733067, 'mtr_portfolio_id': 22168535, 'dashboard_result_id': 9961367, '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_P22168535_18-04-2025_03_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22168536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22168537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22168538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22168539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22168540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22168541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22168542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22168543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22168544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22168545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22168546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22168547, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1733067, 'mtr_portfolio_id': 22168817, 'dashboard_result_id': 9961368, '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_P22168817_18-04-2025_03_25_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22168819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22168820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22168821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22168822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22168823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22168824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22168825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22168826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22168827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22168828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22168829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22168830, '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 = 22167282 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': 2733708, 'mtr_portfolio_id': 22167282, 'created_at': datetime.datetime(2025, 4, 18, 2, 46, 29), 'result': '0.07598048553157151', 'result_long': None, 'result_double': None}] Qualite : 0.07598048553157151 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22167282 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167282_18-04-2025_02_46_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22167282 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_P22167282_18-04-2025_02_46_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167294, 'pht': 3726}}" where mtr_portfolio_id = 22167282 and dashboard_run_id = 1733067 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`=22167282 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9961364, 0.07598048553157151, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167282_18-04-2025_02_46_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167294, '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 = 22167840 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': 2733747, 'mtr_portfolio_id': 22167840, 'created_at': datetime.datetime(2025, 4, 18, 3, 2, 58), 'result': '0.05046370152599812', 'result_long': None, 'result_double': None}] Qualite : 0.05046370152599812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22167840 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167840_18-04-2025_03_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22167840 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_P22167840_18-04-2025_03_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167852, 'pht': 3726}}" where mtr_portfolio_id = 22167840 and dashboard_run_id = 1733067 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`=22167840 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9961366, 0.05046370152599812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167840_18-04-2025_03_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167852, '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 = 22168535 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': 2733800, 'mtr_portfolio_id': 22168535, 'created_at': datetime.datetime(2025, 4, 18, 3, 16, 58), 'result': '0.07092430150177235', 'result_long': None, 'result_double': None}] Qualite : 0.07092430150177235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22168535 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168535_18-04-2025_03_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22168535 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_P22168535_18-04-2025_03_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22168536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22168537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22168538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22168539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22168540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22168541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22168542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22168543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22168544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22168545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22168546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22168547, 'pht': 3726}}" where mtr_portfolio_id = 22168535 and dashboard_run_id = 1733067 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`=22168535 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9961367, 0.07092430150177235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168535_18-04-2025_03_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22168536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22168537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22168538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22168539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22168540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22168541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22168542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22168543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22168544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22168545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22168546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22168547, '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 = 22168817 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': 2733823, 'mtr_portfolio_id': 22168817, 'created_at': datetime.datetime(2025, 4, 18, 3, 26, 58), 'result': '0.06006678168935497', 'result_long': None, 'result_double': None}] Qualite : 0.06006678168935497 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22168817 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168817_18-04-2025_03_26_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22168817 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_P22168817_18-04-2025_03_26_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22168819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22168820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22168821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22168822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22168823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22168824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22168825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22168826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22168827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22168828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22168829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22168830, 'pht': 3726}}" where mtr_portfolio_id = 22168817 and dashboard_run_id = 1733067 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`=22168817 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9961368, 0.06006678168935497, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168817_18-04-2025_03_26_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22168819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22168820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22168821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22168822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22168823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22168824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22168825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22168826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22168827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22168828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22168829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22168830, '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 (22167282,22167840,22168535,22168817) result : ((1350929378,), (1350929379,), (1350929380,), (1350929403,), (1350929422,), (1350929450,), (1350929456,), (1350929458,), (1350929495,), (1350929501,), (1350929506,), (1350929509,), (1350929513,), (1350929515,), (1350929543,), (1350929546,), (1350929548,), (1350929551,), (1350929557,), (1350929593,), (1350929596,), (1350929598,), (1350929600,), (1350929634,), (1350929635,), (1350929636,), (1350929637,), (1350929639,), (1350929664,), (1350929667,), (1350929670,), (1350929673,), (1350929696,), (1350929702,), (1350929718,), (1350929724,), (1350929729,), (1350929758,), (1350929760,), (1350929762,), (1350929764,), (1350929802,), (1350929809,), (1350929811,), (1350929813,), (1350929817,), (1350929822,), (1350929880,), (1350929882,), (1350929884,), (1350929886,), (1350929925,), (1350929930,), (1350929933,), (1350929938,), (1350930056,), (1350930057,), (1350930109,), (1350930097,), (1350930105,), (1350930107,), (1350930139,), (1350930141,), (1350930143,), (1350930146,), (1350930148,), (1350930183,), (1350930192,), (1350930194,), (1350930197,), (1350930200,), (1350930209,), (1350930220,), (1350930224,), (1350930228,), (1350930258,), (1350930263,), (1350930270,), (1350930302,), (1350930304,), (1350930306,), (1350930307,), (1350930309,), (1350930342,), (1350930344,), (1350930345,), (1350930359,), (1350930361,), (1350930363,), (1350930364,), (1350930365,), (1350930398,), (1350930401,), (1350930403,), (1350930404,), (1350930407,), (1350930408,), (1350930411,), (1350930413,), (1350930415,), (1350930419,), (1350930422,), (1350930428,), (1350930439,), (1350930442,), (1350930445,), (1350930454,), (1350930456,), (1350930458,), (1350930473,), (1350930478,), (1350930479,), (1350930480,), (1350930482,), (1350930485,), (1350930625,), (1350930652,), (1350930681,), (1350930710,), (1350930732,), (1350930985,), (1350930992,), (1350931001,), (1350931020,), (1350931390,), (1350931268,), (1350931299,), (1350931329,), (1350931360,), (1350933846,), (1350933849,), (1350933852,), (1350933984,), (1350934011,), (1350934038,), (1350934064,), (1350934374,), (1350934376,), (1350934394,), (1350934411,), (1350934415,), (1350934420,), (1350934508,), (1350934512,), (1350934516,), (1350934519,), (1350934523,), (1350934592,), (1350934621,), (1350934625,), (1350934629,), (1350934636,), (1350934651,), (1350934689,), (1350934691,), (1350934692,), (1350934693,), (1350934735,), (1350934741,), (1350934745,), (1350934749,), (1350934755,), (1350934799,), (1350934801,), (1350934804,), (1350934864,), (1350934849,), (1350934853,), (1350934856,), (1350934860,), (1350934896,), (1350934899,), (1350934901,), (1350934903,), (1350934905,), (1350934908,), (1350934960,), (1350934962,), (1350934963,), (1350934965,), (1350935016,), (1350935020,), (1350935023,), (1350935027,), (1350935032,), (1350935074,), (1350935076,), (1350935084,), (1350935089,), (1350935094,), (1350935097,), (1350935134,), (1350935137,), (1350935139,), (1350935141,), (1350935184,), (1350935189,), (1350935193,), (1350935199,), (1350935211,), (1350935218,), (1350935254,), (1350935255,), (1350935256,), (1350935257,), (1350935259,), (1350935284,), (1350935286,), (1350935289,), (1350935319,), (1350935320,), (1350935321,), (1350935324,), (1350935327,), (1350935331,), (1350935353,), (1350935357,), (1350935364,), (1350935371,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18042025': {'nb_upload': 53, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22168817]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350935371, 1350935364, 1350935357, 1350935353, 1350935331, 1350935327, 1350935324, 1350935321, 1350935320, 1350935319] map_info['map_portfolio_photo'] : {22168817: [1350935371, 1350935364, 1350935357, 1350935353, 1350935331, 1350935327, 1350935324, 1350935321, 1350935320, 1350935319, 1350935289, 1350935286, 1350935284, 1350935259, 1350935257, 1350935256, 1350935255, 1350935254, 1350935218, 1350935211, 1350935199, 1350935193, 1350935189, 1350935184, 1350935141, 1350935139, 1350935137, 1350935134, 1350935097, 1350935094, 1350935089, 1350935084, 1350935076, 1350935074, 1350935032, 1350935027, 1350935023, 1350935020, 1350935016, 1350934965, 1350934963, 1350934962, 1350934960, 1350934908, 1350934905, 1350934903, 1350934901, 1350934899, 1350934896, 1350934860, 1350934856, 1350934853, 1350934849]} final : True mtd_id 4302 list_pids : [1350935371, 1350935364, 1350935357, 1350935353, 1350935331, 1350935327, 1350935324, 1350935321, 1350935320, 1350935319] Looping around the photos to save general results len do output : 1 /22168817Didn'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, '2733823') ('4302', '22168817', '1350935371', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935364', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935357', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935353', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935331', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935327', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935324', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935321', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935320', None, None, None, None, None, '2733823') ('4302', None, None, None, None, None, None, None, '2733823') ('4302', '22168817', '1350935319', None, None, None, None, None, '2733823') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '22168817', 'None', None, None, None, None, '2733823'), ('4302', '22168817', '1350935371', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935364', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935357', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935353', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935331', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935327', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935324', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935321', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935320', None, None, None, None, None, '2733823'), ('4302', '22168817', '1350935319', None, None, None, None, None, '2733823')] time used for this insertion : 0.01571369171142578 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3401172161102295 time spend to save output : 0.01593327522277832 total time spend for step 5 : 0.3560504913330078 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 (2733823) 2.11user 2.42system 0:10.39elapsed 43%CPU (0avgtext+0avgdata 159780maxresident)k 112inputs+11960outputs (16major+64222minor)pagefaults 0swaps