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 : 227841 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 (2725402) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2725402) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070661 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2725402'] with mtr_portfolio_ids : ['22070661'] and first list_photo_ids : [] new path : /proc/227841/ Name: python3 Umask: 0002 State: R (running) Tgid: 227841 Ngid: 0 Pid: 227841 PPid: 227840 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 227841 NSpid: 227841 NSpgid: 223602 NSsid: 223602 VmPeak: 1106828 kB VmSize: 1106828 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98528 kB VmRSS: 98528 kB RssAnon: 59780 kB RssFile: 38748 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 49 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '227841', 'Ngid': '0', 'Pid': '227841', 'PPid': '227840', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '227841', 'NSpid': '227841', 'NSpgid': '223602', 'NSsid': '223602', 'VmPeak': '1106828 kB', 'VmSize': '1106828 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98528 kB', 'VmRSS': '98528 kB', 'RssAnon': '59780 kB', 'RssFile': '38748 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '49', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '227841', '1106828', '0', '1106828', '865576', '98528', b'', 'marlene', '2725402') 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 (22070661) 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 (2725402 ) ) 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 (22070661) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350218728, 'portfolio_id': 22070661}, {'photo_id': 1350218719, 'portfolio_id': 22070661}, {'photo_id': 1350218714, 'portfolio_id': 22070661}, {'photo_id': 1350218704, 'portfolio_id': 22070661}, {'photo_id': 1350218697, 'portfolio_id': 22070661}, {'photo_id': 1350218632, 'portfolio_id': 22070661}, {'photo_id': 1350218628, 'portfolio_id': 22070661}, {'photo_id': 1350218624, 'portfolio_id': 22070661}, {'photo_id': 1350218619, 'portfolio_id': 22070661}, {'photo_id': 1350218578, 'portfolio_id': 22070661}, {'photo_id': 1350218573, 'portfolio_id': 22070661}, {'photo_id': 1350218571, 'portfolio_id': 22070661}, {'photo_id': 1350218552, 'portfolio_id': 22070661}, {'photo_id': 1350218548, 'portfolio_id': 22070661}, {'photo_id': 1350218544, 'portfolio_id': 22070661}, {'photo_id': 1350218481, 'portfolio_id': 22070661}, {'photo_id': 1350218477, 'portfolio_id': 22070661}, {'photo_id': 1350218473, 'portfolio_id': 22070661}, {'photo_id': 1350218471, 'portfolio_id': 22070661}, {'photo_id': 1350218437, 'portfolio_id': 22070661}, {'photo_id': 1350218427, 'portfolio_id': 22070661}, {'photo_id': 1350218422, 'portfolio_id': 22070661}, {'photo_id': 1350218418, 'portfolio_id': 22070661}, {'photo_id': 1350218414, 'portfolio_id': 22070661}, {'photo_id': 1350218408, 'portfolio_id': 22070661}, {'photo_id': 1350218343, 'portfolio_id': 22070661}, {'photo_id': 1350218336, 'portfolio_id': 22070661}, {'photo_id': 1350218324, 'portfolio_id': 22070661}, {'photo_id': 1350218312, 'portfolio_id': 22070661}, {'photo_id': 1350218299, 'portfolio_id': 22070661}, {'photo_id': 1350218151, 'portfolio_id': 22070661}, {'photo_id': 1350218147, 'portfolio_id': 22070661}, {'photo_id': 1350218139, 'portfolio_id': 22070661}, {'photo_id': 1350218123, 'portfolio_id': 22070661}, {'photo_id': 1350218118, 'portfolio_id': 22070661}, {'photo_id': 1350218090, 'portfolio_id': 22070661}, {'photo_id': 1350218087, 'portfolio_id': 22070661}, {'photo_id': 1350218082, 'portfolio_id': 22070661}, {'photo_id': 1350218077, 'portfolio_id': 22070661}, {'photo_id': 1350218072, 'portfolio_id': 22070661}, {'photo_id': 1350218068, 'portfolio_id': 22070661}, {'photo_id': 1350217873, 'portfolio_id': 22070661}, {'photo_id': 1350217867, 'portfolio_id': 22070661}, {'photo_id': 1350217861, 'portfolio_id': 22070661}, {'photo_id': 1350217816, 'portfolio_id': 22070661}, {'photo_id': 1350217812, 'portfolio_id': 22070661}, {'photo_id': 1350217806, 'portfolio_id': 22070661}, {'photo_id': 1350217802, 'portfolio_id': 22070661}, {'photo_id': 1350217798, 'portfolio_id': 22070661}, {'photo_id': 1350217793, 'portfolio_id': 22070661}, {'photo_id': 1350217746, 'portfolio_id': 22070661}, {'photo_id': 1350217741, 'portfolio_id': 22070661}, {'photo_id': 1350217735, 'portfolio_id': 22070661}, {'photo_id': 1350217730, 'portfolio_id': 22070661}] map_portfolio_id_photo_id: {22070661: [1350218728, 1350218719, 1350218714, 1350218704, 1350218697, 1350218632, 1350218628, 1350218624, 1350218619, 1350218578, 1350218573, 1350218571, 1350218552, 1350218548, 1350218544, 1350218481, 1350218477, 1350218473, 1350218471, 1350218437, 1350218427, 1350218422, 1350218418, 1350218414, 1350218408, 1350218343, 1350218336, 1350218324, 1350218312, 1350218299, 1350218151, 1350218147, 1350218139, 1350218123, 1350218118, 1350218090, 1350218087, 1350218082, 1350218077, 1350218072, 1350218068, 1350217873, 1350217867, 1350217861, 1350217816, 1350217812, 1350217806, 1350217802, 1350217798, 1350217793, 1350217746, 1350217741, 1350217735, 1350217730]} ##### 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.013377904891967773 #### 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 Wed Apr 16 10:26:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22070661) 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 : 22070661 get user id for portfolio 22070661 get sub ptf for main ptf 22070661, type 3726 and hashtags ['kraft', 'plastique', 'metal', 'papier', 'Carton_brun', 'environnement', 'Teint_Dans_La_Masse', 'Carton_gris', 'mal_croppe', 'autre_refus', 'flou', 'cartonnette'] 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`=22070661 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','plastique','metal','papier','Carton_brun','environnement','Teint_Dans_La_Masse','Carton_gris','mal_croppe','autre_refus','flou','cartonnette')) 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`=22070661 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','plastique','metal','papier','Carton_brun','environnement','Teint_Dans_La_Masse','Carton_gris','mal_croppe','autre_refus','flou','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22070661, 'sub_port_id': 22070665, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558951, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 18, 58)}, 'environnement': {'main_port_id': 22070661, 'sub_port_id': 22070666, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558952, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 18, 58)}, 'plastique': {'main_port_id': 22070661, 'sub_port_id': 22070667, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558953, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 18, 58)}, 'kraft': {'main_port_id': 22070661, 'sub_port_id': 22070668, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558954, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 18, 58)}, 'mal_croppe': {'main_port_id': 22070661, 'sub_port_id': 22070669, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558955, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 18, 58)}, 'metal': {'main_port_id': 22070661, 'sub_port_id': 22070670, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558956, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 18, 58)}, 'flou': {'main_port_id': 22070661, 'sub_port_id': 22070671, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558957, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 18, 58)}, 'Carton_brun': {'main_port_id': 22070661, 'sub_port_id': 22070672, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558958, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 18, 58)}, 'autre_refus': {'main_port_id': 22070661, 'sub_port_id': 22070673, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558959, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 18, 58)}, 'cartonnette': {'main_port_id': 22070661, 'sub_port_id': 22070674, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558960, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 18, 58)}, 'Carton_gris': {'main_port_id': 22070661, 'sub_port_id': 22070675, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558961, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 18, 58)}, 'papier': {'main_port_id': 22070661, 'sub_port_id': 22070676, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558962, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 18, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22070665 , 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=22070661 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 (22070665) result : ((1350218103,), (1350218104,), (1350218124,), (1350218125,), (1350218386,), (1350218674,), (1350218700,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070661) result : ((1350217730,), (1350217735,), (1350217741,), (1350217746,), (1350217793,), (1350217798,), (1350217802,), (1350217806,), (1350217812,), (1350217816,), (1350217861,), (1350217867,), (1350217873,), (1350218068,), (1350218072,), (1350218077,), (1350218082,), (1350218087,), (1350218090,), (1350218118,), (1350218123,), (1350218139,), (1350218147,), (1350218151,), (1350218299,), (1350218312,), (1350218324,), (1350218336,), (1350218343,), (1350218408,), (1350218414,), (1350218418,), (1350218422,), (1350218427,), (1350218437,), (1350218471,), (1350218473,), (1350218477,), (1350218481,), (1350218544,), (1350218548,), (1350218552,), (1350218571,), (1350218573,), (1350218578,), (1350218619,), (1350218624,), (1350218628,), (1350218632,), (1350218697,), (1350218704,), (1350218714,), (1350218719,), (1350218728,)) 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 22070666 , 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=22070661 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 (22070666) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070661) result : ((1350217730,), (1350217735,), (1350217741,), (1350217746,), (1350217793,), (1350217798,), (1350217802,), (1350217806,), (1350217812,), (1350217816,), (1350217861,), (1350217867,), (1350217873,), (1350218068,), (1350218072,), (1350218077,), (1350218082,), (1350218087,), (1350218090,), (1350218118,), (1350218123,), (1350218139,), (1350218147,), (1350218151,), (1350218299,), (1350218312,), (1350218324,), (1350218336,), (1350218343,), (1350218408,), (1350218414,), (1350218418,), (1350218422,), (1350218427,), (1350218437,), (1350218471,), (1350218473,), (1350218477,), (1350218481,), (1350218544,), (1350218548,), (1350218552,), (1350218571,), (1350218573,), (1350218578,), (1350218619,), (1350218624,), (1350218628,), (1350218632,), (1350218697,), (1350218704,), (1350218714,), (1350218719,), (1350218728,)) 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 22070667 , 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=22070661 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 (22070667) result : ((1350218444,), (1350218713,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070661) result : ((1350217730,), (1350217735,), (1350217741,), (1350217746,), (1350217793,), (1350217798,), (1350217802,), (1350217806,), (1350217812,), (1350217816,), (1350217861,), (1350217867,), (1350217873,), (1350218068,), (1350218072,), (1350218077,), (1350218082,), (1350218087,), (1350218090,), (1350218118,), (1350218123,), (1350218139,), (1350218147,), (1350218151,), (1350218299,), (1350218312,), (1350218324,), (1350218336,), (1350218343,), (1350218408,), (1350218414,), (1350218418,), (1350218422,), (1350218427,), (1350218437,), (1350218471,), (1350218473,), (1350218477,), (1350218481,), (1350218544,), (1350218548,), (1350218552,), (1350218571,), (1350218573,), (1350218578,), (1350218619,), (1350218624,), (1350218628,), (1350218632,), (1350218697,), (1350218704,), (1350218714,), (1350218719,), (1350218728,)) 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 22070668 , 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=22070661 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 (22070668) result : ((1350218715,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070661) result : ((1350217730,), (1350217735,), (1350217741,), (1350217746,), (1350217793,), (1350217798,), (1350217802,), (1350217806,), (1350217812,), (1350217816,), (1350217861,), (1350217867,), (1350217873,), (1350218068,), (1350218072,), (1350218077,), (1350218082,), (1350218087,), (1350218090,), (1350218118,), (1350218123,), (1350218139,), (1350218147,), (1350218151,), (1350218299,), (1350218312,), (1350218324,), (1350218336,), (1350218343,), (1350218408,), (1350218414,), (1350218418,), (1350218422,), (1350218427,), (1350218437,), (1350218471,), (1350218473,), (1350218477,), (1350218481,), (1350218544,), (1350218548,), (1350218552,), (1350218571,), (1350218573,), (1350218578,), (1350218619,), (1350218624,), (1350218628,), (1350218632,), (1350218697,), (1350218704,), (1350218714,), (1350218719,), (1350218728,)) 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 22070669 , 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=22070661 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 (22070669) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070661) result : ((1350217730,), (1350217735,), (1350217741,), (1350217746,), (1350217793,), (1350217798,), (1350217802,), (1350217806,), (1350217812,), (1350217816,), (1350217861,), (1350217867,), (1350217873,), (1350218068,), (1350218072,), (1350218077,), (1350218082,), (1350218087,), (1350218090,), (1350218118,), (1350218123,), (1350218139,), (1350218147,), (1350218151,), (1350218299,), (1350218312,), (1350218324,), (1350218336,), (1350218343,), (1350218408,), (1350218414,), (1350218418,), (1350218422,), (1350218427,), (1350218437,), (1350218471,), (1350218473,), (1350218477,), (1350218481,), (1350218544,), (1350218548,), (1350218552,), (1350218571,), (1350218573,), (1350218578,), (1350218619,), (1350218624,), (1350218628,), (1350218632,), (1350218697,), (1350218704,), (1350218714,), (1350218719,), (1350218728,)) 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 22070670 , 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=22070661 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 (22070670) result : ((1350218145,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070661) result : ((1350217730,), (1350217735,), (1350217741,), (1350217746,), (1350217793,), (1350217798,), (1350217802,), (1350217806,), (1350217812,), (1350217816,), (1350217861,), (1350217867,), (1350217873,), (1350218068,), (1350218072,), (1350218077,), (1350218082,), (1350218087,), (1350218090,), (1350218118,), (1350218123,), (1350218139,), (1350218147,), (1350218151,), (1350218299,), (1350218312,), (1350218324,), (1350218336,), (1350218343,), (1350218408,), (1350218414,), (1350218418,), (1350218422,), (1350218427,), (1350218437,), (1350218471,), (1350218473,), (1350218477,), (1350218481,), (1350218544,), (1350218548,), (1350218552,), (1350218571,), (1350218573,), (1350218578,), (1350218619,), (1350218624,), (1350218628,), (1350218632,), (1350218697,), (1350218704,), (1350218714,), (1350218719,), (1350218728,)) 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 22070671 , 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=22070661 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 (22070671) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070661) result : ((1350217730,), (1350217735,), (1350217741,), (1350217746,), (1350217793,), (1350217798,), (1350217802,), (1350217806,), (1350217812,), (1350217816,), (1350217861,), (1350217867,), (1350217873,), (1350218068,), (1350218072,), (1350218077,), (1350218082,), (1350218087,), (1350218090,), (1350218118,), (1350218123,), (1350218139,), (1350218147,), (1350218151,), (1350218299,), (1350218312,), (1350218324,), (1350218336,), (1350218343,), (1350218408,), (1350218414,), (1350218418,), (1350218422,), (1350218427,), (1350218437,), (1350218471,), (1350218473,), (1350218477,), (1350218481,), (1350218544,), (1350218548,), (1350218552,), (1350218571,), (1350218573,), (1350218578,), (1350218619,), (1350218624,), (1350218628,), (1350218632,), (1350218697,), (1350218704,), (1350218714,), (1350218719,), (1350218728,)) 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 22070672 , 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=22070661 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 (22070672) result : ((1350218142,), (1350218143,), (1350218682,), (1350218683,), (1350218710,), (1350218711,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070661) result : ((1350217730,), (1350217735,), (1350217741,), (1350217746,), (1350217793,), (1350217798,), (1350217802,), (1350217806,), (1350217812,), (1350217816,), (1350217861,), (1350217867,), (1350217873,), (1350218068,), (1350218072,), (1350218077,), (1350218082,), (1350218087,), (1350218090,), (1350218118,), (1350218123,), (1350218139,), (1350218147,), (1350218151,), (1350218299,), (1350218312,), (1350218324,), (1350218336,), (1350218343,), (1350218408,), (1350218414,), (1350218418,), (1350218422,), (1350218427,), (1350218437,), (1350218471,), (1350218473,), (1350218477,), (1350218481,), (1350218544,), (1350218548,), (1350218552,), (1350218571,), (1350218573,), (1350218578,), (1350218619,), (1350218624,), (1350218628,), (1350218632,), (1350218697,), (1350218704,), (1350218714,), (1350218719,), (1350218728,)) 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 22070673 , 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=22070661 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 (22070673) result : ((1350218127,), (1350218388,), (1350218389,), (1350218390,), (1350218675,), (1350218676,), (1350218702,), (1350218703,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070661) result : ((1350217730,), (1350217735,), (1350217741,), (1350217746,), (1350217793,), (1350217798,), (1350217802,), (1350217806,), (1350217812,), (1350217816,), (1350217861,), (1350217867,), (1350217873,), (1350218068,), (1350218072,), (1350218077,), (1350218082,), (1350218087,), (1350218090,), (1350218118,), (1350218123,), (1350218139,), (1350218147,), (1350218151,), (1350218299,), (1350218312,), (1350218324,), (1350218336,), (1350218343,), (1350218408,), (1350218414,), (1350218418,), (1350218422,), (1350218427,), (1350218437,), (1350218471,), (1350218473,), (1350218477,), (1350218481,), (1350218544,), (1350218548,), (1350218552,), (1350218571,), (1350218573,), (1350218578,), (1350218619,), (1350218624,), (1350218628,), (1350218632,), (1350218697,), (1350218704,), (1350218714,), (1350218719,), (1350218728,)) 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 22070674 , 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=22070661 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 (22070674) result : ((1350218135,), (1350218136,), (1350218137,), (1350218138,), (1350218393,), (1350218394,), (1350218705,), (1350218706,), (1350218794,), (1350218795,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070661) result : ((1350217730,), (1350217735,), (1350217741,), (1350217746,), (1350217793,), (1350217798,), (1350217802,), (1350217806,), (1350217812,), (1350217816,), (1350217861,), (1350217867,), (1350217873,), (1350218068,), (1350218072,), (1350218077,), (1350218082,), (1350218087,), (1350218090,), (1350218118,), (1350218123,), (1350218139,), (1350218147,), (1350218151,), (1350218299,), (1350218312,), (1350218324,), (1350218336,), (1350218343,), (1350218408,), (1350218414,), (1350218418,), (1350218422,), (1350218427,), (1350218437,), (1350218471,), (1350218473,), (1350218477,), (1350218481,), (1350218544,), (1350218548,), (1350218552,), (1350218571,), (1350218573,), (1350218578,), (1350218619,), (1350218624,), (1350218628,), (1350218632,), (1350218697,), (1350218704,), (1350218714,), (1350218719,), (1350218728,)) 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 22070675 , 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=22070661 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 (22070675) result : ((1350218130,), (1350218132,), (1350218133,), (1350218392,), (1350218678,), (1350218679,), (1350218680,), (1350218792,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070661) result : ((1350217730,), (1350217735,), (1350217741,), (1350217746,), (1350217793,), (1350217798,), (1350217802,), (1350217806,), (1350217812,), (1350217816,), (1350217861,), (1350217867,), (1350217873,), (1350218068,), (1350218072,), (1350218077,), (1350218082,), (1350218087,), (1350218090,), (1350218118,), (1350218123,), (1350218139,), (1350218147,), (1350218151,), (1350218299,), (1350218312,), (1350218324,), (1350218336,), (1350218343,), (1350218408,), (1350218414,), (1350218418,), (1350218422,), (1350218427,), (1350218437,), (1350218471,), (1350218473,), (1350218477,), (1350218481,), (1350218544,), (1350218548,), (1350218552,), (1350218571,), (1350218573,), (1350218578,), (1350218619,), (1350218624,), (1350218628,), (1350218632,), (1350218697,), (1350218704,), (1350218714,), (1350218719,), (1350218728,)) 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 22070676 , 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=22070661 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 (22070676) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070661) result : ((1350217730,), (1350217735,), (1350217741,), (1350217746,), (1350217793,), (1350217798,), (1350217802,), (1350217806,), (1350217812,), (1350217816,), (1350217861,), (1350217867,), (1350217873,), (1350218068,), (1350218072,), (1350218077,), (1350218082,), (1350218087,), (1350218090,), (1350218118,), (1350218123,), (1350218139,), (1350218147,), (1350218151,), (1350218299,), (1350218312,), (1350218324,), (1350218336,), (1350218343,), (1350218408,), (1350218414,), (1350218418,), (1350218422,), (1350218427,), (1350218437,), (1350218471,), (1350218473,), (1350218477,), (1350218481,), (1350218544,), (1350218548,), (1350218552,), (1350218571,), (1350218573,), (1350218578,), (1350218619,), (1350218624,), (1350218628,), (1350218632,), (1350218697,), (1350218704,), (1350218714,), (1350218719,), (1350218728,)) 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`=22070661 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','plastique','metal','papier','Carton_brun','environnement','Teint_Dans_La_Masse','Carton_gris','mal_croppe','autre_refus','flou','cartonnette')) 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`=22070661 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','plastique','metal','papier','Carton_brun','environnement','Teint_Dans_La_Masse','Carton_gris','mal_croppe','autre_refus','flou','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22070661, 'sub_port_id': 22070677, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558963, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 19)}, 'environnement': {'main_port_id': 22070661, 'sub_port_id': 22070678, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558964, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 19)}, 'plastique': {'main_port_id': 22070661, 'sub_port_id': 22070679, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558965, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 19)}, 'kraft': {'main_port_id': 22070661, 'sub_port_id': 22070680, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558966, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 19)}, 'mal_croppe': {'main_port_id': 22070661, 'sub_port_id': 22070681, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558967, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 19)}, 'metal': {'main_port_id': 22070661, 'sub_port_id': 22070682, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558968, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 19)}, 'flou': {'main_port_id': 22070661, 'sub_port_id': 22070683, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558969, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 19)}, 'Carton_brun': {'main_port_id': 22070661, 'sub_port_id': 22070684, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558970, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 19)}, 'autre_refus': {'main_port_id': 22070661, 'sub_port_id': 22070685, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558971, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 19)}, 'cartonnette': {'main_port_id': 22070661, 'sub_port_id': 22070686, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558972, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 19)}, 'Carton_gris': {'main_port_id': 22070661, 'sub_port_id': 22070687, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558973, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 19)}, 'papier': {'main_port_id': 22070661, 'sub_port_id': 22070688, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558974, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 25), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 25), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 19)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070677,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070665 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070678,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070666 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070679,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070667 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070680,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070668 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070681,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070669 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070682,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070670 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070683,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070671 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070684,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070672 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070685,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070673 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070686,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070674 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070687,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070675 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070688,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070676 lien utilise dans velours : https://www.fotonower.com/velours/22070677,22070678,22070679,22070680,22070681,22070682,22070683,22070684,22070685,22070686,22070687,22070688?tags=Teint_Dans_La_Masse,environnement,plastique,kraft,mal_croppe,metal,flou,Carton_brun,autre_refus,cartonnette,Carton_gris,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22070661]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350218728, 1350218719, 1350218714, 1350218704, 1350218697, 1350218632, 1350218628, 1350218624, 1350218619] map_info['map_portfolio_photo'] : {22070661: [1350218728, 1350218719, 1350218714, 1350218704, 1350218697, 1350218632, 1350218628, 1350218624, 1350218619, 1350218578, 1350218573, 1350218571, 1350218552, 1350218548, 1350218544, 1350218481, 1350218477, 1350218473, 1350218471, 1350218437, 1350218427, 1350218422, 1350218418, 1350218414, 1350218408, 1350218343, 1350218336, 1350218324, 1350218312, 1350218299, 1350218151, 1350218147, 1350218139, 1350218123, 1350218118, 1350218090, 1350218087, 1350218082, 1350218077, 1350218072, 1350218068, 1350217873, 1350217867, 1350217861, 1350217816, 1350217812, 1350217806, 1350217802, 1350217798, 1350217793, 1350217746, 1350217741, 1350217735, 1350217730]} final : False mtd_id 4302 list_pids : [1350218728, 1350218719, 1350218714, 1350218704, 1350218697, 1350218632, 1350218628, 1350218624, 1350218619] Looping around the photos to save general results len do output : 1 /22070661. 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, '2725402') ('4302', '22070661', '1350218728', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218719', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218714', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218704', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218697', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218632', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218628', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218624', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218619', None, None, None, None, None, '2725402') 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', None, '22070661', "{'Teint_Dans_La_Masse': 22070665, 'environnement': 22070666, 'plastique': 22070667, 'kraft': 22070668, 'mal_croppe': 22070669, 'metal': 22070670, 'flou': 22070671, 'Carton_brun': 22070672, 'autre_refus': 22070673, 'cartonnette': 22070674, 'Carton_gris': 22070675, 'papier': 22070676}", None, None, None, None, '2725402'), ('4302', '22070661', '1350218728', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218719', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218714', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218704', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218697', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218632', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218628', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218624', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218619', None, None, None, None, None, '2725402')] time used for this insertion : 0.012491941452026367 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4378855228424072 time spend to save output : 0.012765645980834961 total time spend for step 1 : 1.4506511688232422 step2:final Wed Apr 16 10:27: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 (22070661) 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 22070661 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350217746,1350217741,1350217735,1350217730,1350217816,1350217812,1350217806,1350217802,1350217798,1350217793,1350217873,1350217867,1350217861,1350218090,1350218087,1350218082,1350218077,1350218072,1350218068,1350218151,1350218147,1350218139,1350218123,1350218118,1350218343,1350218336,1350218324,1350218312,1350218299,1350218437,1350218427,1350218422,1350218418,1350218414,1350218408,1350218481,1350218477,1350218473,1350218471,1350218578,1350218573,1350218571,1350218552,1350218548,1350218544,1350218632,1350218628,1350218624,1350218619,1350218728,1350218719,1350218714,1350218704,1350218697); 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([22070661]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350218728: ('0.04636166052598626',), 1350218719: ('0.04636166052598626',), 1350218714: ('0.04636166052598626',), 1350218704: ('0.04636166052598626',), 1350218697: ('0.04636166052598626',), 1350218632: ('0.04636166052598626',), 1350218628: ('0.04636166052598626',), 1350218624: ('0.04636166052598626',), 1350218619: ('0.04636166052598626',)} new output for save of step final : {1350218728: ('0.04636166052598626',), 1350218719: ('0.04636166052598626',), 1350218714: ('0.04636166052598626',), 1350218704: ('0.04636166052598626',), 1350218697: ('0.04636166052598626',), 1350218632: ('0.04636166052598626',), 1350218628: ('0.04636166052598626',), 1350218624: ('0.04636166052598626',), 1350218619: ('0.04636166052598626',)} [1350218728, 1350218719, 1350218714, 1350218704, 1350218697, 1350218632, 1350218628, 1350218624, 1350218619] map_info['map_portfolio_photo'] : {22070661: [1350218728, 1350218719, 1350218714, 1350218704, 1350218697, 1350218632, 1350218628, 1350218624, 1350218619, 1350218578, 1350218573, 1350218571, 1350218552, 1350218548, 1350218544, 1350218481, 1350218477, 1350218473, 1350218471, 1350218437, 1350218427, 1350218422, 1350218418, 1350218414, 1350218408, 1350218343, 1350218336, 1350218324, 1350218312, 1350218299, 1350218151, 1350218147, 1350218139, 1350218123, 1350218118, 1350218090, 1350218087, 1350218082, 1350218077, 1350218072, 1350218068, 1350217873, 1350217867, 1350217861, 1350217816, 1350217812, 1350217806, 1350217802, 1350217798, 1350217793, 1350217746, 1350217741, 1350217735, 1350217730]} final : False mtd_id 4302 list_pids : [1350218728, 1350218719, 1350218714, 1350218704, 1350218697, 1350218632, 1350218628, 1350218624, 1350218619] Looping around the photos to save general results len do output : 9 /1350218728.Didn't retrieve data . /1350218719.Didn't retrieve data . /1350218714.Didn't retrieve data . /1350218704.Didn't retrieve data . /1350218697.Didn't retrieve data . /1350218632.Didn't retrieve data . /1350218628.Didn't retrieve data . /1350218624.Didn't retrieve data . /1350218619.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, '2725402') ('4302', '22070661', '1350218728', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218719', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218714', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218704', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218697', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218632', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218628', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218624', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218619', None, None, None, None, None, '2725402') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '22070661', '1350218728', '0.04636166052598626', None, None, None, None, '2725402'), ('4302', '22070661', '1350218719', '0.04636166052598626', None, None, None, None, '2725402'), ('4302', '22070661', '1350218714', '0.04636166052598626', None, None, None, None, '2725402'), ('4302', '22070661', '1350218704', '0.04636166052598626', None, None, None, None, '2725402'), ('4302', '22070661', '1350218697', '0.04636166052598626', None, None, None, None, '2725402'), ('4302', '22070661', '1350218632', '0.04636166052598626', None, None, None, None, '2725402'), ('4302', '22070661', '1350218628', '0.04636166052598626', None, None, None, None, '2725402'), ('4302', '22070661', '1350218624', '0.04636166052598626', None, None, None, None, '2725402'), ('4302', '22070661', '1350218619', '0.04636166052598626', None, None, None, None, '2725402')] time used for this insertion : 0.01241302490234375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06399703025817871 time spend to save output : 0.012947320938110352 total time spend for step 2 : 0.07694435119628906 step3:velours_tree Wed Apr 16 10:27: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 : {22070661: [{'Teint_Dans_La_Masse': 22070665, 'environnement': 22070666, 'plastique': 22070667, 'kraft': 22070668, 'mal_croppe': 22070669, 'metal': 22070670, 'flou': 22070671, 'Carton_brun': 22070672, 'autre_refus': 22070673, 'cartonnette': 22070674, 'Carton_gris': 22070675, 'papier': 22070676}]} input_args_next_step : {22070661: ()} output_args : {22070661: [{'Teint_Dans_La_Masse': 22070665, 'environnement': 22070666, 'plastique': 22070667, 'kraft': 22070668, 'mal_croppe': 22070669, 'metal': 22070670, 'flou': 22070671, 'Carton_brun': 22070672, 'autre_refus': 22070673, 'cartonnette': 22070674, 'Carton_gris': 22070675, 'papier': 22070676}]} args : 22070661 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 : ({'Teint_Dans_La_Masse': 22070665, 'environnement': 22070666, 'plastique': 22070667, 'kraft': 22070668, 'mal_croppe': 22070669, 'metal': 22070670, 'flou': 22070671, 'Carton_brun': 22070672, 'autre_refus': 22070673, 'cartonnette': 22070674, 'Carton_gris': 22070675, 'papier': 22070676},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22070661) 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([22070661]) 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.3133406639099121 time spend to save output : 7.2479248046875e-05 total time spend for step 3 : 0.313413143157959 step4:send_mail_cod Wed Apr 16 10:27: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 : {1350218728: ('0.04636166052598626',), 1350218719: ('0.04636166052598626',), 1350218714: ('0.04636166052598626',), 1350218704: ('0.04636166052598626',), 1350218697: ('0.04636166052598626',), 1350218632: ('0.04636166052598626',), 1350218628: ('0.04636166052598626',), 1350218624: ('0.04636166052598626',), 1350218619: ('0.04636166052598626',)} input_args_next_step : {1350218728: ()} output_args : {1350218728: ('0.04636166052598626',), 1350218719: ('0.04636166052598626',), 1350218714: ('0.04636166052598626',), 1350218704: ('0.04636166052598626',), 1350218697: ('0.04636166052598626',), 1350218632: ('0.04636166052598626',), 1350218628: ('0.04636166052598626',), 1350218624: ('0.04636166052598626',), 1350218619: ('0.04636166052598626',)} args : 1350218728 depend.output_id : 0 input_args_next_step : {1350218728: ('0.04636166052598626',), 1350218719: ()} output_args : {1350218728: ('0.04636166052598626',), 1350218719: ('0.04636166052598626',), 1350218714: ('0.04636166052598626',), 1350218704: ('0.04636166052598626',), 1350218697: ('0.04636166052598626',), 1350218632: ('0.04636166052598626',), 1350218628: ('0.04636166052598626',), 1350218624: ('0.04636166052598626',), 1350218619: ('0.04636166052598626',)} args : 1350218719 depend.output_id : 0 input_args_next_step : {1350218728: ('0.04636166052598626',), 1350218719: ('0.04636166052598626',), 1350218714: ()} output_args : {1350218728: ('0.04636166052598626',), 1350218719: ('0.04636166052598626',), 1350218714: ('0.04636166052598626',), 1350218704: ('0.04636166052598626',), 1350218697: ('0.04636166052598626',), 1350218632: ('0.04636166052598626',), 1350218628: ('0.04636166052598626',), 1350218624: ('0.04636166052598626',), 1350218619: ('0.04636166052598626',)} args : 1350218714 depend.output_id : 0 input_args_next_step : {1350218728: ('0.04636166052598626',), 1350218719: ('0.04636166052598626',), 1350218714: ('0.04636166052598626',), 1350218704: ()} output_args : {1350218728: ('0.04636166052598626',), 1350218719: ('0.04636166052598626',), 1350218714: ('0.04636166052598626',), 1350218704: ('0.04636166052598626',), 1350218697: ('0.04636166052598626',), 1350218632: ('0.04636166052598626',), 1350218628: ('0.04636166052598626',), 1350218624: ('0.04636166052598626',), 1350218619: ('0.04636166052598626',)} args : 1350218704 depend.output_id : 0 input_args_next_step : {1350218728: ('0.04636166052598626',), 1350218719: ('0.04636166052598626',), 1350218714: ('0.04636166052598626',), 1350218704: ('0.04636166052598626',), 1350218697: ()} output_args : {1350218728: ('0.04636166052598626',), 1350218719: ('0.04636166052598626',), 1350218714: ('0.04636166052598626',), 1350218704: ('0.04636166052598626',), 1350218697: ('0.04636166052598626',), 1350218632: ('0.04636166052598626',), 1350218628: ('0.04636166052598626',), 1350218624: ('0.04636166052598626',), 1350218619: ('0.04636166052598626',)} args : 1350218697 depend.output_id : 0 input_args_next_step : {1350218728: ('0.04636166052598626',), 1350218719: ('0.04636166052598626',), 1350218714: ('0.04636166052598626',), 1350218704: ('0.04636166052598626',), 1350218697: ('0.04636166052598626',), 1350218632: ()} output_args : {1350218728: ('0.04636166052598626',), 1350218719: ('0.04636166052598626',), 1350218714: ('0.04636166052598626',), 1350218704: ('0.04636166052598626',), 1350218697: ('0.04636166052598626',), 1350218632: ('0.04636166052598626',), 1350218628: ('0.04636166052598626',), 1350218624: ('0.04636166052598626',), 1350218619: ('0.04636166052598626',)} args : 1350218632 depend.output_id : 0 input_args_next_step : {1350218728: ('0.04636166052598626',), 1350218719: ('0.04636166052598626',), 1350218714: ('0.04636166052598626',), 1350218704: ('0.04636166052598626',), 1350218697: ('0.04636166052598626',), 1350218632: ('0.04636166052598626',), 1350218628: ()} output_args : {1350218728: ('0.04636166052598626',), 1350218719: ('0.04636166052598626',), 1350218714: ('0.04636166052598626',), 1350218704: ('0.04636166052598626',), 1350218697: ('0.04636166052598626',), 1350218632: ('0.04636166052598626',), 1350218628: ('0.04636166052598626',), 1350218624: ('0.04636166052598626',), 1350218619: ('0.04636166052598626',)} args : 1350218628 depend.output_id : 0 input_args_next_step : {1350218728: ('0.04636166052598626',), 1350218719: ('0.04636166052598626',), 1350218714: ('0.04636166052598626',), 1350218704: ('0.04636166052598626',), 1350218697: ('0.04636166052598626',), 1350218632: ('0.04636166052598626',), 1350218628: ('0.04636166052598626',), 1350218624: ()} output_args : {1350218728: ('0.04636166052598626',), 1350218719: ('0.04636166052598626',), 1350218714: ('0.04636166052598626',), 1350218704: ('0.04636166052598626',), 1350218697: ('0.04636166052598626',), 1350218632: ('0.04636166052598626',), 1350218628: ('0.04636166052598626',), 1350218624: ('0.04636166052598626',), 1350218619: ('0.04636166052598626',)} args : 1350218624 depend.output_id : 0 input_args_next_step : {1350218728: ('0.04636166052598626',), 1350218719: ('0.04636166052598626',), 1350218714: ('0.04636166052598626',), 1350218704: ('0.04636166052598626',), 1350218697: ('0.04636166052598626',), 1350218632: ('0.04636166052598626',), 1350218628: ('0.04636166052598626',), 1350218624: ('0.04636166052598626',), 1350218619: ()} output_args : {1350218728: ('0.04636166052598626',), 1350218719: ('0.04636166052598626',), 1350218714: ('0.04636166052598626',), 1350218704: ('0.04636166052598626',), 1350218697: ('0.04636166052598626',), 1350218632: ('0.04636166052598626',), 1350218628: ('0.04636166052598626',), 1350218624: ('0.04636166052598626',), 1350218619: ('0.04636166052598626',)} args : 1350218619 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 : {22070661: [{'Teint_Dans_La_Masse': 22070665, 'environnement': 22070666, 'plastique': 22070667, 'kraft': 22070668, 'mal_croppe': 22070669, 'metal': 22070670, 'flou': 22070671, 'Carton_brun': 22070672, 'autre_refus': 22070673, 'cartonnette': 22070674, 'Carton_gris': 22070675, 'papier': 22070676}]} input_args_next_step : {1350218728: ('0.04636166052598626',), 1350218719: ('0.04636166052598626',), 1350218714: ('0.04636166052598626',), 1350218704: ('0.04636166052598626',), 1350218697: ('0.04636166052598626',), 1350218632: ('0.04636166052598626',), 1350218628: ('0.04636166052598626',), 1350218624: ('0.04636166052598626',), 1350218619: ('0.04636166052598626',), 22070661: ()} output_args : {22070661: [{'Teint_Dans_La_Masse': 22070665, 'environnement': 22070666, 'plastique': 22070667, 'kraft': 22070668, 'mal_croppe': 22070669, 'metal': 22070670, 'flou': 22070671, 'Carton_brun': 22070672, 'autre_refus': 22070673, 'cartonnette': 22070674, 'Carton_gris': 22070675, 'papier': 22070676}]} args : 22070661 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 :10, first value : ('0.04636166052598626',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22070661) 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 (1350218728,1350218719,1350218714,1350218704,1350218697,1350218632,1350218628,1350218624,1350218619) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350218619 begin to download photo : 1350218628 begin to download photo : 1350218697 begin to download photo : 1350218714 begin to download photo : 1350218728 download finish for photo 1350218628 begin to download photo : 1350218632 download finish for photo 1350218728 download finish for photo 1350218619 begin to download photo : 1350218624 download finish for photo 1350218697 begin to download photo : 1350218704 download finish for photo 1350218714 begin to download photo : 1350218719 download finish for photo 1350218632 download finish for photo 1350218624 download finish for photo 1350218704 download finish for photo 1350218719 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 : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P22070661_16-04-2025_10_27_00.pdf 22070667 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=22070667 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350218444: '1744791732_1669962_1350218090_ba7d3d3341c8bac061274e1db5bd5acf_rle_crop_3748712009_0.png', 1350218713: '1744791942_2467383_1350218336_da8b6524e9eb46cfe906cb15e3b35886_rle_crop_3748714470_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/55dead53525ef098684a630d0a3e09b4_24485997.png change filename to text .imagette220706671744792020/ imagette220706671744792020/1744791942_2467383_1350218336_da8b6524e9eb46cfe906cb15e3b35886_rle_crop_3748714470_0.png.png imagette220706671744792020/1744791732_1669962_1350218090_ba7d3d3341c8bac061274e1db5bd5acf_rle_crop_3748712009_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/8d4e4da7e5dedd4644f1292728b6f802_30617532.png imagette220706671744792020 22070668 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=22070668 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350218715: '1744791942_2467383_1350218437_256185c9bbd4fac3871709e72c62d47e_rle_crop_3748714450_0.png'} change filename to text .imagette220706681744792020/ imagette220706681744792020/1744791942_2467383_1350218437_256185c9bbd4fac3871709e72c62d47e_rle_crop_3748714450_0.png.png imagette220706691744792021/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/746b5639a1d5a20d9e5e6f83c373dd23_58061245.png imagette220706681744792020 22070669 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=22070669 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220706691744792021 22070670 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=22070670 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350218145: '1744791581_2460190_1350217802_328e8a3727c21f2247eddb2d2f1f8f20_rle_crop_3748710446_0.png'} change filename to text .imagette220706701744792021/ imagette220706701744792021/1744791581_2460190_1350217802_328e8a3727c21f2247eddb2d2f1f8f20_rle_crop_3748710446_0.png.png imagette220706711744792021/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/9565554b1d0118bb4b4f5f19676738fb_44253956.png imagette220706701744792021 22070671 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=22070671 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220706711744792021 22070673 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=22070673 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350218127: '1744791581_2460190_1350217812_d79f3b44e45cee708acc054d119a4798_rle_crop_3748710419_0.png', 1350218388: '1744791671_1669271_1350218082_80022fb18576c9bc76930ec7a9a378b3_rle_crop_3748711781_0.png', 1350218389: '1744791671_1669271_1350218082_80022fb18576c9bc76930ec7a9a378b3_rle_crop_3748711778_0.png', 1350218390: '1744791671_1669271_1350218077_7357926578120a18272524386b9ee7bf_rle_crop_3748711797_0.png', 1350218675: '1744791914_1672037_1350218477_95cb7bc2cc98fe1d91cd7c29fbade544_rle_crop_3748714275_0.png', 1350218676: '1744791914_1672037_1350218473_bbb7fff7c4d0708939b8a8a1e0b8b3d3_rle_crop_3748714287_0.png', 1350218702: '1744791942_2467383_1350218437_256185c9bbd4fac3871709e72c62d47e_rle_crop_3748714453_0.png', 1350218703: '1744791942_2467383_1350218312_69621568a4552089e8cfed79f4d14e5b_rle_crop_3748714489_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/db34c58a034bff5182d83527c6d8dd8d_70833532.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c381f1dff094bba472b0672e5b56d1d8_91046601.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c2d03421d4254ff38b5ad0881a4bbdee_71147848.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/face755de8399fbfd68abb1e9b1ecf81_30050708.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/f13960b882bc4261b48c97069ad4a3a8_93941620.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/480291bda2975e59535fe83d7d99e2c4_41426911.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/adc1169bd74843426b0b95a1c24c183a_30266811.png change filename to text .imagette220706731744792021/ imagette220706731744792021/1744791671_1669271_1350218082_80022fb18576c9bc76930ec7a9a378b3_rle_crop_3748711781_0.png.png imagette220706731744792021/1744791914_1672037_1350218473_bbb7fff7c4d0708939b8a8a1e0b8b3d3_rle_crop_3748714287_0.png.png imagette220706731744792021/1744791942_2467383_1350218437_256185c9bbd4fac3871709e72c62d47e_rle_crop_3748714453_0.png.png imagette220706731744792021/1744791581_2460190_1350217812_d79f3b44e45cee708acc054d119a4798_rle_crop_3748710419_0.png.png imagette220706731744792021/1744791914_1672037_1350218477_95cb7bc2cc98fe1d91cd7c29fbade544_rle_crop_3748714275_0.png.png imagette220706731744792021/1744791671_1669271_1350218077_7357926578120a18272524386b9ee7bf_rle_crop_3748711797_0.png.png imagette220706731744792021/1744791942_2467383_1350218312_69621568a4552089e8cfed79f4d14e5b_rle_crop_3748714489_0.png.png imagette220706731744792021/1744791671_1669271_1350218082_80022fb18576c9bc76930ec7a9a378b3_rle_crop_3748711778_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/81e71e7d41a9a8d3a8c6961f9d9b1831_86135928.png imagette220706731744792021 22070674 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=22070674 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350218135: '1744791581_2460190_1350217873_dd207d59600c6f19328f67d1d2b968c2_rle_crop_3748710401_0.png', 1350218136: '1744791581_2460190_1350217873_dd207d59600c6f19328f67d1d2b968c2_rle_crop_3748710403_0.png', 1350218137: '1744791581_2460190_1350217812_d79f3b44e45cee708acc054d119a4798_rle_crop_3748710424_0.png', 1350218138: '1744791581_2460190_1350217812_d79f3b44e45cee708acc054d119a4798_rle_crop_3748710421_0.png', 1350218393: '1744791671_1669271_1350218082_80022fb18576c9bc76930ec7a9a378b3_rle_crop_3748711780_0.png', 1350218394: '1744791671_1669271_1350218068_304c7eb17f8c39fd74377138294d4708_rle_crop_3748711813_0.png', 1350218705: '1744791942_2467383_1350218437_256185c9bbd4fac3871709e72c62d47e_rle_crop_3748714454_0.png', 1350218706: '1744791942_2467383_1350218299_9b569f3694c6c04a30c03dfb5f832d0d_rle_crop_3748714514_0.png', 1350218794: '1744791973_1672709_1350218123_4658ba4366615a4c397fceca11ab8aca_rle_crop_3748714799_0.png', 1350218795: '1744791973_1672709_1350218118_5563a40627d04728bb4f53e5cc688f9e_rle_crop_3748714880_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/ab1507a722b783ed6b316e0b82360864_93708839.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/3311f264dc38ea7d3f947b5a5fc63e9c_93987439.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/df80b761f1c8daa014f01e22da6b0bdf_61932062.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/e633369a0bdecaae27ade3cc83ddfa2c_64043031.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/406f9f9cff2edba6af358240670f0f46_11154874.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/345a983687c6ce5b1e4982ca5e574416_61942889.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/db32ce95a86b2d2924faad15333699c0_68004799.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/3686d9d4fa45085ec10a8893d310d7f5_89818446.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/6281bde0782a5ac3e60d5469f0d7031b_5198590.png change filename to text .imagette220706741744792021/ imagette220706741744792021/1744791581_2460190_1350217812_d79f3b44e45cee708acc054d119a4798_rle_crop_3748710424_0.png.png imagette220706741744792021/1744791942_2467383_1350218299_9b569f3694c6c04a30c03dfb5f832d0d_rle_crop_3748714514_0.png.png imagette220706741744792021/1744791973_1672709_1350218118_5563a40627d04728bb4f53e5cc688f9e_rle_crop_3748714880_0.png.png imagette220706741744792021/1744791671_1669271_1350218068_304c7eb17f8c39fd74377138294d4708_rle_crop_3748711813_0.png.png imagette220706741744792021/1744791581_2460190_1350217812_d79f3b44e45cee708acc054d119a4798_rle_crop_3748710421_0.png.png imagette220706741744792021/1744791581_2460190_1350217873_dd207d59600c6f19328f67d1d2b968c2_rle_crop_3748710403_0.png.png imagette220706741744792021/1744791581_2460190_1350217873_dd207d59600c6f19328f67d1d2b968c2_rle_crop_3748710401_0.png.png imagette220706741744792021/1744791671_1669271_1350218082_80022fb18576c9bc76930ec7a9a378b3_rle_crop_3748711780_0.png.png imagette220706741744792021/1744791973_1672709_1350218123_4658ba4366615a4c397fceca11ab8aca_rle_crop_3748714799_0.png.png imagette220706741744792021/1744791942_2467383_1350218437_256185c9bbd4fac3871709e72c62d47e_rle_crop_3748714454_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/f55c585364cf8f3c302a7a9f2614745c_79782674.png imagette220706741744792021 22070665 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=22070665 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350218103: '1744791565_3247274_1350217867_684b5261d394bd9a55711cf674d66acd_rle_crop_3748710256_0.png', 1350218104: '1744791565_3247274_1350217867_684b5261d394bd9a55711cf674d66acd_rle_crop_3748710255_0.png', 1350218124: '1744791581_2460190_1350217873_dd207d59600c6f19328f67d1d2b968c2_rle_crop_3748710404_0.png', 1350218125: '1744791581_2460190_1350217802_328e8a3727c21f2247eddb2d2f1f8f20_rle_crop_3748710447_0.png', 1350218386: '1744791671_1669271_1350218087_89404c14ff6bd8b6b5bbe9812d7cf0a9_rle_crop_3748711771_0.png', 1350218674: '1744791914_1672037_1350218477_95cb7bc2cc98fe1d91cd7c29fbade544_rle_crop_3748714277_0.png', 1350218700: '1744791942_2467383_1350218336_da8b6524e9eb46cfe906cb15e3b35886_rle_crop_3748714471_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/988a059f02edc6e56cf6fe10b3eb872f_12957383.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/f5308d9509b65bad31b008d922f8ee5f_57408882.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/80bc9c37b80c3208a7896a2f7b54c9d3_42287149.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/a7cf9c32ac3946dd5272c2b97653a144_46719127.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b3f5417d11d1c9e1793918ef175a7414_14643347.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/1a39260911b9c0649aaa1952e9e8d0e4_66297778.png change filename to text .imagette220706651744792022/ imagette220706651744792022/1744791942_2467383_1350218336_da8b6524e9eb46cfe906cb15e3b35886_rle_crop_3748714471_0.png.png imagette220706651744792022/1744791581_2460190_1350217802_328e8a3727c21f2247eddb2d2f1f8f20_rle_crop_3748710447_0.png.png imagette220706651744792022/1744791581_2460190_1350217873_dd207d59600c6f19328f67d1d2b968c2_rle_crop_3748710404_0.png.png imagette220706651744792022/1744791565_3247274_1350217867_684b5261d394bd9a55711cf674d66acd_rle_crop_3748710256_0.png.png imagette220706651744792022/1744791914_1672037_1350218477_95cb7bc2cc98fe1d91cd7c29fbade544_rle_crop_3748714277_0.png.png imagette220706651744792022/1744791671_1669271_1350218087_89404c14ff6bd8b6b5bbe9812d7cf0a9_rle_crop_3748711771_0.png.png imagette220706651744792022/1744791565_3247274_1350217867_684b5261d394bd9a55711cf674d66acd_rle_crop_3748710255_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c36154f718301cdf866b058fbb2f0a58_13847422.png imagette220706651744792022 22070672 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=22070672 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350218142: '1744791581_2460190_1350217812_d79f3b44e45cee708acc054d119a4798_rle_crop_3748710425_0.png', 1350218143: '1744791581_2460190_1350217802_328e8a3727c21f2247eddb2d2f1f8f20_rle_crop_3748710445_0.png', 1350218682: '1744791914_1672037_1350218473_bbb7fff7c4d0708939b8a8a1e0b8b3d3_rle_crop_3748714294_0.png', 1350218683: '1744791914_1672037_1350218471_bb5005a612cb8c930fe8fd85636a55ee_rle_crop_3748714309_0.png', 1350218710: '1744791942_2467383_1350218312_69621568a4552089e8cfed79f4d14e5b_rle_crop_3748714491_0.png', 1350218711: '1744791942_2467383_1350218312_69621568a4552089e8cfed79f4d14e5b_rle_crop_3748714496_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7551f293544a104f9665485646a7f2b7_69077120.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/eb983a83f425577ef977711f2a9d213d_3986384.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/feb56e0c39bddbdc74890cc786617ec1_96867068.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/ca34c21f864efd28b494d2909fe93c85_88669234.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7a23a23dd8500dcd1eef152e2e44f479_98413558.png change filename to text .imagette220706721744792022/ imagette220706721744792022/1744791914_1672037_1350218471_bb5005a612cb8c930fe8fd85636a55ee_rle_crop_3748714309_0.png.png imagette220706721744792022/1744791942_2467383_1350218312_69621568a4552089e8cfed79f4d14e5b_rle_crop_3748714491_0.png.png imagette220706721744792022/1744791942_2467383_1350218312_69621568a4552089e8cfed79f4d14e5b_rle_crop_3748714496_0.png.png imagette220706721744792022/1744791914_1672037_1350218473_bbb7fff7c4d0708939b8a8a1e0b8b3d3_rle_crop_3748714294_0.png.png imagette220706721744792022/1744791581_2460190_1350217802_328e8a3727c21f2247eddb2d2f1f8f20_rle_crop_3748710445_0.png.png imagette220706721744792022/1744791581_2460190_1350217812_d79f3b44e45cee708acc054d119a4798_rle_crop_3748710425_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/8e0dd08b9320a2864e4be524e82ad40b_16771927.png imagette220706721744792022 22070675 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=22070675 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350218130: '1744791581_2460190_1350217806_2fcc7c01520574bc450c3494135164de_rle_crop_3748710432_0.png', 1350218132: '1744791581_2460190_1350217806_2fcc7c01520574bc450c3494135164de_rle_crop_3748710434_0.png', 1350218133: '1744791581_2460190_1350217798_32028d7e53b164f8a0d9ab0e2764b0b4_rle_crop_3748710457_0.png', 1350218392: '1744791671_1669271_1350218087_89404c14ff6bd8b6b5bbe9812d7cf0a9_rle_crop_3748711767_0.png', 1350218678: '1744791914_1672037_1350218473_bbb7fff7c4d0708939b8a8a1e0b8b3d3_rle_crop_3748714288_0.png', 1350218679: '1744791914_1672037_1350218471_bb5005a612cb8c930fe8fd85636a55ee_rle_crop_3748714302_0.png', 1350218680: '1744791914_1672037_1350218471_bb5005a612cb8c930fe8fd85636a55ee_rle_crop_3748714305_0.png', 1350218792: '1744791973_1672709_1350218123_4658ba4366615a4c397fceca11ab8aca_rle_crop_3748714795_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/99a10e9352715353858d246a68776258_27547328.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/2a3f1d35106a903326a3c7301954bc94_59669883.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/538b98d408f365fb4ffeae330db10ec3_88756770.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/1f97de3aedc1180ffd504b1d53a5af97_16521550.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/2338c14dda646116a05f8c994989eb36_90611470.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/3f22565f83b38fa7d35d02f7d5f1bf03_9141270.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c954ef77fb4d9f01e198c610a4fae9df_87636859.png change filename to text .imagette220706751744792022/ imagette220706751744792022/1744791671_1669271_1350218087_89404c14ff6bd8b6b5bbe9812d7cf0a9_rle_crop_3748711767_0.png.png imagette220706751744792022/1744791914_1672037_1350218471_bb5005a612cb8c930fe8fd85636a55ee_rle_crop_3748714302_0.png.png imagette220706751744792022/1744791914_1672037_1350218473_bbb7fff7c4d0708939b8a8a1e0b8b3d3_rle_crop_3748714288_0.png.png imagette220706751744792022/1744791973_1672709_1350218123_4658ba4366615a4c397fceca11ab8aca_rle_crop_3748714795_0.png.png imagette220706751744792022/1744791581_2460190_1350217798_32028d7e53b164f8a0d9ab0e2764b0b4_rle_crop_3748710457_0.png.png imagette220706751744792022/1744791914_1672037_1350218471_bb5005a612cb8c930fe8fd85636a55ee_rle_crop_3748714305_0.png.png imagette220706751744792022/1744791581_2460190_1350217806_2fcc7c01520574bc450c3494135164de_rle_crop_3748710434_0.png.png imagette220706751744792022/1744791581_2460190_1350217806_2fcc7c01520574bc450c3494135164de_rle_crop_3748710432_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/f93fb792459e99eaf3db6fff976b91fa_87635621.png imagette220706751744792022 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22070661 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22070677,22070678,22070679,22070680,22070681,22070682,22070683,22070684,22070685,22070686,22070687,22070688?tags=Teint_Dans_La_Masse,environnement,plastique,kraft,mal_croppe,metal,flou,Carton_brun,autre_refus,cartonnette,Carton_gris,papier your option no_mail is active, we will not send the real mail to your client args[1350218728] : ('0.04636166052598626',) no score found for photo 1350218728 We are sending mail with results at report@fotonower.com args[1350218719] : ('0.04636166052598626',) no score found for photo 1350218719 We are sending mail with results at report@fotonower.com args[1350218714] : ('0.04636166052598626',) no score found for photo 1350218714 We are sending mail with results at report@fotonower.com args[1350218704] : ('0.04636166052598626',) no score found for photo 1350218704 We are sending mail with results at report@fotonower.com args[1350218697] : ('0.04636166052598626',) no score found for photo 1350218697 We are sending mail with results at report@fotonower.com args[1350218632] : ('0.04636166052598626',) no score found for photo 1350218632 We are sending mail with results at report@fotonower.com args[1350218628] : ('0.04636166052598626',) no score found for photo 1350218628 We are sending mail with results at report@fotonower.com args[1350218624] : ('0.04636166052598626',) no score found for photo 1350218624 We are sending mail with results at report@fotonower.com args[1350218619] : ('0.04636166052598626',) no score found for photo 1350218619 We are sending mail with results at report@fotonower.com refus_total : 0.04636166052598626 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=22070661 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_P22070661_16-04-2025_10_27_00.pdf results_Auto_P22070661_16-04-2025_10_27_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22070661_16-04-2025_10_27_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','22070661','results_Auto_P22070661_16-04-2025_10_27_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22070661_16-04-2025_10_27_00.pdf','pdf','','0.19','0.04636166052598626') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22070661]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350218728, 1350218719, 1350218714, 1350218704, 1350218697, 1350218632, 1350218628, 1350218624, 1350218619] map_info['map_portfolio_photo'] : {22070661: [1350218728, 1350218719, 1350218714, 1350218704, 1350218697, 1350218632, 1350218628, 1350218624, 1350218619, 1350218578, 1350218573, 1350218571, 1350218552, 1350218548, 1350218544, 1350218481, 1350218477, 1350218473, 1350218471, 1350218437, 1350218427, 1350218422, 1350218418, 1350218414, 1350218408, 1350218343, 1350218336, 1350218324, 1350218312, 1350218299, 1350218151, 1350218147, 1350218139, 1350218123, 1350218118, 1350218090, 1350218087, 1350218082, 1350218077, 1350218072, 1350218068, 1350217873, 1350217867, 1350217861, 1350217816, 1350217812, 1350217806, 1350217802, 1350217798, 1350217793, 1350217746, 1350217741, 1350217735, 1350217730]} final : False mtd_id 4302 list_pids : [1350218728, 1350218719, 1350218714, 1350218704, 1350218697, 1350218632, 1350218628, 1350218624, 1350218619] 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, '2725402') ('4302', '22070661', '1350218728', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218719', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218714', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218704', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218697', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218632', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218628', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218624', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218619', None, None, None, None, None, '2725402') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '22070661', '1350218728', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218719', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218714', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218704', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218697', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218632', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218628', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218624', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218619', None, None, None, None, None, '2725402')] time used for this insertion : 0.014514446258544922 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.7962043285369873 time spend to save output : 0.0146942138671875 total time spend for step 4 : 3.810898542404175 step5:split_time_score Wed Apr 16 10:27:04 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 : ['22070661'] 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 : [('22070661',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22070661) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350218728: {'path': 'temp/1744792020_227841_1350218728_f9fb263c74b00821eceac91e9f374351.jpg', 'extension': 'jpg'}, 1350218628: {'path': 'temp/1744792020_227841_1350218628_9879ec8448067641c947593c0bee856d.jpg', 'extension': 'jpg'}, 1350218632: {'path': 'temp/1744792020_227841_1350218632_2a2c404f72afb4f949f695cf0c4cf43a.jpg', 'extension': 'jpg'}, 1350218619: {'path': 'temp/1744792020_227841_1350218619_63bb5755278ca7a1da9022fcc142c5dc.jpg', 'extension': 'jpg'}, 1350218624: {'path': 'temp/1744792020_227841_1350218624_e6142f81518ae216e2bb63f9505ffc9d.jpg', 'extension': 'jpg'}, 1350218697: {'path': 'temp/1744792020_227841_1350218697_0e8991a0b27c47d95a4f4c48b2de06eb.jpg', 'extension': 'jpg'}, 1350218704: {'path': 'temp/1744792020_227841_1350218704_2703554ae8961f97830f0b9afcd9d86d.jpg', 'extension': 'jpg'}, 1350218714: {'path': 'temp/1744792020_227841_1350218714_704275b0d4c0995e5feb03e1372ac94a.jpg', 'extension': 'jpg'}, 1350218719: {'path': 'temp/1744792020_227841_1350218719_b85fcee3be252813628e250a08ac939e.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 = 22070661; (('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 = 22070661 group by h (('10', 54),) 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=22070661 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 (22070661) 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 (22070661) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16042025 22070661 Nombre de photos uploadées : 54 / 23040 (0%) 16042025 22070661 Nombre de photos taguées (types de déchets): 0 / 54 (0%) 16042025 22070661 Nombre de photos taguées (volume) : 0 / 54 (0%) [{'photo_id': 1350217746, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/44cb536e718ce56129ac681f81a74884.jpg', 'username': None, 'uploaded_at': 1744791367, 'text': 'image_16042025_10_15_04_10151.jpg'}, {'photo_id': 1350217741, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/443e54ab9e9d13fa819fb6c9421b1822.jpg', 'username': None, 'uploaded_at': 1744791367, 'text': 'image_16042025_10_15_24_10132.jpg'}, {'photo_id': 1350217735, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/458b31fc71f6c09894ca32ff2006b1ee.jpg', 'username': None, 'uploaded_at': 1744791367, 'text': 'image_16042025_10_15_34_10133.jpg'}, {'photo_id': 1350217730, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/6a1df0134ee12945de81ed6df9ed2183.jpg', 'username': None, 'uploaded_at': 1744791367, 'text': 'image_16042025_10_15_44_9125.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024178028106689453 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22070661, '2025-04-16' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1717339,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03034687042236328 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= 1717339 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1717339, 'dashboard_run_id': 1726228, 'mtr_portfolio_id': 22068844, 'dashboard_result_id': 9878856, '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_P22068844_16-04-2025_09_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22068845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22068846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22068847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22068848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22068849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22068850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22068851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22068852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22068853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22068854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22068855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22068856, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1726228, 'mtr_portfolio_id': 22069355, 'dashboard_result_id': 9878857, '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_P22069355_16-04-2025_10_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22069428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069432, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1726228, 'mtr_portfolio_id': 22069943, 'dashboard_result_id': 9878858, '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_P22069943_16-04-2025_10_19_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22069976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069979, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1726228, 'mtr_portfolio_id': 22070661, 'dashboard_result_id': 9878859, '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_P22070661_16-04-2025_10_25_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22070665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22070666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22070667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22070668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22070669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22070670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22070671, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22070672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22070673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22070674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22070675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22070676, '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 = 22068844 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': 2725257, 'mtr_portfolio_id': 22068844, 'created_at': datetime.datetime(2025, 4, 16, 9, 48, 59), 'result': '0.05742578485414331', 'result_long': None, 'result_double': None}] Qualite : 0.05742578485414331 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22068844 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22068844_16-04-2025_09_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22068844 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_P22068844_16-04-2025_09_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22068845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22068846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22068847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22068848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22068849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22068850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22068851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22068852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22068853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22068854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22068855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22068856, 'pht': 3726}}" where mtr_portfolio_id = 22068844 and dashboard_run_id = 1726228 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`=22068844 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9878856, 0.05742578485414331, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22068844_16-04-2025_09_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22068845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22068846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22068847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22068848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22068849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22068850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22068851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22068852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22068853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22068854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22068855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22068856, '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 = 22069355 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': 2725297, 'mtr_portfolio_id': 22069355, 'created_at': datetime.datetime(2025, 4, 16, 10, 2, 58), 'result': '0.046502172647510345', 'result_long': None, 'result_double': None}] Qualite : 0.046502172647510345 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22069355 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22069355_16-04-2025_10_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22069355 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_P22069355_16-04-2025_10_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22069428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069432, 'pht': 3726}}" where mtr_portfolio_id = 22069355 and dashboard_run_id = 1726228 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`=22069355 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9878857, 0.046502172647510345, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22069355_16-04-2025_10_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22069428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069432, '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 = 22069943 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': 2725351, 'mtr_portfolio_id': 22069943, 'created_at': datetime.datetime(2025, 4, 16, 10, 19, 29), 'result': '0.048789733604911394', 'result_long': None, 'result_double': None}] Qualite : 0.048789733604911394 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22069943 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22069943_16-04-2025_10_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22069943 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_P22069943_16-04-2025_10_19_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22069976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069979, 'pht': 3726}}" where mtr_portfolio_id = 22069943 and dashboard_run_id = 1726228 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`=22069943 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9878858, 0.048789733604911394, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22069943_16-04-2025_10_19_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22069976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069979, '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 = 22070661 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': 2725402, 'mtr_portfolio_id': 22070661, 'created_at': datetime.datetime(2025, 4, 16, 10, 27), 'result': '0.04636166052598626', 'result_long': None, 'result_double': None}] Qualite : 0.04636166052598626 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22070661 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22070661_16-04-2025_10_27_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22070661 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_P22070661_16-04-2025_10_27_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22070665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22070666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22070667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22070668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22070669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22070670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22070671, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22070672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22070673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22070674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22070675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22070676, 'pht': 3726}}" where mtr_portfolio_id = 22070661 and dashboard_run_id = 1726228 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`=22070661 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9878859, 0.04636166052598626, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22070661_16-04-2025_10_27_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22070665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22070666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22070667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22070668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22070669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22070670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22070671, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22070672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22070673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22070674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22070675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22070676, '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 (22068844,22069355,22069943,22070661) result : ((1350203740,), (1350203766,), (1350203789,), (1350203898,), (1350203908,), (1350203912,), (1350203933,), (1350203948,), (1350204005,), (1350204013,), (1350204017,), (1350204020,), (1350204023,), (1350204054,), (1350204076,), (1350204082,), (1350204086,), (1350204091,), (1350204480,), (1350204506,), (1350204541,), (1350204572,), (1350204599,), (1350204966,), (1350204990,), (1350205039,), (1350205064,), (1350205069,), (1350205091,), (1350205255,), (1350205300,), (1350205329,), (1350205730,), (1350205741,), (1350205756,), (1350205770,), (1350205781,), (1350205799,), (1350205993,), (1350206029,), (1350206041,), (1350206069,), (1350206100,), (1350206116,), (1350206391,), (1350206411,), (1350206419,), (1350206427,), (1350206444,), (1350206758,), (1350206864,), (1350206916,), (1350206947,), (1350207044,), (1350207082,), (1350207194,), (1350207200,), (1350207208,), (1350207223,), (1350207542,), (1350207523,), (1350207528,), (1350207531,), (1350207533,), (1350207539,), (1350207704,), (1350207723,), (1350207746,), (1350207770,), (1350207775,), (1350208092,), (1350208188,), (1350208207,), (1350208401,), (1350208405,), (1350208407,), (1350208409,), (1350208416,), (1350208421,), (1350208467,), (1350208475,), (1350208481,), (1350208488,), (1350208496,), (1350208509,), (1350208600,), (1350208606,), (1350208613,), (1350208616,), (1350208708,), (1350208716,), (1350208722,), (1350208727,), (1350208800,), (1350208809,), (1350208816,), (1350208878,), (1350208886,), (1350208891,), (1350208896,), (1350208902,), (1350208907,), (1350208934,), (1350208939,), (1350208946,), (1350208953,), (1350208960,), (1350209140,), (1350209148,), (1350209153,), (1350209158,), (1350209165,), (1350209195,), (1350209200,), (1350209204,), (1350209207,), (1350209213,), (1350209265,), (1350209270,), (1350209275,), (1350209280,), (1350209389,), (1350209395,), (1350209404,), (1350209412,), (1350209420,), (1350209813,), (1350209695,), (1350209752,), (1350210393,), (1350210434,), (1350210478,), (1350210509,), (1350210550,), (1350210575,), (1350210808,), (1350210843,), (1350210886,), (1350211311,), (1350211358,), (1350211400,), (1350211436,), (1350211488,), (1350211538,), (1350212402,), (1350212446,), (1350212489,), (1350212538,), (1350212585,), (1350213437,), (1350213488,), (1350213540,), (1350213577,), (1350214181,), (1350214224,), (1350214279,), (1350214343,), (1350214394,), (1350214470,), (1350215094,), (1350215169,), (1350215226,), (1350215273,), (1350215886,), (1350215889,), (1350215892,), (1350215896,), (1350215901,), (1350216050,), (1350216072,), (1350216106,), (1350216160,), (1350216566,), (1350216592,), (1350216621,), (1350216630,), (1350216660,), (1350216906,), (1350216938,), (1350216967,), (1350216993,), (1350217123,), (1350217127,), (1350217130,), (1350217136,), (1350217162,), (1350217400,), (1350217440,), (1350217470,), (1350217497,), (1350217653,), (1350217659,), (1350217665,), (1350217672,), (1350217678,), (1350217681,), (1350217752,), (1350217730,), (1350217735,), (1350217741,), (1350217746,), (1350217793,), (1350217798,), (1350217802,), (1350217806,), (1350217812,), (1350217816,), (1350217861,), (1350217867,), (1350217873,), (1350218068,), (1350218072,), (1350218077,), (1350218082,), (1350218087,), (1350218090,), (1350218118,), (1350218123,), (1350218139,), (1350218147,), (1350218151,), (1350218299,), (1350218312,), (1350218324,), (1350218336,), (1350218343,), (1350218408,), (1350218414,), (1350218418,), (1350218422,), (1350218427,), (1350218437,), (1350218471,), (1350218473,), (1350218477,), (1350218481,), (1350218544,), (1350218548,), (1350218552,), (1350218571,), (1350218573,), (1350218578,), (1350218619,), (1350218624,), (1350218628,), (1350218632,), (1350218697,), (1350218704,), (1350218714,), (1350218719,), (1350218728,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16042025': {'nb_upload': 54, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22070661]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350218728, 1350218719, 1350218714, 1350218704, 1350218697, 1350218632, 1350218628, 1350218624, 1350218619] map_info['map_portfolio_photo'] : {22070661: [1350218728, 1350218719, 1350218714, 1350218704, 1350218697, 1350218632, 1350218628, 1350218624, 1350218619, 1350218578, 1350218573, 1350218571, 1350218552, 1350218548, 1350218544, 1350218481, 1350218477, 1350218473, 1350218471, 1350218437, 1350218427, 1350218422, 1350218418, 1350218414, 1350218408, 1350218343, 1350218336, 1350218324, 1350218312, 1350218299, 1350218151, 1350218147, 1350218139, 1350218123, 1350218118, 1350218090, 1350218087, 1350218082, 1350218077, 1350218072, 1350218068, 1350217873, 1350217867, 1350217861, 1350217816, 1350217812, 1350217806, 1350217802, 1350217798, 1350217793, 1350217746, 1350217741, 1350217735, 1350217730]} final : True mtd_id 4302 list_pids : [1350218728, 1350218719, 1350218714, 1350218704, 1350218697, 1350218632, 1350218628, 1350218624, 1350218619] Looping around the photos to save general results len do output : 1 /22070661Didn'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, '2725402') ('4302', '22070661', '1350218728', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218719', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218714', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218704', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218697', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218632', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218628', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218624', None, None, None, None, None, '2725402') ('4302', None, None, None, None, None, None, None, '2725402') ('4302', '22070661', '1350218619', None, None, None, None, None, '2725402') 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', None, '22070661', 'None', None, None, None, None, '2725402'), ('4302', '22070661', '1350218728', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218719', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218714', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218704', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218697', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218632', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218628', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218624', None, None, None, None, None, '2725402'), ('4302', '22070661', '1350218619', None, None, None, None, None, '2725402')] time used for this insertion : 0.0161893367767334 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3349637985229492 time spend to save output : 0.016396522521972656 total time spend for step 5 : 0.3513603210449219 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 (2725402) 2.11user 2.24system 0:08.87elapsed 49%CPU (0avgtext+0avgdata 158944maxresident)k 520inputs+10152outputs (2major+64029minor)pagefaults 0swaps