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 : 2816236 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 (2621970) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2621970) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907421 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2621970'] with mtr_portfolio_ids : ['20907421'] and first list_photo_ids : [] new path : /proc/2816236/ Name: python3 Umask: 0002 State: R (running) Tgid: 2816236 Ngid: 0 Pid: 2816236 PPid: 2816235 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2816236 NSpid: 2816236 NSpgid: 2813638 NSsid: 2813638 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98692 kB VmRSS: 98692 kB RssAnon: 59756 kB RssFile: 38936 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 51 nonvoluntary_ctxt_switches: 107 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2816236', 'Ngid': '0', 'Pid': '2816236', 'PPid': '2816235', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2816236', 'NSpid': '2816236', 'NSpgid': '2813638', 'NSsid': '2813638', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98692 kB', 'VmRSS': '98692 kB', 'RssAnon': '59756 kB', 'RssFile': '38936 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '51', 'nonvoluntary_ctxt_switches': '107'} ('datou_batch_current', '2816236', '1106844', '0', '1106844', '865592', '98692', b'', 'marlene', '2621970') 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 (20907421) 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 (2621970 ) ) 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 (20907421) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340054774, 'portfolio_id': 20907421}, {'photo_id': 1340054765, 'portfolio_id': 20907421}, {'photo_id': 1340054759, 'portfolio_id': 20907421}, {'photo_id': 1340054757, 'portfolio_id': 20907421}, {'photo_id': 1340054739, 'portfolio_id': 20907421}, {'photo_id': 1340054726, 'portfolio_id': 20907421}, {'photo_id': 1340054723, 'portfolio_id': 20907421}, {'photo_id': 1340054672, 'portfolio_id': 20907421}, {'photo_id': 1340054663, 'portfolio_id': 20907421}, {'photo_id': 1340054661, 'portfolio_id': 20907421}, {'photo_id': 1340054640, 'portfolio_id': 20907421}, {'photo_id': 1340054639, 'portfolio_id': 20907421}, {'photo_id': 1340054637, 'portfolio_id': 20907421}, {'photo_id': 1340054636, 'portfolio_id': 20907421}, {'photo_id': 1340054613, 'portfolio_id': 20907421}, {'photo_id': 1340054609, 'portfolio_id': 20907421}, {'photo_id': 1340054601, 'portfolio_id': 20907421}, {'photo_id': 1340054536, 'portfolio_id': 20907421}, {'photo_id': 1340054503, 'portfolio_id': 20907421}, {'photo_id': 1340054312, 'portfolio_id': 20907421}, {'photo_id': 1340054280, 'portfolio_id': 20907421}, {'photo_id': 1340054220, 'portfolio_id': 20907421}, {'photo_id': 1340054217, 'portfolio_id': 20907421}, {'photo_id': 1340054213, 'portfolio_id': 20907421}, {'photo_id': 1340054130, 'portfolio_id': 20907421}, {'photo_id': 1340053284, 'portfolio_id': 20907421}, {'photo_id': 1340053278, 'portfolio_id': 20907421}, {'photo_id': 1340053275, 'portfolio_id': 20907421}, {'photo_id': 1340053273, 'portfolio_id': 20907421}, {'photo_id': 1340053266, 'portfolio_id': 20907421}, {'photo_id': 1340053249, 'portfolio_id': 20907421}, {'photo_id': 1340053246, 'portfolio_id': 20907421}, {'photo_id': 1340053244, 'portfolio_id': 20907421}, {'photo_id': 1340053241, 'portfolio_id': 20907421}, {'photo_id': 1340053239, 'portfolio_id': 20907421}, {'photo_id': 1340053237, 'portfolio_id': 20907421}, {'photo_id': 1340053178, 'portfolio_id': 20907421}, {'photo_id': 1340053176, 'portfolio_id': 20907421}] map_portfolio_id_photo_id: {20907421: [1340054774, 1340054765, 1340054759, 1340054757, 1340054739, 1340054726, 1340054723, 1340054672, 1340054663, 1340054661, 1340054640, 1340054639, 1340054637, 1340054636, 1340054613, 1340054609, 1340054601, 1340054536, 1340054503, 1340054312, 1340054280, 1340054220, 1340054217, 1340054213, 1340054130, 1340053284, 1340053278, 1340053275, 1340053273, 1340053266, 1340053249, 1340053246, 1340053244, 1340053241, 1340053239, 1340053237, 1340053178, 1340053176]} ##### 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.015566110610961914 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Feb 28 03:54:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20907421) 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 : 20907421 get user id for portfolio 20907421 get sub ptf for main ptf 20907421, type 3726 and hashtags ['kraft', 'mal_croppe', 'Carton_brun', 'cartonnette', 'metal', 'Teint_Dans_La_Masse', 'Carton_gris', 'plastique', 'flou', 'environnement', 'papier', 'autre_refus'] 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`=20907421 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','Carton_brun','cartonnette','metal','Teint_Dans_La_Masse','Carton_gris','plastique','flou','environnement','papier','autre_refus')) 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`=20907421 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','Carton_brun','cartonnette','metal','Teint_Dans_La_Masse','Carton_gris','plastique','flou','environnement','papier','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 20907421, 'sub_port_id': 20907424, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535400, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 48, 57)}, 'Carton_brun': {'main_port_id': 20907421, 'sub_port_id': 20907425, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535401, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 48, 57)}, 'kraft': {'main_port_id': 20907421, 'sub_port_id': 20907426, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535402, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 48, 57)}, 'plastique': {'main_port_id': 20907421, 'sub_port_id': 20907427, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535403, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 48, 57)}, 'flou': {'main_port_id': 20907421, 'sub_port_id': 20907428, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535404, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 48, 57)}, 'metal': {'main_port_id': 20907421, 'sub_port_id': 20907429, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535405, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 48, 57)}, 'Carton_gris': {'main_port_id': 20907421, 'sub_port_id': 20907430, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535406, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 48, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20907421, 'sub_port_id': 20907431, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535407, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 48, 57)}, 'mal_croppe': {'main_port_id': 20907421, 'sub_port_id': 20907432, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535408, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 48, 57)}, 'environnement': {'main_port_id': 20907421, 'sub_port_id': 20907433, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535409, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 48, 57)}, 'papier': {'main_port_id': 20907421, 'sub_port_id': 20907434, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535410, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 48, 57)}, 'cartonnette': {'main_port_id': 20907421, 'sub_port_id': 20907435, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535411, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 48, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907424 , 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=20907421 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 (20907424) result : ((1340054664,), (1340054665,), (1340054727,), (1340054990,), (1340055079,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907421) result : ((1340053176,), (1340053178,), (1340053237,), (1340053239,), (1340053241,), (1340053244,), (1340053246,), (1340053249,), (1340053266,), (1340053273,), (1340053275,), (1340053278,), (1340053284,), (1340054130,), (1340054213,), (1340054217,), (1340054220,), (1340054280,), (1340054312,), (1340054503,), (1340054536,), (1340054601,), (1340054609,), (1340054613,), (1340054636,), (1340054637,), (1340054639,), (1340054640,), (1340054661,), (1340054663,), (1340054672,), (1340054723,), (1340054726,), (1340054739,), (1340054757,), (1340054759,), (1340054765,), (1340054774,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907425 , 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=20907421 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 (20907425) result : ((1340053272,), (1340054631,), (1340054632,), (1340054633,), (1340054634,), (1340054668,), (1340054669,), (1340054670,), (1340054671,), (1340054741,), (1340054742,), (1340054743,), (1340054766,), (1340054767,), (1340054768,), (1340054769,), (1340054770,), (1340055083,), (1340055084,), (1340055085,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907421) result : ((1340053176,), (1340053178,), (1340053237,), (1340053239,), (1340053241,), (1340053244,), (1340053246,), (1340053249,), (1340053266,), (1340053273,), (1340053275,), (1340053278,), (1340053284,), (1340054130,), (1340054213,), (1340054217,), (1340054220,), (1340054280,), (1340054312,), (1340054503,), (1340054536,), (1340054601,), (1340054609,), (1340054613,), (1340054636,), (1340054637,), (1340054639,), (1340054640,), (1340054661,), (1340054663,), (1340054672,), (1340054723,), (1340054726,), (1340054739,), (1340054757,), (1340054759,), (1340054765,), (1340054774,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907426 , 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=20907421 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 (20907426) result : ((1340054673,), (1340055089,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907421) result : ((1340053176,), (1340053178,), (1340053237,), (1340053239,), (1340053241,), (1340053244,), (1340053246,), (1340053249,), (1340053266,), (1340053273,), (1340053275,), (1340053278,), (1340053284,), (1340054130,), (1340054213,), (1340054217,), (1340054220,), (1340054280,), (1340054312,), (1340054503,), (1340054536,), (1340054601,), (1340054609,), (1340054613,), (1340054636,), (1340054637,), (1340054639,), (1340054640,), (1340054661,), (1340054663,), (1340054672,), (1340054723,), (1340054726,), (1340054739,), (1340054757,), (1340054759,), (1340054765,), (1340054774,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907427 , 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=20907421 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 (20907427) result : ((1340054635,), (1340054746,), (1340054747,), (1340054771,), (1340054772,), (1340055088,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907421) result : ((1340053176,), (1340053178,), (1340053237,), (1340053239,), (1340053241,), (1340053244,), (1340053246,), (1340053249,), (1340053266,), (1340053273,), (1340053275,), (1340053278,), (1340053284,), (1340054130,), (1340054213,), (1340054217,), (1340054220,), (1340054280,), (1340054312,), (1340054503,), (1340054536,), (1340054601,), (1340054609,), (1340054613,), (1340054636,), (1340054637,), (1340054639,), (1340054640,), (1340054661,), (1340054663,), (1340054672,), (1340054723,), (1340054726,), (1340054739,), (1340054757,), (1340054759,), (1340054765,), (1340054774,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907428 , 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=20907421 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 (20907428) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907421) result : ((1340053176,), (1340053178,), (1340053237,), (1340053239,), (1340053241,), (1340053244,), (1340053246,), (1340053249,), (1340053266,), (1340053273,), (1340053275,), (1340053278,), (1340053284,), (1340054130,), (1340054213,), (1340054217,), (1340054220,), (1340054280,), (1340054312,), (1340054503,), (1340054536,), (1340054601,), (1340054609,), (1340054613,), (1340054636,), (1340054637,), (1340054639,), (1340054640,), (1340054661,), (1340054663,), (1340054672,), (1340054723,), (1340054726,), (1340054739,), (1340054757,), (1340054759,), (1340054765,), (1340054774,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907429 , 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=20907421 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 (20907429) result : ((1340054773,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907421) result : ((1340053176,), (1340053178,), (1340053237,), (1340053239,), (1340053241,), (1340053244,), (1340053246,), (1340053249,), (1340053266,), (1340053273,), (1340053275,), (1340053278,), (1340053284,), (1340054130,), (1340054213,), (1340054217,), (1340054220,), (1340054280,), (1340054312,), (1340054503,), (1340054536,), (1340054601,), (1340054609,), (1340054613,), (1340054636,), (1340054637,), (1340054639,), (1340054640,), (1340054661,), (1340054663,), (1340054672,), (1340054723,), (1340054726,), (1340054739,), (1340054757,), (1340054759,), (1340054765,), (1340054774,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907430 , 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=20907421 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 (20907430) result : ((1340053269,), (1340054625,), (1340054626,), (1340054666,), (1340054732,), (1340054733,), (1340054734,), (1340054735,), (1340054736,), (1340054758,), (1340054760,), (1340054761,), (1340054762,), (1340054997,), (1340054998,), (1340054999,), (1340055080,), (1340055081,), (1340055082,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907421) result : ((1340053176,), (1340053178,), (1340053237,), (1340053239,), (1340053241,), (1340053244,), (1340053246,), (1340053249,), (1340053266,), (1340053273,), (1340053275,), (1340053278,), (1340053284,), (1340054130,), (1340054213,), (1340054217,), (1340054220,), (1340054280,), (1340054312,), (1340054503,), (1340054536,), (1340054601,), (1340054609,), (1340054613,), (1340054636,), (1340054637,), (1340054639,), (1340054640,), (1340054661,), (1340054663,), (1340054672,), (1340054723,), (1340054726,), (1340054739,), (1340054757,), (1340054759,), (1340054765,), (1340054774,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907431 , 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=20907421 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 (20907431) result : ((1340053267,), (1340053268,), (1340054623,), (1340054624,), (1340054662,), (1340054725,), (1340054754,), (1340054755,), (1340054756,), (1340055077,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907421) result : ((1340053176,), (1340053178,), (1340053237,), (1340053239,), (1340053241,), (1340053244,), (1340053246,), (1340053249,), (1340053266,), (1340053273,), (1340053275,), (1340053278,), (1340053284,), (1340054130,), (1340054213,), (1340054217,), (1340054220,), (1340054280,), (1340054312,), (1340054503,), (1340054536,), (1340054601,), (1340054609,), (1340054613,), (1340054636,), (1340054637,), (1340054639,), (1340054640,), (1340054661,), (1340054663,), (1340054672,), (1340054723,), (1340054726,), (1340054739,), (1340054757,), (1340054759,), (1340054765,), (1340054774,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907432 , 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=20907421 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 (20907432) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907421) result : ((1340053176,), (1340053178,), (1340053237,), (1340053239,), (1340053241,), (1340053244,), (1340053246,), (1340053249,), (1340053266,), (1340053273,), (1340053275,), (1340053278,), (1340053284,), (1340054130,), (1340054213,), (1340054217,), (1340054220,), (1340054280,), (1340054312,), (1340054503,), (1340054536,), (1340054601,), (1340054609,), (1340054613,), (1340054636,), (1340054637,), (1340054639,), (1340054640,), (1340054661,), (1340054663,), (1340054672,), (1340054723,), (1340054726,), (1340054739,), (1340054757,), (1340054759,), (1340054765,), (1340054774,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907433 , 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=20907421 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 (20907433) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907421) result : ((1340053176,), (1340053178,), (1340053237,), (1340053239,), (1340053241,), (1340053244,), (1340053246,), (1340053249,), (1340053266,), (1340053273,), (1340053275,), (1340053278,), (1340053284,), (1340054130,), (1340054213,), (1340054217,), (1340054220,), (1340054280,), (1340054312,), (1340054503,), (1340054536,), (1340054601,), (1340054609,), (1340054613,), (1340054636,), (1340054637,), (1340054639,), (1340054640,), (1340054661,), (1340054663,), (1340054672,), (1340054723,), (1340054726,), (1340054739,), (1340054757,), (1340054759,), (1340054765,), (1340054774,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907434 , 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=20907421 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 (20907434) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907421) result : ((1340053176,), (1340053178,), (1340053237,), (1340053239,), (1340053241,), (1340053244,), (1340053246,), (1340053249,), (1340053266,), (1340053273,), (1340053275,), (1340053278,), (1340053284,), (1340054130,), (1340054213,), (1340054217,), (1340054220,), (1340054280,), (1340054312,), (1340054503,), (1340054536,), (1340054601,), (1340054609,), (1340054613,), (1340054636,), (1340054637,), (1340054639,), (1340054640,), (1340054661,), (1340054663,), (1340054672,), (1340054723,), (1340054726,), (1340054739,), (1340054757,), (1340054759,), (1340054765,), (1340054774,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907435 , 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=20907421 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 (20907435) result : ((1340053271,), (1340054628,), (1340054629,), (1340054667,), (1340054737,), (1340054738,), (1340054763,), (1340054764,), (1340055000,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907421) result : ((1340053176,), (1340053178,), (1340053237,), (1340053239,), (1340053241,), (1340053244,), (1340053246,), (1340053249,), (1340053266,), (1340053273,), (1340053275,), (1340053278,), (1340053284,), (1340054130,), (1340054213,), (1340054217,), (1340054220,), (1340054280,), (1340054312,), (1340054503,), (1340054536,), (1340054601,), (1340054609,), (1340054613,), (1340054636,), (1340054637,), (1340054639,), (1340054640,), (1340054661,), (1340054663,), (1340054672,), (1340054723,), (1340054726,), (1340054739,), (1340054757,), (1340054759,), (1340054765,), (1340054774,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20907421 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','Carton_brun','cartonnette','metal','Teint_Dans_La_Masse','Carton_gris','plastique','flou','environnement','papier','autre_refus')) 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`=20907421 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','Carton_brun','cartonnette','metal','Teint_Dans_La_Masse','Carton_gris','plastique','flou','environnement','papier','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 20907421, 'sub_port_id': 20907452, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535436, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 49)}, 'Carton_brun': {'main_port_id': 20907421, 'sub_port_id': 20907455, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535437, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 49)}, 'kraft': {'main_port_id': 20907421, 'sub_port_id': 20907459, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535438, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 49)}, 'plastique': {'main_port_id': 20907421, 'sub_port_id': 20907462, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535439, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 49)}, 'flou': {'main_port_id': 20907421, 'sub_port_id': 20907464, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535440, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 49)}, 'metal': {'main_port_id': 20907421, 'sub_port_id': 20907465, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535441, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 49)}, 'Carton_gris': {'main_port_id': 20907421, 'sub_port_id': 20907466, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535442, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 49)}, 'Teint_Dans_La_Masse': {'main_port_id': 20907421, 'sub_port_id': 20907467, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535443, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 49)}, 'mal_croppe': {'main_port_id': 20907421, 'sub_port_id': 20907468, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535444, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 49)}, 'environnement': {'main_port_id': 20907421, 'sub_port_id': 20907469, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535445, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 49)}, 'papier': {'main_port_id': 20907421, 'sub_port_id': 20907470, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535446, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 49), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 49)}, 'cartonnette': {'main_port_id': 20907421, 'sub_port_id': 20907471, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535447, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 49)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907452,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907424 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907455,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907425 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907459,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907426 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907462,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907427 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907464,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907428 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907465,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907429 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907466,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907430 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907467,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907431 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907468,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907432 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907469,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907433 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907470,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907434 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907471,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907435 lien utilise dans velours : https://www.fotonower.com/velours/20907452,20907455,20907459,20907462,20907464,20907465,20907466,20907467,20907468,20907469,20907470,20907471?tags=autre_refus,Carton_brun,kraft,plastique,flou,metal,Carton_gris,Teint_Dans_La_Masse,mal_croppe,environnement,papier,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20907421]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340054774, 1340054765, 1340054759, 1340054757, 1340054739, 1340054726, 1340054723, 1340054672, 1340054663, 1340054661] map_info['map_portfolio_photo'] : {20907421: [1340054774, 1340054765, 1340054759, 1340054757, 1340054739, 1340054726, 1340054723, 1340054672, 1340054663, 1340054661, 1340054640, 1340054639, 1340054637, 1340054636, 1340054613, 1340054609, 1340054601, 1340054536, 1340054503, 1340054312, 1340054280, 1340054220, 1340054217, 1340054213, 1340054130, 1340053284, 1340053278, 1340053275, 1340053273, 1340053266, 1340053249, 1340053246, 1340053244, 1340053241, 1340053239, 1340053237, 1340053178, 1340053176]} final : False mtd_id 4302 list_pids : [1340054774, 1340054765, 1340054759, 1340054757, 1340054739, 1340054726, 1340054723, 1340054672, 1340054663, 1340054661] Looping around the photos to save general results len do output : 1 /20907421. 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, '2621970') ('4302', '20907421', '1340054774', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054765', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054759', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054757', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054739', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054726', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054723', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054672', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054663', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054661', None, None, None, None, None, '2621970') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20907421', "{'autre_refus': 20907424, 'Carton_brun': 20907425, 'kraft': 20907426, 'plastique': 20907427, 'flou': 20907428, 'metal': 20907429, 'Carton_gris': 20907430, 'Teint_Dans_La_Masse': 20907431, 'mal_croppe': 20907432, 'environnement': 20907433, 'papier': 20907434, 'cartonnette': 20907435}", None, None, None, None, '2621970'), ('4302', '20907421', '1340054774', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054765', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054759', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054757', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054739', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054726', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054723', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054672', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054663', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054661', None, None, None, None, None, '2621970')] time used for this insertion : 0.013675928115844727 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.574824571609497 time spend to save output : 0.013961076736450195 total time spend for step 1 : 1.5887856483459473 step2:final Fri Feb 28 03:55: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 ! 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 (20907421) 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 20907421 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340053178,1340053176,1340053249,1340053246,1340053244,1340053241,1340053239,1340053237,1340053284,1340053278,1340053275,1340053273,1340053266,1340054312,1340054280,1340054220,1340054217,1340054213,1340054130,1340054613,1340054609,1340054601,1340054536,1340054503,1340054640,1340054639,1340054637,1340054636,1340054739,1340054726,1340054723,1340054672,1340054663,1340054661,1340054774,1340054765,1340054759,1340054757); 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([20907421]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ('0.13499738841393802',), 1340054739: ('0.13499738841393802',), 1340054726: ('0.13499738841393802',), 1340054723: ('0.13499738841393802',), 1340054672: ('0.13499738841393802',), 1340054663: ('0.13499738841393802',), 1340054661: ('0.13499738841393802',)} new output for save of step final : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ('0.13499738841393802',), 1340054739: ('0.13499738841393802',), 1340054726: ('0.13499738841393802',), 1340054723: ('0.13499738841393802',), 1340054672: ('0.13499738841393802',), 1340054663: ('0.13499738841393802',), 1340054661: ('0.13499738841393802',)} [1340054774, 1340054765, 1340054759, 1340054757, 1340054739, 1340054726, 1340054723, 1340054672, 1340054663, 1340054661] map_info['map_portfolio_photo'] : {20907421: [1340054774, 1340054765, 1340054759, 1340054757, 1340054739, 1340054726, 1340054723, 1340054672, 1340054663, 1340054661, 1340054640, 1340054639, 1340054637, 1340054636, 1340054613, 1340054609, 1340054601, 1340054536, 1340054503, 1340054312, 1340054280, 1340054220, 1340054217, 1340054213, 1340054130, 1340053284, 1340053278, 1340053275, 1340053273, 1340053266, 1340053249, 1340053246, 1340053244, 1340053241, 1340053239, 1340053237, 1340053178, 1340053176]} final : False mtd_id 4302 list_pids : [1340054774, 1340054765, 1340054759, 1340054757, 1340054739, 1340054726, 1340054723, 1340054672, 1340054663, 1340054661] Looping around the photos to save general results len do output : 10 /1340054774.Didn't retrieve data . /1340054765.Didn't retrieve data . /1340054759.Didn't retrieve data . /1340054757.Didn't retrieve data . /1340054739.Didn't retrieve data . /1340054726.Didn't retrieve data . /1340054723.Didn't retrieve data . /1340054672.Didn't retrieve data . /1340054663.Didn't retrieve data . /1340054661.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, '2621970') ('4302', '20907421', '1340054774', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054765', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054759', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054757', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054739', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054726', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054723', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054672', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054663', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054661', None, None, None, None, None, '2621970') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20907421', '1340054774', '0.13499738841393802', None, None, None, None, '2621970'), ('4302', '20907421', '1340054765', '0.13499738841393802', None, None, None, None, '2621970'), ('4302', '20907421', '1340054759', '0.13499738841393802', None, None, None, None, '2621970'), ('4302', '20907421', '1340054757', '0.13499738841393802', None, None, None, None, '2621970'), ('4302', '20907421', '1340054739', '0.13499738841393802', None, None, None, None, '2621970'), ('4302', '20907421', '1340054726', '0.13499738841393802', None, None, None, None, '2621970'), ('4302', '20907421', '1340054723', '0.13499738841393802', None, None, None, None, '2621970'), ('4302', '20907421', '1340054672', '0.13499738841393802', None, None, None, None, '2621970'), ('4302', '20907421', '1340054663', '0.13499738841393802', None, None, None, None, '2621970'), ('4302', '20907421', '1340054661', '0.13499738841393802', None, None, None, None, '2621970')] time used for this insertion : 0.012185096740722656 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06720471382141113 time spend to save output : 0.012671947479248047 total time spend for step 2 : 0.07987666130065918 step3:velours_tree Fri Feb 28 03:55: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 complete output_args for input 0 : {20907421: [{'autre_refus': 20907424, 'Carton_brun': 20907425, 'kraft': 20907426, 'plastique': 20907427, 'flou': 20907428, 'metal': 20907429, 'Carton_gris': 20907430, 'Teint_Dans_La_Masse': 20907431, 'mal_croppe': 20907432, 'environnement': 20907433, 'papier': 20907434, 'cartonnette': 20907435}]} input_args_next_step : {20907421: ()} output_args : {20907421: [{'autre_refus': 20907424, 'Carton_brun': 20907425, 'kraft': 20907426, 'plastique': 20907427, 'flou': 20907428, 'metal': 20907429, 'Carton_gris': 20907430, 'Teint_Dans_La_Masse': 20907431, 'mal_croppe': 20907432, 'environnement': 20907433, 'papier': 20907434, 'cartonnette': 20907435}]} args : 20907421 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 : ({'autre_refus': 20907424, 'Carton_brun': 20907425, 'kraft': 20907426, 'plastique': 20907427, 'flou': 20907428, 'metal': 20907429, 'Carton_gris': 20907430, 'Teint_Dans_La_Masse': 20907431, 'mal_croppe': 20907432, 'environnement': 20907433, 'papier': 20907434, 'cartonnette': 20907435},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20907421) 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([20907421]) 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.2908036708831787 time spend to save output : 5.125999450683594e-05 total time spend for step 3 : 0.29085493087768555 step4:send_mail_cod Fri Feb 28 03:55: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 : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ('0.13499738841393802',), 1340054739: ('0.13499738841393802',), 1340054726: ('0.13499738841393802',), 1340054723: ('0.13499738841393802',), 1340054672: ('0.13499738841393802',), 1340054663: ('0.13499738841393802',), 1340054661: ('0.13499738841393802',)} input_args_next_step : {1340054774: ()} output_args : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ('0.13499738841393802',), 1340054739: ('0.13499738841393802',), 1340054726: ('0.13499738841393802',), 1340054723: ('0.13499738841393802',), 1340054672: ('0.13499738841393802',), 1340054663: ('0.13499738841393802',), 1340054661: ('0.13499738841393802',)} args : 1340054774 depend.output_id : 0 input_args_next_step : {1340054774: ('0.13499738841393802',), 1340054765: ()} output_args : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ('0.13499738841393802',), 1340054739: ('0.13499738841393802',), 1340054726: ('0.13499738841393802',), 1340054723: ('0.13499738841393802',), 1340054672: ('0.13499738841393802',), 1340054663: ('0.13499738841393802',), 1340054661: ('0.13499738841393802',)} args : 1340054765 depend.output_id : 0 input_args_next_step : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ()} output_args : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ('0.13499738841393802',), 1340054739: ('0.13499738841393802',), 1340054726: ('0.13499738841393802',), 1340054723: ('0.13499738841393802',), 1340054672: ('0.13499738841393802',), 1340054663: ('0.13499738841393802',), 1340054661: ('0.13499738841393802',)} args : 1340054759 depend.output_id : 0 input_args_next_step : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ()} output_args : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ('0.13499738841393802',), 1340054739: ('0.13499738841393802',), 1340054726: ('0.13499738841393802',), 1340054723: ('0.13499738841393802',), 1340054672: ('0.13499738841393802',), 1340054663: ('0.13499738841393802',), 1340054661: ('0.13499738841393802',)} args : 1340054757 depend.output_id : 0 input_args_next_step : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ('0.13499738841393802',), 1340054739: ()} output_args : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ('0.13499738841393802',), 1340054739: ('0.13499738841393802',), 1340054726: ('0.13499738841393802',), 1340054723: ('0.13499738841393802',), 1340054672: ('0.13499738841393802',), 1340054663: ('0.13499738841393802',), 1340054661: ('0.13499738841393802',)} args : 1340054739 depend.output_id : 0 input_args_next_step : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ('0.13499738841393802',), 1340054739: ('0.13499738841393802',), 1340054726: ()} output_args : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ('0.13499738841393802',), 1340054739: ('0.13499738841393802',), 1340054726: ('0.13499738841393802',), 1340054723: ('0.13499738841393802',), 1340054672: ('0.13499738841393802',), 1340054663: ('0.13499738841393802',), 1340054661: ('0.13499738841393802',)} args : 1340054726 depend.output_id : 0 input_args_next_step : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ('0.13499738841393802',), 1340054739: ('0.13499738841393802',), 1340054726: ('0.13499738841393802',), 1340054723: ()} output_args : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ('0.13499738841393802',), 1340054739: ('0.13499738841393802',), 1340054726: ('0.13499738841393802',), 1340054723: ('0.13499738841393802',), 1340054672: ('0.13499738841393802',), 1340054663: ('0.13499738841393802',), 1340054661: ('0.13499738841393802',)} args : 1340054723 depend.output_id : 0 input_args_next_step : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ('0.13499738841393802',), 1340054739: ('0.13499738841393802',), 1340054726: ('0.13499738841393802',), 1340054723: ('0.13499738841393802',), 1340054672: ()} output_args : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ('0.13499738841393802',), 1340054739: ('0.13499738841393802',), 1340054726: ('0.13499738841393802',), 1340054723: ('0.13499738841393802',), 1340054672: ('0.13499738841393802',), 1340054663: ('0.13499738841393802',), 1340054661: ('0.13499738841393802',)} args : 1340054672 depend.output_id : 0 input_args_next_step : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ('0.13499738841393802',), 1340054739: ('0.13499738841393802',), 1340054726: ('0.13499738841393802',), 1340054723: ('0.13499738841393802',), 1340054672: ('0.13499738841393802',), 1340054663: ()} output_args : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ('0.13499738841393802',), 1340054739: ('0.13499738841393802',), 1340054726: ('0.13499738841393802',), 1340054723: ('0.13499738841393802',), 1340054672: ('0.13499738841393802',), 1340054663: ('0.13499738841393802',), 1340054661: ('0.13499738841393802',)} args : 1340054663 depend.output_id : 0 input_args_next_step : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ('0.13499738841393802',), 1340054739: ('0.13499738841393802',), 1340054726: ('0.13499738841393802',), 1340054723: ('0.13499738841393802',), 1340054672: ('0.13499738841393802',), 1340054663: ('0.13499738841393802',), 1340054661: ()} output_args : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ('0.13499738841393802',), 1340054739: ('0.13499738841393802',), 1340054726: ('0.13499738841393802',), 1340054723: ('0.13499738841393802',), 1340054672: ('0.13499738841393802',), 1340054663: ('0.13499738841393802',), 1340054661: ('0.13499738841393802',)} args : 1340054661 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {20907421: [{'autre_refus': 20907424, 'Carton_brun': 20907425, 'kraft': 20907426, 'plastique': 20907427, 'flou': 20907428, 'metal': 20907429, 'Carton_gris': 20907430, 'Teint_Dans_La_Masse': 20907431, 'mal_croppe': 20907432, 'environnement': 20907433, 'papier': 20907434, 'cartonnette': 20907435}]} input_args_next_step : {1340054774: ('0.13499738841393802',), 1340054765: ('0.13499738841393802',), 1340054759: ('0.13499738841393802',), 1340054757: ('0.13499738841393802',), 1340054739: ('0.13499738841393802',), 1340054726: ('0.13499738841393802',), 1340054723: ('0.13499738841393802',), 1340054672: ('0.13499738841393802',), 1340054663: ('0.13499738841393802',), 1340054661: ('0.13499738841393802',), 20907421: ()} output_args : {20907421: [{'autre_refus': 20907424, 'Carton_brun': 20907425, 'kraft': 20907426, 'plastique': 20907427, 'flou': 20907428, 'metal': 20907429, 'Carton_gris': 20907430, 'Teint_Dans_La_Masse': 20907431, 'mal_croppe': 20907432, 'environnement': 20907433, 'papier': 20907434, 'cartonnette': 20907435}]} args : 20907421 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.13499738841393802',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20907421) 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 (1340054774,1340054765,1340054759,1340054757,1340054739,1340054726,1340054723,1340054672,1340054663,1340054661) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340054661 begin to download photo : 1340054723 begin to download photo : 1340054757 begin to download photo : 1340054774 download finish for photo 1340054757 begin to download photo : 1340054759 download finish for photo 1340054723 begin to download photo : 1340054726 download finish for photo 1340054774 download finish for photo 1340054661 begin to download photo : 1340054663 download finish for photo 1340054726 begin to download photo : 1340054739 download finish for photo 1340054759 begin to download photo : 1340054765 download finish for photo 1340054663 begin to download photo : 1340054672 download finish for photo 1340054765 download finish for photo 1340054672 download finish for photo 1340054739 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P20907421_28-02-2025_03_55_00.pdf 20907424 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=20907424 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340054664: '1740711072_2384784_1340054213_20c24929d2057b4cd1c03ae80d872291_rle_crop_3689492769_0.png', 1340054665: '1740711072_2384784_1340054213_20c24929d2057b4cd1c03ae80d872291_rle_crop_3689492770_0.png', 1340054727: '1740711091_2385029_1340053275_3d7a0a38292baf4491c904143e6fdc99_rle_crop_3689493551_0.png', 1340054990: '1740711193_2386122_1340054636_7e2e359b6af28f5b48e008dd07d20c17_rle_crop_3689493991_0.png', 1340055079: '1740711211_2386343_1340054609_a2514b10da1fd3a57669ebd30a58bfda_rle_crop_3689494084_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/9db84b3805e0b0e7d6acd0136b41fb94_42501589.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/b29d4babbf3a3f7e3610b22c08ac1de5_29575794.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e9df083aebee2ce7a544b107f2b96052_35264543.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/fed5e3c3e37f9aa8845f0ff53f7673df_89073366.png change filename to text .imagette209074241740711300/ imagette209074241740711300/1740711072_2384784_1340054213_20c24929d2057b4cd1c03ae80d872291_rle_crop_3689492770_0.png.png imagette209074241740711300/1740711211_2386343_1340054609_a2514b10da1fd3a57669ebd30a58bfda_rle_crop_3689494084_0.png.png imagette209074241740711300/1740711091_2385029_1340053275_3d7a0a38292baf4491c904143e6fdc99_rle_crop_3689493551_0.png.png imagette209074241740711300/1740711193_2386122_1340054636_7e2e359b6af28f5b48e008dd07d20c17_rle_crop_3689493991_0.png.png imagette209074241740711300/1740711072_2384784_1340054213_20c24929d2057b4cd1c03ae80d872291_rle_crop_3689492769_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/62bb7e4d74119a260a041910e61cb738_79887575.png imagette209074241740711300 20907426 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=20907426 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340054673: '1740711072_2384784_1340054130_03cd670965adcb172563bdd0de89fab3_rle_crop_3689493338_0.png', 1340055089: '1740711211_2386343_1340054601_b3cb405965db31b907801e442d06d1d8_rle_crop_3689494129_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/fb350574d1edbce3c298bdd4579bbb67_55187241.png change filename to text .imagette209074261740711301/ imagette209074261740711301/1740711211_2386343_1340054601_b3cb405965db31b907801e442d06d1d8_rle_crop_3689494129_0.png.png imagette209074261740711301/1740711072_2384784_1340054130_03cd670965adcb172563bdd0de89fab3_rle_crop_3689493338_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e6d95cab1ee7314eda15fa554954d089_51288622.png imagette209074261740711301 20907427 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=20907427 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340054635: '1740710973_2383203_1340053241_09fc7d413b06d61a892fd3fba1c5a73b_rle_crop_3689492201_0.png', 1340054746: '1740711091_2385029_1340053275_3d7a0a38292baf4491c904143e6fdc99_rle_crop_3689493556_0.png', 1340054747: '1740711091_2385029_1340053273_42d8dfca7c63b5979bad1d7b9d25906c_rle_crop_3689493585_0.png', 1340054771: '1740711112_2385242_1340053284_f4aa0d04850662986c7a31decb093841_rle_crop_3689493605_0.png', 1340054772: '1740711112_2385242_1340053241_09fc7d413b06d61a892fd3fba1c5a73b_rle_crop_3689492201_0.png', 1340055088: '1740711211_2386343_1340054503_3dbc05566ed4a6d3aea242372aecfced_rle_crop_3689494168_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/60a1978c88790342bf9439c382d7ff32_87940249.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/5283df58a69ba9b8c4e1e432e6c2f374_9205845.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/41c81af85d220c84308a2039fe5ddc53_9236992.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/59c0781fdf4131c888c2c0d1aed0b604_43308369.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/60a1978c88790342bf9439c382d7ff32_25620074.png change filename to text .imagette209074271740711301/ imagette209074271740711301/1740711112_2385242_1340053241_09fc7d413b06d61a892fd3fba1c5a73b_rle_crop_3689492201_0.png.png imagette209074271740711301/1740711112_2385242_1340053284_f4aa0d04850662986c7a31decb093841_rle_crop_3689493605_0.png.png imagette209074271740711301/1740711091_2385029_1340053275_3d7a0a38292baf4491c904143e6fdc99_rle_crop_3689493556_0.png.png imagette209074271740711301/1740711091_2385029_1340053273_42d8dfca7c63b5979bad1d7b9d25906c_rle_crop_3689493585_0.png.png imagette209074271740711301/1740711211_2386343_1340054503_3dbc05566ed4a6d3aea242372aecfced_rle_crop_3689494168_0.png.png imagette209074271740711301/1740710973_2383203_1340053241_09fc7d413b06d61a892fd3fba1c5a73b_rle_crop_3689492201_0.png.png imagette209074281740711301/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/1e81bc05b6ca0f90cdbc991292ffd748_67271442.png imagette209074271740711301 20907428 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=20907428 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209074281740711301 20907429 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=20907429 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340054773: '1740711112_2385242_1340053284_f4aa0d04850662986c7a31decb093841_rle_crop_3689493602_0.png'} change filename to text .imagette209074291740711301/ imagette209074291740711301/1740711112_2385242_1340053284_f4aa0d04850662986c7a31decb093841_rle_crop_3689493602_0.png.png imagette209074321740711301/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/30c461fa488adec340c8017403da635b_87068344.png imagette209074291740711301 20907432 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=20907432 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209074321740711301 20907435 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=20907435 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340053271: '1740710853_2381305_1340053178_76555bb9f59859825f57f5f47b50c213_rle_crop_3689490878_0.png', 1340054628: '1740710973_2383203_1340053237_ada3c5065609ef195413c011914c70e8_rle_crop_3689492315_0.png', 1340054629: '1740710973_2383203_1340053237_ada3c5065609ef195413c011914c70e8_rle_crop_3689492318_0.png', 1340054667: '1740711072_2384784_1340054213_20c24929d2057b4cd1c03ae80d872291_rle_crop_3689492766_0.png', 1340054737: '1740711091_2385029_1340053273_42d8dfca7c63b5979bad1d7b9d25906c_rle_crop_3689493581_0.png', 1340054738: '1740711091_2385029_1340053273_42d8dfca7c63b5979bad1d7b9d25906c_rle_crop_3689493575_0.png', 1340054763: '1740711112_2385242_1340053237_ada3c5065609ef195413c011914c70e8_rle_crop_3689492315_0.png', 1340054764: '1740711112_2385242_1340053237_ada3c5065609ef195413c011914c70e8_rle_crop_3689492318_0.png', 1340055000: '1740711193_2386122_1340054636_7e2e359b6af28f5b48e008dd07d20c17_rle_crop_3689493990_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/fac40c80d66f5c056ba52a02b1e5256e_62624387.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/4d1a13e735a539932c1fb0140e4f0437_79296126.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/442d0dbc267399f338d1b3b092869eaf_36021607.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/165e0b36b040db5468a6d939f973856c_41429180.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/d914bd5c58ee0003d964f8be10fe3829_77215389.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/438235e3aa8367d80e85f1135919265b_4122451.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/4d1a13e735a539932c1fb0140e4f0437_40430433.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/442d0dbc267399f338d1b3b092869eaf_60066748.png change filename to text .imagette209074351740711301/ imagette209074351740711301/1740711091_2385029_1340053273_42d8dfca7c63b5979bad1d7b9d25906c_rle_crop_3689493581_0.png.png imagette209074351740711301/1740711091_2385029_1340053273_42d8dfca7c63b5979bad1d7b9d25906c_rle_crop_3689493575_0.png.png imagette209074351740711301/1740710973_2383203_1340053237_ada3c5065609ef195413c011914c70e8_rle_crop_3689492315_0.png.png imagette209074351740711301/1740711193_2386122_1340054636_7e2e359b6af28f5b48e008dd07d20c17_rle_crop_3689493990_0.png.png imagette209074351740711301/1740711072_2384784_1340054213_20c24929d2057b4cd1c03ae80d872291_rle_crop_3689492766_0.png.png imagette209074351740711301/1740711112_2385242_1340053237_ada3c5065609ef195413c011914c70e8_rle_crop_3689492318_0.png.png imagette209074351740711301/1740711112_2385242_1340053237_ada3c5065609ef195413c011914c70e8_rle_crop_3689492315_0.png.png imagette209074351740711301/1740710853_2381305_1340053178_76555bb9f59859825f57f5f47b50c213_rle_crop_3689490878_0.png.png imagette209074351740711301/1740710973_2383203_1340053237_ada3c5065609ef195413c011914c70e8_rle_crop_3689492318_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/405c5ac406d0d231190306b4afb4c609_82272674.png imagette209074351740711301 20907425 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=20907425 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340054742: '1740711091_2385029_1340053275_3d7a0a38292baf4491c904143e6fdc99_rle_crop_3689493562_0.png', 1340055085: '1740711211_2386343_1340054601_b3cb405965db31b907801e442d06d1d8_rle_crop_3689494128_0.png', 1340055084: '1740711211_2386343_1340054609_a2514b10da1fd3a57669ebd30a58bfda_rle_crop_3689494088_0.png', 1340055083: '1740711211_2386343_1340054640_e68f26b6de885cbce7d0f740066695ab_rle_crop_3689494069_0.png', 1340054770: '1740711112_2385242_1340053237_ada3c5065609ef195413c011914c70e8_rle_crop_3689492320_0.png', 1340054769: '1740711112_2385242_1340053241_09fc7d413b06d61a892fd3fba1c5a73b_rle_crop_3689492199_0.png', 1340054768: '1740711112_2385242_1340053244_717a3185d42a34af30c9249ad1afc380_rle_crop_3689491798_0.png', 1340054767: '1740711112_2385242_1340053246_247c14dc884506989f6395c55f825f2a_bib_crop_3689491789_0.jpg', 1340054766: '1740711112_2385242_1340053284_f4aa0d04850662986c7a31decb093841_rle_crop_3689493603_0.png', 1340054743: '1740711091_2385029_1340053275_3d7a0a38292baf4491c904143e6fdc99_rle_crop_3689493560_0.png', 1340053272: '1740710853_2381305_1340053178_76555bb9f59859825f57f5f47b50c213_rle_crop_3689490877_0.png', 1340054741: '1740711091_2385029_1340053278_8f583207b386dcb0f0c0ee729caaa35a_rle_crop_3689493540_0.png', 1340054671: '1740711072_2384784_1340054130_03cd670965adcb172563bdd0de89fab3_rle_crop_3689493342_0.png', 1340054670: '1740711072_2384784_1340054217_2d7396e88bfe86810db673ee9a0e1a7f_rle_crop_3689492750_0.png', 1340054669: '1740711072_2384784_1340054217_2d7396e88bfe86810db673ee9a0e1a7f_rle_crop_3689492757_0.png', 1340054668: '1740711072_2384784_1340054220_bca2a0c5ab0171127ea71b5c01e7acf4_rle_crop_3689492739_0.png', 1340054634: '1740710973_2383203_1340053237_ada3c5065609ef195413c011914c70e8_rle_crop_3689492320_0.png', 1340054633: '1740710973_2383203_1340053241_09fc7d413b06d61a892fd3fba1c5a73b_rle_crop_3689492199_0.png', 1340054632: '1740710973_2383203_1340053244_717a3185d42a34af30c9249ad1afc380_rle_crop_3689491798_0.png', 1340054631: '1740710973_2383203_1340053246_247c14dc884506989f6395c55f825f2a_rle_crop_3689491789_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/c0c241c44c49b91675701063d3573ec9_43724335.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/22192d9dea077216d02686b393f3880c_8134737.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e9770d7e686874ca619fafc7d636d858_9851292.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/aaf5466a28b680671c98745fd02ea4e3_80953746.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/9f68288e23a5acd1578c1cbf55663ef6_99923046.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/f8a7634c011518ed8af33ff5a85d876f_33299654.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/66e809139fd37034f126d70f47f6aa94_21872917.png change filename to text .wget -O 8.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/331ec4fcf52fe9a7147d0e047c5eada5_67447953.jpg change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/61a23751e6a947b9340457e1f3ac84bc_59106981.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/c2898fa1913127f7bcfcb8d6f3c5485a_57807527.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/642cc7e1c623ff29ad2d17663b72d4d2_80734570.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/f579cb4038996dde6252bdf97cb32e05_7966532.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/514f7e6ea231e55658d3be22293a3ed3_27842492.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/bc12cc0b1b904f89b42a95a9c2704be0_79263680.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/47b0c22d679fb139df4495d3a7df8c17_21106943.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/afb0c688433eeabb1c57de3508f70b35_69933828.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/9f68288e23a5acd1578c1cbf55663ef6_30570338.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/f8a7634c011518ed8af33ff5a85d876f_76071110.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/66e809139fd37034f126d70f47f6aa94_57995862.png change filename to text .imagette209074251740711302/ imagette209074251740711302/1740711211_2386343_1340054601_b3cb405965db31b907801e442d06d1d8_rle_crop_3689494128_0.png.png imagette209074251740711302/1740710973_2383203_1340053244_717a3185d42a34af30c9249ad1afc380_rle_crop_3689491798_0.png.png imagette209074251740711302/1740710973_2383203_1340053241_09fc7d413b06d61a892fd3fba1c5a73b_rle_crop_3689492199_0.png.png imagette209074251740711302/1740711091_2385029_1340053275_3d7a0a38292baf4491c904143e6fdc99_rle_crop_3689493560_0.png.png imagette209074251740711302/1740711091_2385029_1340053278_8f583207b386dcb0f0c0ee729caaa35a_rle_crop_3689493540_0.png.png imagette209074251740711302/1740710973_2383203_1340053246_247c14dc884506989f6395c55f825f2a_rle_crop_3689491789_0.png.png imagette209074251740711302/1740711112_2385242_1340053246_247c14dc884506989f6395c55f825f2a_bib_crop_3689491789_0.jpg.jpg imagette209074251740711302/1740711072_2384784_1340054130_03cd670965adcb172563bdd0de89fab3_rle_crop_3689493342_0.png.png imagette209074251740711302/1740711072_2384784_1340054217_2d7396e88bfe86810db673ee9a0e1a7f_rle_crop_3689492750_0.png.png imagette209074251740711302/1740711211_2386343_1340054640_e68f26b6de885cbce7d0f740066695ab_rle_crop_3689494069_0.png.png imagette209074251740711302/1740711211_2386343_1340054609_a2514b10da1fd3a57669ebd30a58bfda_rle_crop_3689494088_0.png.png imagette209074251740711302/1740711072_2384784_1340054217_2d7396e88bfe86810db673ee9a0e1a7f_rle_crop_3689492757_0.png.png imagette209074251740711302/1740711091_2385029_1340053275_3d7a0a38292baf4491c904143e6fdc99_rle_crop_3689493562_0.png.png imagette209074251740711302/1740711112_2385242_1340053244_717a3185d42a34af30c9249ad1afc380_rle_crop_3689491798_0.png.png imagette209074251740711302/1740710973_2383203_1340053237_ada3c5065609ef195413c011914c70e8_rle_crop_3689492320_0.png.png imagette209074251740711302/1740711112_2385242_1340053241_09fc7d413b06d61a892fd3fba1c5a73b_rle_crop_3689492199_0.png.png imagette209074251740711302/1740711072_2384784_1340054220_bca2a0c5ab0171127ea71b5c01e7acf4_rle_crop_3689492739_0.png.png imagette209074251740711302/1740710853_2381305_1340053178_76555bb9f59859825f57f5f47b50c213_rle_crop_3689490877_0.png.png imagette209074251740711302/1740711112_2385242_1340053237_ada3c5065609ef195413c011914c70e8_rle_crop_3689492320_0.png.png imagette209074251740711302/1740711112_2385242_1340053284_f4aa0d04850662986c7a31decb093841_rle_crop_3689493603_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/4148161d7db1a2a1577dd4e56b697c02_73543959.png imagette209074251740711302 20907430 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=20907430 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340054758: '1740711112_2385242_1340053284_f4aa0d04850662986c7a31decb093841_rle_crop_3689493596_0.png', 1340055082: '1740711211_2386343_1340054601_b3cb405965db31b907801e442d06d1d8_rle_crop_3689494125_0.png', 1340055081: '1740711211_2386343_1340054609_a2514b10da1fd3a57669ebd30a58bfda_rle_crop_3689494089_0.png', 1340055080: '1740711211_2386343_1340054640_e68f26b6de885cbce7d0f740066695ab_rle_crop_3689494067_0.png', 1340054999: '1740711193_2386122_1340054636_7e2e359b6af28f5b48e008dd07d20c17_rle_crop_3689493989_0.png', 1340054998: '1740711193_2386122_1340054637_a292106cf8425302b2e858a135c984f1_rle_crop_3689493836_0.png', 1340054997: '1740711193_2386122_1340054639_589a23d12d1c90cfc566e7491c94f588_rle_crop_3689493831_0.png', 1340054762: '1740711112_2385242_1340053237_ada3c5065609ef195413c011914c70e8_rle_crop_3689492314_0.png', 1340054761: '1740711112_2385242_1340053241_09fc7d413b06d61a892fd3fba1c5a73b_bib_crop_3689492198_0.jpg', 1340054760: '1740711112_2385242_1340053241_09fc7d413b06d61a892fd3fba1c5a73b_rle_crop_3689493632_0.png', 1340053269: '1740710853_2381305_1340053176_2cc6f046e8537bd5511d31c457455da9_rle_crop_3689490891_0.png', 1340054736: '1740711091_2385029_1340053266_0e37c6bd58064fb1302f51a95b3b4425_rle_crop_3689493588_0.png', 1340054735: '1740711091_2385029_1340053273_42d8dfca7c63b5979bad1d7b9d25906c_rle_crop_3689493579_0.png', 1340054734: '1740711091_2385029_1340053278_8f583207b386dcb0f0c0ee729caaa35a_rle_crop_3689493536_0.png', 1340054733: '1740711091_2385029_1340053278_8f583207b386dcb0f0c0ee729caaa35a_rle_crop_3689493537_0.png', 1340054732: '1740711091_2385029_1340054312_02110354cbb38927d451db669dda4c13_rle_crop_3689493057_0.png', 1340054666: '1740711072_2384784_1340054280_70ebc9b01c6c021e63971da412f89260_rle_crop_3689492730_0.png', 1340054626: '1740710973_2383203_1340053237_ada3c5065609ef195413c011914c70e8_rle_crop_3689492314_0.png', 1340054625: '1740710973_2383203_1340053241_09fc7d413b06d61a892fd3fba1c5a73b_rle_crop_3689492198_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/73393f0b9080200fa25f85bede4c6ed9_44937027.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/1d09158ec3299c3d730f3ac815275124_18290223.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/a181b0da0ad7951163d685ee900b13b7_65959769.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e2090a877a60273639aec83129dac996_27010534.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/6dc32d2844081bf74ef6185541891f0c_48273771.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/bfbccf7505048ab84888e31eb716668f_66114187.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/aca5837c1ba1f19eef9121fcfb26f7b9_66698924.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/f39d0b18ce0f592ad388b74e3145c5a7_23269152.png change filename to text .wget -O 9.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/2d9494bb55157524022625a7ec9eb305_37379745.jpg change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/6b084db1f9cc349cfdc83e4168e04228_37146798.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/dc04838f960b03d5e27d1e75b1f8474e_21846041.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/bc8204ccf2a587db5c3f51e000e42dac_27205126.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/af51949451c35ad2f4a03f4bef50128c_18882898.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/0eb3e9c5df0ff3bf6ee094c93a3d4052_66031348.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/6ae591a3385eda0cfd1de4e35d8e7b0c_63502609.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/11acdb6ccb1bc70bd0dd1a6125148aac_4875468.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/9a08e457943fe2dce1aa8112987aa6bc_86194074.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/f39d0b18ce0f592ad388b74e3145c5a7_15717390.png change filename to text .imagette209074301740711304/ imagette209074301740711304/1740711091_2385029_1340053273_42d8dfca7c63b5979bad1d7b9d25906c_rle_crop_3689493579_0.png.png imagette209074301740711304/1740710973_2383203_1340053237_ada3c5065609ef195413c011914c70e8_rle_crop_3689492314_0.png.png imagette209074301740711304/1740711112_2385242_1340053284_f4aa0d04850662986c7a31decb093841_rle_crop_3689493596_0.png.png imagette209074301740711304/1740711091_2385029_1340053266_0e37c6bd58064fb1302f51a95b3b4425_rle_crop_3689493588_0.png.png imagette209074301740711304/1740711211_2386343_1340054609_a2514b10da1fd3a57669ebd30a58bfda_rle_crop_3689494089_0.png.png imagette209074301740711304/1740711112_2385242_1340053241_09fc7d413b06d61a892fd3fba1c5a73b_bib_crop_3689492198_0.jpg.jpg imagette209074301740711304/1740711091_2385029_1340054312_02110354cbb38927d451db669dda4c13_rle_crop_3689493057_0.png.png imagette209074301740711304/1740710853_2381305_1340053176_2cc6f046e8537bd5511d31c457455da9_rle_crop_3689490891_0.png.png imagette209074301740711304/1740711211_2386343_1340054640_e68f26b6de885cbce7d0f740066695ab_rle_crop_3689494067_0.png.png imagette209074301740711304/1740711091_2385029_1340053278_8f583207b386dcb0f0c0ee729caaa35a_rle_crop_3689493536_0.png.png imagette209074301740711304/1740711112_2385242_1340053241_09fc7d413b06d61a892fd3fba1c5a73b_rle_crop_3689493632_0.png.png imagette209074301740711304/1740711211_2386343_1340054601_b3cb405965db31b907801e442d06d1d8_rle_crop_3689494125_0.png.png imagette209074301740711304/1740711072_2384784_1340054280_70ebc9b01c6c021e63971da412f89260_rle_crop_3689492730_0.png.png imagette209074301740711304/1740710973_2383203_1340053241_09fc7d413b06d61a892fd3fba1c5a73b_rle_crop_3689492198_0.png.png imagette209074301740711304/1740711193_2386122_1340054636_7e2e359b6af28f5b48e008dd07d20c17_rle_crop_3689493989_0.png.png imagette209074301740711304/1740711193_2386122_1340054639_589a23d12d1c90cfc566e7491c94f588_rle_crop_3689493831_0.png.png imagette209074301740711304/1740711193_2386122_1340054637_a292106cf8425302b2e858a135c984f1_rle_crop_3689493836_0.png.png imagette209074301740711304/1740711091_2385029_1340053278_8f583207b386dcb0f0c0ee729caaa35a_rle_crop_3689493537_0.png.png imagette209074301740711304/1740711112_2385242_1340053237_ada3c5065609ef195413c011914c70e8_rle_crop_3689492314_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/b8b6d72f6f313dd0b35d192ef7c836a7_22363965.png imagette209074301740711304 20907431 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=20907431 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340053267: '1740710853_2381305_1340053178_76555bb9f59859825f57f5f47b50c213_rle_crop_3689490876_0.png', 1340053268: '1740710853_2381305_1340053176_2cc6f046e8537bd5511d31c457455da9_rle_crop_3689490894_0.png', 1340054623: '1740710973_2383203_1340053244_717a3185d42a34af30c9249ad1afc380_rle_crop_3689491800_0.png', 1340054624: '1740710973_2383203_1340053241_09fc7d413b06d61a892fd3fba1c5a73b_rle_crop_3689492203_0.png', 1340054662: '1740711072_2384784_1340054217_2d7396e88bfe86810db673ee9a0e1a7f_rle_crop_3689492747_0.png', 1340054725: '1740711091_2385029_1340053278_8f583207b386dcb0f0c0ee729caaa35a_rle_crop_3689493546_0.png', 1340054754: '1740711112_2385242_1340053284_f4aa0d04850662986c7a31decb093841_rle_crop_3689493609_0.png', 1340054755: '1740711112_2385242_1340053244_717a3185d42a34af30c9249ad1afc380_rle_crop_3689491800_0.png', 1340054756: '1740711112_2385242_1340053241_09fc7d413b06d61a892fd3fba1c5a73b_rle_crop_3689492203_0.png', 1340055077: '1740711211_2386343_1340054601_b3cb405965db31b907801e442d06d1d8_rle_crop_3689494132_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/69254b961935d8f2257abb41ae5117eb_21068889.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/c6188d8f48e445d9f80a431e38600bcc_15908152.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e42b4cdb3e6816f8eda4658d6c8ce0a6_20031247.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/fd9ec800f6248dfaffb9a7ad2f36302f_74836390.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/4bd5543fa1d6eb18a8a79457edfa0619_79492047.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/43bb05ae1c4d4682c913048bafe265bf_88159516.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/73c5542b8477ca6ea7f4bafcde57a25e_12164134.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e42b4cdb3e6816f8eda4658d6c8ce0a6_70635150.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/fd9ec800f6248dfaffb9a7ad2f36302f_12172027.png change filename to text .imagette209074311740711305/ imagette209074311740711305/1740711112_2385242_1340053284_f4aa0d04850662986c7a31decb093841_rle_crop_3689493609_0.png.png imagette209074311740711305/1740711091_2385029_1340053278_8f583207b386dcb0f0c0ee729caaa35a_rle_crop_3689493546_0.png.png imagette209074311740711305/1740711112_2385242_1340053241_09fc7d413b06d61a892fd3fba1c5a73b_rle_crop_3689492203_0.png.png imagette209074311740711305/1740710973_2383203_1340053241_09fc7d413b06d61a892fd3fba1c5a73b_rle_crop_3689492203_0.png.png imagette209074311740711305/1740710853_2381305_1340053176_2cc6f046e8537bd5511d31c457455da9_rle_crop_3689490894_0.png.png imagette209074311740711305/1740711072_2384784_1340054217_2d7396e88bfe86810db673ee9a0e1a7f_rle_crop_3689492747_0.png.png imagette209074311740711305/1740710853_2381305_1340053178_76555bb9f59859825f57f5f47b50c213_rle_crop_3689490876_0.png.png imagette209074311740711305/1740711112_2385242_1340053244_717a3185d42a34af30c9249ad1afc380_rle_crop_3689491800_0.png.png imagette209074311740711305/1740710973_2383203_1340053244_717a3185d42a34af30c9249ad1afc380_rle_crop_3689491800_0.png.png imagette209074311740711305/1740711211_2386343_1340054601_b3cb405965db31b907801e442d06d1d8_rle_crop_3689494132_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/35b57b9c3b8493fc1f9e9060b1e57722_98432353.png imagette209074311740711305 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20907421 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20907452,20907455,20907459,20907462,20907464,20907465,20907466,20907467,20907468,20907469,20907470,20907471?tags=autre_refus,Carton_brun,kraft,plastique,flou,metal,Carton_gris,Teint_Dans_La_Masse,mal_croppe,environnement,papier,cartonnette your option no_mail is active, we will not send the real mail to your client args[1340054774] : ('0.13499738841393802',) no score found for photo 1340054774 We are sending mail with results at report@fotonower.com args[1340054765] : ('0.13499738841393802',) no score found for photo 1340054765 We are sending mail with results at report@fotonower.com args[1340054759] : ('0.13499738841393802',) no score found for photo 1340054759 We are sending mail with results at report@fotonower.com args[1340054757] : ('0.13499738841393802',) no score found for photo 1340054757 We are sending mail with results at report@fotonower.com args[1340054739] : ('0.13499738841393802',) no score found for photo 1340054739 We are sending mail with results at report@fotonower.com args[1340054726] : ('0.13499738841393802',) no score found for photo 1340054726 We are sending mail with results at report@fotonower.com args[1340054723] : ('0.13499738841393802',) no score found for photo 1340054723 We are sending mail with results at report@fotonower.com args[1340054672] : ('0.13499738841393802',) no score found for photo 1340054672 We are sending mail with results at report@fotonower.com args[1340054663] : ('0.13499738841393802',) no score found for photo 1340054663 We are sending mail with results at report@fotonower.com args[1340054661] : ('0.13499738841393802',) no score found for photo 1340054661 We are sending mail with results at report@fotonower.com refus_total : 0.13499738841393802 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=20907421 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_P20907421_28-02-2025_03_55_00.pdf results_Auto_P20907421_28-02-2025_03_55_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20907421_28-02-2025_03_55_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','20907421','results_Auto_P20907421_28-02-2025_03_55_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20907421_28-02-2025_03_55_00.pdf','pdf','','0.38','0.13499738841393802') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20907421]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340054774, 1340054765, 1340054759, 1340054757, 1340054739, 1340054726, 1340054723, 1340054672, 1340054663, 1340054661] map_info['map_portfolio_photo'] : {20907421: [1340054774, 1340054765, 1340054759, 1340054757, 1340054739, 1340054726, 1340054723, 1340054672, 1340054663, 1340054661, 1340054640, 1340054639, 1340054637, 1340054636, 1340054613, 1340054609, 1340054601, 1340054536, 1340054503, 1340054312, 1340054280, 1340054220, 1340054217, 1340054213, 1340054130, 1340053284, 1340053278, 1340053275, 1340053273, 1340053266, 1340053249, 1340053246, 1340053244, 1340053241, 1340053239, 1340053237, 1340053178, 1340053176]} final : False mtd_id 4302 list_pids : [1340054774, 1340054765, 1340054759, 1340054757, 1340054739, 1340054726, 1340054723, 1340054672, 1340054663, 1340054661] 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, '2621970') ('4302', '20907421', '1340054774', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054765', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054759', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054757', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054739', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054726', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054723', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054672', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054663', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054661', None, None, None, None, None, '2621970') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20907421', '1340054774', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054765', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054759', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054757', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054739', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054726', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054723', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054672', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054663', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054661', None, None, None, None, None, '2621970')] time used for this insertion : 0.01652812957763672 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.358269691467285 time spend to save output : 0.01678752899169922 total time spend for step 4 : 7.375057220458984 step5:split_time_score Fri Feb 28 03:55:07 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 : ['20907421'] 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 : [('20907421',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20907421) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340054774: {'path': 'temp/1740711300_2816236_1340054774_d1444c6fc5640eead0edfa0e3406058a.jpg', 'extension': 'jpg'}, 1340054757: {'path': 'temp/1740711300_2816236_1340054757_6c0b810a3227b8a27bd71abd87e81665.jpg', 'extension': 'jpg'}, 1340054759: {'path': 'temp/1740711300_2816236_1340054759_4e91ac79d2ba6f595065bbed256c8dba.jpg', 'extension': 'jpg'}, 1340054765: {'path': 'temp/1740711300_2816236_1340054765_67e7ea360d648b6ac7f9eb201d38f3ac.jpg', 'extension': 'jpg'}, 1340054661: {'path': 'temp/1740711300_2816236_1340054661_ac982ec7a6e9dd67076f74770570d606.jpg', 'extension': 'jpg'}, 1340054663: {'path': 'temp/1740711300_2816236_1340054663_3a1e017369e4193af33420f88ede0738.jpg', 'extension': 'jpg'}, 1340054672: {'path': 'temp/1740711300_2816236_1340054672_592c0d4f9e6970bd990d4dc653a292fb.jpg', 'extension': 'jpg'}, 1340054723: {'path': 'temp/1740711300_2816236_1340054723_f5d7bd72c32f7ed99db63696cbf2c91d.jpg', 'extension': 'jpg'}, 1340054726: {'path': 'temp/1740711300_2816236_1340054726_77edc9595c896bfcae8758f913c6db80.jpg', 'extension': 'jpg'}, 1340054739: {'path': 'temp/1740711300_2816236_1340054739_7cc5cc49a5f75e72e9885d9c7d25edcf.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 = 20907421; (('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 = 20907421 group by h (('03', 38),) 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=20907421 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 (20907421) 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 (20907421) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28022025 20907421 Nombre de photos uploadées : 38 / 23040 (0%) 28022025 20907421 Nombre de photos taguées (types de déchets): 0 / 38 (0%) 28022025 20907421 Nombre de photos taguées (volume) : 0 / 38 (0%) [{'photo_id': 1340053178, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/76555bb9f59859825f57f5f47b50c213.jpg', 'username': None, 'uploaded_at': 1740710771, 'text': 'image_28022025_03_45_03_10148.jpg'}, {'photo_id': 1340053176, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/2cc6f046e8537bd5511d31c457455da9.jpg', 'username': None, 'uploaded_at': 1740710771, 'text': 'image_28022025_03_45_24_10142.jpg'}, {'photo_id': 1340053249, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/db542a5db48589593b6221814acaaab5.jpg', 'username': None, 'uploaded_at': 1740710831, 'text': 'image_28022025_03_45_33_9134.jpg'}, {'photo_id': 1340053246, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/247c14dc884506989f6395c55f825f2a.jpg', 'username': None, 'uploaded_at': 1740710831, 'text': 'image_28022025_03_46_03_10145.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017604827880859375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20907421, '2025-02-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1629471,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.029169559478759766 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= 1629471 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1629471, 'dashboard_run_id': 1637371, 'mtr_portfolio_id': 20905347, 'dashboard_result_id': 9120213, '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_P20905347_28-02-2025_03_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20905378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20905379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20905380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20905381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20905382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20905383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20905384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20905385, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20905386, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20905387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20905388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20905389, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1637371, 'mtr_portfolio_id': 20906134, 'dashboard_result_id': 9120214, '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_P20906134_28-02-2025_03_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20906225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20906226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20906227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20906228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20906229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20906230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20906231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20906232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20906233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20906234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20906235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20906236, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1637371, 'mtr_portfolio_id': 20907055, 'dashboard_result_id': 9120215, '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_P20907055_28-02-2025_03_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20907059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20907060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20907061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20907062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20907063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20907064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20907065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20907066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20907067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20907068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20907069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20907070, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1637371, 'mtr_portfolio_id': 20907421, 'dashboard_result_id': 9120216, '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_P20907421_28-02-2025_03_52_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20907424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20907425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20907426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20907427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20907428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20907429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20907430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20907431, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20907432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20907433, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20907434, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20907435, '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 = 20905347 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': 2621833, 'mtr_portfolio_id': 20905347, 'created_at': datetime.datetime(2025, 2, 28, 3, 18, 58), 'result': '0.11636859519840724', 'result_long': None, 'result_double': None}] Qualite : 0.11636859519840724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20905347 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20905347_28-02-2025_03_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20905347 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_P20905347_28-02-2025_03_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20905378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20905379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20905380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20905381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20905382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20905383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20905384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20905385, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20905386, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20905387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20905388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20905389, 'pht': 3726}}" where mtr_portfolio_id = 20905347 and dashboard_run_id = 1637371 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`=20905347 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9120213, 0.11636859519840724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20905347_28-02-2025_03_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20905378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20905379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20905380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20905381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20905382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20905383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20905384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20905385, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20905386, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20905387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20905388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20905389, '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 = 20906134 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': 2621897, 'mtr_portfolio_id': 20906134, 'created_at': datetime.datetime(2025, 2, 28, 3, 35), 'result': '0.10289746261654546', 'result_long': None, 'result_double': None}] Qualite : 0.10289746261654546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20906134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20906134_28-02-2025_03_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20906134 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_P20906134_28-02-2025_03_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20906225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20906226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20906227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20906228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20906229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20906230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20906231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20906232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20906233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20906234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20906235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20906236, 'pht': 3726}}" where mtr_portfolio_id = 20906134 and dashboard_run_id = 1637371 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`=20906134 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9120214, 0.10289746261654546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20906134_28-02-2025_03_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20906225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20906226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20906227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20906228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20906229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20906230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20906231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20906232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20906233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20906234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20906235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20906236, '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 = 20907055 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': 2621944, 'mtr_portfolio_id': 20907055, 'created_at': datetime.datetime(2025, 2, 28, 3, 46, 58), 'result': '0.11183913044676853', 'result_long': None, 'result_double': None}] Qualite : 0.11183913044676853 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20907055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20907055_28-02-2025_03_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20907055 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_P20907055_28-02-2025_03_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20907059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20907060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20907061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20907062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20907063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20907064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20907065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20907066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20907067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20907068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20907069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20907070, 'pht': 3726}}" where mtr_portfolio_id = 20907055 and dashboard_run_id = 1637371 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`=20907055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9120215, 0.11183913044676853, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20907055_28-02-2025_03_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20907059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20907060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20907061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20907062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20907063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20907064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20907065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20907066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20907067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20907068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20907069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20907070, '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 = 20907421 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': 2621970, 'mtr_portfolio_id': 20907421, 'created_at': datetime.datetime(2025, 2, 28, 3, 55), 'result': '0.13499738841393802', 'result_long': None, 'result_double': None}] Qualite : 0.13499738841393802 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20907421 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20907421_28-02-2025_03_55_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20907421 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_P20907421_28-02-2025_03_55_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20907424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20907425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20907426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20907427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20907428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20907429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20907430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20907431, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20907432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20907433, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20907434, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20907435, 'pht': 3726}}" where mtr_portfolio_id = 20907421 and dashboard_run_id = 1637371 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`=20907421 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9120216, 0.13499738841393802, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20907421_28-02-2025_03_55_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20907424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20907425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20907426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20907427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20907428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20907429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20907430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20907431, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20907432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20907433, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20907434, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20907435, '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 (20905347,20906134,20907055,20907421) result : ((1340045642,), (1340045648,), (1340045657,), (1340045660,), (1340045822,), (1340045824,), (1340045826,), (1340045828,), (1340045831,), (1340045833,), (1340045847,), (1340045851,), (1340045856,), (1340045861,), (1340045865,), (1340045873,), (1340045875,), (1340045877,), (1340045880,), (1340045883,), (1340045885,), (1340045964,), (1340046009,), (1340046139,), (1340046210,), (1340046338,), (1340046421,), (1340046603,), (1340046605,), (1340046607,), (1340046617,), (1340046646,), (1340046679,), (1340046681,), (1340046727,), (1340046796,), (1340046863,), (1340046893,), (1340047031,), (1340047088,), (1340047091,), (1340047093,), (1340047120,), (1340047122,), (1340047134,), (1340047140,), (1340047151,), (1340047156,), (1340047178,), (1340047180,), (1340047182,), (1340047190,), (1340047207,), (1340047210,), (1340047214,), (1340047218,), (1340047222,), (1340047238,), (1340047240,), (1340047242,), (1340047245,), (1340047248,), (1340047260,), (1340047310,), (1340047312,), (1340047314,), (1340047316,), (1340047718,), (1340047720,), (1340047728,), (1340047737,), (1340047740,), (1340047741,), (1340047958,), (1340047960,), (1340047974,), (1340048044,), (1340048113,), (1340048240,), (1340048133,), (1340048135,), (1340048137,), (1340048142,), (1340048224,), (1340048515,), (1340048529,), (1340048537,), (1340048540,), (1340048581,), (1340049011,), (1340049028,), (1340049032,), (1340049035,), (1340049054,), (1340049186,), (1340049187,), (1340049199,), (1340049220,), (1340049225,), (1340049239,), (1340049287,), (1340049288,), (1340049299,), (1340049311,), (1340049325,), (1340049353,), (1340049355,), (1340049358,), (1340049360,), (1340049392,), (1340049393,), (1340049394,), (1340049396,), (1340049402,), (1340049465,), (1340049486,), (1340049499,), (1340049510,), (1340049515,), (1340049520,), (1340049566,), (1340049568,), (1340049570,), (1340049572,), (1340049653,), (1340049701,), (1340049758,), (1340049796,), (1340049861,), (1340049942,), (1340050133,), (1340050141,), (1340050152,), (1340050155,), (1340050593,), (1340050599,), (1340050639,), (1340050653,), (1340050656,), (1340050712,), (1340050714,), (1340050716,), (1340050719,), (1340050722,), (1340050774,), (1340050778,), (1340050784,), (1340050868,), (1340050895,), (1340050903,), (1340051537,), (1340051534,), (1340051548,), (1340051550,), (1340051553,), (1340051555,), (1340051560,), (1340051565,), (1340051571,), (1340051595,), (1340051646,), (1340051712,), (1340051737,), (1340051893,), (1340051899,), (1340052263,), (1340052265,), (1340052267,), (1340052270,), (1340052293,), (1340052295,), (1340052297,), (1340052300,), (1340052400,), (1340052407,), (1340052497,), (1340052501,), (1340052504,), (1340052505,), (1340052628,), (1340052630,), (1340052632,), (1340052635,), (1340052641,), (1340052650,), (1340052652,), (1340052655,), (1340052658,), (1340052660,), (1340052664,), (1340052670,), (1340052680,), (1340052694,), (1340052703,), (1340052715,), (1340052718,), (1340052749,), (1340052838,), (1340053184,), (1340053176,), (1340053178,), (1340053237,), (1340053239,), (1340053241,), (1340053244,), (1340053246,), (1340053249,), (1340053266,), (1340053273,), (1340053275,), (1340053278,), (1340053284,), (1340054130,), (1340054213,), (1340054217,), (1340054220,), (1340054280,), (1340054312,), (1340054503,), (1340054536,), (1340054601,), (1340054609,), (1340054613,), (1340054636,), (1340054637,), (1340054639,), (1340054640,), (1340054661,), (1340054663,), (1340054672,), (1340054723,), (1340054726,), (1340054739,), (1340054757,), (1340054759,), (1340054765,), (1340054774,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28022025': {'nb_upload': 38, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20907421]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340054774, 1340054765, 1340054759, 1340054757, 1340054739, 1340054726, 1340054723, 1340054672, 1340054663, 1340054661] map_info['map_portfolio_photo'] : {20907421: [1340054774, 1340054765, 1340054759, 1340054757, 1340054739, 1340054726, 1340054723, 1340054672, 1340054663, 1340054661, 1340054640, 1340054639, 1340054637, 1340054636, 1340054613, 1340054609, 1340054601, 1340054536, 1340054503, 1340054312, 1340054280, 1340054220, 1340054217, 1340054213, 1340054130, 1340053284, 1340053278, 1340053275, 1340053273, 1340053266, 1340053249, 1340053246, 1340053244, 1340053241, 1340053239, 1340053237, 1340053178, 1340053176]} final : True mtd_id 4302 list_pids : [1340054774, 1340054765, 1340054759, 1340054757, 1340054739, 1340054726, 1340054723, 1340054672, 1340054663, 1340054661] Looping around the photos to save general results len do output : 1 /20907421Didn'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, '2621970') ('4302', '20907421', '1340054774', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054765', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054759', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054757', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054739', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054726', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054723', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054672', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054663', None, None, None, None, None, '2621970') ('4302', None, None, None, None, None, None, None, '2621970') ('4302', '20907421', '1340054661', None, None, None, None, None, '2621970') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20907421', 'None', None, None, None, None, '2621970'), ('4302', '20907421', '1340054774', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054765', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054759', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054757', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054739', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054726', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054723', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054672', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054663', None, None, None, None, None, '2621970'), ('4302', '20907421', '1340054661', None, None, None, None, None, '2621970')] time used for this insertion : 0.04958963394165039 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.35801243782043457 time spend to save output : 0.049807071685791016 total time spend for step 5 : 0.4078195095062256 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 (2621970) 2.34user 2.49system 0:13.19elapsed 36%CPU (0avgtext+0avgdata 163432maxresident)k 96inputs+21576outputs (19major+76123minor)pagefaults 0swaps