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 : 2725278 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 (3365715) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3365715) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25384876 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3365715'] with mtr_portfolio_ids : ['25384876'] and first list_photo_ids : [] new path : /proc/2725278/ Name: python3 Umask: 0002 State: R (running) Tgid: 2725278 Ngid: 0 Pid: 2725278 PPid: 2725277 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2725278 NSpid: 2725278 NSpgid: 2723665 NSsid: 2723665 VmPeak: 1106884 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98396 kB VmRSS: 98396 kB RssAnon: 59840 kB RssFile: 38556 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 48 nonvoluntary_ctxt_switches: 79 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2725278', 'Ngid': '0', 'Pid': '2725278', 'PPid': '2725277', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2725278', 'NSpid': '2725278', 'NSpgid': '2723665', 'NSsid': '2723665', 'VmPeak': '1106884 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98396 kB', 'VmRSS': '98396 kB', 'RssAnon': '59840 kB', 'RssFile': '38556 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '48', 'nonvoluntary_ctxt_switches': '79'} ('datou_batch_current', '2725278', '1106884', '0', '1106884', '865636', '98396', b'', 'marlene', '3365715') 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 (25384876) 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 (3365715 ) ) 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 (25384876) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1374088263, 'portfolio_id': 25384876}, {'photo_id': 1374088259, 'portfolio_id': 25384876}, {'photo_id': 1374088251, 'portfolio_id': 25384876}, {'photo_id': 1374088239, 'portfolio_id': 25384876}, {'photo_id': 1374088238, 'portfolio_id': 25384876}, {'photo_id': 1374088237, 'portfolio_id': 25384876}, {'photo_id': 1374088213, 'portfolio_id': 25384876}, {'photo_id': 1374088200, 'portfolio_id': 25384876}, {'photo_id': 1374088196, 'portfolio_id': 25384876}, {'photo_id': 1374088188, 'portfolio_id': 25384876}, {'photo_id': 1374088177, 'portfolio_id': 25384876}, {'photo_id': 1374088176, 'portfolio_id': 25384876}, {'photo_id': 1374088175, 'portfolio_id': 25384876}, {'photo_id': 1374088155, 'portfolio_id': 25384876}, {'photo_id': 1374088143, 'portfolio_id': 25384876}, {'photo_id': 1374088141, 'portfolio_id': 25384876}, {'photo_id': 1374088140, 'portfolio_id': 25384876}, {'photo_id': 1374088137, 'portfolio_id': 25384876}, {'photo_id': 1374088129, 'portfolio_id': 25384876}, {'photo_id': 1374088122, 'portfolio_id': 25384876}, {'photo_id': 1374088108, 'portfolio_id': 25384876}, {'photo_id': 1374088106, 'portfolio_id': 25384876}, {'photo_id': 1374088105, 'portfolio_id': 25384876}, {'photo_id': 1374088104, 'portfolio_id': 25384876}, {'photo_id': 1374088103, 'portfolio_id': 25384876}, {'photo_id': 1374088101, 'portfolio_id': 25384876}, {'photo_id': 1374088085, 'portfolio_id': 25384876}, {'photo_id': 1374088083, 'portfolio_id': 25384876}, {'photo_id': 1374088082, 'portfolio_id': 25384876}, {'photo_id': 1374088081, 'portfolio_id': 25384876}, {'photo_id': 1374088080, 'portfolio_id': 25384876}, {'photo_id': 1374088079, 'portfolio_id': 25384876}, {'photo_id': 1374087960, 'portfolio_id': 25384876}, {'photo_id': 1374087938, 'portfolio_id': 25384876}, {'photo_id': 1374087915, 'portfolio_id': 25384876}, {'photo_id': 1374087890, 'portfolio_id': 25384876}, {'photo_id': 1374087887, 'portfolio_id': 25384876}] map_portfolio_id_photo_id: {25384876: [1374088263, 1374088259, 1374088251, 1374088239, 1374088238, 1374088237, 1374088213, 1374088200, 1374088196, 1374088188, 1374088177, 1374088176, 1374088175, 1374088155, 1374088143, 1374088141, 1374088140, 1374088137, 1374088129, 1374088122, 1374088108, 1374088106, 1374088105, 1374088104, 1374088103, 1374088101, 1374088085, 1374088083, 1374088082, 1374088081, 1374088080, 1374088079, 1374087960, 1374087938, 1374087915, 1374087890, 1374087887]} ##### 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.013915300369262695 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Jul 28 05:08: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 (25384876) 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 : 25384876 get user id for portfolio 25384876 get sub ptf for main ptf 25384876, type 3726 and hashtags ['metal', 'autre_refus', 'flou', 'Carton_gris', 'plastique', 'Carton_brun', 'environnement', 'kraft', 'papier', 'cartonnette', 'Teint_Dans_La_Masse', 'mal_croppe'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25384876 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','flou','Carton_gris','plastique','Carton_brun','environnement','kraft','papier','cartonnette','Teint_Dans_La_Masse','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25384876 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','flou','Carton_gris','plastique','Carton_brun','environnement','kraft','papier','cartonnette','Teint_Dans_La_Masse','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 25384876, 'sub_port_id': 25384879, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121742, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 6, 58)}, 'Carton_brun': {'main_port_id': 25384876, 'sub_port_id': 25384880, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121743, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 6, 58)}, 'metal': {'main_port_id': 25384876, 'sub_port_id': 25384881, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121744, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 6, 58)}, 'Carton_gris': {'main_port_id': 25384876, 'sub_port_id': 25384882, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121745, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 6, 58)}, 'cartonnette': {'main_port_id': 25384876, 'sub_port_id': 25384883, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121746, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 6, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 25384876, 'sub_port_id': 25384884, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121747, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 6, 58)}, 'plastique': {'main_port_id': 25384876, 'sub_port_id': 25384885, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121748, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 6, 58)}, 'autre_refus': {'main_port_id': 25384876, 'sub_port_id': 25384886, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121749, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 6, 58)}, 'kraft': {'main_port_id': 25384876, 'sub_port_id': 25384887, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121750, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 6, 58)}, 'flou': {'main_port_id': 25384876, 'sub_port_id': 25384888, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121751, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 6, 58)}, 'mal_croppe': {'main_port_id': 25384876, 'sub_port_id': 25384889, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121752, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 6, 58)}, 'environnement': {'main_port_id': 25384876, 'sub_port_id': 25384890, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121753, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 6, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25384879 , 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=25384876 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 (25384879) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25384876) result : ((1374087887,), (1374087890,), (1374087915,), (1374087938,), (1374087960,), (1374088079,), (1374088080,), (1374088081,), (1374088082,), (1374088083,), (1374088085,), (1374088101,), (1374088103,), (1374088104,), (1374088105,), (1374088106,), (1374088108,), (1374088122,), (1374088129,), (1374088137,), (1374088140,), (1374088141,), (1374088143,), (1374088155,), (1374088175,), (1374088176,), (1374088177,), (1374088188,), (1374088196,), (1374088200,), (1374088213,), (1374088237,), (1374088238,), (1374088239,), (1374088251,), (1374088259,), (1374088263,)) 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 (1374088200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25384880 , 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=25384876 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 (25384880) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25384876) result : ((1374087887,), (1374087890,), (1374087915,), (1374087938,), (1374087960,), (1374088079,), (1374088080,), (1374088081,), (1374088082,), (1374088083,), (1374088085,), (1374088101,), (1374088103,), (1374088104,), (1374088105,), (1374088106,), (1374088108,), (1374088122,), (1374088129,), (1374088137,), (1374088140,), (1374088141,), (1374088143,), (1374088155,), (1374088175,), (1374088176,), (1374088177,), (1374088188,), (1374088196,), (1374088200,), (1374088213,), (1374088237,), (1374088238,), (1374088239,), (1374088251,), (1374088259,), (1374088263,)) 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 (1374088200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25384881 , 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=25384876 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 (25384881) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25384876) result : ((1374087887,), (1374087890,), (1374087915,), (1374087938,), (1374087960,), (1374088079,), (1374088080,), (1374088081,), (1374088082,), (1374088083,), (1374088085,), (1374088101,), (1374088103,), (1374088104,), (1374088105,), (1374088106,), (1374088108,), (1374088122,), (1374088129,), (1374088137,), (1374088140,), (1374088141,), (1374088143,), (1374088155,), (1374088175,), (1374088176,), (1374088177,), (1374088188,), (1374088196,), (1374088200,), (1374088213,), (1374088237,), (1374088238,), (1374088239,), (1374088251,), (1374088259,), (1374088263,)) 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 (1374088200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25384882 , 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=25384876 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 (25384882) result : ((1374088132,), (1374088133,), (1374088134,), (1374088135,), (1374088136,), (1374088138,), (1374088189,), (1374088190,), (1374088191,), (1374088192,), (1374088193,), (1374088194,), (1374088256,), (1374088257,), (1374088258,), (1374088260,), (1374088261,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25384876) result : ((1374087887,), (1374087890,), (1374087915,), (1374087938,), (1374087960,), (1374088079,), (1374088080,), (1374088081,), (1374088082,), (1374088083,), (1374088085,), (1374088101,), (1374088103,), (1374088104,), (1374088105,), (1374088106,), (1374088108,), (1374088122,), (1374088129,), (1374088137,), (1374088140,), (1374088141,), (1374088143,), (1374088155,), (1374088175,), (1374088176,), (1374088177,), (1374088188,), (1374088196,), (1374088200,), (1374088213,), (1374088237,), (1374088238,), (1374088239,), (1374088251,), (1374088259,), (1374088263,)) 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 (1374088200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25384883 , 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=25384876 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 (25384883) result : ((1374088139,), (1374088195,), (1374088197,), (1374088262,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25384876) result : ((1374087887,), (1374087890,), (1374087915,), (1374087938,), (1374087960,), (1374088079,), (1374088080,), (1374088081,), (1374088082,), (1374088083,), (1374088085,), (1374088101,), (1374088103,), (1374088104,), (1374088105,), (1374088106,), (1374088108,), (1374088122,), (1374088129,), (1374088137,), (1374088140,), (1374088141,), (1374088143,), (1374088155,), (1374088175,), (1374088176,), (1374088177,), (1374088188,), (1374088196,), (1374088200,), (1374088213,), (1374088237,), (1374088238,), (1374088239,), (1374088251,), (1374088259,), (1374088263,)) 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 (1374088200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25384884 , 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=25384876 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 (25384884) result : ((1374088123,), (1374088124,), (1374088125,), (1374088126,), (1374088127,), (1374088128,), (1374088178,), (1374088179,), (1374088180,), (1374088181,), (1374088182,), (1374088183,), (1374088184,), (1374088240,), (1374088241,), (1374088242,), (1374088243,), (1374088244,), (1374088245,), (1374088246,), (1374088247,), (1374088248,), (1374088249,), (1374088250,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25384876) result : ((1374087887,), (1374087890,), (1374087915,), (1374087938,), (1374087960,), (1374088079,), (1374088080,), (1374088081,), (1374088082,), (1374088083,), (1374088085,), (1374088101,), (1374088103,), (1374088104,), (1374088105,), (1374088106,), (1374088108,), (1374088122,), (1374088129,), (1374088137,), (1374088140,), (1374088141,), (1374088143,), (1374088155,), (1374088175,), (1374088176,), (1374088177,), (1374088188,), (1374088196,), (1374088200,), (1374088213,), (1374088237,), (1374088238,), (1374088239,), (1374088251,), (1374088259,), (1374088263,)) 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 (1374088200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25384885 , 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=25384876 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 (25384885) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25384876) result : ((1374087887,), (1374087890,), (1374087915,), (1374087938,), (1374087960,), (1374088079,), (1374088080,), (1374088081,), (1374088082,), (1374088083,), (1374088085,), (1374088101,), (1374088103,), (1374088104,), (1374088105,), (1374088106,), (1374088108,), (1374088122,), (1374088129,), (1374088137,), (1374088140,), (1374088141,), (1374088143,), (1374088155,), (1374088175,), (1374088176,), (1374088177,), (1374088188,), (1374088196,), (1374088200,), (1374088213,), (1374088237,), (1374088238,), (1374088239,), (1374088251,), (1374088259,), (1374088263,)) 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 (1374088200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25384886 , 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=25384876 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 (25384886) result : ((1374088130,), (1374088131,), (1374088185,), (1374088186,), (1374088187,), (1374088252,), (1374088253,), (1374088254,), (1374088255,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25384876) result : ((1374087887,), (1374087890,), (1374087915,), (1374087938,), (1374087960,), (1374088079,), (1374088080,), (1374088081,), (1374088082,), (1374088083,), (1374088085,), (1374088101,), (1374088103,), (1374088104,), (1374088105,), (1374088106,), (1374088108,), (1374088122,), (1374088129,), (1374088137,), (1374088140,), (1374088141,), (1374088143,), (1374088155,), (1374088175,), (1374088176,), (1374088177,), (1374088188,), (1374088196,), (1374088200,), (1374088213,), (1374088237,), (1374088238,), (1374088239,), (1374088251,), (1374088259,), (1374088263,)) 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 (1374088200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25384887 , 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=25384876 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 (25384887) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25384876) result : ((1374087887,), (1374087890,), (1374087915,), (1374087938,), (1374087960,), (1374088079,), (1374088080,), (1374088081,), (1374088082,), (1374088083,), (1374088085,), (1374088101,), (1374088103,), (1374088104,), (1374088105,), (1374088106,), (1374088108,), (1374088122,), (1374088129,), (1374088137,), (1374088140,), (1374088141,), (1374088143,), (1374088155,), (1374088175,), (1374088176,), (1374088177,), (1374088188,), (1374088196,), (1374088200,), (1374088213,), (1374088237,), (1374088238,), (1374088239,), (1374088251,), (1374088259,), (1374088263,)) 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 (1374088200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25384888 , 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=25384876 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 (25384888) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25384876) result : ((1374087887,), (1374087890,), (1374087915,), (1374087938,), (1374087960,), (1374088079,), (1374088080,), (1374088081,), (1374088082,), (1374088083,), (1374088085,), (1374088101,), (1374088103,), (1374088104,), (1374088105,), (1374088106,), (1374088108,), (1374088122,), (1374088129,), (1374088137,), (1374088140,), (1374088141,), (1374088143,), (1374088155,), (1374088175,), (1374088176,), (1374088177,), (1374088188,), (1374088196,), (1374088200,), (1374088213,), (1374088237,), (1374088238,), (1374088239,), (1374088251,), (1374088259,), (1374088263,)) 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 (1374088200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25384889 , 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=25384876 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 (25384889) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25384876) result : ((1374087887,), (1374087890,), (1374087915,), (1374087938,), (1374087960,), (1374088079,), (1374088080,), (1374088081,), (1374088082,), (1374088083,), (1374088085,), (1374088101,), (1374088103,), (1374088104,), (1374088105,), (1374088106,), (1374088108,), (1374088122,), (1374088129,), (1374088137,), (1374088140,), (1374088141,), (1374088143,), (1374088155,), (1374088175,), (1374088176,), (1374088177,), (1374088188,), (1374088196,), (1374088200,), (1374088213,), (1374088237,), (1374088238,), (1374088239,), (1374088251,), (1374088259,), (1374088263,)) 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 (1374088200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25384890 , 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=25384876 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 (25384890) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25384876) result : ((1374087887,), (1374087890,), (1374087915,), (1374087938,), (1374087960,), (1374088079,), (1374088080,), (1374088081,), (1374088082,), (1374088083,), (1374088085,), (1374088101,), (1374088103,), (1374088104,), (1374088105,), (1374088106,), (1374088108,), (1374088122,), (1374088129,), (1374088137,), (1374088140,), (1374088141,), (1374088143,), (1374088155,), (1374088175,), (1374088176,), (1374088177,), (1374088188,), (1374088196,), (1374088200,), (1374088213,), (1374088237,), (1374088238,), (1374088239,), (1374088251,), (1374088259,), (1374088263,)) 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 (1374088200) and cspi.crop_hashtag_id = chi.id; 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`=25384876 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','flou','Carton_gris','plastique','Carton_brun','environnement','kraft','papier','cartonnette','Teint_Dans_La_Masse','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25384876 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','flou','Carton_gris','plastique','Carton_brun','environnement','kraft','papier','cartonnette','Teint_Dans_La_Masse','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 25384876, 'sub_port_id': 25384891, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121754, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 7)}, 'Carton_brun': {'main_port_id': 25384876, 'sub_port_id': 25384892, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121755, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 7)}, 'metal': {'main_port_id': 25384876, 'sub_port_id': 25384893, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121756, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 7)}, 'Carton_gris': {'main_port_id': 25384876, 'sub_port_id': 25384894, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121757, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 7)}, 'cartonnette': {'main_port_id': 25384876, 'sub_port_id': 25384895, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121758, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 7)}, 'Teint_Dans_La_Masse': {'main_port_id': 25384876, 'sub_port_id': 25384896, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121759, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 7)}, 'plastique': {'main_port_id': 25384876, 'sub_port_id': 25384897, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121760, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 7)}, 'autre_refus': {'main_port_id': 25384876, 'sub_port_id': 25384898, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121761, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 7)}, 'kraft': {'main_port_id': 25384876, 'sub_port_id': 25384899, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121762, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 7)}, 'flou': {'main_port_id': 25384876, 'sub_port_id': 25384900, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121763, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 7)}, 'mal_croppe': {'main_port_id': 25384876, 'sub_port_id': 25384901, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121764, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 7)}, 'environnement': {'main_port_id': 25384876, 'sub_port_id': 25384902, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17121765, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 7)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25384891,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25384879 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25384892,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25384880 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25384893,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25384881 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25384894,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25384882 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25384895,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25384883 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25384896,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25384884 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25384897,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25384885 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25384898,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25384886 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25384899,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25384887 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25384900,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25384888 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25384901,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25384889 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25384902,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25384890 lien utilise dans velours : https://www.fotonower.com/velours/25384891,25384892,25384893,25384894,25384895,25384896,25384897,25384898,25384899,25384900,25384901,25384902?tags=papier,Carton_brun,metal,Carton_gris,cartonnette,Teint_Dans_La_Masse,plastique,autre_refus,kraft,flou,mal_croppe,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25384876]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1374088263, 1374088259, 1374088251, 1374088239, 1374088238, 1374088237, 1374088213, 1374088200, 1374088196, 1374088188, 1374088177, 1374088176, 1374088175] map_info['map_portfolio_photo'] : {25384876: [1374088263, 1374088259, 1374088251, 1374088239, 1374088238, 1374088237, 1374088213, 1374088200, 1374088196, 1374088188, 1374088177, 1374088176, 1374088175, 1374088155, 1374088143, 1374088141, 1374088140, 1374088137, 1374088129, 1374088122, 1374088108, 1374088106, 1374088105, 1374088104, 1374088103, 1374088101, 1374088085, 1374088083, 1374088082, 1374088081, 1374088080, 1374088079, 1374087960, 1374087938, 1374087915, 1374087890, 1374087887]} final : False mtd_id 4302 list_pids : [1374088263, 1374088259, 1374088251, 1374088239, 1374088238, 1374088237, 1374088213, 1374088200, 1374088196, 1374088188, 1374088177, 1374088176, 1374088175] Looping around the photos to save general results len do output : 1 /25384876. 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, '3365715') ('4302', '25384876', '1374088263', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088259', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088251', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088239', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088238', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088237', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088213', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088200', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088196', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088188', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088177', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088176', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088175', None, None, None, None, None, '3365715') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '25384876', "{'papier': 25384879, 'Carton_brun': 25384880, 'metal': 25384881, 'Carton_gris': 25384882, 'cartonnette': 25384883, 'Teint_Dans_La_Masse': 25384884, 'plastique': 25384885, 'autre_refus': 25384886, 'kraft': 25384887, 'flou': 25384888, 'mal_croppe': 25384889, 'environnement': 25384890}", None, None, None, None, '3365715'), ('4302', '25384876', '1374088263', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088259', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088251', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088239', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088238', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088237', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088213', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088200', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088196', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088188', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088177', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088176', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088175', None, None, None, None, None, '3365715')] time used for this insertion : 0.020673036575317383 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6428134441375732 time spend to save output : 0.021032333374023438 total time spend for step 1 : 0.6638457775115967 step2:final Mon Jul 28 05:08:57 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 (25384876) 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 25384876 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1374087960,1374087938,1374087915,1374087890,1374087887,1374088085,1374088083,1374088082,1374088081,1374088080,1374088079,1374088108,1374088106,1374088105,1374088104,1374088103,1374088101,1374088155,1374088143,1374088141,1374088140,1374088137,1374088129,1374088122,1374088200,1374088196,1374088188,1374088177,1374088176,1374088175,1374088213,1374088263,1374088259,1374088251,1374088239,1374088238,1374088237); 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([25384876]) Inside saveOutput : final : False verbose : True original output for save of step final : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ('0.1178215023419979',), 1374088177: ('0.1178215023419979',), 1374088176: ('0.1178215023419979',), 1374088175: ('0.1178215023419979',)} new output for save of step final : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ('0.1178215023419979',), 1374088177: ('0.1178215023419979',), 1374088176: ('0.1178215023419979',), 1374088175: ('0.1178215023419979',)} [1374088263, 1374088259, 1374088251, 1374088239, 1374088238, 1374088237, 1374088213, 1374088200, 1374088196, 1374088188, 1374088177, 1374088176, 1374088175] map_info['map_portfolio_photo'] : {25384876: [1374088263, 1374088259, 1374088251, 1374088239, 1374088238, 1374088237, 1374088213, 1374088200, 1374088196, 1374088188, 1374088177, 1374088176, 1374088175, 1374088155, 1374088143, 1374088141, 1374088140, 1374088137, 1374088129, 1374088122, 1374088108, 1374088106, 1374088105, 1374088104, 1374088103, 1374088101, 1374088085, 1374088083, 1374088082, 1374088081, 1374088080, 1374088079, 1374087960, 1374087938, 1374087915, 1374087890, 1374087887]} final : False mtd_id 4302 list_pids : [1374088263, 1374088259, 1374088251, 1374088239, 1374088238, 1374088237, 1374088213, 1374088200, 1374088196, 1374088188, 1374088177, 1374088176, 1374088175] Looping around the photos to save general results len do output : 13 /1374088263.Didn't retrieve data . /1374088259.Didn't retrieve data . /1374088251.Didn't retrieve data . /1374088239.Didn't retrieve data . /1374088238.Didn't retrieve data . /1374088237.Didn't retrieve data . /1374088213.Didn't retrieve data . /1374088200.Didn't retrieve data . /1374088196.Didn't retrieve data . /1374088188.Didn't retrieve data . /1374088177.Didn't retrieve data . /1374088176.Didn't retrieve data . /1374088175.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, '3365715') ('4302', '25384876', '1374088263', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088259', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088251', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088239', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088238', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088237', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088213', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088200', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088196', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088188', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088177', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088176', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088175', None, None, None, None, None, '3365715') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '25384876', '1374088263', '0.1178215023419979', None, None, None, None, '3365715'), ('4302', '25384876', '1374088259', '0.1178215023419979', None, None, None, None, '3365715'), ('4302', '25384876', '1374088251', '0.1178215023419979', None, None, None, None, '3365715'), ('4302', '25384876', '1374088239', '0.1178215023419979', None, None, None, None, '3365715'), ('4302', '25384876', '1374088238', '0.1178215023419979', None, None, None, None, '3365715'), ('4302', '25384876', '1374088237', '0.1178215023419979', None, None, None, None, '3365715'), ('4302', '25384876', '1374088213', '0.1178215023419979', None, None, None, None, '3365715'), ('4302', '25384876', '1374088200', '0.1178215023419979', None, None, None, None, '3365715'), ('4302', '25384876', '1374088196', '0.1178215023419979', None, None, None, None, '3365715'), ('4302', '25384876', '1374088188', '0.1178215023419979', None, None, None, None, '3365715'), ('4302', '25384876', '1374088177', '0.1178215023419979', None, None, None, None, '3365715'), ('4302', '25384876', '1374088176', '0.1178215023419979', None, None, None, None, '3365715'), ('4302', '25384876', '1374088175', '0.1178215023419979', None, None, None, None, '3365715')] time used for this insertion : 0.10149693489074707 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06693434715270996 time spend to save output : 0.10209107398986816 total time spend for step 2 : 0.16902542114257812 step3:velours_tree Mon Jul 28 05:08:57 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 : {25384876: [{'papier': 25384879, 'Carton_brun': 25384880, 'metal': 25384881, 'Carton_gris': 25384882, 'cartonnette': 25384883, 'Teint_Dans_La_Masse': 25384884, 'plastique': 25384885, 'autre_refus': 25384886, 'kraft': 25384887, 'flou': 25384888, 'mal_croppe': 25384889, 'environnement': 25384890}]} input_args_next_step : {25384876: ()} output_args : {25384876: [{'papier': 25384879, 'Carton_brun': 25384880, 'metal': 25384881, 'Carton_gris': 25384882, 'cartonnette': 25384883, 'Teint_Dans_La_Masse': 25384884, 'plastique': 25384885, 'autre_refus': 25384886, 'kraft': 25384887, 'flou': 25384888, 'mal_croppe': 25384889, 'environnement': 25384890}]} args : 25384876 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 : ({'papier': 25384879, 'Carton_brun': 25384880, 'metal': 25384881, 'Carton_gris': 25384882, 'cartonnette': 25384883, 'Teint_Dans_La_Masse': 25384884, 'plastique': 25384885, 'autre_refus': 25384886, 'kraft': 25384887, 'flou': 25384888, 'mal_croppe': 25384889, 'environnement': 25384890},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25384876) 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([25384876]) 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.28589844703674316 time spend to save output : 5.173683166503906e-05 total time spend for step 3 : 0.2859501838684082 step4:send_mail_cod Mon Jul 28 05:08:57 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 : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ('0.1178215023419979',), 1374088177: ('0.1178215023419979',), 1374088176: ('0.1178215023419979',), 1374088175: ('0.1178215023419979',)} input_args_next_step : {1374088263: ()} output_args : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ('0.1178215023419979',), 1374088177: ('0.1178215023419979',), 1374088176: ('0.1178215023419979',), 1374088175: ('0.1178215023419979',)} args : 1374088263 depend.output_id : 0 input_args_next_step : {1374088263: ('0.1178215023419979',), 1374088259: ()} output_args : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ('0.1178215023419979',), 1374088177: ('0.1178215023419979',), 1374088176: ('0.1178215023419979',), 1374088175: ('0.1178215023419979',)} args : 1374088259 depend.output_id : 0 input_args_next_step : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ()} output_args : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ('0.1178215023419979',), 1374088177: ('0.1178215023419979',), 1374088176: ('0.1178215023419979',), 1374088175: ('0.1178215023419979',)} args : 1374088251 depend.output_id : 0 input_args_next_step : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ()} output_args : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ('0.1178215023419979',), 1374088177: ('0.1178215023419979',), 1374088176: ('0.1178215023419979',), 1374088175: ('0.1178215023419979',)} args : 1374088239 depend.output_id : 0 input_args_next_step : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ()} output_args : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ('0.1178215023419979',), 1374088177: ('0.1178215023419979',), 1374088176: ('0.1178215023419979',), 1374088175: ('0.1178215023419979',)} args : 1374088238 depend.output_id : 0 input_args_next_step : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ()} output_args : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ('0.1178215023419979',), 1374088177: ('0.1178215023419979',), 1374088176: ('0.1178215023419979',), 1374088175: ('0.1178215023419979',)} args : 1374088237 depend.output_id : 0 input_args_next_step : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ()} output_args : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ('0.1178215023419979',), 1374088177: ('0.1178215023419979',), 1374088176: ('0.1178215023419979',), 1374088175: ('0.1178215023419979',)} args : 1374088213 depend.output_id : 0 input_args_next_step : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ()} output_args : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ('0.1178215023419979',), 1374088177: ('0.1178215023419979',), 1374088176: ('0.1178215023419979',), 1374088175: ('0.1178215023419979',)} args : 1374088200 depend.output_id : 0 input_args_next_step : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ()} output_args : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ('0.1178215023419979',), 1374088177: ('0.1178215023419979',), 1374088176: ('0.1178215023419979',), 1374088175: ('0.1178215023419979',)} args : 1374088196 depend.output_id : 0 input_args_next_step : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ()} output_args : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ('0.1178215023419979',), 1374088177: ('0.1178215023419979',), 1374088176: ('0.1178215023419979',), 1374088175: ('0.1178215023419979',)} args : 1374088188 depend.output_id : 0 input_args_next_step : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ('0.1178215023419979',), 1374088177: ()} output_args : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ('0.1178215023419979',), 1374088177: ('0.1178215023419979',), 1374088176: ('0.1178215023419979',), 1374088175: ('0.1178215023419979',)} args : 1374088177 depend.output_id : 0 input_args_next_step : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ('0.1178215023419979',), 1374088177: ('0.1178215023419979',), 1374088176: ()} output_args : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ('0.1178215023419979',), 1374088177: ('0.1178215023419979',), 1374088176: ('0.1178215023419979',), 1374088175: ('0.1178215023419979',)} args : 1374088176 depend.output_id : 0 input_args_next_step : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ('0.1178215023419979',), 1374088177: ('0.1178215023419979',), 1374088176: ('0.1178215023419979',), 1374088175: ()} output_args : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ('0.1178215023419979',), 1374088177: ('0.1178215023419979',), 1374088176: ('0.1178215023419979',), 1374088175: ('0.1178215023419979',)} args : 1374088175 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 : {25384876: [{'papier': 25384879, 'Carton_brun': 25384880, 'metal': 25384881, 'Carton_gris': 25384882, 'cartonnette': 25384883, 'Teint_Dans_La_Masse': 25384884, 'plastique': 25384885, 'autre_refus': 25384886, 'kraft': 25384887, 'flou': 25384888, 'mal_croppe': 25384889, 'environnement': 25384890}]} input_args_next_step : {1374088263: ('0.1178215023419979',), 1374088259: ('0.1178215023419979',), 1374088251: ('0.1178215023419979',), 1374088239: ('0.1178215023419979',), 1374088238: ('0.1178215023419979',), 1374088237: ('0.1178215023419979',), 1374088213: ('0.1178215023419979',), 1374088200: ('0.1178215023419979',), 1374088196: ('0.1178215023419979',), 1374088188: ('0.1178215023419979',), 1374088177: ('0.1178215023419979',), 1374088176: ('0.1178215023419979',), 1374088175: ('0.1178215023419979',), 25384876: ()} output_args : {25384876: [{'papier': 25384879, 'Carton_brun': 25384880, 'metal': 25384881, 'Carton_gris': 25384882, 'cartonnette': 25384883, 'Teint_Dans_La_Masse': 25384884, 'plastique': 25384885, 'autre_refus': 25384886, 'kraft': 25384887, 'flou': 25384888, 'mal_croppe': 25384889, 'environnement': 25384890}]} args : 25384876 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 :14, first value : ('0.1178215023419979',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25384876) 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 (1374088263,1374088259,1374088251,1374088239,1374088238,1374088237,1374088213,1374088200,1374088196,1374088188,1374088177,1374088176,1374088175) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1374088175 begin to download photo : 1374088188 begin to download photo : 1374088239 begin to download photo : 1374088213 begin to download photo : 1374088263 download finish for photo 1374088213 begin to download photo : 1374088237 download finish for photo 1374088188 begin to download photo : 1374088196 download finish for photo 1374088239 begin to download photo : 1374088251 download finish for photo 1374088175 begin to download photo : 1374088176 download finish for photo 1374088263 download finish for photo 1374088237 begin to download photo : 1374088238 download finish for photo 1374088196 begin to download photo : 1374088200 download finish for photo 1374088176 begin to download photo : 1374088177 download finish for photo 1374088251 begin to download photo : 1374088259 download finish for photo 1374088238 download finish for photo 1374088200 download finish for photo 1374088259 download finish for photo 1374088177 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette253848811753672138/ length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P25384876_28-07-2025_05_08_58.pdf 25384881 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=25384881 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253848811753672138 25384883 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=25384883 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374088139: '1753671806_4016671_1374088080_7c80da8163e9e88a6630e83b8a83f7e8_rle_crop_3896012669_0.png', 1374088195: '1753671926_4019491_1374088106_e157fb945c8422eb7a1ffff580a3c1f3_rle_crop_3896012866_0.png', 1374088197: '1753671926_4019491_1374088103_236842f111db7dce95bec37e391750e6_rle_crop_3896012903_0.png', 1374088262: '1753672046_4023198_1374088175_5c15ddead864f50e8c3e12f0531ee4f7_rle_crop_3896013147_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/c86691f42634b189d200a49422a1a29b_94969209.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/09a11a18ce36061a91230393c300273e_40300171.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/746e30a2701105b6f74aca681fc049e5_16778304.png change filename to text .imagette253848831753672138/ imagette253848831753672138/1753671926_4019491_1374088106_e157fb945c8422eb7a1ffff580a3c1f3_rle_crop_3896012866_0.png.png imagette253848831753672138/1753671806_4016671_1374088080_7c80da8163e9e88a6630e83b8a83f7e8_rle_crop_3896012669_0.png.png imagette253848831753672138/1753672046_4023198_1374088175_5c15ddead864f50e8c3e12f0531ee4f7_rle_crop_3896013147_0.png.png imagette253848831753672138/1753671926_4019491_1374088103_236842f111db7dce95bec37e391750e6_rle_crop_3896012903_0.png.png imagette253848851753672138/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/6437997bb01d351533f4520556e953d2_53655578.png imagette253848831753672138 25384885 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=25384885 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253848851753672138 25384886 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=25384886 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374088130: '1753671806_4016671_1374088085_581b94393c05fdeca5cb73ec74024988_rle_crop_3896012621_0.png', 1374088131: '1753671806_4016671_1374088083_13a3aa6ddb3269a05f165523fadc89a2_rle_crop_3896012633_0.png', 1374088185: '1753671926_4019491_1374088108_a614ffcaf91c3f3f9c8d9cf9ae650cd3_rle_crop_3896012851_0.png', 1374088186: '1753671926_4019491_1374088104_dcc307536a578fb8e6835a0e9bab6b08_rle_crop_3896012888_0.png', 1374088187: '1753671926_4019491_1374088101_d65e0ba57d754e8acf05af346b4ce5c4_rle_crop_3896012913_0.png', 1374088252: '1753672046_4023198_1374088196_ea971cb1e897a7a74c3aeb58b0b715f9_rle_crop_3896013094_0.png', 1374088253: '1753672046_4023198_1374088188_cf3f104fa074c45a716aae9202398f4f_rle_crop_3896013109_0.png', 1374088254: '1753672046_4023198_1374088177_c3b03f0e255f1fb5142a9b894770124d_rle_crop_3896013122_0.png', 1374088255: '1753672046_4023198_1374088176_2d2ad9426c2d2a2d151855e26ef0bbfe_rle_crop_3896013138_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/ce84ec6e3030cc5f1f31819062da7b0e_98260018.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/160b9dc3f83e043beccf7496556b79d0_86442627.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/549beab7dcfb09bb3903488259a51e85_85060528.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/5697625a6c9e2e860db590a2ed85a516_16285293.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/8aae72f6bc6cba01ce39c48edbbd4e6a_60596463.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/2f1a27b2b6b7ecb22434b757962fcf35_76755759.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/d98d28028a1c701f5f46584febad57d3_95063300.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/3446cf5c218fdb90ac2a4811f42e424d_68407389.png change filename to text .imagette253848861753672138/ imagette253848861753672138/1753672046_4023198_1374088188_cf3f104fa074c45a716aae9202398f4f_rle_crop_3896013109_0.png.png imagette253848861753672138/1753671926_4019491_1374088104_dcc307536a578fb8e6835a0e9bab6b08_rle_crop_3896012888_0.png.png imagette253848861753672138/1753672046_4023198_1374088177_c3b03f0e255f1fb5142a9b894770124d_rle_crop_3896013122_0.png.png imagette253848861753672138/1753671806_4016671_1374088083_13a3aa6ddb3269a05f165523fadc89a2_rle_crop_3896012633_0.png.png imagette253848861753672138/1753671806_4016671_1374088085_581b94393c05fdeca5cb73ec74024988_rle_crop_3896012621_0.png.png imagette253848861753672138/1753671926_4019491_1374088108_a614ffcaf91c3f3f9c8d9cf9ae650cd3_rle_crop_3896012851_0.png.png imagette253848861753672138/1753672046_4023198_1374088176_2d2ad9426c2d2a2d151855e26ef0bbfe_rle_crop_3896013138_0.png.png imagette253848861753672138/1753672046_4023198_1374088196_ea971cb1e897a7a74c3aeb58b0b715f9_rle_crop_3896013094_0.png.png imagette253848861753672138/1753671926_4019491_1374088101_d65e0ba57d754e8acf05af346b4ce5c4_rle_crop_3896012913_0.png.png imagette253848871753672139/ imagette253848881753672139/ imagette253848891753672139/ imagette253848801753672139/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/d46f76baea036c572831c29e543f245d_80116531.png imagette253848861753672138 25384887 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=25384887 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253848871753672139 25384888 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=25384888 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253848881753672139 25384889 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=25384889 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253848891753672139 25384880 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=25384880 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253848801753672139 25384882 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=25384882 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374088191: '1753671926_4019491_1374088105_14e758ba43aed4efef9f2444894aae77_rle_crop_3896012875_0.png', 1374088261: '1753672046_4023198_1374088176_2d2ad9426c2d2a2d151855e26ef0bbfe_rle_crop_3896013136_0.png', 1374088260: '1753672046_4023198_1374088177_c3b03f0e255f1fb5142a9b894770124d_rle_crop_3896013123_0.png', 1374088258: '1753672046_4023198_1374088188_cf3f104fa074c45a716aae9202398f4f_rle_crop_3896013111_0.png', 1374088257: '1753672046_4023198_1374088196_ea971cb1e897a7a74c3aeb58b0b715f9_rle_crop_3896013096_0.png', 1374088256: '1753672046_4023198_1374088200_e4a23245dec35d419f62fbe446200d54_rle_crop_3896013084_0.png', 1374088194: '1753671926_4019491_1374088101_d65e0ba57d754e8acf05af346b4ce5c4_rle_crop_3896012916_0.png', 1374088193: '1753671926_4019491_1374088103_236842f111db7dce95bec37e391750e6_rle_crop_3896012901_0.png', 1374088192: '1753671926_4019491_1374088104_dcc307536a578fb8e6835a0e9bab6b08_rle_crop_3896012892_0.png', 1374088132: '1753671806_4016671_1374088085_581b94393c05fdeca5cb73ec74024988_rle_crop_3896012623_0.png', 1374088190: '1753671926_4019491_1374088106_e157fb945c8422eb7a1ffff580a3c1f3_rle_crop_3896012865_0.png', 1374088189: '1753671926_4019491_1374088108_a614ffcaf91c3f3f9c8d9cf9ae650cd3_rle_crop_3896012850_0.png', 1374088138: '1753671806_4016671_1374088079_5ee5bc430bf974ecf24fec9751b04f05_rle_crop_3896012683_0.png', 1374088136: '1753671806_4016671_1374088080_7c80da8163e9e88a6630e83b8a83f7e8_rle_crop_3896012672_0.png', 1374088135: '1753671806_4016671_1374088081_1cc5e6a145067e996f75be1e49e77b7d_rle_crop_3896012660_0.png', 1374088134: '1753671806_4016671_1374088082_b7ac1f89616bc7219ba198d97ec32227_rle_crop_3896012649_0.png', 1374088133: '1753671806_4016671_1374088083_13a3aa6ddb3269a05f165523fadc89a2_rle_crop_3896012637_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/8094893ad9e43edfbf9e5e33b2509e5f_35389515.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/a6369b6508637fc47291c5f7223c47b3_45893273.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/545f543b9546e0e00f571072fa2cce77_89926958.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/e2c8bc9be988c9b0a86d4dd7ece82f4f_57527542.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/7fdf3205b7e3e31b2efe39beaafad016_96523759.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/7843e64e785874b4bd2420c04d7aba59_24750570.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/04934e3cbd34a54645603c5ea3a4edb3_6347694.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/de04acd939fe7a3c077bd755e30b6679_95809214.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/42cf0ea200f18381c499c3ee41325ae6_44422093.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/46c1bdd1415c9c5a58a948b46f663c67_74893188.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/14817c1e5c7a9e93b44a614c9d11e652_72472086.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/22debd66281156c4603e22865972e839_23059765.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/bd4c08ec5a814cf3b0f4523bc76e920f_41998484.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/7d76e0040b3e053f51815d1df32e6d53_66288964.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/7bc2ec1d1a4f79a783738d6cd2d4da45_71181320.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/62e79f41a88fc71c709c6a96da02d6f5_20631131.png change filename to text .imagette253848821753672139/ imagette253848821753672139/1753671806_4016671_1374088085_581b94393c05fdeca5cb73ec74024988_rle_crop_3896012623_0.png.png imagette253848821753672139/1753672046_4023198_1374088188_cf3f104fa074c45a716aae9202398f4f_rle_crop_3896013111_0.png.png imagette253848821753672139/1753672046_4023198_1374088176_2d2ad9426c2d2a2d151855e26ef0bbfe_rle_crop_3896013136_0.png.png imagette253848821753672139/1753671926_4019491_1374088108_a614ffcaf91c3f3f9c8d9cf9ae650cd3_rle_crop_3896012850_0.png.png imagette253848821753672139/1753671806_4016671_1374088082_b7ac1f89616bc7219ba198d97ec32227_rle_crop_3896012649_0.png.png imagette253848821753672139/1753671806_4016671_1374088080_7c80da8163e9e88a6630e83b8a83f7e8_rle_crop_3896012672_0.png.png imagette253848821753672139/1753672046_4023198_1374088177_c3b03f0e255f1fb5142a9b894770124d_rle_crop_3896013123_0.png.png imagette253848821753672139/1753672046_4023198_1374088196_ea971cb1e897a7a74c3aeb58b0b715f9_rle_crop_3896013096_0.png.png imagette253848821753672139/1753672046_4023198_1374088200_e4a23245dec35d419f62fbe446200d54_rle_crop_3896013084_0.png.png imagette253848821753672139/1753671926_4019491_1374088105_14e758ba43aed4efef9f2444894aae77_rle_crop_3896012875_0.png.png imagette253848821753672139/1753671926_4019491_1374088101_d65e0ba57d754e8acf05af346b4ce5c4_rle_crop_3896012916_0.png.png imagette253848821753672139/1753671926_4019491_1374088103_236842f111db7dce95bec37e391750e6_rle_crop_3896012901_0.png.png imagette253848821753672139/1753671926_4019491_1374088104_dcc307536a578fb8e6835a0e9bab6b08_rle_crop_3896012892_0.png.png imagette253848821753672139/1753671926_4019491_1374088106_e157fb945c8422eb7a1ffff580a3c1f3_rle_crop_3896012865_0.png.png imagette253848821753672139/1753671806_4016671_1374088079_5ee5bc430bf974ecf24fec9751b04f05_rle_crop_3896012683_0.png.png imagette253848821753672139/1753671806_4016671_1374088083_13a3aa6ddb3269a05f165523fadc89a2_rle_crop_3896012637_0.png.png imagette253848821753672139/1753671806_4016671_1374088081_1cc5e6a145067e996f75be1e49e77b7d_rle_crop_3896012660_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/529fcdbe04c6980d6662b16d6a881f00_58193690.png imagette253848821753672139 25384884 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=25384884 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374088184: '1753671926_4019491_1374088101_d65e0ba57d754e8acf05af346b4ce5c4_rle_crop_3896012918_0.png', 1374088250: '1753672046_4023198_1374088175_5c15ddead864f50e8c3e12f0531ee4f7_rle_crop_3896013150_0.png', 1374088249: '1753672046_4023198_1374088175_5c15ddead864f50e8c3e12f0531ee4f7_rle_crop_3896013155_0.png', 1374088248: '1753672046_4023198_1374088176_2d2ad9426c2d2a2d151855e26ef0bbfe_rle_crop_3896013140_0.png', 1374088247: '1753672046_4023198_1374088176_2d2ad9426c2d2a2d151855e26ef0bbfe_rle_crop_3896013143_0.png', 1374088246: '1753672046_4023198_1374088177_c3b03f0e255f1fb5142a9b894770124d_rle_crop_3896013125_0.png', 1374088245: '1753672046_4023198_1374088177_c3b03f0e255f1fb5142a9b894770124d_rle_crop_3896013130_0.png', 1374088244: '1753672046_4023198_1374088188_cf3f104fa074c45a716aae9202398f4f_rle_crop_3896013112_0.png', 1374088243: '1753672046_4023198_1374088188_cf3f104fa074c45a716aae9202398f4f_rle_crop_3896013117_0.png', 1374088242: '1753672046_4023198_1374088196_ea971cb1e897a7a74c3aeb58b0b715f9_rle_crop_3896013104_0.png', 1374088241: '1753672046_4023198_1374088200_e4a23245dec35d419f62fbe446200d54_rle_crop_3896013087_0.png', 1374088240: '1753672046_4023198_1374088200_e4a23245dec35d419f62fbe446200d54_rle_crop_3896013091_0.png', 1374088123: '1753671806_4016671_1374088085_581b94393c05fdeca5cb73ec74024988_rle_crop_3896012630_0.png', 1374088183: '1753671926_4019491_1374088101_d65e0ba57d754e8acf05af346b4ce5c4_rle_crop_3896012924_0.png', 1374088182: '1753671926_4019491_1374088103_236842f111db7dce95bec37e391750e6_rle_crop_3896012909_0.png', 1374088181: '1753671926_4019491_1374088104_dcc307536a578fb8e6835a0e9bab6b08_rle_crop_3896012896_0.png', 1374088180: '1753671926_4019491_1374088105_14e758ba43aed4efef9f2444894aae77_rle_crop_3896012883_0.png', 1374088179: '1753671926_4019491_1374088106_e157fb945c8422eb7a1ffff580a3c1f3_rle_crop_3896012870_0.png', 1374088178: '1753671926_4019491_1374088108_a614ffcaf91c3f3f9c8d9cf9ae650cd3_rle_crop_3896012858_0.png', 1374088128: '1753671806_4016671_1374088079_5ee5bc430bf974ecf24fec9751b04f05_rle_crop_3896012692_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/973891b495e06064fa2bb9a143be769e_74303421.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/20ac57a5ffc60f4fe58b0c120815fa9e_76856549.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/1dc59eb84fad3c403571ba0fa25fd714_38047464.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/8a08e8030d2228c203fceb762ddd8818_53817588.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/12daea2c1cbc4b7f163788edd61c7ece_40157165.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/938217fcdd7de7af70dc7afde5b0405c_78946304.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/787bc4d04a5c123d0325c21ffb236895_45489629.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/e2e75847b46c311a082e9625aa8fcb92_14742915.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/00505f967f349a192a948710a8d7eccb_35116298.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/01f0078ecc250caaba9151c7451bf9b2_13788248.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/6ab712e607d9b38c9a3f369d71293ee4_89331240.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/6723425c0e1081cfd318747c098e4dac_45823575.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/2fbaaae1859c9cbc2a6d22aed3d40041_43271607.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/b66f3fce6bb18cd43d57fb1fd86abe37_84489197.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/05e45b38197adbeb9f5512782759fdfc_83175155.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/f81facc10782d921857b5e485da2d6e1_19232187.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/e7c061923c412da84a699751a450b0fb_13256472.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/721e2f4b6436c577f8781caec920e27d_71939189.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/43a3f37db66e419ad69113b56734e9a8_55040559.png change filename to text .imagette253848841753672140/ imagette253848841753672140/1753672046_4023198_1374088177_c3b03f0e255f1fb5142a9b894770124d_rle_crop_3896013125_0.png.png imagette253848841753672140/1753672046_4023198_1374088176_2d2ad9426c2d2a2d151855e26ef0bbfe_rle_crop_3896013140_0.png.png imagette253848841753672140/1753671806_4016671_1374088079_5ee5bc430bf974ecf24fec9751b04f05_rle_crop_3896012692_0.png.png imagette253848841753672140/1753671926_4019491_1374088101_d65e0ba57d754e8acf05af346b4ce5c4_rle_crop_3896012924_0.png.png imagette253848841753672140/1753671806_4016671_1374088085_581b94393c05fdeca5cb73ec74024988_rle_crop_3896012630_0.png.png imagette253848841753672140/1753671926_4019491_1374088106_e157fb945c8422eb7a1ffff580a3c1f3_rle_crop_3896012870_0.png.png imagette253848841753672140/1753672046_4023198_1374088175_5c15ddead864f50e8c3e12f0531ee4f7_rle_crop_3896013155_0.png.png imagette253848841753672140/1753672046_4023198_1374088175_5c15ddead864f50e8c3e12f0531ee4f7_rle_crop_3896013150_0.png.png imagette253848841753672140/1753671926_4019491_1374088103_236842f111db7dce95bec37e391750e6_rle_crop_3896012909_0.png.png imagette253848841753672140/1753672046_4023198_1374088200_e4a23245dec35d419f62fbe446200d54_rle_crop_3896013091_0.png.png imagette253848841753672140/1753672046_4023198_1374088177_c3b03f0e255f1fb5142a9b894770124d_rle_crop_3896013130_0.png.png imagette253848841753672140/1753671926_4019491_1374088105_14e758ba43aed4efef9f2444894aae77_rle_crop_3896012883_0.png.png imagette253848841753672140/1753672046_4023198_1374088188_cf3f104fa074c45a716aae9202398f4f_rle_crop_3896013112_0.png.png imagette253848841753672140/1753672046_4023198_1374088200_e4a23245dec35d419f62fbe446200d54_rle_crop_3896013087_0.png.png imagette253848841753672140/1753671926_4019491_1374088108_a614ffcaf91c3f3f9c8d9cf9ae650cd3_rle_crop_3896012858_0.png.png imagette253848841753672140/1753672046_4023198_1374088196_ea971cb1e897a7a74c3aeb58b0b715f9_rle_crop_3896013104_0.png.png imagette253848841753672140/1753671926_4019491_1374088101_d65e0ba57d754e8acf05af346b4ce5c4_rle_crop_3896012918_0.png.png imagette253848841753672140/1753671926_4019491_1374088104_dcc307536a578fb8e6835a0e9bab6b08_rle_crop_3896012896_0.png.png imagette253848841753672140/1753672046_4023198_1374088188_cf3f104fa074c45a716aae9202398f4f_rle_crop_3896013117_0.png.png imagette253848841753672140/1753672046_4023198_1374088176_2d2ad9426c2d2a2d151855e26ef0bbfe_rle_crop_3896013143_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/e711de69793d92fa8559dff65b5443f8_32325445.png imagette253848841753672140 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25384876 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25384891,25384892,25384893,25384894,25384895,25384896,25384897,25384898,25384899,25384900,25384901,25384902?tags=papier,Carton_brun,metal,Carton_gris,cartonnette,Teint_Dans_La_Masse,plastique,autre_refus,kraft,flou,mal_croppe,environnement your option no_mail is active, we will not send the real mail to your client args[1374088263] : ('0.1178215023419979',) no score found for photo 1374088263 We are sending mail with results at report@fotonower.com args[1374088259] : ('0.1178215023419979',) no score found for photo 1374088259 We are sending mail with results at report@fotonower.com args[1374088251] : ('0.1178215023419979',) no score found for photo 1374088251 We are sending mail with results at report@fotonower.com args[1374088239] : ('0.1178215023419979',) no score found for photo 1374088239 We are sending mail with results at report@fotonower.com args[1374088238] : ('0.1178215023419979',) no score found for photo 1374088238 We are sending mail with results at report@fotonower.com args[1374088237] : ('0.1178215023419979',) no score found for photo 1374088237 We are sending mail with results at report@fotonower.com args[1374088213] : ('0.1178215023419979',) no score found for photo 1374088213 We are sending mail with results at report@fotonower.com args[1374088200] : ('0.1178215023419979',) no score found for photo 1374088200 We are sending mail with results at report@fotonower.com args[1374088196] : ('0.1178215023419979',) no score found for photo 1374088196 We are sending mail with results at report@fotonower.com args[1374088188] : ('0.1178215023419979',) no score found for photo 1374088188 We are sending mail with results at report@fotonower.com args[1374088177] : ('0.1178215023419979',) no score found for photo 1374088177 We are sending mail with results at report@fotonower.com args[1374088176] : ('0.1178215023419979',) no score found for photo 1374088176 We are sending mail with results at report@fotonower.com args[1374088175] : ('0.1178215023419979',) no score found for photo 1374088175 We are sending mail with results at report@fotonower.com refus_total : 0.1178215023419979 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=25384876 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_P25384876_28-07-2025_05_08_58.pdf results_Auto_P25384876_28-07-2025_05_08_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25384876_28-07-2025_05_08_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25384876','results_Auto_P25384876_28-07-2025_05_08_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25384876_28-07-2025_05_08_58.pdf','pdf','','0.31','0.1178215023419979') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25384876]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1374088263, 1374088259, 1374088251, 1374088239, 1374088238, 1374088237, 1374088213, 1374088200, 1374088196, 1374088188, 1374088177, 1374088176, 1374088175] map_info['map_portfolio_photo'] : {25384876: [1374088263, 1374088259, 1374088251, 1374088239, 1374088238, 1374088237, 1374088213, 1374088200, 1374088196, 1374088188, 1374088177, 1374088176, 1374088175, 1374088155, 1374088143, 1374088141, 1374088140, 1374088137, 1374088129, 1374088122, 1374088108, 1374088106, 1374088105, 1374088104, 1374088103, 1374088101, 1374088085, 1374088083, 1374088082, 1374088081, 1374088080, 1374088079, 1374087960, 1374087938, 1374087915, 1374087890, 1374087887]} final : False mtd_id 4302 list_pids : [1374088263, 1374088259, 1374088251, 1374088239, 1374088238, 1374088237, 1374088213, 1374088200, 1374088196, 1374088188, 1374088177, 1374088176, 1374088175] 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, '3365715') ('4302', '25384876', '1374088263', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088259', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088251', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088239', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088238', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088237', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088213', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088200', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088196', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088188', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088177', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088176', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088175', None, None, None, None, None, '3365715') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '25384876', '1374088263', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088259', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088251', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088239', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088238', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088237', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088213', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088200', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088196', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088188', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088177', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088176', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088175', None, None, None, None, None, '3365715')] time used for this insertion : 0.25359678268432617 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.870548725128174 time spend to save output : 0.2538580894470215 total time spend for step 4 : 6.124406814575195 step5:split_time_score Mon Jul 28 05:09:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25384876'] 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 : [('25384876',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25384876) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1374088263: {'path': 'temp/1753672137_2725278_1374088263_fbf6e55c977d04bdfd3e4cd0be3cfb52.jpg', 'extension': 'jpg'}, 1374088213: {'path': 'temp/1753672137_2725278_1374088213_1a60912ab2c40834eeaba2ff1b900182.jpg', 'extension': 'jpg'}, 1374088237: {'path': 'temp/1753672137_2725278_1374088237_118305e4751b6fa9a690c3bdb1d9c965.jpg', 'extension': 'jpg'}, 1374088238: {'path': 'temp/1753672137_2725278_1374088238_7cee8fa3b64cba29920b07794a640ba6.jpg', 'extension': 'jpg'}, 1374088188: {'path': 'temp/1753672137_2725278_1374088188_cf3f104fa074c45a716aae9202398f4f.jpg', 'extension': 'jpg'}, 1374088196: {'path': 'temp/1753672137_2725278_1374088196_ea971cb1e897a7a74c3aeb58b0b715f9.jpg', 'extension': 'jpg'}, 1374088200: {'path': 'temp/1753672137_2725278_1374088200_e4a23245dec35d419f62fbe446200d54.jpg', 'extension': 'jpg'}, 1374088239: {'path': 'temp/1753672137_2725278_1374088239_257650514b43e1cd540d8f65d3f2084a.jpg', 'extension': 'jpg'}, 1374088251: {'path': 'temp/1753672137_2725278_1374088251_2ebcff33f2479c74c2e1b628883820ed.jpg', 'extension': 'jpg'}, 1374088259: {'path': 'temp/1753672137_2725278_1374088259_0d30ec68789b750e6f6b5a419a66e7c3.jpg', 'extension': 'jpg'}, 1374088175: {'path': 'temp/1753672137_2725278_1374088175_5c15ddead864f50e8c3e12f0531ee4f7.jpg', 'extension': 'jpg'}, 1374088176: {'path': 'temp/1753672137_2725278_1374088176_2d2ad9426c2d2a2d151855e26ef0bbfe.jpg', 'extension': 'jpg'}, 1374088177: {'path': 'temp/1753672137_2725278_1374088177_c3b03f0e255f1fb5142a9b894770124d.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 = 25384876; (('arc_en_ciel_jrm_live',),) 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 = 25384876 group by h (('05', 37),) 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=25384876 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 (25384876) 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 (25384876) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28072025 25384876 Nombre de photos uploadées : 37 / 23040 (0%) 28072025 25384876 Nombre de photos taguées (types de déchets): 0 / 37 (0%) 28072025 25384876 Nombre de photos taguées (volume) : 0 / 37 (0%) [{'photo_id': 1374087960, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/4af973536dd21bc34d7d0ecfca844550.jpg', 'username': None, 'uploaded_at': 1753671664, 'text': 'image_28072025_05_00_14_10227.jpg'}, {'photo_id': 1374087938, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/45ad1dd418007c5b0e56e42b1b50cf13.jpg', 'username': None, 'uploaded_at': 1753671664, 'text': 'image_28072025_05_00_24_10145.jpg'}, {'photo_id': 1374087915, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/f9322232c9c5b2c1796c5e9ecbed02ab.jpg', 'username': None, 'uploaded_at': 1753671664, 'text': 'image_28072025_05_00_35_10142.jpg'}, {'photo_id': 1374087890, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/74ef2d684987a42adaeac3881e3ddd2b.jpg', 'username': None, 'uploaded_at': 1753671664, 'text': 'image_28072025_05_00_45_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017156600952148438 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 25384876, '2025-07-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2013637,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20933079719543457 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= 2013637 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2013637, 'dashboard_run_id': 2021101, 'mtr_portfolio_id': 25384876, 'dashboard_result_id': 13195509, '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_P25384876_28-07-2025_05_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25384879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25384880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25384881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25384882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25384883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25384884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25384885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25384886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25384887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25384888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25384889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25384890, '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 = 25384876 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': 3365715, 'mtr_portfolio_id': 25384876, 'created_at': datetime.datetime(2025, 7, 28, 5, 8, 57), 'result': '0.1178215023419979', 'result_long': None, 'result_double': None}] Qualite : 0.1178215023419979 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25384876 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25384876_28-07-2025_05_08_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25384876 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_P25384876_28-07-2025_05_08_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25384879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25384880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25384881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25384882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25384883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25384884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25384885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25384886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25384887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25384888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25384889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25384890, 'pht': 3726}}" where mtr_portfolio_id = 25384876 and dashboard_run_id = 2021101 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`=25384876 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13195509, 0.1178215023419979, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25384876_28-07-2025_05_08_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25384879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25384880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25384881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25384882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25384883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25384884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25384885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25384886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25384887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25384888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25384889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25384890, '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 (25384876) result : ((1374087887,), (1374087890,), (1374087915,), (1374087938,), (1374087960,), (1374088079,), (1374088080,), (1374088081,), (1374088082,), (1374088083,), (1374088085,), (1374088101,), (1374088103,), (1374088104,), (1374088105,), (1374088106,), (1374088108,), (1374088122,), (1374088129,), (1374088137,), (1374088140,), (1374088141,), (1374088143,), (1374088155,), (1374088175,), (1374088176,), (1374088177,), (1374088188,), (1374088196,), (1374088200,), (1374088213,), (1374088237,), (1374088238,), (1374088239,), (1374088251,), (1374088259,), (1374088263,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28072025': {'nb_upload': 37, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25384876]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1374088263, 1374088259, 1374088251, 1374088239, 1374088238, 1374088237, 1374088213, 1374088200, 1374088196, 1374088188, 1374088177, 1374088176, 1374088175] map_info['map_portfolio_photo'] : {25384876: [1374088263, 1374088259, 1374088251, 1374088239, 1374088238, 1374088237, 1374088213, 1374088200, 1374088196, 1374088188, 1374088177, 1374088176, 1374088175, 1374088155, 1374088143, 1374088141, 1374088140, 1374088137, 1374088129, 1374088122, 1374088108, 1374088106, 1374088105, 1374088104, 1374088103, 1374088101, 1374088085, 1374088083, 1374088082, 1374088081, 1374088080, 1374088079, 1374087960, 1374087938, 1374087915, 1374087890, 1374087887]} final : True mtd_id 4302 list_pids : [1374088263, 1374088259, 1374088251, 1374088239, 1374088238, 1374088237, 1374088213, 1374088200, 1374088196, 1374088188, 1374088177, 1374088176, 1374088175] Looping around the photos to save general results len do output : 1 /25384876Didn'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, '3365715') ('4302', '25384876', '1374088263', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088259', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088251', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088239', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088238', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088237', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088213', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088200', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088196', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088188', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088177', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088176', None, None, None, None, None, '3365715') ('4302', None, None, None, None, None, None, None, '3365715') ('4302', '25384876', '1374088175', None, None, None, None, None, '3365715') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '25384876', 'None', None, None, None, None, '3365715'), ('4302', '25384876', '1374088263', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088259', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088251', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088239', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088238', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088237', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088213', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088200', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088196', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088188', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088177', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088176', None, None, None, None, None, '3365715'), ('4302', '25384876', '1374088175', None, None, None, None, None, '3365715')] time used for this insertion : 0.30348658561706543 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3722038269042969 time spend to save output : 0.3037853240966797 total time spend for step 5 : 0.6759891510009766 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 (3365715) 2.02user 2.57system 0:10.05elapsed 45%CPU (0avgtext+0avgdata 160044maxresident)k 2616inputs+15792outputs (38major+64308minor)pagefaults 0swaps