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 : 206774 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 (2560240) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2560240) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20307225 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2560240'] with mtr_portfolio_ids : ['20307225'] and first list_photo_ids : [] new path : /proc/206774/ Name: python3 Umask: 0002 State: R (running) Tgid: 206774 Ngid: 0 Pid: 206774 PPid: 206773 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 206774 NSpid: 206774 NSpgid: 204855 NSsid: 204855 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100176 kB VmRSS: 100176 kB RssAnon: 59756 kB RssFile: 40420 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 51 nonvoluntary_ctxt_switches: 128 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '206774', 'Ngid': '0', 'Pid': '206774', 'PPid': '206773', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '206774', 'NSpid': '206774', 'NSpgid': '204855', 'NSsid': '204855', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100176 kB', 'VmRSS': '100176 kB', 'RssAnon': '59756 kB', 'RssFile': '40420 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '51', 'nonvoluntary_ctxt_switches': '128'} ('datou_batch_current', '206774', '1106844', '0', '1106844', '865596', '100176', b'', 'marlene', '2560240') 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 (20307225) 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 (2560240 ) ) 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 (20307225) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1335284911, 'portfolio_id': 20307225}, {'photo_id': 1335282011, 'portfolio_id': 20307225}, {'photo_id': 1335282008, 'portfolio_id': 20307225}, {'photo_id': 1335282005, 'portfolio_id': 20307225}, {'photo_id': 1335281908, 'portfolio_id': 20307225}, {'photo_id': 1335281906, 'portfolio_id': 20307225}, {'photo_id': 1335281903, 'portfolio_id': 20307225}, {'photo_id': 1335281900, 'portfolio_id': 20307225}, {'photo_id': 1335281898, 'portfolio_id': 20307225}, {'photo_id': 1335281854, 'portfolio_id': 20307225}, {'photo_id': 1335281850, 'portfolio_id': 20307225}, {'photo_id': 1335281849, 'portfolio_id': 20307225}, {'photo_id': 1335281737, 'portfolio_id': 20307225}, {'photo_id': 1335281734, 'portfolio_id': 20307225}, {'photo_id': 1335281701, 'portfolio_id': 20307225}, {'photo_id': 1335281419, 'portfolio_id': 20307225}, {'photo_id': 1335281334, 'portfolio_id': 20307225}, {'photo_id': 1335281323, 'portfolio_id': 20307225}, {'photo_id': 1335281319, 'portfolio_id': 20307225}, {'photo_id': 1335281315, 'portfolio_id': 20307225}, {'photo_id': 1335281276, 'portfolio_id': 20307225}, {'photo_id': 1335281273, 'portfolio_id': 20307225}, {'photo_id': 1335281269, 'portfolio_id': 20307225}, {'photo_id': 1335281266, 'portfolio_id': 20307225}, {'photo_id': 1335281111, 'portfolio_id': 20307225}, {'photo_id': 1335281108, 'portfolio_id': 20307225}, {'photo_id': 1335281106, 'portfolio_id': 20307225}, {'photo_id': 1335281104, 'portfolio_id': 20307225}, {'photo_id': 1335280736, 'portfolio_id': 20307225}, {'photo_id': 1335280665, 'portfolio_id': 20307225}, {'photo_id': 1335280426, 'portfolio_id': 20307225}, {'photo_id': 1335280392, 'portfolio_id': 20307225}, {'photo_id': 1335280390, 'portfolio_id': 20307225}, {'photo_id': 1335280387, 'portfolio_id': 20307225}, {'photo_id': 1335280385, 'portfolio_id': 20307225}, {'photo_id': 1335280332, 'portfolio_id': 20307225}, {'photo_id': 1335280292, 'portfolio_id': 20307225}, {'photo_id': 1335280284, 'portfolio_id': 20307225}, {'photo_id': 1335280264, 'portfolio_id': 20307225}, {'photo_id': 1335280041, 'portfolio_id': 20307225}, {'photo_id': 1335280039, 'portfolio_id': 20307225}, {'photo_id': 1335280030, 'portfolio_id': 20307225}, {'photo_id': 1335280021, 'portfolio_id': 20307225}, {'photo_id': 1335280017, 'portfolio_id': 20307225}] map_portfolio_id_photo_id: {20307225: [1335284911, 1335282011, 1335282008, 1335282005, 1335281908, 1335281906, 1335281903, 1335281900, 1335281898, 1335281854, 1335281850, 1335281849, 1335281737, 1335281734, 1335281701, 1335281419, 1335281334, 1335281323, 1335281319, 1335281315, 1335281276, 1335281273, 1335281269, 1335281266, 1335281111, 1335281108, 1335281106, 1335281104, 1335280736, 1335280665, 1335280426, 1335280392, 1335280390, 1335280387, 1335280385, 1335280332, 1335280292, 1335280284, 1335280264, 1335280041, 1335280039, 1335280030, 1335280021, 1335280017]} ##### 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.014948606491088867 #### 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 Thu Feb 6 21:04:59 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 (20307225) 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 : 20307225 get user id for portfolio 20307225 get sub ptf for main ptf 20307225, type 3726 and hashtags ['metal', 'papier', 'Carton_gris', 'Teint_Dans_La_Masse', 'flou', 'Carton_brun', 'autre_refus', 'plastique', 'kraft', 'environnement', 'cartonnette', '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`=20307225 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','Carton_gris','Teint_Dans_La_Masse','flou','Carton_brun','autre_refus','plastique','kraft','environnement','cartonnette','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`=20307225 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','Carton_gris','Teint_Dans_La_Masse','flou','Carton_brun','autre_refus','plastique','kraft','environnement','cartonnette','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20307225, 'sub_port_id': 20307330, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996436, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 20307225, 'sub_port_id': 20307331, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996437, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 28)}, 'kraft': {'main_port_id': 20307225, 'sub_port_id': 20307332, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996438, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 28)}, 'mal_croppe': {'main_port_id': 20307225, 'sub_port_id': 20307333, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996439, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 28)}, 'flou': {'main_port_id': 20307225, 'sub_port_id': 20307334, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996440, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 28)}, 'metal': {'main_port_id': 20307225, 'sub_port_id': 20307335, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996441, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 28)}, 'cartonnette': {'main_port_id': 20307225, 'sub_port_id': 20307336, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996442, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 28)}, 'plastique': {'main_port_id': 20307225, 'sub_port_id': 20307337, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996443, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 28)}, 'environnement': {'main_port_id': 20307225, 'sub_port_id': 20307338, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996444, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 28)}, 'autre_refus': {'main_port_id': 20307225, 'sub_port_id': 20307339, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996445, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 28)}, 'papier': {'main_port_id': 20307225, 'sub_port_id': 20307340, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996446, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 28)}, 'Carton_brun': {'main_port_id': 20307225, 'sub_port_id': 20307341, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996447, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20307330 , 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=20307225 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 (20307330) result : ((1335281142,), (1335281280,), (1335281439,), (1335282079,), (1335282080,), (1335282158,), (1335282159,), (1335282454,), (1335282455,), (1335282877,), (1335282878,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20307225) result : ((1335280017,), (1335280021,), (1335280030,), (1335280039,), (1335280041,), (1335280264,), (1335280284,), (1335280292,), (1335280332,), (1335280385,), (1335280387,), (1335280390,), (1335280392,), (1335280426,), (1335280665,), (1335280736,), (1335281104,), (1335281106,), (1335281108,), (1335281111,), (1335281266,), (1335281269,), (1335281273,), (1335281276,), (1335281315,), (1335281319,), (1335281323,), (1335281334,), (1335281419,), (1335281701,), (1335281734,), (1335281737,), (1335281849,), (1335281850,), (1335281854,), (1335281898,), (1335281900,), (1335281903,), (1335281906,), (1335281908,), (1335282005,), (1335282008,), (1335282011,), (1335284911,)) 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 (1335281900) 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 20307331 , 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=20307225 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 (20307331) result : ((1335282070,), (1335282071,), (1335282072,), (1335282073,), (1335282074,), (1335282397,), (1335282398,), (1335282400,), (1335282401,), (1335282402,), (1335282640,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20307225) result : ((1335280017,), (1335280021,), (1335280030,), (1335280039,), (1335280041,), (1335280264,), (1335280284,), (1335280292,), (1335280332,), (1335280385,), (1335280387,), (1335280390,), (1335280392,), (1335280426,), (1335280665,), (1335280736,), (1335281104,), (1335281106,), (1335281108,), (1335281111,), (1335281266,), (1335281269,), (1335281273,), (1335281276,), (1335281315,), (1335281319,), (1335281323,), (1335281334,), (1335281419,), (1335281701,), (1335281734,), (1335281737,), (1335281849,), (1335281850,), (1335281854,), (1335281898,), (1335281900,), (1335281903,), (1335281906,), (1335281908,), (1335282005,), (1335282008,), (1335282011,), (1335284911,)) 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 (1335281900) 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 20307332 , 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=20307225 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 (20307332) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20307225) result : ((1335280017,), (1335280021,), (1335280030,), (1335280039,), (1335280041,), (1335280264,), (1335280284,), (1335280292,), (1335280332,), (1335280385,), (1335280387,), (1335280390,), (1335280392,), (1335280426,), (1335280665,), (1335280736,), (1335281104,), (1335281106,), (1335281108,), (1335281111,), (1335281266,), (1335281269,), (1335281273,), (1335281276,), (1335281315,), (1335281319,), (1335281323,), (1335281334,), (1335281419,), (1335281701,), (1335281734,), (1335281737,), (1335281849,), (1335281850,), (1335281854,), (1335281898,), (1335281900,), (1335281903,), (1335281906,), (1335281908,), (1335282005,), (1335282008,), (1335282011,), (1335284911,)) 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 (1335281900) 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 20307333 , 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=20307225 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 (20307333) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20307225) result : ((1335280017,), (1335280021,), (1335280030,), (1335280039,), (1335280041,), (1335280264,), (1335280284,), (1335280292,), (1335280332,), (1335280385,), (1335280387,), (1335280390,), (1335280392,), (1335280426,), (1335280665,), (1335280736,), (1335281104,), (1335281106,), (1335281108,), (1335281111,), (1335281266,), (1335281269,), (1335281273,), (1335281276,), (1335281315,), (1335281319,), (1335281323,), (1335281334,), (1335281419,), (1335281701,), (1335281734,), (1335281737,), (1335281849,), (1335281850,), (1335281854,), (1335281898,), (1335281900,), (1335281903,), (1335281906,), (1335281908,), (1335282005,), (1335282008,), (1335282011,), (1335284911,)) 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 (1335281900) 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 20307334 , 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=20307225 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 (20307334) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20307225) result : ((1335280017,), (1335280021,), (1335280030,), (1335280039,), (1335280041,), (1335280264,), (1335280284,), (1335280292,), (1335280332,), (1335280385,), (1335280387,), (1335280390,), (1335280392,), (1335280426,), (1335280665,), (1335280736,), (1335281104,), (1335281106,), (1335281108,), (1335281111,), (1335281266,), (1335281269,), (1335281273,), (1335281276,), (1335281315,), (1335281319,), (1335281323,), (1335281334,), (1335281419,), (1335281701,), (1335281734,), (1335281737,), (1335281849,), (1335281850,), (1335281854,), (1335281898,), (1335281900,), (1335281903,), (1335281906,), (1335281908,), (1335282005,), (1335282008,), (1335282011,), (1335284911,)) 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 (1335281900) 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 20307335 , 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=20307225 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 (20307335) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20307225) result : ((1335280017,), (1335280021,), (1335280030,), (1335280039,), (1335280041,), (1335280264,), (1335280284,), (1335280292,), (1335280332,), (1335280385,), (1335280387,), (1335280390,), (1335280392,), (1335280426,), (1335280665,), (1335280736,), (1335281104,), (1335281106,), (1335281108,), (1335281111,), (1335281266,), (1335281269,), (1335281273,), (1335281276,), (1335281315,), (1335281319,), (1335281323,), (1335281334,), (1335281419,), (1335281701,), (1335281734,), (1335281737,), (1335281849,), (1335281850,), (1335281854,), (1335281898,), (1335281900,), (1335281903,), (1335281906,), (1335281908,), (1335282005,), (1335282008,), (1335282011,), (1335284911,)) 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 (1335281900) 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 20307336 , 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=20307225 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 (20307336) result : ((1335281281,), (1335281859,), (1335281861,), (1335281911,), (1335281999,), (1335282020,), (1335282021,), (1335282082,), (1335282083,), (1335282084,), (1335282085,), (1335282164,), (1335282165,), (1335282490,), (1335282491,), (1335282493,), (1335282494,), (1335282642,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20307225) result : ((1335280017,), (1335280021,), (1335280030,), (1335280039,), (1335280041,), (1335280264,), (1335280284,), (1335280292,), (1335280332,), (1335280385,), (1335280387,), (1335280390,), (1335280392,), (1335280426,), (1335280665,), (1335280736,), (1335281104,), (1335281106,), (1335281108,), (1335281111,), (1335281266,), (1335281269,), (1335281273,), (1335281276,), (1335281315,), (1335281319,), (1335281323,), (1335281334,), (1335281419,), (1335281701,), (1335281734,), (1335281737,), (1335281849,), (1335281850,), (1335281854,), (1335281898,), (1335281900,), (1335281903,), (1335281906,), (1335281908,), (1335282005,), (1335282008,), (1335282011,), (1335284911,)) 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 (1335281900) 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 20307337 , 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=20307225 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 (20307337) result : ((1335281248,), (1335281249,), (1335281508,), (1335281509,), (1335281578,), (1335281579,), (1335281580,), (1335281581,), (1335281582,), (1335281583,), (1335281584,), (1335281919,), (1335281920,), (1335281921,), (1335281922,), (1335281923,), (1335281924,), (1335281925,), (1335281926,), (1335282088,), (1335282529,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20307225) result : ((1335280017,), (1335280021,), (1335280030,), (1335280039,), (1335280041,), (1335280264,), (1335280284,), (1335280292,), (1335280332,), (1335280385,), (1335280387,), (1335280390,), (1335280392,), (1335280426,), (1335280665,), (1335280736,), (1335281104,), (1335281106,), (1335281108,), (1335281111,), (1335281266,), (1335281269,), (1335281273,), (1335281276,), (1335281315,), (1335281319,), (1335281323,), (1335281334,), (1335281419,), (1335281701,), (1335281734,), (1335281737,), (1335281849,), (1335281850,), (1335281854,), (1335281898,), (1335281900,), (1335281903,), (1335281906,), (1335281908,), (1335282005,), (1335282008,), (1335282011,), (1335284911,)) 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 (1335281900) 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 20307338 , 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=20307225 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 (20307338) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20307225) result : ((1335280017,), (1335280021,), (1335280030,), (1335280039,), (1335280041,), (1335280264,), (1335280284,), (1335280292,), (1335280332,), (1335280385,), (1335280387,), (1335280390,), (1335280392,), (1335280426,), (1335280665,), (1335280736,), (1335281104,), (1335281106,), (1335281108,), (1335281111,), (1335281266,), (1335281269,), (1335281273,), (1335281276,), (1335281315,), (1335281319,), (1335281323,), (1335281334,), (1335281419,), (1335281701,), (1335281734,), (1335281737,), (1335281849,), (1335281850,), (1335281854,), (1335281898,), (1335281900,), (1335281903,), (1335281906,), (1335281908,), (1335282005,), (1335282008,), (1335282011,), (1335284911,)) 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 (1335281900) 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 20307339 , 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=20307225 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 (20307339) result : ((1335281278,), (1335281570,), (1335281857,), (1335281858,), (1335281910,), (1335282017,), (1335282018,), (1335282077,), (1335282078,), (1335282428,), (1335282430,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20307225) result : ((1335280017,), (1335280021,), (1335280030,), (1335280039,), (1335280041,), (1335280264,), (1335280284,), (1335280292,), (1335280332,), (1335280385,), (1335280387,), (1335280390,), (1335280392,), (1335280426,), (1335280665,), (1335280736,), (1335281104,), (1335281106,), (1335281108,), (1335281111,), (1335281266,), (1335281269,), (1335281273,), (1335281276,), (1335281315,), (1335281319,), (1335281323,), (1335281334,), (1335281419,), (1335281701,), (1335281734,), (1335281737,), (1335281849,), (1335281850,), (1335281854,), (1335281898,), (1335281900,), (1335281903,), (1335281906,), (1335281908,), (1335282005,), (1335282008,), (1335282011,), (1335284911,)) 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 (1335281900) 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 20307340 , 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=20307225 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 (20307340) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20307225) result : ((1335280017,), (1335280021,), (1335280030,), (1335280039,), (1335280041,), (1335280264,), (1335280284,), (1335280292,), (1335280332,), (1335280385,), (1335280387,), (1335280390,), (1335280392,), (1335280426,), (1335280665,), (1335280736,), (1335281104,), (1335281106,), (1335281108,), (1335281111,), (1335281266,), (1335281269,), (1335281273,), (1335281276,), (1335281315,), (1335281319,), (1335281323,), (1335281334,), (1335281419,), (1335281701,), (1335281734,), (1335281737,), (1335281849,), (1335281850,), (1335281854,), (1335281898,), (1335281900,), (1335281903,), (1335281906,), (1335281908,), (1335282005,), (1335282008,), (1335282011,), (1335284911,)) 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 (1335281900) 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 20307341 , 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=20307225 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 (20307341) result : ((1335281188,), (1335281262,), (1335281473,), (1335281475,), (1335281572,), (1335281573,), (1335281853,), (1335281862,), (1335281912,), (1335281913,), (1335281914,), (1335282022,), (1335282087,), (1335282160,), (1335282509,), (1335282879,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20307225) result : ((1335280017,), (1335280021,), (1335280030,), (1335280039,), (1335280041,), (1335280264,), (1335280284,), (1335280292,), (1335280332,), (1335280385,), (1335280387,), (1335280390,), (1335280392,), (1335280426,), (1335280665,), (1335280736,), (1335281104,), (1335281106,), (1335281108,), (1335281111,), (1335281266,), (1335281269,), (1335281273,), (1335281276,), (1335281315,), (1335281319,), (1335281323,), (1335281334,), (1335281419,), (1335281701,), (1335281734,), (1335281737,), (1335281849,), (1335281850,), (1335281854,), (1335281898,), (1335281900,), (1335281903,), (1335281906,), (1335281908,), (1335282005,), (1335282008,), (1335282011,), (1335284911,)) 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 (1335281900) 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`=20307225 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','Carton_gris','Teint_Dans_La_Masse','flou','Carton_brun','autre_refus','plastique','kraft','environnement','cartonnette','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`=20307225 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','Carton_gris','Teint_Dans_La_Masse','flou','Carton_brun','autre_refus','plastique','kraft','environnement','cartonnette','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20307225, 'sub_port_id': 20307342, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996448, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 20307225, 'sub_port_id': 20307343, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996449, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 30)}, 'kraft': {'main_port_id': 20307225, 'sub_port_id': 20307344, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996450, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 30)}, 'mal_croppe': {'main_port_id': 20307225, 'sub_port_id': 20307345, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996451, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 30)}, 'flou': {'main_port_id': 20307225, 'sub_port_id': 20307346, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996452, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 30)}, 'metal': {'main_port_id': 20307225, 'sub_port_id': 20307347, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996453, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 30)}, 'cartonnette': {'main_port_id': 20307225, 'sub_port_id': 20307348, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996454, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 30)}, 'plastique': {'main_port_id': 20307225, 'sub_port_id': 20307349, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996455, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 30)}, 'environnement': {'main_port_id': 20307225, 'sub_port_id': 20307350, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996456, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 30)}, 'autre_refus': {'main_port_id': 20307225, 'sub_port_id': 20307351, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996457, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 30)}, 'papier': {'main_port_id': 20307225, 'sub_port_id': 20307352, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996458, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 30)}, 'Carton_brun': {'main_port_id': 20307225, 'sub_port_id': 20307353, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12996459, 'last_updated_at': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 20, 42, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 20, 33, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20307342,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20307330 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20307343,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20307331 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20307344,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20307332 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20307345,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20307333 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20307346,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20307334 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20307347,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20307335 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20307348,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20307336 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20307349,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20307337 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20307350,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20307338 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20307351,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20307339 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20307352,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20307340 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20307353,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20307341 lien utilise dans velours : https://www.fotonower.com/velours/20307342,20307343,20307344,20307345,20307346,20307347,20307348,20307349,20307350,20307351,20307352,20307353?tags=Carton_gris,Teint_Dans_La_Masse,kraft,mal_croppe,flou,metal,cartonnette,plastique,environnement,autre_refus,papier,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20307225]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1335284911] map_info['map_portfolio_photo'] : {20307225: [1335284911, 1335282011, 1335282008, 1335282005, 1335281908, 1335281906, 1335281903, 1335281900, 1335281898, 1335281854, 1335281850, 1335281849, 1335281737, 1335281734, 1335281701, 1335281419, 1335281334, 1335281323, 1335281319, 1335281315, 1335281276, 1335281273, 1335281269, 1335281266, 1335281111, 1335281108, 1335281106, 1335281104, 1335280736, 1335280665, 1335280426, 1335280392, 1335280390, 1335280387, 1335280385, 1335280332, 1335280292, 1335280284, 1335280264, 1335280041, 1335280039, 1335280030, 1335280021, 1335280017]} final : False mtd_id 4302 list_pids : [1335284911] Looping around the photos to save general results len do output : 1 /20307225. 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, '2560240') ('4302', '20307225', '1335284911', None, None, None, None, None, '2560240') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '20307225', "{'Carton_gris': 20307330, 'Teint_Dans_La_Masse': 20307331, 'kraft': 20307332, 'mal_croppe': 20307333, 'flou': 20307334, 'metal': 20307335, 'cartonnette': 20307336, 'plastique': 20307337, 'environnement': 20307338, 'autre_refus': 20307339, 'papier': 20307340, 'Carton_brun': 20307341}", None, None, None, None, '2560240'), ('4302', '20307225', '1335284911', None, None, None, None, None, '2560240')] time used for this insertion : 0.01273345947265625 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.46384382247924805 time spend to save output : 0.013057947158813477 total time spend for step 1 : 0.4769017696380615 step2:final Thu Feb 6 21:04:59 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 (20307225) 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 20307225 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1335280041,1335280039,1335280030,1335280021,1335280017,1335280332,1335280292,1335280284,1335280264,1335280392,1335280390,1335280387,1335280385,1335280736,1335280665,1335280426,1335281111,1335281108,1335281106,1335281104,1335281276,1335281273,1335281269,1335281266,1335281419,1335281334,1335281323,1335281319,1335281315,1335281737,1335281734,1335281701,1335281854,1335281850,1335281849,1335281908,1335281906,1335281903,1335281900,1335281898,1335282011,1335282008,1335282005,1335284911); 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([20307225]) Inside saveOutput : final : False verbose : True original output for save of step final : {1335284911: ('0.02993950492534474',)} new output for save of step final : {1335284911: ('0.02993950492534474',)} [1335284911] map_info['map_portfolio_photo'] : {20307225: [1335284911, 1335282011, 1335282008, 1335282005, 1335281908, 1335281906, 1335281903, 1335281900, 1335281898, 1335281854, 1335281850, 1335281849, 1335281737, 1335281734, 1335281701, 1335281419, 1335281334, 1335281323, 1335281319, 1335281315, 1335281276, 1335281273, 1335281269, 1335281266, 1335281111, 1335281108, 1335281106, 1335281104, 1335280736, 1335280665, 1335280426, 1335280392, 1335280390, 1335280387, 1335280385, 1335280332, 1335280292, 1335280284, 1335280264, 1335280041, 1335280039, 1335280030, 1335280021, 1335280017]} final : False mtd_id 4302 list_pids : [1335284911] Looping around the photos to save general results len do output : 1 /1335284911.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, '2560240') ('4302', '20307225', '1335284911', None, None, None, None, None, '2560240') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '20307225', '1335284911', '0.02993950492534474', None, None, None, None, '2560240')] time used for this insertion : 0.012063741683959961 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06583738327026367 time spend to save output : 0.012373924255371094 total time spend for step 2 : 0.07821130752563477 step3:velours_tree Thu Feb 6 21:04:59 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 : {20307225: [{'Carton_gris': 20307330, 'Teint_Dans_La_Masse': 20307331, 'kraft': 20307332, 'mal_croppe': 20307333, 'flou': 20307334, 'metal': 20307335, 'cartonnette': 20307336, 'plastique': 20307337, 'environnement': 20307338, 'autre_refus': 20307339, 'papier': 20307340, 'Carton_brun': 20307341}]} input_args_next_step : {20307225: ()} output_args : {20307225: [{'Carton_gris': 20307330, 'Teint_Dans_La_Masse': 20307331, 'kraft': 20307332, 'mal_croppe': 20307333, 'flou': 20307334, 'metal': 20307335, 'cartonnette': 20307336, 'plastique': 20307337, 'environnement': 20307338, 'autre_refus': 20307339, 'papier': 20307340, 'Carton_brun': 20307341}]} args : 20307225 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 20307330, 'Teint_Dans_La_Masse': 20307331, 'kraft': 20307332, 'mal_croppe': 20307333, 'flou': 20307334, 'metal': 20307335, 'cartonnette': 20307336, 'plastique': 20307337, 'environnement': 20307338, 'autre_refus': 20307339, 'papier': 20307340, 'Carton_brun': 20307341},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20307225) 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([20307225]) 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.33150482177734375 time spend to save output : 4.982948303222656e-05 total time spend for step 3 : 0.331554651260376 step4:send_mail_cod Thu Feb 6 21:05:00 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 : {1335284911: ('0.02993950492534474',)} input_args_next_step : {1335284911: ()} output_args : {1335284911: ('0.02993950492534474',)} args : 1335284911 depend.output_id : 0 complete output_args for input 3 : {20307225: [{'Carton_gris': 20307330, 'Teint_Dans_La_Masse': 20307331, 'kraft': 20307332, 'mal_croppe': 20307333, 'flou': 20307334, 'metal': 20307335, 'cartonnette': 20307336, 'plastique': 20307337, 'environnement': 20307338, 'autre_refus': 20307339, 'papier': 20307340, 'Carton_brun': 20307341}]} input_args_next_step : {1335284911: ('0.02993950492534474',), 20307225: ()} output_args : {20307225: [{'Carton_gris': 20307330, 'Teint_Dans_La_Masse': 20307331, 'kraft': 20307332, 'mal_croppe': 20307333, 'flou': 20307334, 'metal': 20307335, 'cartonnette': 20307336, 'plastique': 20307337, 'environnement': 20307338, 'autre_refus': 20307339, 'papier': 20307340, 'Carton_brun': 20307341}]} args : 20307225 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 :2, first value : ('0.02993950492534474',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20307225) 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 (1335284911) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1335284911 download finish for photo 1335284911 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette203073321738872300/ imagette203073331738872300/ imagette203073341738872300/ imagette203073351738872300/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P20307225_06-02-2025_21_05_00.pdf 20307332 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=20307332 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203073321738872300 20307333 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=20307333 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203073331738872300 20307334 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=20307334 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203073341738872300 20307335 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=20307335 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203073351738872300 20307336 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=20307336 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335282084: '1738870873_335965_1335281319_f7753d6c1a2c5850291133069b86bb58_rle_crop_3658175554_0.png', 1335282642: '1738870992_338491_1335282005_ffd517588cc08304042ca821cc8523cd_rle_crop_3658176365_0.png', 1335282494: '1738870953_338020_1335281319_f7753d6c1a2c5850291133069b86bb58_rle_crop_3658175559_0.png', 1335282493: '1738870953_338020_1335281319_f7753d6c1a2c5850291133069b86bb58_rle_crop_3658175554_0.png', 1335282491: '1738870953_338020_1335281323_c54938d794e7c4b013817e068a5359c4_rle_crop_3658175527_0.png', 1335282490: '1738870953_338020_1335281334_1d819948c89cb4255b060aa3bc328e78_rle_crop_3658175504_0.png', 1335282165: '1738870934_336782_1335281734_652a2dbb48243d924917e0f1ad94b6d7_rle_crop_3658175936_0.png', 1335282164: '1738870934_336782_1335281734_652a2dbb48243d924917e0f1ad94b6d7_rle_crop_3658170646_0.png', 1335282085: '1738870873_335965_1335281319_f7753d6c1a2c5850291133069b86bb58_rle_crop_3658175559_0.png', 1335281281: '1738870530_324215_1335280426_51bfcb77b1bdfe8b0a36d2a5c1bdc1a0_rle_crop_3658167504_0.png', 1335282083: '1738870873_335965_1335281323_c54938d794e7c4b013817e068a5359c4_rle_crop_3658175527_0.png', 1335282082: '1738870873_335965_1335281334_1d819948c89cb4255b060aa3bc328e78_rle_crop_3658175504_0.png', 1335282021: '1738870852_335622_1335281108_b59d45bd68491b67ff035a7545f013d9_rle_crop_3658170190_0.png', 1335282020: '1738870852_335622_1335281276_7124d9a9bd820626b2eb4b5afe5a26d5_rle_crop_3658170160_0.png', 1335281999: '1738870830_335443_1335281734_652a2dbb48243d924917e0f1ad94b6d7_rle_crop_3658170646_0.png', 1335281911: '1738870715_328257_1335280017_db952642800e6226130b4b7346715abf_rle_crop_3658170558_0.png', 1335281861: '1738870673_327742_1335281108_b59d45bd68491b67ff035a7545f013d9_rle_crop_3658170190_0.png', 1335281859: '1738870673_327742_1335281276_7124d9a9bd820626b2eb4b5afe5a26d5_rle_crop_3658170160_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c07a7118a222daee84a23cceb3ffd713_97900767.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/13b14aa89ef7e07b5c2228b70604353c_15910032.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c1bffe792c43b7a40d9f37a3ddbb9227_65902423.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c07a7118a222daee84a23cceb3ffd713_31961957.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c51fc299c7c26041366fe2646a30a729_65688345.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/81d3da41f4e801a2d143f39b42916371_59631293.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/bf27009c4d42f0eec042f474c6f113ce_17211189.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/62585a28a8e372e862da37e068b19dad_25611192.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c1bffe792c43b7a40d9f37a3ddbb9227_94459072.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/92beeea69ddd07a50f50486bc33b118b_99152524.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c51fc299c7c26041366fe2646a30a729_30653711.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/81d3da41f4e801a2d143f39b42916371_36905988.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/93fbc6da7564f9f61562dcdb8b5bd032_48215155.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/9b109b89ed07d649bceaf73bb5153852_52580186.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/62585a28a8e372e862da37e068b19dad_56074122.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/663bec0fc9a0e9f164051fc2be7f979d_62383705.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/93fbc6da7564f9f61562dcdb8b5bd032_62308783.png change filename to text .imagette203073361738872300/ imagette203073361738872300/1738870934_336782_1335281734_652a2dbb48243d924917e0f1ad94b6d7_rle_crop_3658170646_0.png.png imagette203073361738872300/1738870873_335965_1335281319_f7753d6c1a2c5850291133069b86bb58_rle_crop_3658175559_0.png.png imagette203073361738872300/1738870873_335965_1335281319_f7753d6c1a2c5850291133069b86bb58_rle_crop_3658175554_0.png.png imagette203073361738872300/1738870873_335965_1335281323_c54938d794e7c4b013817e068a5359c4_rle_crop_3658175527_0.png.png imagette203073361738872300/1738870715_328257_1335280017_db952642800e6226130b4b7346715abf_rle_crop_3658170558_0.png.png imagette203073361738872300/1738870852_335622_1335281276_7124d9a9bd820626b2eb4b5afe5a26d5_rle_crop_3658170160_0.png.png imagette203073361738872300/1738870992_338491_1335282005_ffd517588cc08304042ca821cc8523cd_rle_crop_3658176365_0.png.png imagette203073361738872300/1738870953_338020_1335281319_f7753d6c1a2c5850291133069b86bb58_rle_crop_3658175554_0.png.png imagette203073361738872300/1738870673_327742_1335281108_b59d45bd68491b67ff035a7545f013d9_rle_crop_3658170190_0.png.png imagette203073361738872300/1738870953_338020_1335281323_c54938d794e7c4b013817e068a5359c4_rle_crop_3658175527_0.png.png imagette203073361738872300/1738870934_336782_1335281734_652a2dbb48243d924917e0f1ad94b6d7_rle_crop_3658175936_0.png.png imagette203073361738872300/1738870530_324215_1335280426_51bfcb77b1bdfe8b0a36d2a5c1bdc1a0_rle_crop_3658167504_0.png.png imagette203073361738872300/1738870953_338020_1335281319_f7753d6c1a2c5850291133069b86bb58_rle_crop_3658175559_0.png.png imagette203073361738872300/1738870852_335622_1335281108_b59d45bd68491b67ff035a7545f013d9_rle_crop_3658170190_0.png.png imagette203073361738872300/1738870953_338020_1335281334_1d819948c89cb4255b060aa3bc328e78_rle_crop_3658175504_0.png.png imagette203073361738872300/1738870830_335443_1335281734_652a2dbb48243d924917e0f1ad94b6d7_rle_crop_3658170646_0.png.png imagette203073361738872300/1738870873_335965_1335281334_1d819948c89cb4255b060aa3bc328e78_rle_crop_3658175504_0.png.png imagette203073361738872300/1738870673_327742_1335281276_7124d9a9bd820626b2eb4b5afe5a26d5_rle_crop_3658170160_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/9b109b89ed07d649bceaf73bb5153852_27696066.png imagette203073361738872300 20307337 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=20307337 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335281584: '1738870552_324528_1335280017_db952642800e6226130b4b7346715abf_rle_crop_3658169116_0.png', 1335282529: '1738870953_338020_1335281334_1d819948c89cb4255b060aa3bc328e78_rle_crop_3658175505_0.png', 1335282088: '1738870873_335965_1335281334_1d819948c89cb4255b060aa3bc328e78_rle_crop_3658175505_0.png', 1335281926: '1738870715_328257_1335280017_db952642800e6226130b4b7346715abf_rle_crop_3658169116_0.png', 1335281925: '1738870715_328257_1335280021_746ea43ac9812aabdb2f5421c5ec46fe_rle_crop_3658169096_0.png', 1335281924: '1738870715_328257_1335280021_746ea43ac9812aabdb2f5421c5ec46fe_rle_crop_3658169086_0.png', 1335281923: '1738870715_328257_1335280030_11ad4ac4ae52abe4c7972b9df4832c0b_rle_crop_3658170531_0.png', 1335281922: '1738870715_328257_1335280030_11ad4ac4ae52abe4c7972b9df4832c0b_bib_crop_3658169062_0.jpg', 1335281921: '1738870715_328257_1335280039_6621c68712e1c23fb129460c18b21355_rle_crop_3658169044_0.png', 1335281920: '1738870715_328257_1335280039_6621c68712e1c23fb129460c18b21355_rle_crop_3658169047_0.png', 1335281919: '1738870715_328257_1335280332_cc6516721ec755680e7a90763d03cb00_rle_crop_3658168878_0.png', 1335281248: '1738870491_323764_1335280292_73e6fff03c94dc0fc2b1195a1b39a70e_rle_crop_3658165714_0.png', 1335281583: '1738870552_324528_1335280021_746ea43ac9812aabdb2f5421c5ec46fe_rle_crop_3658169096_0.png', 1335281582: '1738870552_324528_1335280021_746ea43ac9812aabdb2f5421c5ec46fe_rle_crop_3658169086_0.png', 1335281581: '1738870552_324528_1335280030_11ad4ac4ae52abe4c7972b9df4832c0b_rle_crop_3658169062_0.png', 1335281580: '1738870552_324528_1335280039_6621c68712e1c23fb129460c18b21355_rle_crop_3658169044_0.png', 1335281579: '1738870552_324528_1335280039_6621c68712e1c23fb129460c18b21355_rle_crop_3658169047_0.png', 1335281578: '1738870552_324528_1335280332_cc6516721ec755680e7a90763d03cb00_rle_crop_3658168878_0.png', 1335281509: '1738870573_324884_1335280284_6f7cb5b8088a75502d63188100c6d499_rle_crop_3658165724_0.png', 1335281508: '1738870573_324884_1335280292_73e6fff03c94dc0fc2b1195a1b39a70e_rle_crop_3658165714_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/6924ea214f5150936b595e8ccc8477af_81056941.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/f171eea0e307c0513fcd34d96f0f059e_35722917.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/f171eea0e307c0513fcd34d96f0f059e_80077665.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/6924ea214f5150936b595e8ccc8477af_66046501.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/7206eef4bd759929776b1bbcc75dc099_18400433.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/ffea316b75ad66e1bbc3cf4ff65af1d8_28995919.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/550099c440ca82c16d79fec90a2e7592_74354956.png change filename to text .wget -O 8.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/54b7de1a5b6c5f6ce486868ab2189e2d_81799082.jpg change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/4cd2c122b8af5420d7789cd6608ac2c3_28297147.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/418f2395b7c3244951b7edc2f10d5e12_23598463.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/9b9a31837a2aa4c09f21a1bd7b90cf78_76613084.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/1e80a48900e00e528c7aa1a70317b3f8_3257107.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/7206eef4bd759929776b1bbcc75dc099_70388776.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/ffea316b75ad66e1bbc3cf4ff65af1d8_65570330.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/46d4092da1b1a7417e3a1898efca2a0d_86293050.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/4cd2c122b8af5420d7789cd6608ac2c3_66930690.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/418f2395b7c3244951b7edc2f10d5e12_38361109.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/9b9a31837a2aa4c09f21a1bd7b90cf78_86535854.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/01481df90df091a491a6bda21b80c67d_65404413.png change filename to text .imagette203073371738872301/ imagette203073371738872301/1738870552_324528_1335280039_6621c68712e1c23fb129460c18b21355_rle_crop_3658169047_0.png.png imagette203073371738872301/1738870552_324528_1335280021_746ea43ac9812aabdb2f5421c5ec46fe_rle_crop_3658169086_0.png.png imagette203073371738872301/1738870715_328257_1335280039_6621c68712e1c23fb129460c18b21355_rle_crop_3658169044_0.png.png imagette203073371738872301/1738870873_335965_1335281334_1d819948c89cb4255b060aa3bc328e78_rle_crop_3658175505_0.png.png imagette203073371738872301/1738870715_328257_1335280039_6621c68712e1c23fb129460c18b21355_rle_crop_3658169047_0.png.png imagette203073371738872301/1738870573_324884_1335280292_73e6fff03c94dc0fc2b1195a1b39a70e_rle_crop_3658165714_0.png.png imagette203073371738872301/1738870552_324528_1335280030_11ad4ac4ae52abe4c7972b9df4832c0b_rle_crop_3658169062_0.png.png imagette203073371738872301/1738870715_328257_1335280021_746ea43ac9812aabdb2f5421c5ec46fe_rle_crop_3658169096_0.png.png imagette203073371738872301/1738870491_323764_1335280292_73e6fff03c94dc0fc2b1195a1b39a70e_rle_crop_3658165714_0.png.png imagette203073371738872301/1738870715_328257_1335280332_cc6516721ec755680e7a90763d03cb00_rle_crop_3658168878_0.png.png imagette203073371738872301/1738870715_328257_1335280017_db952642800e6226130b4b7346715abf_rle_crop_3658169116_0.png.png imagette203073371738872301/1738870953_338020_1335281334_1d819948c89cb4255b060aa3bc328e78_rle_crop_3658175505_0.png.png imagette203073371738872301/1738870552_324528_1335280332_cc6516721ec755680e7a90763d03cb00_rle_crop_3658168878_0.png.png imagette203073371738872301/1738870573_324884_1335280284_6f7cb5b8088a75502d63188100c6d499_rle_crop_3658165724_0.png.png imagette203073371738872301/1738870715_328257_1335280030_11ad4ac4ae52abe4c7972b9df4832c0b_bib_crop_3658169062_0.jpg.jpg imagette203073371738872301/1738870715_328257_1335280030_11ad4ac4ae52abe4c7972b9df4832c0b_rle_crop_3658170531_0.png.png imagette203073371738872301/1738870552_324528_1335280021_746ea43ac9812aabdb2f5421c5ec46fe_rle_crop_3658169096_0.png.png imagette203073371738872301/1738870552_324528_1335280039_6621c68712e1c23fb129460c18b21355_rle_crop_3658169044_0.png.png imagette203073371738872301/1738870715_328257_1335280021_746ea43ac9812aabdb2f5421c5ec46fe_rle_crop_3658169086_0.png.png imagette203073371738872301/1738870552_324528_1335280017_db952642800e6226130b4b7346715abf_rle_crop_3658169116_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/1e80a48900e00e528c7aa1a70317b3f8_77819214.png imagette203073371738872301 20307339 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=20307339 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335281278: '1738870530_324215_1335280426_51bfcb77b1bdfe8b0a36d2a5c1bdc1a0_rle_crop_3658167508_0.png', 1335281570: '1738870552_324528_1335280021_746ea43ac9812aabdb2f5421c5ec46fe_rle_crop_3658169089_0.png', 1335281857: '1738870673_327742_1335281276_7124d9a9bd820626b2eb4b5afe5a26d5_rle_crop_3658170159_0.png', 1335281858: '1738870673_327742_1335281104_bc8cd13b586818378c1133547ed4e55c_rle_crop_3658170211_0.png', 1335281910: '1738870715_328257_1335280021_746ea43ac9812aabdb2f5421c5ec46fe_rle_crop_3658169089_0.png', 1335282017: '1738870852_335622_1335281276_7124d9a9bd820626b2eb4b5afe5a26d5_rle_crop_3658170159_0.png', 1335282018: '1738870852_335622_1335281104_bc8cd13b586818378c1133547ed4e55c_rle_crop_3658170211_0.png', 1335282077: '1738870873_335965_1335281319_f7753d6c1a2c5850291133069b86bb58_rle_crop_3658175570_0.png', 1335282078: '1738870873_335965_1335281315_1b75e1e5b536da6f6c17468ffcce8894_rle_crop_3658175661_0.png', 1335282428: '1738870953_338020_1335281319_f7753d6c1a2c5850291133069b86bb58_rle_crop_3658175570_0.png', 1335282430: '1738870953_338020_1335281315_1b75e1e5b536da6f6c17468ffcce8894_rle_crop_3658175661_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c056fc814e8521fe19325ada839f3682_60005872.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/daeedfde03700c10dc839d9885a53a82_85420865.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/b1f879818f0f726487c380613b6afadd_21518187.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/b8eb39bf19939c6caf1677361383c556_22628535.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/daeedfde03700c10dc839d9885a53a82_57921782.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/b1f879818f0f726487c380613b6afadd_43122054.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/b8eb39bf19939c6caf1677361383c556_7594245.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/f2a72b47c7d4badf2ab625d4ecdaaae2_20221446.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/45e55fdd1e73b063d068c48bfefa6cca_8818846.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/f2a72b47c7d4badf2ab625d4ecdaaae2_58943614.png change filename to text .imagette203073391738872302/ imagette203073391738872302/1738870530_324215_1335280426_51bfcb77b1bdfe8b0a36d2a5c1bdc1a0_rle_crop_3658167508_0.png.png imagette203073391738872302/1738870873_335965_1335281319_f7753d6c1a2c5850291133069b86bb58_rle_crop_3658175570_0.png.png imagette203073391738872302/1738870852_335622_1335281104_bc8cd13b586818378c1133547ed4e55c_rle_crop_3658170211_0.png.png imagette203073391738872302/1738870953_338020_1335281319_f7753d6c1a2c5850291133069b86bb58_rle_crop_3658175570_0.png.png imagette203073391738872302/1738870852_335622_1335281276_7124d9a9bd820626b2eb4b5afe5a26d5_rle_crop_3658170159_0.png.png imagette203073391738872302/1738870873_335965_1335281315_1b75e1e5b536da6f6c17468ffcce8894_rle_crop_3658175661_0.png.png imagette203073391738872302/1738870715_328257_1335280021_746ea43ac9812aabdb2f5421c5ec46fe_rle_crop_3658169089_0.png.png imagette203073391738872302/1738870673_327742_1335281104_bc8cd13b586818378c1133547ed4e55c_rle_crop_3658170211_0.png.png imagette203073391738872302/1738870673_327742_1335281276_7124d9a9bd820626b2eb4b5afe5a26d5_rle_crop_3658170159_0.png.png imagette203073391738872302/1738870552_324528_1335280021_746ea43ac9812aabdb2f5421c5ec46fe_rle_crop_3658169089_0.png.png imagette203073391738872302/1738870953_338020_1335281315_1b75e1e5b536da6f6c17468ffcce8894_rle_crop_3658175661_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/45e55fdd1e73b063d068c48bfefa6cca_46830243.png imagette203073391738872302 20307330 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=20307330 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335281142: '1738870491_323764_1335280264_0ab2188e3f834e1caa73a2dd67c9a376_rle_crop_3658165729_0.png', 1335281280: '1738870530_324215_1335280426_51bfcb77b1bdfe8b0a36d2a5c1bdc1a0_rle_crop_3658167509_0.png', 1335281439: '1738870573_324884_1335280264_0ab2188e3f834e1caa73a2dd67c9a376_rle_crop_3658165729_0.png', 1335282079: '1738870873_335965_1335281334_1d819948c89cb4255b060aa3bc328e78_rle_crop_3658175509_0.png', 1335282080: '1738870873_335965_1335281323_c54938d794e7c4b013817e068a5359c4_rle_crop_3658175525_0.png', 1335282158: '1738870911_336423_1335281849_806c568e97a3e9baeb2efeef7867ce03_rle_crop_3658175896_0.png', 1335282159: '1738870911_336423_1335281849_806c568e97a3e9baeb2efeef7867ce03_rle_crop_3658175900_0.png', 1335282454: '1738870953_338020_1335281334_1d819948c89cb4255b060aa3bc328e78_rle_crop_3658175509_0.png', 1335282455: '1738870953_338020_1335281323_c54938d794e7c4b013817e068a5359c4_rle_crop_3658175525_0.png', 1335282877: '1738871034_339027_1335281849_806c568e97a3e9baeb2efeef7867ce03_rle_crop_3658175896_0.png', 1335282878: '1738871034_339027_1335281849_806c568e97a3e9baeb2efeef7867ce03_rle_crop_3658175900_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/afa62eeae878d3d5b5e63419ec961c4f_17016134.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/9b665dd6cbaf910627a41de25511a1e9_84378333.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/afa62eeae878d3d5b5e63419ec961c4f_35857684.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/02bfd535f417fd3699a86863b5b6a0bb_54453099.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/e702608eaa588828ac3849bb77a9ab92_30780986.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/3dc76d5482f6c3dcdb334310b78cca21_52640295.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/7c815eb870116d007ae68528a41f7f7c_37307999.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/02bfd535f417fd3699a86863b5b6a0bb_78606058.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/e702608eaa588828ac3849bb77a9ab92_15612861.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/3dc76d5482f6c3dcdb334310b78cca21_76491078.png change filename to text .imagette203073301738872303/ imagette203073301738872303/1738870911_336423_1335281849_806c568e97a3e9baeb2efeef7867ce03_rle_crop_3658175900_0.png.png imagette203073301738872303/1738870530_324215_1335280426_51bfcb77b1bdfe8b0a36d2a5c1bdc1a0_rle_crop_3658167509_0.png.png imagette203073301738872303/1738870953_338020_1335281323_c54938d794e7c4b013817e068a5359c4_rle_crop_3658175525_0.png.png imagette203073301738872303/1738870573_324884_1335280264_0ab2188e3f834e1caa73a2dd67c9a376_rle_crop_3658165729_0.png.png imagette203073301738872303/1738870491_323764_1335280264_0ab2188e3f834e1caa73a2dd67c9a376_rle_crop_3658165729_0.png.png imagette203073301738872303/1738870911_336423_1335281849_806c568e97a3e9baeb2efeef7867ce03_rle_crop_3658175896_0.png.png imagette203073301738872303/1738871034_339027_1335281849_806c568e97a3e9baeb2efeef7867ce03_rle_crop_3658175900_0.png.png imagette203073301738872303/1738870873_335965_1335281334_1d819948c89cb4255b060aa3bc328e78_rle_crop_3658175509_0.png.png imagette203073301738872303/1738871034_339027_1335281849_806c568e97a3e9baeb2efeef7867ce03_rle_crop_3658175896_0.png.png imagette203073301738872303/1738870953_338020_1335281334_1d819948c89cb4255b060aa3bc328e78_rle_crop_3658175509_0.png.png imagette203073301738872303/1738870873_335965_1335281323_c54938d794e7c4b013817e068a5359c4_rle_crop_3658175525_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/7c815eb870116d007ae68528a41f7f7c_88249036.png imagette203073301738872303 20307331 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=20307331 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335282070: '1738870873_335965_1335281737_4c2d6d8c7d43c614795dfde081e1699e_rle_crop_3658175365_0.png', 1335282071: '1738870873_335965_1335281334_1d819948c89cb4255b060aa3bc328e78_rle_crop_3658175514_0.png', 1335282072: '1738870873_335965_1335281323_c54938d794e7c4b013817e068a5359c4_rle_crop_3658175537_0.png', 1335282073: '1738870873_335965_1335281319_f7753d6c1a2c5850291133069b86bb58_rle_crop_3658175567_0.png', 1335282074: '1738870873_335965_1335281319_f7753d6c1a2c5850291133069b86bb58_rle_crop_3658175564_0.png', 1335282397: '1738870953_338020_1335281737_4c2d6d8c7d43c614795dfde081e1699e_rle_crop_3658175365_0.png', 1335282398: '1738870953_338020_1335281334_1d819948c89cb4255b060aa3bc328e78_rle_crop_3658175514_0.png', 1335282400: '1738870953_338020_1335281323_c54938d794e7c4b013817e068a5359c4_rle_crop_3658175537_0.png', 1335282401: '1738870953_338020_1335281319_f7753d6c1a2c5850291133069b86bb58_rle_crop_3658175567_0.png', 1335282402: '1738870953_338020_1335281319_f7753d6c1a2c5850291133069b86bb58_rle_crop_3658175564_0.png', 1335282640: '1738870992_338491_1335282005_ffd517588cc08304042ca821cc8523cd_rle_crop_3658176377_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/124d74a2f72e02e24a04b07441617393_30337457.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/47c65281e5ceac7f746ce4a4c61cf2f0_72366204.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/2b7d51d72a59ef22c7d6daf2d05a76de_90356727.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/7b6e81b40b04de197f0c1cf334dd7ecf_27319373.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/579ab0097884859448b28d81f6690287_7823869.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/124d74a2f72e02e24a04b07441617393_48671101.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/47c65281e5ceac7f746ce4a4c61cf2f0_77115440.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/2b7d51d72a59ef22c7d6daf2d05a76de_8959878.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/7b6e81b40b04de197f0c1cf334dd7ecf_11950924.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/579ab0097884859448b28d81f6690287_12333996.png change filename to text .imagette203073311738872303/ imagette203073311738872303/1738870873_335965_1335281737_4c2d6d8c7d43c614795dfde081e1699e_rle_crop_3658175365_0.png.png imagette203073311738872303/1738870873_335965_1335281319_f7753d6c1a2c5850291133069b86bb58_rle_crop_3658175567_0.png.png imagette203073311738872303/1738870953_338020_1335281334_1d819948c89cb4255b060aa3bc328e78_rle_crop_3658175514_0.png.png imagette203073311738872303/1738870953_338020_1335281737_4c2d6d8c7d43c614795dfde081e1699e_rle_crop_3658175365_0.png.png imagette203073311738872303/1738870953_338020_1335281319_f7753d6c1a2c5850291133069b86bb58_rle_crop_3658175567_0.png.png imagette203073311738872303/1738870873_335965_1335281319_f7753d6c1a2c5850291133069b86bb58_rle_crop_3658175564_0.png.png imagette203073311738872303/1738870873_335965_1335281323_c54938d794e7c4b013817e068a5359c4_rle_crop_3658175537_0.png.png imagette203073311738872303/1738870873_335965_1335281334_1d819948c89cb4255b060aa3bc328e78_rle_crop_3658175514_0.png.png imagette203073311738872303/1738870992_338491_1335282005_ffd517588cc08304042ca821cc8523cd_rle_crop_3658176377_0.png.png imagette203073311738872303/1738870953_338020_1335281323_c54938d794e7c4b013817e068a5359c4_rle_crop_3658175537_0.png.png imagette203073311738872303/1738870953_338020_1335281319_f7753d6c1a2c5850291133069b86bb58_rle_crop_3658175564_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/d229c967b8e5e7edd86c8c955c3dbdea_81862403.png imagette203073311738872303 20307341 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=20307341 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335281188: '1738870491_323764_1335280292_73e6fff03c94dc0fc2b1195a1b39a70e_rle_crop_3658165707_0.png', 1335281262: '1738870511_323958_1335280387_1124602c62f2e812addd8037a080e6ee_rle_crop_3658165852_0.png', 1335281473: '1738870573_324884_1335280392_3b8877b1218c480ea269088035126487_rle_crop_3658168890_0.png', 1335281475: '1738870573_324884_1335280292_73e6fff03c94dc0fc2b1195a1b39a70e_rle_crop_3658165707_0.png', 1335281572: '1738870552_324528_1335280332_cc6516721ec755680e7a90763d03cb00_rle_crop_3658168869_0.png', 1335281573: '1738870552_324528_1335280017_db952642800e6226130b4b7346715abf_rle_crop_3658169108_0.png', 1335281853: '1738870692_327982_1335280392_3b8877b1218c480ea269088035126487_rle_crop_3658168890_0.png', 1335281862: '1738870673_327742_1335281104_bc8cd13b586818378c1133547ed4e55c_rle_crop_3658170213_0.png', 1335281912: '1738870715_328257_1335280332_cc6516721ec755680e7a90763d03cb00_rle_crop_3658168869_0.png', 1335281913: '1738870715_328257_1335280017_db952642800e6226130b4b7346715abf_bib_crop_3658169108_0.jpg', 1335281914: '1738870715_328257_1335280017_db952642800e6226130b4b7346715abf_rle_crop_3658170559_0.png', 1335282022: '1738870852_335622_1335281104_bc8cd13b586818378c1133547ed4e55c_rle_crop_3658170213_0.png', 1335282087: '1738870873_335965_1335281737_4c2d6d8c7d43c614795dfde081e1699e_rle_crop_3658175367_0.png', 1335282160: '1738870911_336423_1335281850_a67eab5df773aacaf2dfdd795fbc88e9_rle_crop_3658175882_0.png', 1335282509: '1738870953_338020_1335281737_4c2d6d8c7d43c614795dfde081e1699e_rle_crop_3658175367_0.png', 1335282879: '1738871034_339027_1335281850_a67eab5df773aacaf2dfdd795fbc88e9_rle_crop_3658175882_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/3b1acddb940fea4bc1096b122503815e_29003601.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/4e176a3f6ab24b650a2e8144ea9092ec_48243914.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/1bb92cad984c7ce117f93ab43cd6b2f7_74857664.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/3b1acddb940fea4bc1096b122503815e_51850851.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c09eaae39dff3402ce92886b9c5d0858_48996561.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/bcd51e1a990ad4f398cf454a0e0ccfb2_55387201.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/1bb92cad984c7ce117f93ab43cd6b2f7_45279844.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/e6dd7376a3b52e7c56331c747aa0466a_66963773.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c09eaae39dff3402ce92886b9c5d0858_39786612.png change filename to text .wget -O 10.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/4244c6128ebbe4a4e509c6c2ec94556b_1037926.jpg change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/4a156fe75b47c3abc98e613460da53bb_66848087.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/e6dd7376a3b52e7c56331c747aa0466a_68276388.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/73b689b2924115932a69eeb84ed5fad2_74539685.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/bfe3deea985a1f0e35878a0cb7e6a938_6505115.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/73b689b2924115932a69eeb84ed5fad2_87283707.png change filename to text .imagette203073411738872304/ imagette203073411738872304/1738870911_336423_1335281850_a67eab5df773aacaf2dfdd795fbc88e9_rle_crop_3658175882_0.png.png imagette203073411738872304/1738870715_328257_1335280017_db952642800e6226130b4b7346715abf_bib_crop_3658169108_0.jpg.jpg imagette203073411738872304/1738870953_338020_1335281737_4c2d6d8c7d43c614795dfde081e1699e_rle_crop_3658175367_0.png.png imagette203073411738872304/1738870852_335622_1335281104_bc8cd13b586818378c1133547ed4e55c_rle_crop_3658170213_0.png.png imagette203073411738872304/1738870715_328257_1335280017_db952642800e6226130b4b7346715abf_rle_crop_3658170559_0.png.png imagette203073411738872304/1738870692_327982_1335280392_3b8877b1218c480ea269088035126487_rle_crop_3658168890_0.png.png imagette203073411738872304/1738870573_324884_1335280392_3b8877b1218c480ea269088035126487_rle_crop_3658168890_0.png.png imagette203073411738872304/1738870873_335965_1335281737_4c2d6d8c7d43c614795dfde081e1699e_rle_crop_3658175367_0.png.png imagette203073411738872304/1738870552_324528_1335280017_db952642800e6226130b4b7346715abf_rle_crop_3658169108_0.png.png imagette203073411738872304/1738870673_327742_1335281104_bc8cd13b586818378c1133547ed4e55c_rle_crop_3658170213_0.png.png imagette203073411738872304/1738870715_328257_1335280332_cc6516721ec755680e7a90763d03cb00_rle_crop_3658168869_0.png.png imagette203073411738872304/1738870511_323958_1335280387_1124602c62f2e812addd8037a080e6ee_rle_crop_3658165852_0.png.png imagette203073411738872304/1738870491_323764_1335280292_73e6fff03c94dc0fc2b1195a1b39a70e_rle_crop_3658165707_0.png.png imagette203073411738872304/1738870552_324528_1335280332_cc6516721ec755680e7a90763d03cb00_rle_crop_3658168869_0.png.png imagette203073411738872304/1738870573_324884_1335280292_73e6fff03c94dc0fc2b1195a1b39a70e_rle_crop_3658165707_0.png.png imagette203073411738872304/1738871034_339027_1335281850_a67eab5df773aacaf2dfdd795fbc88e9_rle_crop_3658175882_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/bfe3deea985a1f0e35878a0cb7e6a938_41389695.png imagette203073411738872304 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20307225 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20307342,20307343,20307344,20307345,20307346,20307347,20307348,20307349,20307350,20307351,20307352,20307353?tags=Carton_gris,Teint_Dans_La_Masse,kraft,mal_croppe,flou,metal,cartonnette,plastique,environnement,autre_refus,papier,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1335284911] : ('0.02993950492534474',) no score found for photo 1335284911 apple ('0.02993950492534474',) We are sending mail with results at report@fotonower.com refus_total : 0.02993950492534474 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=20307225 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_P20307225_06-02-2025_21_05_00.pdf results_Auto_P20307225_06-02-2025_21_05_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20307225_06-02-2025_21_05_00.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','20307225','results_Auto_P20307225_06-02-2025_21_05_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20307225_06-02-2025_21_05_00.pdf','pdf','','0.16','0.02993950492534474') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20307225]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1335284911] map_info['map_portfolio_photo'] : {20307225: [1335284911, 1335282011, 1335282008, 1335282005, 1335281908, 1335281906, 1335281903, 1335281900, 1335281898, 1335281854, 1335281850, 1335281849, 1335281737, 1335281734, 1335281701, 1335281419, 1335281334, 1335281323, 1335281319, 1335281315, 1335281276, 1335281273, 1335281269, 1335281266, 1335281111, 1335281108, 1335281106, 1335281104, 1335280736, 1335280665, 1335280426, 1335280392, 1335280390, 1335280387, 1335280385, 1335280332, 1335280292, 1335280284, 1335280264, 1335280041, 1335280039, 1335280030, 1335280021, 1335280017]} final : False mtd_id 4302 list_pids : [1335284911] 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, '2560240') ('4302', '20307225', '1335284911', None, None, None, None, None, '2560240') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '20307225', '1335284911', None, None, None, None, None, '2560240')] time used for this insertion : 0.011890649795532227 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.2936694622039795 time spend to save output : 0.01204371452331543 total time spend for step 4 : 6.305713176727295 step5:split_time_score Thu Feb 6 21:05:06 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 : ['20307225'] 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 : [('20307225',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20307225) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1335284911: {'path': 'temp/1738872300_206774_1335284911_c96d024faf89fd4eb66ea3e6108ca95b.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 = 20307225; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 20307225 group by h (('20', 44),) 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=20307225 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 (20307225) 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 (20307225) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06022025 20307225 Nombre de photos uploadées : 44 / 23040 (0%) 06022025 20307225 Nombre de photos taguées (types de déchets): 0 / 44 (0%) 06022025 20307225 Nombre de photos taguées (volume) : 0 / 44 (0%) [{'photo_id': 1335280041, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/344b51abae66ad42fe1eb12116aa7748.jpg', 'username': None, 'uploaded_at': 1738870267, 'text': 'image_06022025_20_30_04_009134m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1335280039, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/6621c68712e1c23fb129460c18b21355.jpg', 'username': None, 'uploaded_at': 1738870267, 'text': 'image_06022025_20_30_14_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1335280030, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/11ad4ac4ae52abe4c7972b9df4832c0b.jpg', 'username': None, 'uploaded_at': 1738870267, 'text': 'image_06022025_20_30_24_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1335280021, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/746ea43ac9812aabdb2f5421c5ec46fe.jpg', 'username': None, 'uploaded_at': 1738870267, 'text': 'image_06022025_20_30_34_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ???????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002203226089477539 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20307225, '2025-02-06' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1581747,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022799968719482422 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= 1581747 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1581747, 'dashboard_run_id': 1591617, 'mtr_portfolio_id': 20306665, 'dashboard_result_id': 8744387, '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_P20306665_06-02-2025_20_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20306718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20306719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20306720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20306721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20306722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20306723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20306724, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20306725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20306726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20306727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20306728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20306729, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1591617, 'mtr_portfolio_id': 20307225, 'dashboard_result_id': 8744388, '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_P20307225_06-02-2025_20_42_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20307330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20307331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20307332, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20307333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20307334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20307335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20307336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20307337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20307338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20307339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20307340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20307341, '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 = 20306665 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': 2560202, 'mtr_portfolio_id': 20306665, 'created_at': datetime.datetime(2025, 2, 6, 20, 32, 58), 'result': '0.050000146392156594', 'result_long': None, 'result_double': None}] Qualite : 0.050000146392156594 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20306665 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20306665_06-02-2025_20_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20306665 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_P20306665_06-02-2025_20_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20306718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20306719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20306720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20306721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20306722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20306723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20306724, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20306725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20306726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20306727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20306728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20306729, 'pht': 3726}}" where mtr_portfolio_id = 20306665 and dashboard_run_id = 1591617 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`=20306665 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8744387, 0.050000146392156594, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20306665_06-02-2025_20_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20306718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20306719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20306720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20306721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20306722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20306723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20306724, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20306725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20306726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20306727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20306728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20306729, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20307225 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': 2560240, 'mtr_portfolio_id': 20307225, 'created_at': datetime.datetime(2025, 2, 6, 21, 4, 59), 'result': '0.02993950492534474', 'result_long': None, 'result_double': None}] Qualite : 0.02993950492534474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20307225 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20307225_06-02-2025_21_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20307225 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_P20307225_06-02-2025_21_05_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20307330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20307331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20307332, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20307333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20307334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20307335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20307336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20307337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20307338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20307339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20307340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20307341, 'pht': 3726}}" where mtr_portfolio_id = 20307225 and dashboard_run_id = 1591617 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`=20307225 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8744388, 0.02993950492534474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20307225_06-02-2025_21_05_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20307330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20307331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20307332, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20307333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20307334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20307335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20307336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20307337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20307338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20307339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20307340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20307341, '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 (20306665,20307225) result : ((1335277245,), (1335277281,), (1335277284,), (1335277307,), (1335277403,), (1335277490,), (1335277553,), (1335277927,), (1335277959,), (1335278069,), (1335278072,), (1335278075,), (1335278397,), (1335278413,), (1335278417,), (1335278518,), (1335278521,), (1335278525,), (1335278528,), (1335278576,), (1335278601,), (1335278661,), (1335278664,), (1335278668,), (1335278818,), (1335278948,), (1335278954,), (1335278961,), (1335278965,), (1335279013,), (1335279015,), (1335279018,), (1335279029,), (1335279148,), (1335279151,), (1335279156,), (1335279162,), (1335279166,), (1335279169,), (1335279204,), (1335279207,), (1335279211,), (1335279215,), (1335279217,), (1335279247,), (1335279251,), (1335279256,), (1335279326,), (1335279332,), (1335279336,), (1335279339,), (1335279651,), (1335279701,), (1335279746,), (1335279749,), (1335279751,), (1335279800,), (1335279908,), (1335279911,), (1335279921,), (1335279932,), (1335279939,), (1335279970,), (1335279972,), (1335279975,), (1335280043,), (1335280017,), (1335280021,), (1335280030,), (1335280039,), (1335280041,), (1335280264,), (1335280284,), (1335280292,), (1335280332,), (1335280385,), (1335280387,), (1335280390,), (1335280392,), (1335280426,), (1335280665,), (1335280736,), (1335281104,), (1335281106,), (1335281108,), (1335281111,), (1335281266,), (1335281269,), (1335281273,), (1335281276,), (1335281315,), (1335281319,), (1335281323,), (1335281334,), (1335281419,), (1335281701,), (1335281734,), (1335281737,), (1335281849,), (1335281850,), (1335281854,), (1335281898,), (1335281900,), (1335281903,), (1335281906,), (1335281908,), (1335282005,), (1335282008,), (1335282011,), (1335284911,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06022025': {'nb_upload': 44, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20307225]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1335284911] map_info['map_portfolio_photo'] : {20307225: [1335284911, 1335282011, 1335282008, 1335282005, 1335281908, 1335281906, 1335281903, 1335281900, 1335281898, 1335281854, 1335281850, 1335281849, 1335281737, 1335281734, 1335281701, 1335281419, 1335281334, 1335281323, 1335281319, 1335281315, 1335281276, 1335281273, 1335281269, 1335281266, 1335281111, 1335281108, 1335281106, 1335281104, 1335280736, 1335280665, 1335280426, 1335280392, 1335280390, 1335280387, 1335280385, 1335280332, 1335280292, 1335280284, 1335280264, 1335280041, 1335280039, 1335280030, 1335280021, 1335280017]} final : True mtd_id 4302 list_pids : [1335284911] Looping around the photos to save general results len do output : 1 /20307225Didn'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, '2560240') ('4302', '20307225', '1335284911', None, None, None, None, None, '2560240') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '20307225', 'None', None, None, None, None, '2560240'), ('4302', '20307225', '1335284911', None, None, None, None, None, '2560240')] time used for this insertion : 0.012306451797485352 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.23461341857910156 time spend to save output : 0.012503623962402344 total time spend for step 5 : 0.2471170425415039 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 (2560240) 1.96user 2.30system 0:11.46elapsed 37%CPU (0avgtext+0avgdata 158576maxresident)k 4856inputs+11712outputs (73major+61791minor)pagefaults 0swaps